mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
64e5b6de92
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20776 a592a061-630c-0410-9148-cb99ea01b6c8
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiChanges.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
* \author Michael Gerz
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUICHANGES_H
|
|
#define GUICHANGES_H
|
|
|
|
#include "GuiDialog.h"
|
|
#include "ui_ChangesUi.h"
|
|
#include "support/docstring.h"
|
|
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiChanges : public GuiDialog, public Ui::ChangesUi, public Controller
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiChanges(LyXView & lv);
|
|
|
|
protected Q_SLOTS:
|
|
/// accept the current change
|
|
void acceptChange();
|
|
/// reject the current change
|
|
void rejectChange();
|
|
/// find the next change and highlight it
|
|
void nextChange();
|
|
|
|
private:
|
|
void closeEvent(QCloseEvent * e);
|
|
Controller & controller() { return *this; }
|
|
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
|
|
} // namespace lyx
|
|
|
|
#endif // GUICHANGES_H
|