]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GERT.h
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / gnome / GERT.h
1 // -*- C++ -*-
2 /**
3  * \file GERT.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Michael Koziarski
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GERT_H
13 #define GERT_H
14
15
16 #include "ControlERT.h"
17 #include "GnomeBase.h"
18
19 namespace Gtk {
20         class RadioButton;
21         class Button;
22 }
23
24 /**
25  * This class implements the dialog to insert/modify urls.
26  */
27 class GERT : public GnomeCB<ControlERT> {
28 public:
29         ///
30         GERT();
31         ///
32         ~GERT();
33
34         void apply();
35         void update();
36
37 private:
38         /// Build the dialog
39         void build();
40
41         /// Returns true if the dialog input is in a valid state.
42         bool validate() const;
43
44         /// Do the connection of signals
45         void connect_signals();
46         /// Disconnect the signals.
47         void disconnect_signals();
48
49         /// generated by accessors.py
50         Gtk::Button * close_btn() const;
51         /// generated by accessors.py
52         Gtk::RadioButton * open() const;
53         /// generated by accessors.py
54         Gtk::RadioButton * collapsed() const;
55         /// generated by accessors.py
56         Gtk::RadioButton * inlined() const;
57
58
59         /// do input validation
60         SigC::Connection slot_open;
61         SigC::Connection slot_collapsed;
62         SigC::Connection slot_inlined;
63
64 };
65
66 #endif