]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBox.h
Account for old versions of Pygments
[lyx.git] / src / frontends / qt4 / GuiBox.h
index 5020f5c19a671089a9a35e1a1d42c744e13cd6ed..4c32dcf8fa81b42d189fa3a818091c586c3a444c 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "InsetParamsWidget.h"
 #include "ui_BoxUi.h"
-
+#include "Font.h"
 
 namespace lyx {
 namespace frontend {
@@ -30,6 +30,7 @@ public:
 private Q_SLOTS:
        void on_innerBoxCO_activated(int);
        void on_typeCO_activated(int);
+       void on_frameColorCO_currentIndexChanged(int);
        void initDialog();
        void on_widthCB_stateChanged(int state);
        void on_heightCB_stateChanged(int state);
@@ -40,10 +41,14 @@ private:
        //@{
        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
@@ -56,6 +61,8 @@ private:
        QStringList ids_spec_;
        ///
        QStringList gui_names_spec_;
+       ///
+       QList<ColorCode> color_codes_;
 };
 
 } // namespace frontend