]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QChanges.h
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / QChanges.h
1 // -*- C++ -*-
2 /**
3  * \file QChanges.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 Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QCHANGES_H
13 #define QCHANGES_H
14
15 #include "QDialogView.h"
16
17 class ControlChanges;
18 class QChangesDialog;
19
20 class QChanges
21         : public QController<ControlChanges, QView<QChangesDialog> >
22 {
23 public:
24         friend class QChangesDialog;
25
26         QChanges(Dialog &);
27
28         void accept();
29
30         void reject();
31
32         void next();
33
34 private:
35         /// Apply changes
36         virtual void apply() {};
37         /// update
38         virtual void update_contents() {};
39         /// build the dialog
40         virtual void build_dialog();
41 };
42
43 #endif // QCHANGES_H