]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiChanges.cpp
Also display the info about BibTeX databases in the TeX info panel.
[lyx.git] / src / frontends / qt4 / GuiChanges.cpp
index f4a700089bc5ff8941e2accf4d2ef29ff62ab0d1..a27d24f5808bc96255a3d2a5b807c1ab59eed11f 100644 (file)
 #include "BufferView.h"
 #include "Changes.h"
 #include "FuncRequest.h"
-#include "lyxfind.h"
 #include "LyXRC.h"
 
-#include <QCloseEvent>
 #include <QTextBrowser>
 
 
@@ -36,6 +34,7 @@ namespace lyx {
 namespace frontend {
 
 using support::bformat;
+using support::formatted_time;
 
 GuiChanges::GuiChanges(GuiView & lv)
        : GuiDialog(lv, "changes", qt_("Merge Changes"))
@@ -44,6 +43,7 @@ GuiChanges::GuiChanges(GuiView & lv)
 
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
        connect(nextPB, SIGNAL(clicked()), this, SLOT(nextChange()));
+       connect(previousPB, SIGNAL(clicked()), this, SLOT(previousChange()));
        connect(rejectPB, SIGNAL(clicked()), this, SLOT(rejectChange()));
        connect(acceptPB, SIGNAL(clicked()), this, SLOT(acceptChange()));
 
@@ -75,6 +75,12 @@ void GuiChanges::nextChange()
 }
 
 
+void GuiChanges::previousChange()
+{
+       dispatch(FuncRequest(LFUN_CHANGE_PREVIOUS));
+}
+
+
 docstring GuiChanges::changeDate() const
 {
        Change const & c = bufferview()->getCurrentChange();
@@ -123,4 +129,4 @@ Dialog * createGuiChanges(GuiView & lv) { return new GuiChanges(lv); }
 } // namespace frontend
 } // namespace lyx
 
-#include "GuiChanges_moc.cpp"
+#include "moc_GuiChanges.cpp"