]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBox.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiBox.h
index 9feb84bc357ee83d37ce07e34f122399682e639a..b4fb8c38c3efd47ce4e1a470e3b447312ec82642 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Jürgen Spitzmüller
+ * \author Jürgen Spitzmüller
  * \author Martin Vermeer (with useful hints from Angus Leeming)
  *
  * Full author contact details are available in file CREDITS.
 #ifndef GUIBOX_H
 #define GUIBOX_H
 
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_BoxUi.h"
-#include "insets/InsetBox.h"
 
 
 namespace lyx {
 namespace frontend {
 
-class GuiBox : public GuiDialog, public Ui::BoxUi
+class GuiBox : public InsetParamsWidget, public Ui::BoxUi
 {
        Q_OBJECT
 
 public:
-       GuiBox(GuiView & lv);
+       GuiBox(QWidget * parent = 0);
 
 private Q_SLOTS:
-       void change_adaptor();
-       void innerBoxChanged(QString const &);
-       void typeChanged(int);
-       void restoreClicked();
-       void pagebreakClicked();
+       void on_innerBoxCO_activated(int);
+       void on_typeCO_activated(int);
+       void initDialog();
+       void on_heightCB_stateChanged(int state);
+       void on_pagebreakCB_stateChanged();
 
 private:
+       /// \name DialogView inherited methods
+       //@{
+       InsetCode insetCode() const { return BOX_CODE; }
+       FuncCode creationCode() const { return LFUN_BOX_INSERT; }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       //@}
+
        /// add and remove special lengths
        void setSpecial(bool ibox);
        /// only show valid inner box items
-       void setInnerType(bool frameless, int i);
-
-       /// Apply changes
-       void applyView();
-       /// update
-       void updateContents();
-
-       ///
-       bool initialiseParams(std::string const & data);
-       ///
-       void clearParams();
-       ///
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
+       void setInnerType(bool frameless, QString const & type);
 
-       ///
        QStringList ids_;
        ///
        QStringList gui_names_;
@@ -63,9 +55,6 @@ private:
        QStringList ids_spec_;
        ///
        QStringList gui_names_spec_;
-
-       ///
-       InsetBoxParams params_;
 };
 
 } // namespace frontend