#include "BufferView.h"
#include "Changes.h"
#include "FuncRequest.h"
-#include "lyxfind.h"
#include "LyXRC.h"
-#include <QCloseEvent>
#include <QTextBrowser>
namespace frontend {
using support::bformat;
+using support::formatted_time;
GuiChanges::GuiChanges(GuiView & lv)
: GuiDialog(lv, "changes", qt_("Merge Changes"))
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()));
}
-void GuiChanges::closeEvent(QCloseEvent *e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiChanges::updateContents()
{
docstring text;
}
+void GuiChanges::previousChange()
+{
+ dispatch(FuncRequest(LFUN_CHANGE_PREVIOUS));
+}
+
+
docstring GuiChanges::changeDate() const
{
Change const & c = bufferview()->getCurrentChange();
} // namespace frontend
} // namespace lyx
-#include "GuiChanges_moc.cpp"
+#include "moc_GuiChanges.cpp"