3 * \file xforms/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
16 #include "forms_fwd.h"
21 void addCheckedLyXLength(BCView & bcview,
22 FL_OBJECT * input, FL_OBJECT * label = 0);
24 void addCheckedGlueLength(BCView & bcview,
25 FL_OBJECT * input, FL_OBJECT * label = 0);
27 class CheckedLyXLength : public CheckedWidget {
29 /** The label widget's label will be turned red if input
30 * does not make a valid LyXLength.
31 * If label == 0, then the label of input will be used.
33 CheckedLyXLength(FL_OBJECT * input, FL_OBJECT * label = 0);
37 virtual bool check() const;
45 class CheckedGlueLength : public CheckedWidget {
47 /** The label widget's label will be turned red if input
48 * does not make a valid LyXGlueLength.
49 * If label == 0, then the label of input will be used.
51 CheckedGlueLength(FL_OBJECT * input, FL_OBJECT * label = 0);
55 virtual bool check() const;
62 } // namespace frontend
65 #endif // CHECKEDWIDGETS_H