lyx_mirror/src/frontends/qt4/GuiVSpace.h

73 lines
1.3 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 "ControlVSpace.h"
#include "ui_VSpaceUi.h"
#include <QDialog>
namespace lyx {
namespace frontend {
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 GuiView<GuiVSpaceDialog>
{
public:
///
friend class GuiVSpaceDialog;
///
GuiVSpace(Dialog &);
/// parent controller
ControlVSpace & controller()
{ return static_cast<ControlVSpace &>(this->getController()); }
/// parent controller
ControlVSpace const & controller() const
{ return static_cast<ControlVSpace const &>(this->getController()); }
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