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
17 #include "forms_fwd.h"
19 void addCheckedLyXLength(BCView & bcview,
20 FL_OBJECT * input, FL_OBJECT * label = 0);
22 void addCheckedGlueLength(BCView & bcview,
23 FL_OBJECT * input, FL_OBJECT * label = 0);
25 class CheckedLyXLength : public CheckedWidget {
27 /** The label widget's label will be turned red if input
28 * does not make a valid LyXLength.
29 * If label == 0, then the label of input will be used.
31 CheckedLyXLength(FL_OBJECT * input, FL_OBJECT * label = 0);
35 virtual bool check() const;
43 class CheckedGlueLength : public CheckedWidget {
45 /** The label widget's label will be turned red if input
46 * does not make a valid LyXGlueLength.
47 * If label == 0, then the label of input will be used.
49 CheckedGlueLength(FL_OBJECT * input, FL_OBJECT * label = 0);
53 virtual bool check() const;
60 #endif // CHECKEDWIDGETS_H