]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GFloat.h
applying Martin Craig's gnome patch. Upgrading to gtkmm-2.0+ from the 1.3 developmen...
[lyx.git] / src / frontends / gnome / GFloat.h
1 // -*- C++ -*-
2 /**
3  * \file GFloat.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 GFLOAT_H
13 #define GFLOAT_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlFloat.h"
20 #include "GnomeBase.h"
21
22 namespace Gtk {
23         class Buttton;
24         class CheckButton;
25         class RadioButton;
26         class HBox;
27 }
28
29 /**
30  * This class implements the dialog to modify the LaTeX preamble
31  */
32 class GFloat : public GnomeCB<ControlFloat> {
33 public:
34         ///
35         GFloat();
36         ///
37         ~GFloat();
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         ///
50         void connect_signals();
51         ///
52         void disconnect_signals();
53
54         /// generated by accessors.py
55         Gtk::HBox * other_options() const;
56         /// generated by accessors.py
57         Gtk::CheckButton * page_of_floats() const;
58         /// generated by accessors.py
59         Gtk::CheckButton * top_of_page() const;
60         /// generated by accessors.py
61         Gtk::CheckButton * bottom_of_page() const;
62         /// generated by accessors.py
63         Gtk::CheckButton * here_if_possible() const;
64         /// generated by accessors.py
65         Gtk::RadioButton * here_definitely() const;
66         /// generated by accessors.py
67         Gtk::Button * close_btn() const;
68         /// Disable all the uncheckable buttons
69         void update_sensitive();
70
71         SigC::Connection conn_top_;
72         SigC::Connection conn_bottom_;
73         SigC::Connection conn_page_;
74         SigC::Connection conn_ifposs_;
75         SigC::Connection conn_definitely_;
76         SigC::Connection conn_disable_;
77 };
78
79 #endif