]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GChanges.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / 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 John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GCHANGES_H
13 #define GCHANGES_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlChanges;
21
22 /**
23  * This class provides a GTK+ implementation of the Merge Changes Dialog.
24  */
25 class GChanges
26         : public GViewCB<ControlChanges, GViewGladeB> {
27 public:
28         GChanges(Dialog &);
29
30 private:
31         /// not needed.
32         virtual void apply() {}
33         /// Build the dialog
34         virtual void doBuild();
35         /// update the dialog
36         virtual void update();
37
38         void onAccept();
39         void onReject();
40         void onNext();
41
42         void promptChange();
43         void promptDismiss();
44
45         Gtk::Label * messagelabel_;
46         Gtk::Button * nextbutton_;
47         Gtk::Button * acceptbutton_;
48         Gtk::Button * rejectbutton_;
49 };
50
51 } // namespace frontend
52 } // namespace lyx
53
54 #endif // GCHANGES_H