]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiChanges.h
Whitespace.
[lyx.git] / src / frontends / qt4 / GuiChanges.h
index ed895f0dfc2f3b4d7c4c0ed3274b0ca9f8d784ac..344f5e56070d313ab251e528305f4c7e5074643d 100644 (file)
@@ -5,6 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author John Levon
+ * \author Michael Gerz
  *
  * Full author contact details are available in file CREDITS.
  */
 #define GUICHANGES_H
 
 #include "GuiDialog.h"
-#include "ControlChanges.h"
 #include "ui_ChangesUi.h"
+#include "support/docstring.h"
+
 
 namespace lyx {
 namespace frontend {
 
-class GuiChangesDialog : public GuiDialog, public Ui::ChangesUi
+class GuiChanges : public GuiDialog, public Ui::ChangesUi
 {
        Q_OBJECT
 
 public:
-       GuiChangesDialog(LyXView & lv);
+       GuiChanges(GuiView & lv);
 
 protected Q_SLOTS:
-       void nextPressed();
-       void acceptPressed();
-       void rejectPressed();
+       /// accept the current change
+       void acceptChange();
+       /// reject the current change
+       void rejectChange();
+       /// find the next change and highlight it
+       void nextChange();
+       /// find the previous change and highlight it
+       void previousChange();
 
 private:
-       void closeEvent(QCloseEvent * e);
-       ControlChanges & controller();
+       ///
        void updateContents();
+
+       /// Nothing to initialise in this case.
+       bool initialiseParams(std::string const &) { return true; }
+       ///
+       void clearParams() {}
+       ///
+       void dispatchParams() {}
+       ///
+       bool isBufferDependent() const { return true; }
+       /// always true since dispatchParams() is empty
+       bool canApply() const { return true; }
+
+       /// return date of change
+       docstring changeDate() const;
+       /// return author of change
+       docstring changeAuthor() const;
 };
 
 } // namespace frontend