2003-02-09 00:11:51 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QChanges.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-02-09 00:11:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QCHANGES_H
|
|
|
|
#define QCHANGES_H
|
|
|
|
|
2003-03-09 21:03:43 +00:00
|
|
|
#include "QDialogView.h"
|
2003-02-09 00:11:51 +00:00
|
|
|
|
|
|
|
class ControlChanges;
|
|
|
|
class QChangesDialog;
|
|
|
|
|
|
|
|
class QChanges
|
2003-03-09 21:03:43 +00:00
|
|
|
: public QController<ControlChanges, QView<QChangesDialog> >
|
2003-02-09 00:11:51 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend class QChangesDialog;
|
|
|
|
|
2003-03-09 21:03:43 +00:00
|
|
|
QChanges(Dialog &);
|
2003-02-09 00:11:51 +00:00
|
|
|
|
|
|
|
void accept();
|
|
|
|
|
|
|
|
void reject();
|
|
|
|
|
|
|
|
void next();
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply() {};
|
|
|
|
/// update
|
|
|
|
virtual void update_contents() {};
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QCHANGES_H
|