]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GFloat.h
Change existing ERT dialog to follow GNOME guidelines, implement About and Float...
[lyx.git] / src / frontends / gnome / GFloat.h
1
2 // -*- C++ -*-
3 /**
4  * \file GFloat.h
5  * Copyright 2001 The LyX Team.
6  * See the file COPYING.
7  *
8  * \author Michael Koziarski <michael@koziarski.org>
9  */
10
11 #ifndef GFLOAT_H
12 #define GFLOAT_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlFloat.h"
19 #include "GnomeBase.h"
20
21 namespace Gtk {
22         class Buttton;
23         class CheckButton;
24         class RadioButton;
25         class HBox;
26 }
27
28 /**
29  * This class implements the dialog to modify the LaTeX preamble
30  */
31 class GFloat : public FormCB<ControlFloat> {
32 public:
33         ///
34         GFloat(ControlFloat & c);
35         ///
36         ~GFloat();
37
38         void apply();
39         void update();
40         
41 private:
42         /// Build the dialog
43         void build();
44
45         /// Returns true if the dialog input is in a valid state.
46         bool validate() const;
47         
48         ///
49         void connect_signals();
50         ///
51         void disconnect_signals();
52
53         /// generated by accessors.py
54         Gtk::HBox * other_options() const;
55         /// generated by accessors.py
56         Gtk::CheckButton * page_of_floats() const;
57         /// generated by accessors.py
58         Gtk::CheckButton * top_of_page() const;
59         /// generated by accessors.py
60         Gtk::CheckButton * bottom_of_page() const;
61         /// generated by accessors.py
62         Gtk::CheckButton * here_if_possible() const;
63         /// generated by accessors.py
64         Gtk::RadioButton * here_definitely() const;
65         /// generated by accessors.py
66         Gtk::Button * close_btn() const;
67         /// Disable all the uncheckable buttons
68         void update_sensitive();
69
70         SigC::Connection conn_top_;
71         SigC::Connection conn_bottom_;
72         SigC::Connection conn_page_;
73         SigC::Connection conn_ifposs_;
74         SigC::Connection conn_definitely_;
75         SigC::Connection conn_disable_;
76 };
77
78 #endif