]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiChanges.h
* fix spelling in comments to please John.
[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 #include "support/docstring.h"
19
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiChanges : public GuiDialog, public Ui::ChangesUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiChanges(GuiView & lv);
30
31 protected Q_SLOTS:
32         /// accept the current change
33         void acceptChange();
34         /// reject the current change
35         void rejectChange();
36         /// find the next change and highlight it
37         void nextChange();
38         /// find the previous change and highlight it
39         void previousChange();
40
41 private:
42         ///
43         void updateContents();
44
45         /// Nothing to initialise in this case.
46         bool initialiseParams(std::string const &) { return true; }
47         ///
48         void clearParams() {}
49         ///
50         void dispatchParams() {}
51         ///
52         bool isBufferDependent() const { return true; }
53         /// always true since dispatchParams() is empty
54         bool canApply() const { return true; }
55
56         /// return date of change
57         docstring changeDate() const;
58         /// return author of change
59         docstring changeAuthor() const;
60 };
61
62 } // namespace frontend
63 } // namespace lyx
64
65 #endif // GUICHANGES_H