]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBox.h
some remnaming
[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
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 "ControlBox.h"
18 #include "ui_BoxUi.h"
19
20 #include <vector>
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiBoxDialog : public GuiDialog, public Ui::BoxUi
26 {
27         Q_OBJECT
28
29 public:
30         GuiBoxDialog(LyXView & lv);
31
32 private Q_SLOTS:
33         void change_adaptor();
34         void innerBoxChanged(const QString &);
35         void typeChanged(int);
36         void restoreClicked();
37
38 private:
39         void closeEvent(QCloseEvent * e);
40
41         /// parent controller
42         ControlBox & controller();
43         /// add and remove special lengths
44         void setSpecial(bool ibox);
45         /// only show valid inner box items
46         void setInnerType(bool frameless, int i);
47
48         /// Apply changes
49         void applyView();
50         /// update
51         void updateContents();
52
53         ///
54         std::vector<std::string> ids_;
55         ///
56         std::vector<docstring> gui_names_;
57         ///
58         std::vector<std::string> ids_spec_;
59         ///
60         std::vector<docstring> gui_names_spec_;
61 };
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif // GUIBOX_H