]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QBox.h
enable Font cache only for MacOSX and inline width() for other platform.
[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 "QDialogView.h"
17 #include <vector>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlBox;
23 class QBoxDialog;
24
25 ///
26 class QBox
27         : public QController<ControlBox, QView<QBoxDialog> >
28 {
29 public:
30         ///
31         friend class QBoxDialog;
32         ///
33         QBox(Dialog &);
34         /// add and remove special lengths
35         void setSpecial(bool ibox);
36         /// only show valid inner box items
37         void setInnerType(bool frameless, int i);
38 private:
39         /// Apply changes
40         virtual void apply();
41         /// update
42         virtual void update_contents();
43         /// build the dialog
44         virtual void build_dialog();
45         ///
46         std::vector<std::string> ids_;
47         ///
48         std::vector<std::string> gui_names_;
49         ///
50         std::vector<std::string> ids_spec_;
51         ///
52         std::vector<std::string> gui_names_spec_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // QBOX_H