2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiWrap.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 J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#ifndef GUIWRAP_H
|
|
|
|
|
#define GUIWRAP_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 "ControlWrap.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_WrapUi.h"
|
2007-04-24 14:59:51 +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 GuiWrap;
|
2007-04-24 14:59:51 +00:00
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiWrapDialog : public QDialog, public Ui::WrapUi
|
|
|
|
|
{
|
2007-04-24 14:59:51 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiWrapDialog(GuiWrap * form);
|
2007-04-24 14:59:51 +00:00
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
protected:
|
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiWrap * form_;
|
2007-04-24 14:59:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiWrap : public GuiView<GuiWrapDialog>
|
|
|
|
|
{
|
2006-03-05 17:24:44 +00:00
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
friend class GuiWrapDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-09-03 05:59:32 +00:00
|
|
|
|
GuiWrap(GuiDialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
|
/// parent controller
|
|
|
|
|
ControlWrap & controller()
|
|
|
|
|
{ return static_cast<ControlWrap &>(this->getController()); }
|
|
|
|
|
/// parent controller
|
|
|
|
|
ControlWrap const & controller() const
|
|
|
|
|
{ return static_cast<ControlWrap const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
|
private:
|
|
|
|
|
/// Apply changes
|
2007-09-03 20:28:26 +00:00
|
|
|
|
virtual void applyView();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// 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 // GUIWRAP_H
|