Add tooltips to control lines buttons
This commit is contained in:
parent
95141a943c
commit
a56c1fbb07
@ -220,8 +220,10 @@ GENERAL_BEFORE;Before
|
|||||||
GENERAL_CANCEL;Cancel
|
GENERAL_CANCEL;Cancel
|
||||||
GENERAL_CLOSE;Close
|
GENERAL_CLOSE;Close
|
||||||
GENERAL_CURRENT;Current
|
GENERAL_CURRENT;Current
|
||||||
|
GENERAL_DELETE_ALL;Delete all
|
||||||
GENERAL_DISABLE;Disable
|
GENERAL_DISABLE;Disable
|
||||||
GENERAL_DISABLED;Disabled
|
GENERAL_DISABLED;Disabled
|
||||||
|
GENERAL_EDIT;Edit
|
||||||
GENERAL_ENABLE;Enable
|
GENERAL_ENABLE;Enable
|
||||||
GENERAL_ENABLED;Enabled
|
GENERAL_ENABLED;Enabled
|
||||||
GENERAL_FILE;File
|
GENERAL_FILE;File
|
||||||
|
@ -185,17 +185,20 @@ PerspCorrection::PerspCorrection () : FoldableToolPanel(this, "perspective", M("
|
|||||||
// Begin control lines interface.
|
// Begin control lines interface.
|
||||||
lines_button_apply = Gtk::manage (new Gtk::Button());
|
lines_button_apply = Gtk::manage (new Gtk::Button());
|
||||||
lines_button_apply->set_image(*ipers_apply);
|
lines_button_apply->set_image(*ipers_apply);
|
||||||
|
lines_button_apply->set_tooltip_text(M("GENERAL_APPLY"));
|
||||||
lines_button_apply->set_sensitive(false);
|
lines_button_apply->set_sensitive(false);
|
||||||
lines_button_apply->signal_pressed().connect(sigc::mem_fun(
|
lines_button_apply->signal_pressed().connect(sigc::mem_fun(
|
||||||
*this, &::PerspCorrection::linesApplyButtonPressed));
|
*this, &::PerspCorrection::linesApplyButtonPressed));
|
||||||
|
|
||||||
lines_button_edit = Gtk::manage (new Gtk::ToggleButton());
|
lines_button_edit = Gtk::manage (new Gtk::ToggleButton());
|
||||||
lines_button_edit->set_image(*ipers_draw);
|
lines_button_edit->set_image(*ipers_draw);
|
||||||
|
lines_button_edit->set_tooltip_text(M("GENERAL_EDIT"));
|
||||||
lines_button_edit->signal_toggled().connect(sigc::mem_fun(
|
lines_button_edit->signal_toggled().connect(sigc::mem_fun(
|
||||||
*this, &::PerspCorrection::linesEditButtonPressed));
|
*this, &::PerspCorrection::linesEditButtonPressed));
|
||||||
|
|
||||||
lines_button_erase = Gtk::manage (new Gtk::Button());
|
lines_button_erase = Gtk::manage (new Gtk::Button());
|
||||||
lines_button_erase->set_image(*ipers_trash);
|
lines_button_erase->set_image(*ipers_trash);
|
||||||
|
lines_button_erase->set_tooltip_text(M("GENERAL_DELETE_ALL"));
|
||||||
lines_button_erase->set_sensitive(false);
|
lines_button_erase->set_sensitive(false);
|
||||||
lines_button_erase->signal_pressed().connect(sigc::mem_fun(
|
lines_button_erase->signal_pressed().connect(sigc::mem_fun(
|
||||||
*this, &::PerspCorrection::linesEraseButtonPressed));
|
*this, &::PerspCorrection::linesEraseButtonPressed));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user