3 * \file checkedwidgets.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef CHECKEDWIDGETS_H
13 #define CHECKEDWIDGETS_H
19 #include "ButtonControllerBase.h"
20 #include "forms_fwd.h"
22 void addCheckedLyXLength(ButtonControllerBase & bc,
23 FL_OBJECT * input, FL_OBJECT * label = 0);
25 void addCheckedGlueLength(ButtonControllerBase & bc,
26 FL_OBJECT * input, FL_OBJECT * label = 0);
28 class CheckedLyXLength : public CheckedWidget {
30 /** The label widget's label will be turned red if input
31 * does not make a valid LyXLength.
32 * If label == 0, then the label of input will be used.
34 CheckedLyXLength(FL_OBJECT * input, FL_OBJECT * label = 0);
38 virtual bool check() const;
46 class CheckedGlueLength : public CheckedWidget {
48 /** The label widget's label will be turned red if input
49 * does not make a valid LyXGlueLength.
50 * If label == 0, then the label of input will be used.
52 CheckedGlueLength(FL_OBJECT * input, FL_OBJECT * label = 0);
56 virtual bool check() const;
63 #endif // CHECKEDWIDGETS_H