]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTabularCreate.h
474f4e42e9c7cab643cafa526fd1da90c85bcfa1
[lyx.git] / src / frontends / qt4 / GuiTabularCreate.h
1 // -*- C++ -*-
2 /**
3  * \file GuiTabularCreate.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUITABULARCREATE_H
13 #define GUITABULARCREATE_H
14
15 #include "GuiDialogView.h"
16 #include "ControlTabularCreate.h"
17 #include "ui_TabularCreateUi.h"
18
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiTabularCreate;
25
26 class GuiTabularCreateDialog : public QDialog, public Ui::TabularCreateUi
27 {
28         Q_OBJECT
29 public:
30         GuiTabularCreateDialog(GuiTabularCreate * form);
31 protected Q_SLOTS:
32         virtual void columnsChanged(int);
33         virtual void rowsChanged(int);
34 private:
35         GuiTabularCreate * form_;
36 };
37
38
39 class GuiTabularCreate : public GuiView<GuiTabularCreateDialog>
40 {
41 public:
42         ///
43         friend class GuiTabularCreateDialog;
44         ///
45         GuiTabularCreate(Dialog &);
46         /// parent controller
47         ControlTabularCreate & controller()
48         { return static_cast<ControlTabularCreate &>(this->getController()); }
49         /// parent controller
50         ControlTabularCreate const & controller() const
51         { return static_cast<ControlTabularCreate const &>(this->getController()); }
52 private:
53         /// Apply changes
54         virtual void apply();
55         /// update
56         virtual void update_contents() {}
57         /// build the dialog
58         virtual void build_dialog();
59 };
60
61 } // namespace frontend
62 } // namespace lyx
63
64 #endif // GUITABULARCREATE_H