#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "checkedwidgets.h"
#include "xforms_helpers.h"
#include FORMS_H_LOCATION
-void addCheckedLyXLength(ButtonControllerBase & bc,
+void addCheckedLyXLength(BCView & bcview,
FL_OBJECT * input, FL_OBJECT * label)
{
- bc.addCheckedWidget(new CheckedLyXLength(input, label));
+ bcview.addCheckedWidget(new CheckedLyXLength(input, label));
}
-void addCheckedGlueLength(ButtonControllerBase & bc,
+void addCheckedGlueLength(BCView & bcview,
FL_OBJECT * input, FL_OBJECT * label)
{
- bc.addCheckedWidget(new CheckedGlueLength(input, label));
+ bcview.addCheckedWidget(new CheckedGlueLength(input, label));
}
{
// define color to mark invalid input
FL_COLOR const alert_col = FL_RED;
-
- FL_COLOR const lcol = valid ? FL_LCOL : alert_col;
+
+ FL_COLOR const lcol = valid ? FL_COLOR(FL_LCOL) : alert_col;
if (label->lcol != lcol && isActive(label)) {
fl_set_object_lcol(label, lcol);
}
// Reflect the validity of the data in the background color of the
// input widget only when this widget is not being edited.
- FL_COLOR const icol1 = valid ? FL_COL1 : alert_col;
+ FL_COLOR const icol1 = valid ? FL_COLOR(FL_COL1) : alert_col;
if (input->col1 != icol1) {
fl_set_object_color(input, icol1, FL_MCOL);
}
}
-
+
} // namespace anon