2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file QWrap.h
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef QWRAP_H
|
|
|
|
|
#define QWRAP_H
|
|
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_WrapUi.h"
|
2007-04-24 14:59:51 +00:00
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QCloseEvent>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-04-24 14:59:51 +00:00
|
|
|
|
class QWrap;
|
|
|
|
|
|
|
|
|
|
class QWrapDialog : public QDialog, public Ui::QWrapUi {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
QWrapDialog(QWrap * form);
|
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
protected:
|
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
private:
|
|
|
|
|
QWrap * form_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
class ControlWrap;
|
|
|
|
|
|
|
|
|
|
class QWrap : public QController<ControlWrap, QView<QWrapDialog> > {
|
|
|
|
|
public:
|
|
|
|
|
friend class QWrapDialog;
|
|
|
|
|
|
|
|
|
|
QWrap(Dialog &);
|
|
|
|
|
private:
|
|
|
|
|
/// Apply changes
|
|
|
|
|
virtual void apply();
|
|
|
|
|
/// update
|
|
|
|
|
virtual void update_contents();
|
|
|
|
|
/// build the dialog
|
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif // QWRAP_H
|