]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiChanges.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiChanges.h
1 // -*- C++ -*-
2 /**
3  * \file GuiChanges.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 GUICHANGES_H
13 #define GUICHANGES_H
14
15 #include "GuiDialogView.h"
16 #include "ControlChanges.h"
17 #include "ui_ChangesUi.h"
18
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiChanges;
25
26 class GuiChangesDialog : public QDialog, public Ui::ChangesUi {
27         Q_OBJECT
28 public:
29
30         GuiChangesDialog(GuiChanges * form);
31
32 protected Q_SLOTS:
33
34         virtual void nextPressed();
35         virtual void acceptPressed();
36         virtual void rejectPressed();
37
38 protected:
39         virtual void closeEvent(QCloseEvent * e);
40
41 private:
42         GuiChanges * form_;
43 };
44
45
46 class GuiChanges : public GuiView<GuiChangesDialog>
47 {
48 public:
49         ///
50         GuiChanges(GuiDialog &);
51         /// parent controller
52         ControlChanges & controller()
53         { return static_cast<ControlChanges &>(this->getController()); }
54         /// parent controller
55         ControlChanges const & controller() const
56         { return static_cast<ControlChanges const &>(this->getController()); }
57
58         void accept();
59
60         void reject();
61
62         void next();
63
64 private:
65         friend class GuiChangesDialog;
66         /// Apply changes
67         virtual void applyView() {};
68         /// update
69         virtual void update_contents();
70         /// build the dialog
71         virtual void build_dialog();
72 };
73
74 } // namespace frontend
75 } // namespace lyx
76
77 #endif // GUICHANGES_H