3 * \file GuiMathMatrixDialog.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * \author Jürgen Spitzmüller
11 * Full author contact details are available in file CREDITS.
14 #ifndef GUIMATHMATRIXDIALOG_H
15 #define GUIMATHMATRIXDIALOG_H
17 #include "GuiDialogView.h"
18 #include "ControlMath.h"
19 #include "ui_MathMatrixUi.h"
30 class GuiMathMatrixDialog : public QDialog, public Ui::MathMatrixUi {
33 GuiMathMatrixDialog(GuiMathMatrix * form);
38 virtual void columnsChanged(int);
39 virtual void rowsChanged(int);
40 virtual void change_adaptor();
42 GuiMathMatrix * form_;
46 class GuiMathMatrix : public GuiView<GuiMathMatrixDialog> {
48 friend class GuiMathMatrixDialog;
50 GuiMathMatrix(GuiDialog &);
52 ControlMath & controller()
53 { return static_cast<ControlMath &>(this->getController()); }
55 ControlMath const & controller() const
56 { return static_cast<ControlMath const &>(this->getController()); }
58 virtual void applyView() {}
59 virtual void update_contents() {}
61 virtual void build_dialog();
65 } // namespace frontend
68 #endif // GUIMATHMATRIXDIALOG_H