]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GFloat.h
Minipage is no more (long live the box inset)
[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
16 #include "ControlFloat.h"
17 #include "GnomeBase.h"
18
19 namespace Gtk {
20         class Buttton;
21         class CheckButton;
22         class RadioButton;
23         class HBox;
24 }
25
26 /**
27  * This class implements the dialog to modify the LaTeX preamble
28  */
29 class GFloat : public GnomeCB<ControlFloat> {
30 public:
31         ///
32         GFloat();
33         ///
34         ~GFloat();
35
36         void apply();
37         void update();
38
39 private:
40         /// Build the dialog
41         void build();
42
43         /// Returns true if the dialog input is in a valid state.
44         bool validate() const;
45
46         ///
47         void connect_signals();
48         ///
49         void disconnect_signals();
50
51         /// generated by accessors.py
52         Gtk::HBox * other_options() const;
53         /// generated by accessors.py
54         Gtk::CheckButton * page_of_floats() const;
55         /// generated by accessors.py
56         Gtk::CheckButton * top_of_page() const;
57         /// generated by accessors.py
58         Gtk::CheckButton * bottom_of_page() const;
59         /// generated by accessors.py
60         Gtk::CheckButton * here_if_possible() const;
61         /// generated by accessors.py
62         Gtk::RadioButton * here_definitely() const;
63         /// generated by accessors.py
64         Gtk::Button * close_btn() const;
65         /// Disable all the uncheckable buttons
66         void update_sensitive();
67
68         SigC::Connection conn_top_;
69         SigC::Connection conn_bottom_;
70         SigC::Connection conn_page_;
71         SigC::Connection conn_ifposs_;
72         SigC::Connection conn_definitely_;
73         SigC::Connection conn_disable_;
74 };
75
76 #endif