lyx_mirror/src/frontends/qt4/GuiChanges.h
André Pönitz 9a95d2a936 rename a few view functions from foo() to fooView()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-03 20:28:26 +00:00

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