2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiFloat.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 Edwin Leuven
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIFLOAT_H
|
|
|
|
#define GUIFLOAT_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
#include "GuiDialogView.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
#include "ui_FloatUi.h"
|
|
|
|
#include "ControlFloat.h"
|
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiFloat;
|
|
|
|
|
|
|
|
class GuiFloatDialog : public QDialog, public Ui::FloatUi {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
GuiFloatDialog(GuiFloat * form);
|
|
|
|
|
|
|
|
protected Q_SLOTS:
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
|
|
|
private:
|
|
|
|
GuiFloat * form_;
|
|
|
|
};
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
///
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiFloat : public GuiView<GuiFloatDialog> {
|
2006-03-05 17:24:44 +00:00
|
|
|
public:
|
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
friend class GuiFloatDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiFloat(Dialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
/// parent controller
|
|
|
|
ControlFloat & controller()
|
|
|
|
{ return static_cast<ControlFloat &>(this->getController()); }
|
|
|
|
/// parent controller
|
|
|
|
ControlFloat const & controller() const
|
|
|
|
{ return static_cast<ControlFloat const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIFLOAT_H
|