]> 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 bdca993f1af6731d8b2fff97d45260d044728297..64a9a0e8a1fa1bfb3a9ab9f86df474fd0bbf4f00 100644 (file)
 #ifndef GUILABEL_H
 #define GUILABEL_H
 
-#include "GuiCommand.h"
+#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
 
@@ -37,6 +39,22 @@ private:
        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