]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GChanges.h
Minipage is no more (long live the box inset)
[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 #include "ControlChanges.h"
16 #include "GnomeBase.h"
17
18 namespace Gtk {
19 class Button;
20 class TextView;
21 }
22
23 /**
24  * This class implements the dialog to Track changes
25  */
26 class GChanges : public GnomeCB<ControlChanges> {
27 public:
28         ///
29         GChanges();
30         ///
31         ~GChanges();
32
33         void apply();
34         void update();
35
36 private:
37         /// Build the dialog
38         void build();
39
40         /// Returns true if the dialog input is in a valid state.
41         bool validate() const;
42
43         /// Do the connection of signals
44         void connect_signals();
45         /// Disconnect the signals.
46         void disconnect_signals();
47
48         void reject();
49
50         void accept();
51
52         /// generated by accessors.py
53         Gtk::Button * next_btn() const;
54         /// generated by accessors.py
55         Gtk::Button * cancel_btn() const;
56         /// generated by accessors.py
57         Gtk::TextView * changes() const;
58         /// generated by accessors.py
59         Gtk::Button * accept_btn() const;
60         /// generated by accessors.py
61         Gtk::Button * reject_btn() const;
62
63 };
64
65 #endif