]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GBranch.h
Extracted from r14281
[lyx.git] / src / frontends / gtk / GBranch.h
1 // -*- C++ -*-
2 /**
3  * \file GBranch.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Bernhard Reiter
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GBRANCH_H
13 #define GBRANCH_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlBranch;
21
22 /** This class provides a GTK+ implementation of the Branch Dialog.
23  */
24 class GBranch : public GViewCB<ControlBranch, GViewGladeB> {
25 public:
26         GBranch(Dialog & parent);
27 private:
28         virtual void apply();
29         virtual void doBuild();
30         virtual void update();
31
32         /// enables the apply button if a synonym is selected from the list
33         void selection_changed();
34
35         /** apply() won't act when this is true.
36             true if no text is selected when the Branch dialog is opened
37          */
38         bool applylock_;
39
40         Gtk::Button * cancelbutton_;
41         Gtk::Button * okbutton_;
42         Gtk::Label * brancheslabel_;
43         Gtk::ComboBoxText branchescombo_;
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // GBRANCH_H