]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiChanges.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[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
39 private:
40         ///
41         void updateContents();
42
43         /// Nothing to initialise in this case.
44         bool initialiseParams(std::string const &) { return true; }
45         ///
46         void clearParams() {}
47         ///
48         void dispatchParams() {}
49         ///
50         bool isBufferDependent() const { return true; }
51         /// always true since dispatchParams() is empty
52         bool canApply() const { return true; }
53
54         /// return date of change
55         docstring changeDate() const;
56         /// return author of change
57         docstring changeAuthor() const;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GUICHANGES_H