]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GLog.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / gnome / GLog.h
1 // -*- C++ -*-
2 /**
3  * \file GLog.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 GLOG_H
13 #define GLOG_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlLog.h"
20 #include "GnomeBase.h"
21
22 namespace Gtk {
23         class Button;
24         class TextView;
25 }
26
27 /**
28  * This class implements the dialog to modify the LaTeX preamble
29  */
30 class GLog : public GnomeCB<ControlLog> {
31 public:
32         ///
33         GLog(ControlLog & c);
34         ///
35         ~GLog();
36
37         void apply();
38         void update();
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
47         /// generated by accessors.py
48         Gtk::Button * refresh_btn() const;
49         /// generated by accessors.py
50         Gtk::Button * close_btn() const;
51         /// generated by accessors.py
52         Gtk::TextView * log_text() const;
53
54
55 };
56
57 #endif