]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GTabularCreate.h
ws changes
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlTabularCreate.h"
20 #include "GnomeBase.h"
21
22 namespace Gtk {
23         class SpinButton;
24         class Button;
25 }
26
27 /**
28  * This class implements the dialog to insert/modify urls.
29  */
30 class GTabularCreate : public GnomeCB<ControlTabularCreate> {
31 public:
32         ///
33         GTabularCreate(ControlTabularCreate & c);
34         ///
35         ~GTabularCreate();
36
37         void apply();
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         void update();
46
47         void OKClicked() { OKButton(); }
48         void CancelClicked() { CancelButton(); }
49         void ApplyClicked() { ApplyButton(); }
50
51         /// generated by accessors.py
52         Gtk::Button * ok_btn() const;
53         /// generated by accessors.py
54         Gtk::Button * apply_btn() const;
55         /// generated by accessors.py
56         Gtk::Button * cancel_btn() const;
57         /// generated by accessors.py
58         Gtk::SpinButton * rows() const;
59         /// generated by accessors.py
60         Gtk::SpinButton * cols() const;
61
62 };
63
64 #endif