]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QChanges.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / 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 namespace lyx {
18 namespace frontend {
19
20 class ControlChanges;
21 class QChangesDialog;
22
23 class QChanges
24         : public QController<ControlChanges, QView<QChangesDialog> >
25 {
26 public:
27         friend class QChangesDialog;
28
29         QChanges(Dialog &);
30
31         void accept();
32
33         void reject();
34
35         void next();
36
37 private:
38         /// Apply changes
39         virtual void apply() {};
40         /// update
41         virtual void update_contents();
42         /// build the dialog
43         virtual void build_dialog();
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // QCHANGES_H