]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QMathMatrixDialog.h
* src/frontends/qt4/ui/TextLayoutUi.ui:
[lyx.git] / src / frontends / qt4 / QMathMatrixDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QMathMatrixDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Edwin Leuven
9  * \author Jürgen Spitzmüller
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef QMATHMATRIXDIALOG_H
15 #define QMATHMATRIXDIALOG_H
16
17 #include "QDialogView.h"
18
19 #include "ui/MathMatrixUi.h"
20
21 #include <QDialog>
22
23 namespace lyx {
24 namespace frontend {
25
26 class QMathMatrix;
27 class ControlMath;
28
29
30 class QMathMatrixDialog : public QDialog, public Ui::QMathMatrixUi {
31         Q_OBJECT
32 public:
33         QMathMatrixDialog(QMathMatrix * form);
34 public Q_SLOTS:
35         void slotOK();
36         void slotClose();
37 protected Q_SLOTS:
38         virtual void columnsChanged(int);
39         virtual void rowsChanged(int);
40         virtual void change_adaptor();
41 private:
42         QMathMatrix * form_;
43 };
44
45
46 class QMathMatrix : public QController<ControlMath, QView<QMathMatrixDialog> > {
47 public:
48         friend class QMathMatrixDialog;
49
50         QMathMatrix(Dialog &);
51
52 private:
53         virtual void apply() {}
54         virtual void update_contents() {}
55         /// Build the dialog.
56         virtual void build_dialog();
57 };
58
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // QMATHMATRIXDIALOG_H