summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6853f12)
raw | patch | inline | side by side (parent: 6853f12)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Fri, 2 Apr 2010 18:11:38 +0000 (20:11 +0200) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Fri, 2 Apr 2010 18:11:38 +0000 (20:11 +0200) |
src/ui/tool/node-tool.cpp | patch | blob | history | |
src/ui/tool/node-tool.h | patch | blob | history |
index 443e7f2585abb027c867f97763a286ffc05d3bd7..b5f420597f2bab733b7987dc03aae2ceebe827c0 100644 (file)
Glib::ustring entry_name = value->getEntryName();
if (entry_name == "show_handles") {
- nt->_multipath->showHandles(value->getBool(true));
+ nt->show_handles = value->getBool(true);
+ nt->_multipath->showHandles(nt->show_handles);
} else if (entry_name == "show_outline") {
nt->show_outline = value->getBool();
nt->_multipath->showOutline(nt->show_outline);
ink_node_tool_update_tip(nt, event);
return TRUE;
case GDK_a:
+ case GDK_A:
if (held_control(event->key) && held_alt(event->key)) {
nt->_selected_nodes->selectAll();
// Ctrl+A is handled in selection-chemistry.cpp via verb
@@ -498,6 +500,14 @@ gint ink_node_tool_root_handler(SPEventContext *event_context, GdkEvent *event)
return TRUE;
}
break;
+ case GDK_h:
+ case GDK_H:
+ if (held_only_control(event->key)) {
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ prefs->setBool("/tools/nodes/show_handles", !nt->show_handles);
+ return TRUE;
+ }
+ break;
default:
break;
}
index baac642ac97243aa61d47273e5aad004e349f034..641d064c19691c9696f1f32e1b1dfc4776747b6a 100644 (file)
--- a/src/ui/tool/node-tool.h
+++ b/src/ui/tool/node-tool.h
SPItem *_last_over;
unsigned cursor_drag : 1;
+ unsigned show_handles : 1;
unsigned show_outline : 1;
unsigned live_outline : 1;
unsigned live_objects : 1;