mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
9a95d2a936
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20024 a592a061-630c-0410-9148-cb99ea01b6c8
78 lines
1.4 KiB
C++
78 lines
1.4 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
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUICHANGES_H
|
|
#define GUICHANGES_H
|
|
|
|
#include "GuiDialogView.h"
|
|
#include "ControlChanges.h"
|
|
#include "ui_ChangesUi.h"
|
|
|
|
#include <QDialog>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiChanges;
|
|
|
|
class GuiChangesDialog : public QDialog, public Ui::ChangesUi {
|
|
Q_OBJECT
|
|
public:
|
|
|
|
GuiChangesDialog(GuiChanges * form);
|
|
|
|
protected Q_SLOTS:
|
|
|
|
virtual void nextPressed();
|
|
virtual void acceptPressed();
|
|
virtual void rejectPressed();
|
|
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
|
GuiChanges * form_;
|
|
};
|
|
|
|
|
|
class GuiChanges : public GuiView<GuiChangesDialog>
|
|
{
|
|
public:
|
|
///
|
|
GuiChanges(GuiDialog &);
|
|
/// parent controller
|
|
ControlChanges & controller()
|
|
{ return static_cast<ControlChanges &>(this->getController()); }
|
|
/// parent controller
|
|
ControlChanges const & controller() const
|
|
{ return static_cast<ControlChanges const &>(this->getController()); }
|
|
|
|
void accept();
|
|
|
|
void reject();
|
|
|
|
void next();
|
|
|
|
private:
|
|
friend class GuiChangesDialog;
|
|
/// Apply changes
|
|
virtual void applyView() {};
|
|
/// update
|
|
virtual void update_contents();
|
|
/// build the dialog
|
|
virtual void build_dialog();
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // GUICHANGES_H
|