2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiChanges.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
2007-10-06 11:03:21 +00:00
|
|
|
* \author Michael Gerz
|
2006-03-05 17:24:44 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUICHANGES_H
|
|
|
|
#define GUICHANGES_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_ChangesUi.h"
|
2016-05-03 19:40:28 +00:00
|
|
|
|
|
|
|
#include "support/debug.h"
|
2007-10-06 11:03:21 +00:00
|
|
|
#include "support/docstring.h"
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
class GuiChanges : public GuiDialog, public Ui::ChangesUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-04-25 10:25:37 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
public:
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiChanges(GuiView & lv);
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
protected Q_SLOTS:
|
2007-10-06 11:03:21 +00:00
|
|
|
/// accept the current change
|
|
|
|
void acceptChange();
|
|
|
|
/// reject the current change
|
|
|
|
void rejectChange();
|
|
|
|
/// find the next change and highlight it
|
|
|
|
void nextChange();
|
2009-04-05 19:15:52 +00:00
|
|
|
/// find the previous change and highlight it
|
|
|
|
void previousChange();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
private:
|
2008-02-17 20:16:14 +00:00
|
|
|
///
|
2007-09-11 18:33:42 +00:00
|
|
|
void updateContents();
|
2007-10-06 11:03:21 +00:00
|
|
|
|
|
|
|
/// 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; }
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUICHANGES_H
|