]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GTabularCreate.h
gtkmm-2 upgrade. Still some small bugs to iron out, but mostly functional
[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         class Button;
27 }
28
29 /**
30  * This class implements the dialog to insert/modify urls.
31  */
32 class GTabularCreate : public FormCB<ControlTabularCreate> {
33 public:
34         ///
35         GTabularCreate(ControlTabularCreate & c);
36         ///
37         ~GTabularCreate();
38
39         void apply();
40         
41 private:
42         /// Build the dialog
43         void build();
44
45         /// Returns true if the dialog input is in a valid state.
46         bool validate() const;
47         void update();
48
49         void OKClicked() { OKButton(); }
50         void CancelClicked() { CancelButton(); }
51         void ApplyClicked() { ApplyButton(); }
52
53         /// generated by accessors.py
54         Gtk::Button * ok_btn() const;
55         /// generated by accessors.py
56         Gtk::Button * apply_btn() const;
57         /// generated by accessors.py
58         Gtk::Button * cancel_btn() const;
59         /// generated by accessors.py
60         Gtk::SpinButton * rows() const;
61         /// generated by accessors.py
62         Gtk::SpinButton * cols() const;
63
64 };
65
66 #endif