4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialogView.h"
16 #include "ControlBranch.h"
17 #include "ui_BranchUi.h"
26 class GuiBranchDialog : public QDialog, public Ui::BranchUi {
29 GuiBranchDialog(GuiBranch * form);
31 virtual void change_adaptor();
33 virtual void closeEvent(QCloseEvent * e);
39 /** This class provides a QT implementation of the Branch Dialog.
41 class GuiBranch : public GuiView<GuiBranchDialog>
45 GuiBranch(GuiDialog &);
47 ControlBranch & controller()
48 { return static_cast<ControlBranch &>(this->getController()); }
50 ControlBranch const & controller() const
51 { return static_cast<ControlBranch const &>(this->getController()); }
53 friend class GuiBranchDialog;
56 virtual void applyView();
58 virtual void build_dialog();
59 /// Update dialog before showing it
60 virtual void update_contents();
63 } // namespace frontend