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"
20 #include <QCloseEvent>
32 class GuiBoxDialog : public QDialog, public Ui::BoxUi {
35 GuiBoxDialog(GuiBox * form);
37 virtual void change_adaptor();
38 virtual void innerBoxChanged(const QString &);
39 virtual void typeChanged(int);
40 virtual void restoreClicked();
42 virtual void closeEvent(QCloseEvent * e);
50 : public QController<ControlBox, GuiView<GuiBoxDialog> >
54 friend class GuiBoxDialog;
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);
65 virtual void update_contents();
67 virtual void build_dialog();
69 std::vector<std::string> ids_;
71 std::vector<docstring> gui_names_;
73 std::vector<std::string> ids_spec_;
75 std::vector<docstring> gui_names_spec_;
78 } // namespace frontend