#include "qt_helpers.h"
+#include "support/gettext.h"
#include "support/lstrings.h"
#include "support/lyxtime.h"
#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(LyXView & lv)
- : GuiDialog(lv, "changes")
+GuiChanges::GuiChanges(GuiView & lv)
+ : GuiDialog(lv, "changes", qt_("Merge Changes"))
{
setupUi(this);
- setViewTitle(_("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();
}
-Dialog * createGuiChanges(LyXView & lv) { return new GuiChanges(lv); }
+Dialog * createGuiChanges(GuiView & lv) { return new GuiChanges(lv); }
} // namespace frontend
} // namespace lyx
-#include "GuiChanges_moc.cpp"
+#include "moc_GuiChanges.cpp"