4 * Read the file COPYING
9 * Full author contact details are available in file CREDITS
12 #ifndef FORMGRAPHICS_H
13 #define FORMGRAPHICS_H
20 #include "RadioButtonGroup.h"
22 #include <boost/scoped_ptr.hpp>
26 class ControlGraphics;
28 struct FD_graphics_file;
29 struct FD_graphics_bbox;
30 struct FD_graphics_extra;
32 /** This class provides an XForms implementation of the Graphics Dialog.
34 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_graphics> > {
40 /** Redraw the form (on receipt of a Signal indicating, for example,
41 that the xforms colours have been re-mapped). */
42 virtual void redraw();
43 /// Set the Params variable for the Controller.
47 /// Update dialog before/whilst showing it.
48 virtual void update();
49 /// Update the BoundingBox info.
50 void updateBB(string const & filename, string const & bb_inset);
51 /// Filter the inputs on callback from xforms
52 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
54 /// Real GUI implementation.
55 boost::scoped_ptr<FD_graphics_file> file_;
57 boost::scoped_ptr<FD_graphics_bbox> bbox_;
59 boost::scoped_ptr<FD_graphics_extra> extra_;
61 /// Store the LaTeX names for the rotation origins.
62 std::vector<string> origins_;
65 #endif // FORMGRAPHICS_H