1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2000-2001 The LyX Team.
8 * ======================================================
10 * \file FormGraphics.h
11 * \author Baruch Even, baruch.even@writeme.com
14 #ifndef FORMGRAPHICS_H
15 #define FORMGRAPHICS_H
22 #include "RadioButtonGroup.h"
24 class ControlGraphics;
25 struct FD_form_graphics;
27 /** This class provides an XForms implementation of the Graphics Dialog.
29 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
32 FormGraphics(ControlGraphics &);
35 /// Set the Params variable for the Controller.
41 /// Update dialog before/whilst showing it.
42 virtual void update();
43 /// Filter the inputs on callback from xforms
44 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
46 /// The maximum digits for the image width (cm, inch, percent)
51 /// The maximum digits for the image height (cm, inch, percent)
56 /// The maximum characters in the rotation angle (minus sign and 3 digits)
61 /// The maximum characters in a filename.
64 FILENAME_MAXCHARS = 1024
76 /// Verify that the input is correct. If not disable ok/apply buttons.
77 ButtonPolicy::SMInput checkInput();
78 /// Open the file browse dialog to select an image file.
81 /// Fdesign generated method
82 FD_form_graphics * build_graphics();
84 /// The radio buttons groups
85 RadioButtonGroup widthButtons;
87 RadioButtonGroup heightButtons;
89 RadioButtonGroup displayButtons;
90 /// Last used figure path
91 string last_image_path;
95 #endif // FORMGRAPHICS_H