]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GTabularCreate.h
Renamed classes from FormX to GX, renamed glade files similarly. Added Preamble.
[lyx.git] / src / frontends / gnome / GTabularCreate.h
1 // -*- C++ -*-
2 /* This file is part of
3  * =================================================
4  * 
5  *          LyX, The Document Processor
6  *          Copyright 1995 Matthias Ettrich.
7  *          Copyright 1995-2000 The LyX Team.
8  *
9  * ================================================= 
10  *
11  * \author Michael Koziarski <michael@koziarski.org>
12  * */
13
14 #ifndef GTABULARCREATE_H
15 #define GTABULARCREATE_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlTabularCreate.h"
22 #include "GnomeBase.h"
23
24 namespace Gtk {
25 class SpinButton;
26 }
27
28 /**
29  * This class implements the dialog to insert/modify urls.
30  */
31 class GTabularCreate : public FormCB<ControlTabularCreate> {
32 public:
33         ///
34         GTabularCreate(ControlTabularCreate & c);
35         ///
36         ~GTabularCreate();
37
38         void apply();
39         
40 private:
41         /// Build the dialog
42         void build();
43
44         /// Returns true if the dialog input is in a valid state.
45         bool validate() const;
46         void update();
47
48         void OKClicked() { OKButton(); }
49         void CancelClicked() { CancelButton(); }
50         void ApplyClicked() { ApplyButton(); }
51
52         /// generated by accessors.py
53         Gtk::Button * ok_btn() const;
54         /// generated by accessors.py
55         Gtk::Button * apply_btn() const;
56         /// generated by accessors.py
57         Gtk::Button * cancel_btn() const;
58         /// generated by accessors.py
59         Gtk::SpinButton * rows() const;
60         /// generated by accessors.py
61         Gtk::SpinButton * cols() const;
62
63 };
64
65 #endif