summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
commitbdde74bbab299f2ee448f1c55469c56a66fb01f7 (patch)
tree45bccef1ec815708f9b54171e2d567344f155074 /src/ui
parentMore cleaning. (diff)
downloadinkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.tar.gz
inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.zip
Removed some unused files; more refactoring in EventContext tree.
(bzr r11608.1.104)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tool/node-tool.cpp22
-rw-r--r--src/ui/tool/node-tool.h2
2 files changed, 12 insertions, 12 deletions
diff --git a/src/ui/tool/node-tool.cpp b/src/ui/tool/node-tool.cpp
index f64aa4d2a..b65ca22b9 100644
--- a/src/ui/tool/node-tool.cpp
+++ b/src/ui/tool/node-tool.cpp
@@ -285,37 +285,37 @@ void InkNodeTool::setup() {
this->desktop->emitToolSubselectionChanged(NULL); // sets the coord entry fields to inactive
}
-void InkNodeTool::set(Inkscape::Preferences::Entry* value) {
- Glib::ustring entry_name = value->getEntryName();
+void InkNodeTool::set(const Inkscape::Preferences::Entry& value) {
+ Glib::ustring entry_name = value.getEntryName();
if (entry_name == "show_handles") {
- this->show_handles = value->getBool(true);
+ this->show_handles = value.getBool(true);
this->_multipath->showHandles(this->show_handles);
} else if (entry_name == "show_outline") {
- this->show_outline = value->getBool();
+ this->show_outline = value.getBool();
this->_multipath->showOutline(this->show_outline);
} else if (entry_name == "live_outline") {
- this->live_outline = value->getBool();
+ this->live_outline = value.getBool();
this->_multipath->setLiveOutline(this->live_outline);
} else if (entry_name == "live_objects") {
- this->live_objects = value->getBool();
+ this->live_objects = value.getBool();
this->_multipath->setLiveObjects(this->live_objects);
} else if (entry_name == "show_path_direction") {
- this->show_path_direction = value->getBool();
+ this->show_path_direction = value.getBool();
this->_multipath->showPathDirection(this->show_path_direction);
} else if (entry_name == "show_transform_handles") {
- this->show_transform_handles = value->getBool(true);
+ this->show_transform_handles = value.getBool(true);
this->_selected_nodes->showTransformHandles(
this->show_transform_handles, this->single_node_transform_handles);
} else if (entry_name == "single_node_transform_handles") {
- this->single_node_transform_handles = value->getBool();
+ this->single_node_transform_handles = value.getBool();
this->_selected_nodes->showTransformHandles(
this->show_transform_handles, this->single_node_transform_handles);
} else if (entry_name == "edit_clipping_paths") {
- this->edit_clipping_paths = value->getBool();
+ this->edit_clipping_paths = value.getBool();
this->selection_changed(this->desktop->selection);
} else if (entry_name == "edit_masks") {
- this->edit_masks = value->getBool();
+ this->edit_masks = value.getBool();
this->selection_changed(this->desktop->selection);
} else {
SPEventContext::set(value);
diff --git a/src/ui/tool/node-tool.h b/src/ui/tool/node-tool.h
index 597f2a347..df8b5d782 100644
--- a/src/ui/tool/node-tool.h
+++ b/src/ui/tool/node-tool.h
@@ -46,7 +46,7 @@ public:
static const std::string prefsPath;
virtual void setup();
- virtual void set(Inkscape::Preferences::Entry* val);
+ virtual void set(const Inkscape::Preferences::Entry& val);
virtual gint root_handler(GdkEvent* event);
virtual gint item_handler(SPItem* item, GdkEvent* event);