]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiChanges.h
Add missing initialization
[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  * \author Michael Gerz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUICHANGES_H
14 #define GUICHANGES_H
15
16 #include "GuiDialog.h"
17 #include "ui_ChangesUi.h"
18
19 #include "support/debug.h"
20 #include "support/docstring.h"
21
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiChanges : public GuiDialog, public Ui::ChangesUi
27 {
28         Q_OBJECT
29
30 public:
31         GuiChanges(GuiView & lv);
32
33 protected Q_SLOTS:
34         /// accept the current change
35         void acceptChange();
36         /// reject the current change
37         void rejectChange();
38         /// find the next change and highlight it
39         void nextChange();
40         /// find the previous change and highlight it
41         void previousChange();
42
43 private:
44         ///
45         void updateContents();
46
47         /// Nothing to initialise in this case.
48         bool initialiseParams(std::string const &) { return true; }
49         ///
50         void clearParams() {}
51         ///
52         void dispatchParams() {}
53         ///
54         bool isBufferDependent() const { return true; }
55         /// always true since dispatchParams() is empty
56         bool canApply() const { return true; }
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GUICHANGES_H