]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormTabularCreate.h
Clean-up of the button controller.
[lyx.git] / src / frontends / gnome / FormTabularCreate.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 FORMTABULARCREATE_H
15 #define FORMTABULARCREATE_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 FormTabularCreate : public FormCB<ControlTabularCreate> {
32 public:
33         ///
34         FormTabularCreate(ControlTabularCreate & c);
35         ///
36         ~FormTabularCreate();
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         /// The SpinButtons
53         Gtk::SpinButton * rows_spin() const;
54         Gtk::SpinButton * columns_spin() const;
55         /// The ok button
56         Gtk::Button * ok_btn() const;
57         /// The cancel button
58         Gtk::Button * cancel_btn() const;
59         /// The apply button
60         Gtk::Button * apply_btn() const;
61 };
62
63 #endif