]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranch.h
rename buffer parameter math_number_before to math_numbering_side
[lyx.git] / src / frontends / qt4 / GuiBranch.h
index b0a78638c69f1c7ec767c1fb2abacfaa43f40d26..69aaa8105262ce1a33199d15f611e05fb1317d93 100644 (file)
@@ -4,7 +4,9 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Jürgen Spitzmüller
+ * \author Angus Leeming
+ * \author Martin Vermeer
+ * \author Jürgen Spitzmüller
  *
  * Full author contact details are available in file CREDITS.
  */
 #ifndef GUIBRANCH_H
 #define GUIBRANCH_H
 
-#include "GuiDialog.h"
-#include "ControlBranch.h"
+#include "InsetParamsWidget.h"
 #include "ui_BranchUi.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiBranchDialog : public GuiDialog, public Ui::BranchUi
+class GuiBranch : public InsetParamsWidget, public Ui::BranchUi
 {
        Q_OBJECT
 
 public:
-       GuiBranchDialog(LyXView & lv);
-
-private Q_SLOTS:
-       void change_adaptor();
+       GuiBranch(QWidget * parent = 0);
 
 private:
-       ///
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlBranch & controller();
-       ///  Apply changes
-       void applyView();
-       /// Update dialog before showing it
-       void updateContents();
+       /// \name DialogView inherited methods
+       //@{
+       InsetCode insetCode() const { return BRANCH_CODE; }
+       FuncCode creationCode() const { return LFUN_BRANCH_INSERT; }
+       QString dialogTitle() const { return qt_("Branch Settings"); }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
+       //@}
 };
 
-
 } // namespace frontend
 } // namespace lyx