]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranch.h
* a configuration value for the mouse wheel scrolling speed:
[lyx.git] / src / frontends / qt4 / GuiBranch.h
index c2edce47ad725848b5f235f8c89074c42966a1cd..e33e151a73c7ec221ffbf4d7a6e3b80744e38e09 100644 (file)
@@ -4,6 +4,8 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \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 "GuiDialogView.h"
-#include "ControlBranch.h"
+#include "GuiDialog.h"
 #include "ui_BranchUi.h"
+#include "insets/InsetBranch.h"
 
-#include <QDialog>
 
 namespace lyx {
 namespace frontend {
 
-class GuiBranch;
-
-class GuiBranchDialog : public QDialog, public Ui::BranchUi {
+class GuiBranch : public GuiDialog, public Ui::BranchUi
+{
        Q_OBJECT
+
 public:
-       GuiBranchDialog(GuiBranch * form);
-protected Q_SLOTS:
-       virtual void change_adaptor();
-protected:
-       virtual void closeEvent(QCloseEvent * e);
-private:
-       GuiBranch * form_;
-};
+       GuiBranch(GuiView & lv);
 
+private Q_SLOTS:
+       void change_adaptor();
 
-/** This class provides a QT implementation of the Branch Dialog.
- */
-class GuiBranch : public GuiView<GuiBranchDialog> 
-{
-public:
-       /// Constructor
-       GuiBranch(GuiDialog &);
-       /// parent controller
-       ControlBranch & controller()
-       { return static_cast<ControlBranch &>(this->getController()); }
-       /// parent controller
-       ControlBranch const & controller() const
-       { return static_cast<ControlBranch const &>(this->getController()); }
 private:
-       friend class GuiBranchDialog;
-
+       ///
+       void closeEvent(QCloseEvent * e);
        ///  Apply changes
-       virtual void applyView();
-       /// Build the dialog
-       virtual void build_dialog();
+       void applyView();
        /// Update dialog before showing it
-       virtual void update_contents();
+       void updateContents();
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams();
+       ///
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+
+       ///
+       InsetBranchParams params_;
 };
 
 } // namespace frontend