]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBox.h
* fix spelling in comments to please John.
[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 "GuiDialog.h"
17 #include "ui_BoxUi.h"
18 #include "insets/InsetBox.h"
19
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiBox : public GuiDialog, public Ui::BoxUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiBox(GuiView & lv);
30
31 private Q_SLOTS:
32         void change_adaptor();
33         void innerBoxChanged(QString const &);
34         void typeChanged(int);
35         void restoreClicked();
36         void pagebreakClicked();
37
38 private:
39         /// add and remove special lengths
40         void setSpecial(bool ibox);
41         /// only show valid inner box items
42         void setInnerType(bool frameless, int i);
43
44         /// Apply changes
45         void applyView();
46         /// update
47         void updateContents();
48
49         ///
50         bool initialiseParams(std::string const & data);
51         ///
52         void clearParams();
53         ///
54         void dispatchParams();
55         ///
56         bool isBufferDependent() const { return true; }
57
58         ///
59         QStringList ids_;
60         ///
61         QStringList gui_names_;
62         ///
63         QStringList ids_spec_;
64         ///
65         QStringList gui_names_spec_;
66
67         ///
68         InsetBoxParams params_;
69 };
70
71 } // namespace frontend
72 } // namespace lyx
73
74 #endif // GUIBOX_H