lyx_mirror/src/frontends/qt4/GuiVSpace.h

73 lines
1.1 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file GuiVSpace.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Andr<EFBFBD> P<EFBFBD>nitz
* \author Angus Leeming
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
*
* Full author contact details are available in file CREDITS.
*/
#ifndef QVSPACE_H
#define QVSPACE_H
#include "GuiDialogView.h"
#include "ui_VSpaceUi.h"
#include <QDialog>
class QCloseEvent;
namespace lyx {
namespace frontend {
class ControlVSpace;
class GuiVSpace;
class GuiVSpaceDialog : public QDialog, public Ui::VSpaceUi {
Q_OBJECT
public:
GuiVSpaceDialog(GuiVSpace * form);
public Q_SLOTS:
void change_adaptor();
protected Q_SLOTS:
void closeEvent(QCloseEvent *);
void enableCustom(int);
private:
GuiVSpace * form_;
};
class GuiVSpace
: public QController<ControlVSpace, GuiView<GuiVSpaceDialog> >
{
public:
///
friend class GuiVSpaceDialog;
///
GuiVSpace(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