2003-02-08 19:18:01 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlChanges.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
2003-02-13 16:53:15 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
#ifndef CONTROLCHANGES_H
|
|
|
|
#define CONTROLCHANGES_H
|
|
|
|
|
2003-03-09 21:03:43 +00:00
|
|
|
#include "Dialog.h"
|
2003-02-08 19:18:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A controller for the merge changes dialog.
|
|
|
|
*/
|
2003-03-09 21:03:43 +00:00
|
|
|
class ControlChanges : public Dialog::Controller {
|
2003-02-08 19:18:01 +00:00
|
|
|
public:
|
2003-03-09 21:03:43 +00:00
|
|
|
///
|
|
|
|
ControlChanges(Dialog &);
|
|
|
|
///
|
|
|
|
virtual void initialiseParams(string const &) {}
|
|
|
|
///
|
|
|
|
virtual void clearParams() {}
|
|
|
|
///
|
|
|
|
virtual void dispatchParams() {}
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2003-02-08 19:18:01 +00:00
|
|
|
|
|
|
|
/// find the next merge chunk and highlight it
|
|
|
|
void find();
|
|
|
|
|
|
|
|
/// return date of change
|
|
|
|
string const getChangeDate();
|
|
|
|
|
|
|
|
/// return author of change
|
|
|
|
string const getChangeAuthor();
|
2003-02-13 16:53:15 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
/// accept the current merge
|
|
|
|
void accept();
|
|
|
|
|
|
|
|
/// reject the current merge
|
|
|
|
void reject();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLCHANGES_H
|