]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBranch.h
7fe05e6897b786ee73ce6bf71a370a2378ec0d10
[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 Angus Leeming
8  * \author Martin Vermeer
9  * \author Jürgen Spitzmüller
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef GUIBRANCH_H
15 #define GUIBRANCH_H
16
17 #include "GuiDialog.h"
18 #include "ui_BranchUi.h"
19 #include "insets/InsetBranch.h"
20
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiBranch : public GuiDialog, public Ui::BranchUi, public Controller
26 {
27         Q_OBJECT
28
29 public:
30         GuiBranch(LyXView & lv);
31
32 private Q_SLOTS:
33         void change_adaptor();
34
35 private:
36         ///
37         void closeEvent(QCloseEvent * e);
38         /// parent controller
39         Controller & controller() { return *this; }
40         ///  Apply changes
41         void applyView();
42         /// Update dialog before showing it
43         void updateContents();
44         ///
45         bool initialiseParams(std::string const & data);
46         ///
47         void clearParams();
48         ///
49         void dispatchParams();
50         ///
51         bool isBufferDependent() const { return true; }
52
53         ///
54         InsetBranchParams params_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // GUIBRANCH_H