some tweaks to the GUI of the dynamic profile editor

This commit is contained in:
Alberto Griggio
2017-03-03 11:00:32 +01:00
parent eeb2da2613
commit 01eb437b90
2 changed files with 7 additions and 23 deletions

View File

@@ -2039,11 +2039,12 @@ ZOOMPANEL_ZOOMFITCROPSCREEN;Fit crop to screen\nShortcut: <b>Alt</b>-<b>f</b>
ZOOMPANEL_ZOOMFITSCREEN;Fit whole image to screen\nShortcut: <b>f</b> ZOOMPANEL_ZOOMFITSCREEN;Fit whole image to screen\nShortcut: <b>f</b>
ZOOMPANEL_ZOOMIN;Zoom In\nShortcut: <b>+</b> ZOOMPANEL_ZOOMIN;Zoom In\nShortcut: <b>+</b>
ZOOMPANEL_ZOOMOUT;Zoom Out\nShortcut: <b>-</b> ZOOMPANEL_ZOOMOUT;Zoom Out\nShortcut: <b>-</b>
DYNPROFILEEDITOR_PROFILE;Processing profile DYNPROFILEEDITOR_PROFILE;Processing Profile
DYNPROFILEEDITOR_MOVE_UP;Move up DYNPROFILEEDITOR_MOVE_UP;Move Up
DYNPROFILEEDITOR_MOVE_DOWN;Move down DYNPROFILEEDITOR_MOVE_DOWN;Move Down
DYNPROFILEEDITOR_NEW;New DYNPROFILEEDITOR_NEW;New
DYNPROFILEEDITOR_EDIT;Edit DYNPROFILEEDITOR_EDIT;Edit
DYNPROFILEEDITOR_DELETE;Delete DYNPROFILEEDITOR_DELETE;Delete
DYNPROFILEEDITOR_NEW_RULE;New dynamic profile rule DYNPROFILEEDITOR_NEW_RULE;New Dynamic Profile Rule
DYNPROFILEEDITOR_EDIT_RULE;Edit dynamic profile rule DYNPROFILEEDITOR_EDIT_RULE;Edit Dynamic Profile Rule
DYNPROFILEEDITOR_ENTRY_TOOLTIP;The matching is case insensitive.\nUse the "re:" prefix to enter\na regular expression.

View File

@@ -33,24 +33,6 @@ Glib::ustring to_str(V n)
return buf.str(); return buf.str();
} }
int to_int(const Glib::ustring &s)
{
std::istringstream buf(s);
int r = -1;
buf >> r;
return r;
}
double to_double(const Glib::ustring &s)
{
std::istringstream buf(s);
double r = 0.0;
buf >> r;
return r;
}
} // namespace } // namespace
@@ -207,6 +189,7 @@ void DynamicProfilePanel::EditDialog::add_optional(const Glib::ustring &name,
field = Gtk::manage(new Gtk::Entry()); field = Gtk::manage(new Gtk::Entry());
hb->pack_start(*field, true, true, 2); hb->pack_start(*field, true, true, 2);
get_content_area()->pack_start(*hb, Gtk::PACK_SHRINK, 4); get_content_area()->pack_start(*hb, Gtk::PACK_SHRINK, 4);
field->set_tooltip_text(M("DYNPROFILEEDITOR_ENTRY_TOOLTIP"));
} }