mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
888ba9e94b
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17944 a592a061-630c-0410-9148-cb99ea01b6c8
73 lines
1.1 KiB
C++
73 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QVSpace.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
* \author Angus Leeming
|
|
* \author Jürgen Spitzmüller
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef QVSPACE_H
|
|
#define QVSPACE_H
|
|
|
|
#include "QDialogView.h"
|
|
|
|
#include "ui/VSpaceUi.h"
|
|
|
|
#include <QDialog>
|
|
|
|
class QCloseEvent;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class ControlVSpace;
|
|
|
|
class QVSpace;
|
|
|
|
|
|
class QVSpaceDialog : public QDialog, public Ui::QVSpaceUi {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QVSpaceDialog(QVSpace * form);
|
|
|
|
public Q_SLOTS:
|
|
void change_adaptor();
|
|
|
|
protected Q_SLOTS:
|
|
void closeEvent(QCloseEvent *);
|
|
void enableCustom(int);
|
|
|
|
private:
|
|
QVSpace * form_;
|
|
};
|
|
|
|
|
|
|
|
class QVSpace
|
|
: public QController<ControlVSpace, QView<QVSpaceDialog> >
|
|
{
|
|
public:
|
|
///
|
|
friend class QVSpaceDialog;
|
|
///
|
|
QVSpace(Dialog &);
|
|
private:
|
|
/// Build the dialog
|
|
virtual void build_dialog();
|
|
/// Apply from dialog
|
|
virtual void apply();
|
|
/// Update the dialog
|
|
virtual void update_contents();
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif //QVSPACE_H
|