mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
1ed0c6be12
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17951 a592a061-630c-0410-9148-cb99ea01b6c8
59 lines
1017 B
C++
59 lines
1017 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QWrap.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jürgen Spitzmüller
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef QWRAP_H
|
|
#define QWRAP_H
|
|
|
|
#include "QDialogView.h"
|
|
#include "ui/WrapUi.h"
|
|
|
|
#include <QDialog>
|
|
#include <QCloseEvent>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
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_;
|
|
};
|
|
|
|
|
|
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
|