namespace lyx {
namespace frontend {
-typedef std::pair<QString, ColorCode> ColorPair;
-
class GuiBox : public InsetParamsWidget, public Ui::BoxUi
{
Q_OBJECT
//@{
InsetCode insetCode() const { return BOX_CODE; }
FuncCode creationCode() const { return LFUN_BOX_INSERT; }
+ QString dialogTitle() const { return qt_("Box Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@}
+ /// Fill the color combos
+ void fillComboColor(QComboBox * combo, bool const is_none);
/// add and remove special lengths
void setSpecial(bool ibox);
/// only show valid inner box items
///
QStringList gui_names_spec_;
///
- QList<ColorPair> color;
+ QList<ColorCode> color_codes_;
};
} // namespace frontend