]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GPreamble.h
gtkmm-2 upgrade. Still some small bugs to iron out, but mostly functional
[lyx.git] / src / frontends / gnome / GPreamble.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
12  * */
13
14 #ifndef GPREAMBLE_H
15 #define GPREAMBLE_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlPreamble.h"
22 #include "GnomeBase.h"
23
24 namespace Gtk {
25 class Button;
26 class TextView;
27 }
28
29 /**
30  * This class implements the dialog to modify the LaTeX preamble
31  */
32 class GPreamble : public FormCB<ControlPreamble> {
33 public:
34         ///
35         GPreamble(ControlPreamble & c);
36         ///
37         ~GPreamble();
38
39         void apply();
40         void update();
41         
42 private:
43         /// Build the dialog
44         void build();
45
46         /// Returns true if the dialog input is in a valid state.
47         bool validate() const;
48         
49         ///
50         void connect_signals();
51         ///
52         void disconnect_signals();
53
54         /// generated by accessors.py
55         Gtk::Button * ok_btn() const;
56         /// generated by accessors.py
57         Gtk::Button * apply_btn() const;
58         /// generated by accessors.py
59         Gtk::Button * cancel_btn() const;
60         /// generated by accessors.py
61         Gtk::TextView * preamble() const;
62
63         /// 
64         SigC::Connection slot_preamble_;
65
66         
67 };
68
69 #endif