]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTabularCreate.h
Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
[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 "GuiDialog.h"
16 #include "ui_TabularCreateUi.h"
17
18 #include <utility>
19
20 namespace lyx {
21 namespace frontend {
22
23
24 class GuiTabularCreate : public GuiDialog, public Ui::TabularCreateUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiTabularCreate(GuiView & lv);
30
31 private Q_SLOTS:
32         void columnsChanged(int);
33         void rowsChanged(int);
34
35 private:
36         /// Apply changes
37         void applyView();
38         ///
39         bool initialiseParams(std::string const & data);
40         /// clean-up on hide.
41         void clearParams();
42         ///
43         void dispatchParams();
44         ///
45         bool isBufferDependent() const { return true; }
46         ///
47         kb_action getLfun() const { return LFUN_TABULAR_INSERT; }
48
49         ///
50         typedef std::pair<size_t, size_t> rowsCols;
51         ///
52         rowsCols & params() { return params_; }
53
54 private:
55         /// rows, cols params
56         rowsCols params_;
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GUITABULARCREATE_H