]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QBox.h
* src/frontends/qt4/GuiWorkArea.[Ch]:
[lyx.git] / src / frontends / qt4 / QBox.h
1 // -*- C++ -*-
2 /**
3  * \file QBox.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
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QBOX_H
14 #define QBOX_H
15
16 #include "QBoxDialog.h"
17 #include "QDialogView.h"
18
19 #include <vector>
20
21 namespace lyx {
22 namespace frontend {
23
24 class ControlBox;
25
26 ///
27 class QBox
28         : public QController<ControlBox, QView<QBoxDialog> >
29 {
30 public:
31         ///
32         friend class QBoxDialog;
33         ///
34         QBox(Dialog &);
35         /// add and remove special lengths
36         void setSpecial(bool ibox);
37         /// only show valid inner box items
38         void setInnerType(bool frameless, int i);
39 private:
40         /// Apply changes
41         virtual void apply();
42         /// update
43         virtual void update_contents();
44         /// build the dialog
45         virtual void build_dialog();
46         ///
47         std::vector<std::string> ids_;
48         ///
49         std::vector<docstring> gui_names_;
50         ///
51         std::vector<std::string> ids_spec_;
52         ///
53         std::vector<docstring> gui_names_spec_;
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // QBOX_H