]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTabularCreate.h
move our stuff off the Q* namespace
[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 QTABULARCREATE_H
13 #define QTABULARCREATE_H
14
15 #include "GuiDialogView.h"
16 #include "ui_TabularCreateUi.h"
17
18 #include <QDialog>
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiTabularCreate;
24
25 class GuiTabularCreateDialog : public QDialog, public Ui::TabularCreateUi {
26         Q_OBJECT
27 public:
28         GuiTabularCreateDialog(GuiTabularCreate * form);
29 protected Q_SLOTS:
30         virtual void columnsChanged(int);
31         virtual void rowsChanged(int);
32 private:
33         GuiTabularCreate * form_;
34 };
35
36
37 class ControlTabularCreate;
38
39 class GuiTabularCreate
40         : public QController<ControlTabularCreate, GuiView<GuiTabularCreateDialog> >
41 {
42 public:
43         ///
44         friend class GuiTabularCreateDialog;
45         ///
46         GuiTabularCreate(Dialog &);
47 private:
48         /// Apply changes
49         virtual void apply();
50         /// update
51         virtual void update_contents() {}
52         /// build the dialog
53         virtual void build_dialog();
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // QTABULARCREATE_H