]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLabel.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiLabel.h
index 15ecdee5622fcfa86e9a301611970ca21b70b567..64a9a0e8a1fa1bfb3a9ab9f86df474fd0bbf4f00 100644 (file)
 #include "GuiDialog.h"
 #include "ui_LabelUi.h"
 
+#include "insets/InsetCommandParams.h"
+
 namespace lyx {
 namespace frontend {
 
-class GuiLabel : public GuiCommand, public Ui::LabelUi
+class GuiLabel : public GuiDialog, public Ui::LabelUi
 {
        Q_OBJECT
 
@@ -31,18 +33,31 @@ private Q_SLOTS:
        void reject();
 
 private:
-       ///
-       void closeEvent(QCloseEvent * e);
        ///
        bool isValid();
        /// Apply changes
        void applyView();
        /// update
        void updateContents();
-};
+       ///
+       bool initialiseParams(std::string const & data);
+       /// clean-up on hide.
+       void clearParams() { params_.clear(); }
+       /// clean-up on hide.
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+       ///
+       void enableView(bool enable);
+       ///
+       bool canApply() const { return true; }
 
+private:
+       ///
+       InsetCommandParams params_;
+};
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // GUIINDEX_H
+#endif // GUILABEL_H