- // Manage the ok, apply and cancel/close buttons
- bc().setOK(dialog_->button_ok);
- bc().setApply(dialog_->button_apply);
- bc().setCancel(dialog_->button_close);
- bc().setRestore(dialog_->button_restore);
-
- bc().addReadOnly(dialog_->input_width);
- bc().addReadOnly(dialog_->choice_width_units);
- bc().addReadOnly(dialog_->radio_left);
- bc().addReadOnly(dialog_->radio_right);
- bc().addReadOnly(dialog_->radio_inner);
- bc().addReadOnly(dialog_->radio_default);
+ string const choice = getStringFromVector(getLatexUnits(), "|");
+ fl_addto_choice(dialog_->choice_width_units,
+ subst(choice, "%", "%%").c_str());
+
+ placement_.init(dialog_->radio_default, 0); // default
+ placement_.init(dialog_->radio_outer, 'p');
+ placement_.init(dialog_->radio_left, 'l');
+ placement_.init(dialog_->radio_right, 'r');
+
+ // set up the tooltips
+ string str = _("Enter width for the float.");
+ tooltips().init(dialog_->input_width, str);
+ str = _("Forces float to the right in a paragraph if the page number "
+ "is odd, and to the left if page number is even.");
+ tooltips().init(dialog_->radio_default, str);
+ str = _("Forces float to the left in a paragraph if the pagenumber "
+ "is odd, and to the right if page number is even.");
+ tooltips().init(dialog_->radio_outer, str);
+ str = _("Forces float to the left in the paragraph.");
+ tooltips().init(dialog_->radio_left, str);
+ str = _("Forces float to the right in the paragraph.");
+ tooltips().init(dialog_->radio_right, str);