]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/checkedwidgets.C
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / checkedwidgets.C
index d351372452239941e503ee7686f33d16929d7d5d..a826c74f03d37c7f3f613164ee74803b1f374e4f 100644 (file)
@@ -10,9 +10,6 @@
 
 #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));
 }
 
 
@@ -45,8 +42,8 @@ void setWidget(bool valid, FL_OBJECT * input, FL_OBJECT * 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);
        }
@@ -56,12 +53,12 @@ void setWidget(bool valid, FL_OBJECT * input, FL_OBJECT * label)
 
        // 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