]> 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 b491d738bec9f7b2579509722001abb81b5cb499..69aaa8105262ce1a33199d15f611e05fb1317d93 100644 (file)
 #ifndef GUIBRANCH_H
 #define GUIBRANCH_H
 
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_BranchUi.h"
-#include "insets/InsetBranch.h"
-
 
 namespace lyx {
 namespace frontend {
 
-class GuiBranch : public GuiDialog, public Ui::BranchUi
+class GuiBranch : public InsetParamsWidget, public Ui::BranchUi
 {
        Q_OBJECT
 
 public:
-       GuiBranch(GuiView & lv);
-
-private Q_SLOTS:
-       void change_adaptor();
+       GuiBranch(QWidget * parent = 0);
 
 private:
-       ///  Apply changes
-       void applyView();
-       /// Update dialog before showing it
-       void updateContents();
-       ///
-       bool initialiseParams(std::string const & data);
-       ///
-       void clearParams();
-       ///
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
-
-       ///
-       InsetBranchParams params_;
+       /// \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