2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiERT.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIERT_H
|
|
|
|
#define GUIERT_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
#include "GuiDialogView.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
#include "ControlERT.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_ERTUi.h"
|
2007-04-24 13:47:33 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
class GuiERT;
|
2007-04-24 13:47:33 +00:00
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiERTDialog : public QDialog, public Ui::ERTUi
|
|
|
|
{
|
2007-04-24 13:47:33 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiERTDialog(GuiERT * form);
|
2007-04-24 13:47:33 +00:00
|
|
|
protected Q_SLOTS:
|
|
|
|
virtual void change_adaptor();
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiERT * form_;
|
2007-04-24 13:47:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiERT : public GuiView<GuiERTDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-08-31 22:16:11 +00:00
|
|
|
/// constructor
|
2007-09-03 05:59:32 +00:00
|
|
|
GuiERT(GuiDialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
/// parent controller
|
|
|
|
ControlERT & controller()
|
|
|
|
{ return static_cast<ControlERT &>(this->getController()); }
|
|
|
|
/// parent controller
|
|
|
|
ControlERT const & controller() const
|
|
|
|
{ return static_cast<ControlERT const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
2007-08-31 22:16:11 +00:00
|
|
|
friend class GuiERTDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIERT_H
|