2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-28 13:11:08 +00:00
|
|
|
/* This file is part of
|
2000-07-31 12:30:10 +00:00
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-03-28 13:11:08 +00:00
|
|
|
* Copyright 2000-2001 The LyX Team.
|
2000-07-31 12:30:10 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
2001-03-28 13:11:08 +00:00
|
|
|
*
|
|
|
|
* \file FormGraphics.h
|
|
|
|
* \author Baruch Even, baruch.even@writeme.com
|
2000-07-31 12:30:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMGRAPHICS_H
|
|
|
|
#define FORMGRAPHICS_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
2000-08-14 09:44:53 +00:00
|
|
|
#endif
|
2000-07-31 12:30:10 +00:00
|
|
|
|
2001-03-28 13:11:08 +00:00
|
|
|
#include "FormBase.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
#include "RadioButtonGroup.h"
|
2000-07-31 12:30:10 +00:00
|
|
|
|
2001-03-28 13:11:08 +00:00
|
|
|
class ControlGraphics;
|
2000-07-31 12:30:10 +00:00
|
|
|
struct FD_form_graphics;
|
|
|
|
|
2001-03-28 13:11:08 +00:00
|
|
|
/** This class provides an XForms implementation of the Graphics Dialog.
|
2000-07-31 12:30:10 +00:00
|
|
|
*/
|
2001-03-28 13:11:08 +00:00
|
|
|
class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
|
2000-07-31 12:30:10 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-03-28 13:11:08 +00:00
|
|
|
FormGraphics(ControlGraphics &);
|
2000-07-31 12:30:10 +00:00
|
|
|
|
|
|
|
private:
|
2001-03-28 13:11:08 +00:00
|
|
|
/// 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();
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
|
2000-08-07 20:58:24 +00:00
|
|
|
/// Verify that the input is correct. If not disable ok/apply buttons.
|
2001-03-28 13:11:08 +00:00
|
|
|
ButtonPolicy::SMInput checkInput();
|
2000-07-31 12:30:10 +00:00
|
|
|
|
2000-10-24 13:13:59 +00:00
|
|
|
/// Fdesign generated method
|
|
|
|
FD_form_graphics * build_graphics();
|
2000-08-14 15:31:16 +00:00
|
|
|
};
|
2000-07-31 12:30:10 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-28 13:11:08 +00:00
|
|
|
#endif // FORMGRAPHICS_H
|