]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GERT.h
A lean, clean and working start to the new, improved gnome frontend.
[lyx.git] / src / frontends / gnome / GERT.h
1 // -*- C++ -*-
2 /* This file is part of
3  * =================================================
4  * 
5  *          LyX, The Document Processor
6  *          Copyright 1995 Matthias Ettrich.
7  *          Copyright 1995-2000 The LyX Team.
8  *
9  * ================================================= 
10  *
11  * \author Michael Koziarski <michael@koziarski.org>
12  * */
13
14 #ifndef FORMERT_H
15 #define FORMERT_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlERT.h"
22 #include "GnomeBase.h"
23
24 namespace Gtk {
25         class RadioButton;
26         class Button;
27 }
28
29 /**
30  * This class implements the dialog to insert/modify urls.
31  */
32 class FormERT : public FormCB<ControlERT> {
33 public:
34         ///
35         FormERT(ControlERT & c);
36         ///
37         ~FormERT();
38
39         void apply();
40         void update();
41         
42 private:
43         /// Build the dialog
44         void build();
45
46         /// Returns true if the dialog input is in a valid state.
47         bool validate() const;
48
49         /// Do the connection of signals
50         void connect_signals();
51         /// Disconnect the signals.
52         void disconnect_signals();
53
54         /// generated by accessors.py
55         Gtk::Button * ok_btn() const;
56         /// generated by accessors.py
57         Gtk::Button * apply_btn() const;
58         /// genearated by accessors.py
59         Gtk::Button * cancel_btn() const;
60         /// generated by accessors.py
61         Gtk::RadioButton * open() const;
62         /// generated by accessors.py
63         Gtk::RadioButton * collapsed() const;
64         /// generated by accessors.py
65         Gtk::RadioButton * inlined() const;
66         
67
68         /// do input validation
69         SigC::Connection slot_open;
70         SigC::Connection slot_collapsed;
71         SigC::Connection slot_inlined;
72
73 };
74
75 #endif