X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiChanges.h;h=344f5e56070d313ab251e528305f4c7e5074643d;hb=ee7dd4a11ea21851e7e32164c66b37d3bc8ac31d;hp=5fcee96d19e6432da717cf3aa645fadac0ebc758;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiChanges.h b/src/frontends/qt4/GuiChanges.h index 5fcee96d19..344f5e5607 100644 --- a/src/frontends/qt4/GuiChanges.h +++ b/src/frontends/qt4/GuiChanges.h @@ -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. */ @@ -13,28 +14,49 @@ #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() const; - void update_contents(); + /// + 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