]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBranch.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / GuiBranch.h
1 // -*- C++ -*-
2 /**
3  * \file GuiBranch.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QBRANCH_H
13 #define QBRANCH_H
14
15 #include "GuiDialogView.h"
16 #include "ui_BranchUi.h"
17
18 #include <QCloseEvent>
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiBranch;
25
26 class GuiBranchDialog : public QDialog, public Ui::BranchUi {
27         Q_OBJECT
28 public:
29         GuiBranchDialog(GuiBranch * form);
30 protected Q_SLOTS:
31         virtual void change_adaptor();
32 protected:
33         virtual void closeEvent(QCloseEvent * e);
34 private:
35         GuiBranch * form_;
36 };
37
38 class ControlBranch;
39
40 /** This class provides a QT implementation of the Branch Dialog.
41  */
42 class GuiBranch : public QController<ControlBranch, GuiView<GuiBranchDialog> >
43 {
44 public:
45         friend class GuiBranchDialog;
46
47         /// Constructor
48         GuiBranch(Dialog &);
49 private:
50         ///  Apply changes
51         virtual void apply();
52         /// Build the dialog
53         virtual void build_dialog();
54         /// Update dialog before showing it
55         virtual void update_contents();
56 };
57
58 } // namespace frontend
59 } // namespace lyx
60
61 #endif // QBRANCH_H