]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GChanges.h
reverse last change
[lyx.git] / src / frontends / gnome / GChanges.h
1 // -*- C++ -*-
2 /**
3  * \file GChanges.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 GCHANGES_H
13 #define GCHANGES_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlChanges.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 Track changes
29  */
30 class GChanges : public GnomeCB<ControlChanges> {
31 public:
32         ///
33         GChanges();
34         ///
35         ~GChanges();
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         /// Do the connection of signals
48         void connect_signals();
49         /// Disconnect the signals.
50         void disconnect_signals();
51         
52         void reject();
53         
54         void accept();
55
56         /// generated by accessors.py
57         Gtk::Button * next_btn() const;
58         /// generated by accessors.py
59         Gtk::Button * cancel_btn() const;
60         /// generated by accessors.py
61         Gtk::TextView * changes() const;
62         /// generated by accessors.py
63         Gtk::Button * accept_btn() const;
64         /// generated by accessors.py
65         Gtk::Button * reject_btn() const;
66
67 };
68
69 #endif