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 (with useful hints from Angus Leeming)
10 * Full author contact details are available in file CREDITS.
16 #include "InsetParamsWidget.h"
23 typedef std::pair<QString, ColorCode> ColorPair;
25 class GuiBox : public InsetParamsWidget, public Ui::BoxUi
30 GuiBox(QWidget * parent = 0);
33 void on_innerBoxCO_activated(int);
34 void on_typeCO_activated(int);
35 void on_frameColorCO_currentIndexChanged(int);
37 void on_widthCB_stateChanged(int state);
38 void on_heightCB_stateChanged(int state);
39 void on_pagebreakCB_stateChanged();
42 /// \name DialogView inherited methods
44 InsetCode insetCode() const { return BOX_CODE; }
45 FuncCode creationCode() const { return LFUN_BOX_INSERT; }
46 void paramsToDialog(Inset const *);
47 docstring dialogToParams() const;
48 bool checkWidgets(bool readonly) const;
51 /// add and remove special lengths
52 void setSpecial(bool ibox);
53 /// only show valid inner box items
54 void setInnerType(bool frameless, QString const & type);
58 QStringList gui_names_;
60 QStringList ids_spec_;
62 QStringList gui_names_spec_;
64 QList<ColorPair> color;
67 } // namespace frontend