]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GTabularCreate.h
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / gnome / GTabularCreate.h
1 // -*- C++ -*-
2 /**
3  * \file GTabularCreate.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 GTABULARCREATE_H
13 #define GTABULARCREATE_H
14
15
16 #include "ControlTabularCreate.h"
17 #include "GnomeBase.h"
18
19 namespace Gtk {
20         class SpinButton;
21         class Button;
22 }
23
24 /**
25  * This class implements the dialog to insert/modify urls.
26  */
27 class GTabularCreate : public GnomeCB<ControlTabularCreate> {
28 public:
29         ///
30         GTabularCreate();
31         ///
32         ~GTabularCreate();
33
34         void apply();
35
36 private:
37         /// Build the dialog
38         void build();
39
40         /// Returns true if the dialog input is in a valid state.
41         bool validate() const;
42         void update();
43
44         void OKClicked() { getController().OKButton(); }
45         void CancelClicked() { getController().CancelButton(); }
46         void ApplyClicked() { getController().ApplyButton(); }
47
48         /// generated by accessors.py
49         Gtk::Button * ok_btn() const;
50         /// generated by accessors.py
51         Gtk::Button * apply_btn() const;
52         /// generated by accessors.py
53         Gtk::Button * cancel_btn() const;
54         /// generated by accessors.py
55         Gtk::SpinButton * rows() const;
56         /// generated by accessors.py
57         Gtk::SpinButton * cols() const;
58
59 };
60
61 #endif