4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
8 * \ author Martin Vermeer
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialogView.h"
17 #include "ControlBox.h"
30 class GuiBoxDialog : public QDialog, public Ui::BoxUi {
33 GuiBoxDialog(GuiBox * form);
35 virtual void change_adaptor();
36 virtual void innerBoxChanged(const QString &);
37 virtual void typeChanged(int);
38 virtual void restoreClicked();
40 virtual void closeEvent(QCloseEvent * e);
46 class GuiBox : public GuiView<GuiBoxDialog>
52 ControlBox & controller()
53 { return static_cast<ControlBox &>(this->getController()); }
55 ControlBox const & controller() const
56 { return static_cast<ControlBox const &>(this->getController()); }
57 /// add and remove special lengths
58 void setSpecial(bool ibox);
59 /// only show valid inner box items
60 void setInnerType(bool frameless, int i);
63 friend class GuiBoxDialog;
67 virtual void update_contents();
69 virtual void build_dialog();
71 std::vector<std::string> ids_;
73 std::vector<docstring> gui_names_;
75 std::vector<std::string> ids_spec_;
77 std::vector<docstring> gui_names_spec_;
80 } // namespace frontend