]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBox.h
* GuiBoc.{cpp,h}:
[lyx.git] / src / frontends / qt4 / GuiBox.h
1 // -*- C++ -*-
2 /**
3  * \file GuiBox.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  * \author Martin Vermeer (with useful hints from Angus Leeming)
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIBOX_H
14 #define GUIBOX_H
15
16 #include "InsetParamsWidget.h"
17 #include "ui_BoxUi.h"
18
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiBox : public InsetParamsWidget, public Ui::BoxUi
24 {
25         Q_OBJECT
26
27 public:
28         GuiBox(QWidget * parent = 0);
29
30 private Q_SLOTS:
31         void on_innerBoxCO_activated(QString const &);
32         void on_typeCO_activated(int);
33         void initDialog();
34         void on_heightCB_stateChanged(int state);
35         void on_pagebreakCB_stateChanged();
36
37 private:
38         /// \name DialogView inherited methods
39         //@{
40         InsetCode insetCode() const { return BOX_CODE; }
41         FuncCode creationCode() const { return LFUN_BOX_INSERT; }
42         void paramsToDialog(Inset const *);
43         docstring dialogToParams() const;
44         //@}
45
46         /// add and remove special lengths
47         void setSpecial(bool ibox);
48         /// only show valid inner box items
49         void setInnerType(bool frameless, QString const & type);
50
51         QStringList ids_;
52         ///
53         QStringList gui_names_;
54         ///
55         QStringList ids_spec_;
56         ///
57         QStringList gui_names_spec_;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GUIBOX_H