2001-07-30 11:56:00 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
|
/**
|
2001-07-30 11:56:00 +00:00
|
|
|
|
* \file FormFloat.h
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-11 17:00:41 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-07-30 11:56:00 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef FORMFLOAT_H
|
|
|
|
|
#define FORMFLOAT_H
|
|
|
|
|
|
2003-03-05 19:46:08 +00:00
|
|
|
|
#include "FormDialogView.h"
|
2002-10-23 16:24:44 +00:00
|
|
|
|
#include "RadioButtonGroup.h"
|
2001-07-30 11:56:00 +00:00
|
|
|
|
|
|
|
|
|
class ControlFloat;
|
2002-06-13 13:43:51 +00:00
|
|
|
|
struct FD_float;
|
2001-07-30 11:56:00 +00:00
|
|
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the Float
|
|
|
|
|
Dialog.
|
|
|
|
|
*/
|
2003-03-05 19:46:08 +00:00
|
|
|
|
class FormFloat : public FormController<ControlFloat, FormView<FD_float> > {
|
2001-07-30 11:56:00 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2003-03-05 19:46:08 +00:00
|
|
|
|
FormFloat(Dialog &);
|
2001-07-30 11:56:00 +00:00
|
|
|
|
private:
|
|
|
|
|
/// Set the Params variable for the Controller.
|
|
|
|
|
virtual void apply();
|
|
|
|
|
/// Build the dialog.
|
|
|
|
|
virtual void build();
|
|
|
|
|
/// Update dialog before/whilst showing it.
|
|
|
|
|
virtual void update();
|
2001-09-11 17:27:28 +00:00
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2002-10-23 16:24:44 +00:00
|
|
|
|
|
|
|
|
|
/// placement
|
|
|
|
|
RadioButtonGroup placement_;
|
2001-07-30 11:56:00 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // FORMFLOAT_H
|