lyx_mirror/src/frontends/qt4/GuiVSpace.h
André Pönitz a1cec91afa move our stuff off the Q* namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19935 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 05:53:55 +00:00

73 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file GuiVSpace.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 "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