]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBox.h
Transfer LyXfunc code to GuiApplication::dispatch() and getStatus(). Now
[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 "InsetDialog.h"
17 #include "ui_BoxUi.h"
18 #include "insets/InsetBox.h"
19
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiBox : public InsetDialog, public Ui::BoxUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiBox(GuiView & lv);
30
31 private Q_SLOTS:
32         void on_innerBoxCO_activated(QString const &);
33         void on_typeCO_activated(int);
34         void initDialog();
35         void on_heightCB_stateChanged(int state);
36         void on_pagebreakCB_stateChanged();
37
38 private:
39         /// \name Dialog inerited methods
40         //@{
41         void enableView(bool enable);
42         //@}
43
44         /// \name InsetDialog inherited methods
45         //@{
46         void paramsToDialog(Inset const *);
47         docstring dialogToParams() const;
48         //@}
49
50         /// add and remove special lengths
51         void setSpecial(bool ibox);
52         /// only show valid inner box items
53         void setInnerType(bool frameless, int i);
54
55         QStringList ids_;
56         ///
57         QStringList gui_names_;
58         ///
59         QStringList ids_spec_;
60         ///
61         QStringList gui_names_spec_;
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif // GUIBOX_H