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