]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLine.h
Add missing initialization
[lyx.git] / src / frontends / qt4 / GuiLine.h
index 46a8079e121fd6241215415e10391f2a09984789..076d5444b129f21cd7f89d4461f4fc824a1de9d3 100644 (file)
@@ -4,6 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \author Abdelrazak Younes
  * \author Uwe Stöhr
  *
  * Full author contact details are available in file CREDITS.
 #ifndef GUILINE_H
 #define GUILINE_H
 
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_LineUi.h"
 
-#include "insets/InsetCommandParams.h"
-
-
 namespace lyx {
 namespace frontend {
 
-class GuiLine : public GuiDialog, public Ui::LineUi
+class GuiLine : public InsetParamsWidget, public Ui::LineUi
 {
        Q_OBJECT
 
 public:
-       GuiLine(GuiView & lv);
-
-private Q_SLOTS:
-       void change_adaptor();
+       GuiLine(QWidget * parent = 0);
 
 private:
-       /// Apply changes
-       void applyView();
-       /// Update dialog before showing it
-       bool initialiseParams(std::string const & data);
-       ///
-       void paramsToDialog(InsetCommandParams const & icp);
-       ///
-       void clearParams() { params_.clear(); }
-       ///
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
-       ///
-       bool isValid() const;
-
-       ///
-       InsetCommandParams params_;
+       /// \name InsetParamsWidget inherited methods
+       //@{
+       InsetCode insetCode() const { return LINE_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       QString dialogTitle() const { return qt_("Line Settings"); }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
+       //@}
 };
 
 } // namespace frontend