]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InsetParamsWidget.h
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / InsetParamsWidget.h
index 00286c9b217f17136e8af534c63a5af26fe054a7..63d9944a589d89b79c890e12596b7a3a7e43339c 100644 (file)
@@ -13,6 +13,9 @@
 #define INSET_PARAMS_WIDGET_H
 
 #include "insets/InsetCode.h"
+#include "insets/Inset.h"
+
+#include "qt_helpers.h"
 
 #include "FuncCode.h"
 
@@ -35,7 +38,7 @@ class CheckedWidget
 {
 public:
        CheckedWidget(QLineEdit * input, QWidget * label = 0);
-       ///     
+       ///
        bool check() const;
 
 private:
@@ -58,6 +61,8 @@ public:
        /// This is a base class; destructor must exist and be virtual.
        virtual ~InsetParamsWidget() {}
        ///
+       virtual QString dialogTitle() const { return toqstr(insetName(insetCode())); }
+       ///
        virtual InsetCode insetCode() const = 0;
        ///
        virtual FuncCode creationCode() const = 0;
@@ -70,7 +75,7 @@ public:
                { return false; }
 
        /// \return true if all CheckedWidgets are in a valid state.
-       virtual bool checkWidgets() const;
+       virtual bool checkWidgets(bool readonly = false) const;
 
 protected:
        /// Add a widget to the list of all widgets whose validity should