]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormFloat.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormFloat.C
index 588932d162243180e583ac16d65555872781245e..154559f4a7a2b793702fcc999806e6242f0fb2cf 100644 (file)
@@ -21,6 +21,7 @@
 #include "FormFloat.h"
 #include "form_float.h"
 #include "support/lstrings.h"
+#include "xforms_helpers.h"
 
 typedef FormCB<ControlFloat, FormDB<FD_form_float> > base_class;
 
@@ -83,7 +84,6 @@ void FormFloat::update()
        bool here_definitely = false;
 
        string placement(controller().params().placement);
-       std::cerr << "FormFloat::update() " << placement << std::endl;
        
        if (contains(placement, "H")) {
                here_definitely = true;
@@ -106,6 +106,7 @@ void FormFloat::update()
        fl_set_button(dialog_->radio_page, page);
        fl_set_button(dialog_->radio_here, here);
        fl_set_button(dialog_->button_here_definitely, here_definitely);
+       setEnabled(dialog_->button_here_definitely, controller().params().allow_here_definitely);
 }
 
 
@@ -123,4 +124,6 @@ ButtonPolicy::SMInput FormFloat::input(FL_OBJECT * ob, long)
                        fl_set_button(dialog_->button_here_definitely, false);
                }
        }
+
+       return ButtonPolicy::SMI_VALID;
 }