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
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
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
|
2005-07-01 17:19:42 +00:00
|
|
|
virtual void update_contents();
|
2003-02-09 00:11:51 +00:00
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-02-09 00:11:51 +00:00
|
|
|
#endif // QCHANGES_H
|