2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiVSpace.h
|
2006-03-05 17:24:44 +00:00
|
|
|
|
* 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
|
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
#include "GuiDialogView.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#include "ControlVSpace.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_VSpaceUi.h"
|
2007-04-24 12:02:27 +00:00
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiVSpace;
|
2007-04-24 12:02:27 +00:00
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiVSpaceDialog : public QDialog, public Ui::VSpaceUi
|
|
|
|
|
{
|
2007-04-24 12:02:27 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiVSpaceDialog(GuiVSpace * form);
|
2007-04-24 12:02:27 +00:00
|
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
|
void change_adaptor();
|
|
|
|
|
|
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
void closeEvent(QCloseEvent *);
|
|
|
|
|
void enableCustom(int);
|
|
|
|
|
|
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiVSpace * form_;
|
2007-04-24 12:02:27 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiVSpace : public GuiView<GuiVSpaceDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
|
friend class GuiVSpaceDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiVSpace(Dialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
|
/// parent controller
|
|
|
|
|
ControlVSpace & controller()
|
|
|
|
|
{ return static_cast<ControlVSpace &>(this->getController()); }
|
|
|
|
|
/// parent controller
|
|
|
|
|
ControlVSpace const & controller() const
|
|
|
|
|
{ return static_cast<ControlVSpace const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
|
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
|