- bc().setOK(dialog_->button_ok);
- bc().setApply(dialog_->button_apply);
- bc().setCancel(dialog_->button_close);
- bc().setRestore(dialog_->button_restore);
-
- bc().addReadOnly(dialog_->check_default);
- bc().addReadOnly(dialog_->check_top);
- bc().addReadOnly(dialog_->check_bottom);
- bc().addReadOnly(dialog_->check_page);
- bc().addReadOnly(dialog_->check_here);
- bc().addReadOnly(dialog_->check_force);
- bc().addReadOnly(dialog_->check_here_definitely);
- bc().addReadOnly(dialog_->check_wide);
+ bcview().setOK(dialog_->button_ok);
+ bcview().setApply(dialog_->button_apply);
+ bcview().setCancel(dialog_->button_close);
+ bcview().setRestore(dialog_->button_restore);
+
+ // disable for read-only documents
+ bcview().addReadOnly(dialog_->radio_default);
+ bcview().addReadOnly(dialog_->radio_here_definitely);
+ bcview().addReadOnly(dialog_->radio_alternatives);
+ bcview().addReadOnly(dialog_->check_top);
+ bcview().addReadOnly(dialog_->check_bottom);
+ bcview().addReadOnly(dialog_->check_page);
+ bcview().addReadOnly(dialog_->check_here);
+ bcview().addReadOnly(dialog_->check_force);
+ bcview().addReadOnly(dialog_->check_wide);
+ bcview().addReadOnly(dialog_->check_sideways);
+
+ placement_.init(dialog_->radio_default, DOCUMENT_DEFAULTS);
+ placement_.init(dialog_->radio_here_definitely, HERE_DEFINITELY);
+ placement_.init(dialog_->radio_alternatives, ALTERNATIVES);
+
+ // set up the tooltips
+ string str = _("Use the document's default settings.");
+ tooltips().init(dialog_->radio_default, str);
+ str = _("Enforce placement of float here.");
+ tooltips().init(dialog_->radio_here_definitely, str);
+ str = _("Alternative suggestions for placement of float.");
+ tooltips().init(dialog_->radio_alternatives, str);
+ str = _("Try top of page.");
+ tooltips().init(dialog_->check_top, str);
+ str = _("Try bottom of page.");
+ tooltips().init(dialog_->check_bottom, str);
+ str = _("Put float on a separate page of floats.");
+ tooltips().init(dialog_->check_page, str);
+ str = _("Try float here.");
+ tooltips().init(dialog_->check_here, str);
+ str = _("Ignore internal settings. This is the \"!\" in LaTeX.");
+ tooltips().init(dialog_->check_force, str);
+ str = _("Span float over the columns.");
+ tooltips().init(dialog_->check_wide, str);
+ str = _("Rotate the float sideways by 90 degs.");
+ tooltips().init(dialog_->check_sideways, str);