Lines Matching defs:dt
141 tools_isactive(SPDesktop *dt, unsigned num)
144 if (dynamic_cast<ToolBase *>(dt->event_context)) {
145 return dt->event_context->pref_observer->observed_path == tool_names[num];
152 tools_active(SPDesktop *dt)
154 return tools_prefpath2num(dt->event_context->pref_observer->observed_path.data());
158 tools_switch(SPDesktop *dt, int num)
160 dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, gettext( tool_msg[num] ) );
161 if (dt) {
163 dt->_tool_changed.emit(num);
166 dt->set_event_context2(tool_names[num]);
169 dt->activate_guides(num < 5);
170 INKSCAPE.eventcontext_set(dt->getEventContext());
173 void tools_switch_by_item(SPDesktop *dt, SPItem *item, Geom::Point const p)
176 tools_switch(dt, TOOLS_SHAPES_RECT);
178 tools_switch(dt, TOOLS_SHAPES_3DBOX);
180 tools_switch(dt, TOOLS_SHAPES_ARC);
182 tools_switch(dt, TOOLS_SHAPES_STAR);
184 tools_switch(dt, TOOLS_SHAPES_SPIRAL);
187 tools_switch(dt, TOOLS_CONNECTOR);
190 tools_switch(dt, TOOLS_NODES);
193 tools_switch(dt, TOOLS_TEXT);
194 sp_text_context_place_cursor_at (SP_TEXT_CONTEXT(dt->event_context), item, p);
196 tools_switch(dt, TOOLS_NODES);