Lines Matching defs:dt

953     SPDesktop *dt = sp_action_get_desktop(action);
957 sp_undo(dt, dt->getDocument());
960 sp_redo(dt, dt->getDocument());
963 sp_selection_cut(dt);
966 sp_selection_copy(dt);
969 sp_selection_paste(dt, false);
972 sp_selection_paste_style(dt);
975 sp_selection_paste_size(dt, true, true);
978 sp_selection_paste_size(dt, true, false);
981 sp_selection_paste_size(dt, false, true);
984 sp_selection_paste_size_separately(dt, true, true);
987 sp_selection_paste_size_separately(dt, true, false);
990 sp_selection_paste_size_separately(dt, false, true);
993 sp_selection_paste(dt, true);
996 sp_selection_paste_livepatheffect(dt);
999 sp_selection_remove_livepatheffect(dt);
1002 sp_selection_remove_filter(dt);
1005 sp_selection_delete(dt);
1008 sp_selection_duplicate(dt);
1011 sp_selection_clone(dt);
1014 sp_selection_unlink(dt);
1017 sp_selection_relink(dt);
1020 sp_select_clone_original(dt);
1023 sp_selection_clone_original_path_lpe(dt);
1026 sp_selection_to_marker(dt);
1029 sp_selection_to_guides(dt);
1032 sp_selection_tile(dt);
1035 sp_selection_untile(dt);
1038 sp_selection_symbol(dt);
1041 sp_selection_unsymbol(dt);
1044 SelectionHelper::selectAll(dt);
1047 SelectionHelper::selectSameFillStroke(dt);
1050 SelectionHelper::selectSameFillColor(dt);
1053 SelectionHelper::selectSameStrokeColor(dt);
1056 SelectionHelper::selectSameStrokeStyle(dt);
1059 SelectionHelper::selectSameObjectType(dt);
1062 SelectionHelper::invert(dt);
1065 SelectionHelper::selectAllInAll(dt);
1068 SelectionHelper::invertAllInAll(dt);
1071 SelectionHelper::selectNext(dt);
1074 SelectionHelper::selectPrev(dt);
1077 SelectionHelper::selectNone(dt);
1080 sp_guide_delete_all_guides(dt);
1083 dt->toggleGuidesLock();
1086 sp_guide_create_guides_around_page(dt);
1089 sp_selection_next_patheffect_param(dt);
1107 SPDesktop *dt = sp_action_get_desktop(action);
1118 sp_selected_path_union(selection, dt);
1121 sp_selected_path_intersect(selection, dt);
1124 sp_selected_path_diff(selection, dt);
1127 sp_selected_path_symdiff(selection, dt);
1130 sp_selected_path_cut(selection, dt);
1133 sp_selected_path_slice(selection, dt);
1136 sp_selection_raise_to_top(selection, dt);
1139 sp_selection_lower_to_bottom(selection, dt);
1142 sp_selection_raise(selection, dt);
1145 sp_selection_lower(selection, dt);
1148 sp_selection_group(selection, dt);
1151 sp_selection_ungroup(selection, dt);
1154 sp_selection_ungroup_pop_selection(selection, dt);
1168 g_assert(dt->_dlg_mgr != NULL);
1182 sp_selected_path_offset(dt);
1185 sp_selected_path_offset_screen(dt, 1);
1188 sp_selected_path_offset_screen(dt, 10);
1191 sp_selected_path_inset(dt);
1194 sp_selected_path_inset_screen(dt, 1);
1197 sp_selected_path_inset_screen(dt, 10);
1200 sp_selected_path_create_offset_object_zero(dt);
1201 tools_switch(dt, TOOLS_NODES);
1204 sp_selected_path_create_updating_offset_object_zero(dt);
1205 tools_switch(dt, TOOLS_NODES);
1208 sp_selected_path_outline(dt);
1211 sp_selected_path_simplify(dt);
1214 SelectionHelper::reverse(dt);
1220 dt->_dlg_mgr->showDialog("Trace");
1226 dt->_dlg_mgr->showDialog("PixelArt");
1229 sp_selection_create_bitmap_copy(dt);
1233 sp_selected_path_combine(dt);
1236 sp_selected_path_break_apart(dt);
1240 dt->_dlg_mgr->showDialog("TileDialog"); //FIXME: denis: What's this string (to be changed)
1254 SPDesktop *dt = sp_action_get_desktop(action);
1257 if ( !dt->currentLayer() ) {
1263 Inkscape::UI::Dialogs::LayerPropertiesDialog::showCreate(dt, dt->currentLayer());
1267 Inkscape::UI::Dialogs::LayerPropertiesDialog::showRename(dt, dt->currentLayer());
1271 SPObject *next=Inkscape::next_layer(dt->currentRoot(), dt->currentLayer());
1273 dt->setCurrentLayer(next);
1274 DocumentUndo::done(dt->getDocument(), SP_VERB_LAYER_NEXT,
1276 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Switched to next layer."));
1278 dt->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Cannot go past last layer."));
1283 SPObject *prev=Inkscape::previous_layer(dt->currentRoot(), dt->currentLayer());
1285 dt->setCurrentLayer(prev);
1286 DocumentUndo::done(dt->getDocument(), SP_VERB_LAYER_PREV,
1288 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Switched to previous layer."));
1290 dt->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Cannot go before first layer."));
1295 sp_selection_to_next_layer(dt);
1299 sp_selection_to_prev_layer(dt);
1303 Inkscape::UI::Dialogs::LayerPropertiesDialog::showMove(dt, dt->currentLayer());
1310 if ( dt->currentLayer() == dt->currentRoot() ) {
1311 dt->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No current layer."));
1315 SPItem *layer=SP_ITEM(dt->currentLayer());
1356 DocumentUndo::done(dt->getDocument(), verb, description);
1358 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, message);
1362 dt->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Cannot move layer any further."));
1368 if ( dt->currentLayer() != dt->currentRoot() ) {
1370 sp_selection_duplicate(dt, true, true);
1372 DocumentUndo::done(dt->getDocument(), SP_VERB_LAYER_DUPLICATE,
1376 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Duplicated layer."));
1378 dt->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No current layer."));
1383 if ( dt->currentLayer() != dt->currentRoot() ) {
1384 dt->getSelection()->clear();
1385 SPObject *old_layer=dt->currentLayer();
1388 SPObject *survivor=Inkscape::next_layer(dt->currentRoot(), old_layer);
1390 survivor = Inkscape::previous_layer(dt->currentRoot(), old_layer);
1405 dt->setCurrentLayer(survivor);
1408 DocumentUndo::done(dt->getDocument(), SP_VERB_LAYER_DELETE,
1412 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Deleted layer."));
1414 dt->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No current layer."));
1419 if ( dt->currentLayer() == dt->currentRoot() ) {
1420 dt->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No current layer."));
1422 dt->toggleLayerSolo( dt->currentLayer() );
1423 DocumentUndo::done(dt->getDocument(), SP_VERB_LAYER_SOLO, _("Toggle layer solo"));
1428 dt->toggleHideAllLayers( false );
1429 DocumentUndo::maybeDone(dt->getDocument(), "layer:showall", SP_VERB_LAYER_SHOW_ALL, _("Show all layers"));
1433 dt->toggleHideAllLayers( true );
1434 DocumentUndo::maybeDone(dt->getDocument(), "layer:hideall", SP_VERB_LAYER_HIDE_ALL, _("Hide all layers"));
1438 dt->toggleLockAllLayers( true );
1439 DocumentUndo::maybeDone(dt->getDocument(), "layer:lockall", SP_VERB_LAYER_LOCK_ALL, _("Lock all layers"));
1443 if ( dt->currentLayer() == dt->currentRoot() ) {
1444 dt->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No current layer."));
1446 dt->toggleLockOtherLayers( dt->currentLayer() );
1447 DocumentUndo::done(dt->getDocument(), SP_VERB_LAYER_LOCK_OTHERS, _("Lock other layers"));
1452 dt->toggleLockAllLayers( false );
1453 DocumentUndo::maybeDone(dt->getDocument(), "layer:unlockall", SP_VERB_LAYER_UNLOCK_ALL, _("Unlock all layers"));
1458 if ( dt->currentLayer() == dt->currentRoot() ) {
1459 dt->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No current layer."));
1462 SP_ITEM(dt->currentLayer())->setHidden(!SP_ITEM(dt->currentLayer())->isHidden());
1464 SP_ITEM(dt->currentLayer())->setLocked(!SP_ITEM(dt->currentLayer())->isLocked());
1479 SPDesktop *dt = sp_action_get_desktop(action);
1486 sp_selected_path_to_curves(sel, dt);
1498 Inkscape::UI::Tools::ToolBase *ec = dt->event_context;
1510 if (tools_isactive(dt, TOOLS_SELECT) && sel->center() && SP_SELECT_CONTEXT(ec)->_seltrans->centerIsVisible())
1517 sp_selection_rotate_90(dt, false);
1520 sp_selection_rotate_90(dt, true);
1523 sp_selection_remove_transform(dt);
1536 DocumentUndo::done(dt->getDocument(), SP_VERB_OBJECT_FLIP_HORIZONTAL,
1541 DocumentUndo::done(dt->getDocument(), SP_VERB_OBJECT_FLIP_VERTICAL,
1545 sp_selection_set_mask(dt, false, false);
1548 sp_selection_edit_clip_or_mask(dt, false);
1551 sp_selection_unset_mask(dt, false);
1554 sp_selection_set_mask(dt, true, false);
1557 sp_selection_set_clipgroup(dt);
1560 sp_selection_edit_clip_or_mask(dt, true);
1563 sp_selection_unset_mask(dt, true);
1576 SPDesktop *dt = static_cast<SPDesktop*>(sp_action_get_view(action));
1577 if (!dt)
1591 } while (dt->doc()->getObjectById(id));
1593 doc = dt->doc()->getReprDoc();
1598 dt->doc()->getDefs()->addChild(repr, NULL);
1599 Inkscape::DocumentUndo::done(dt->doc(), SP_VERB_DIALOG_TAGS, _("Create new selection set"));
1613 SPDesktop *dt;
1618 dt = sp_action_get_desktop(action);
1636 tools_switch(dt, TOOLS_SELECT);
1639 tools_switch(dt, TOOLS_NODES);
1642 tools_switch(dt, TOOLS_TWEAK);
1645 tools_switch(dt, TOOLS_SPRAY);
1648 tools_switch(dt, TOOLS_SHAPES_RECT);
1651 tools_switch(dt, TOOLS_SHAPES_3DBOX);
1654 tools_switch(dt, TOOLS_SHAPES_ARC);
1657 tools_switch(dt, TOOLS_SHAPES_STAR);
1660 tools_switch(dt, TOOLS_SHAPES_SPIRAL);
1663 tools_switch(dt, TOOLS_FREEHAND_PENCIL);
1666 tools_switch(dt, TOOLS_FREEHAND_PEN);
1669 tools_switch(dt, TOOLS_CALLIGRAPHIC);
1672 tools_switch(dt, TOOLS_TEXT);
1675 tools_switch(dt, TOOLS_GRADIENT);
1678 tools_switch(dt, TOOLS_MESH);
1681 tools_switch(dt, TOOLS_ZOOM);
1684 tools_switch(dt, TOOLS_MEASURE);
1687 Inkscape::UI::Tools::sp_toggle_dropper(dt); // Functionality defined in event-context.cpp
1690 tools_switch(dt, TOOLS_CONNECTOR);
1695 tools_switch(dt, TOOLS_PAINTBUCKET);
1700 tools_switch(dt, TOOLS_ERASER);
1703 tools_switch(dt, TOOLS_LPETOOL);
1708 dt->_dlg_mgr->showDialog("InkscapePreferences");
1712 dt->_dlg_mgr->showDialog("InkscapePreferences");
1716 dt->_dlg_mgr->showDialog("InkscapePreferences");
1720 dt->_dlg_mgr->showDialog("InkscapePreferences");
1724 dt->_dlg_mgr->showDialog("InkscapePreferences");
1728 dt->_dlg_mgr->showDialog("InkscapePreferences");
1732 dt->_dlg_mgr->showDialog("InkscapePreferences");
1736 dt->_dlg_mgr->showDialog("InkscapePreferences");
1740 dt->_dlg_mgr->showDialog("InkscapePreferences");
1744 dt->_dlg_mgr->showDialog("InkscapePreferences");
1748 dt->_dlg_mgr->showDialog("InkscapePreferences");
1752 dt->_dlg_mgr->showDialog("InkscapePreferences");
1756 dt->_dlg_mgr->showDialog("InkscapePreferences");
1760 dt->_dlg_mgr->showDialog("InkscapePreferences");
1764 dt->_dlg_mgr->showDialog("InkscapePreferences");
1768 dt->_dlg_mgr->showDialog("InkscapePreferences");
1772 dt->_dlg_mgr->showDialog("InkscapePreferences");
1776 dt->_dlg_mgr->showDialog("InkscapePreferences");
1780 dt->_dlg_mgr->showDialog("InkscapePreferences");
1786 dt->_dlg_mgr->showDialog("InkscapePreferences");
1792 dt->_dlg_mgr->showDialog("InkscapePreferences");
1797 dt->_dlg_mgr->showDialog("InkscapePreferences");
1810 ActionAlign::do_verb_action(dt, verb);
1825 SPDesktop *dt = sp_action_get_desktop(action);
1827 SPDocument *doc = dt->getDocument();
1829 Inkscape::XML::Node *repr = dt->namedview->getRepr();
1839 SPDesktop *dt = sp_action_get_desktop(action);
1840 Inkscape::UI::Tools::ToolBase *ec = dt->event_context;
1842 SPDocument *doc = dt->getDocument();
1844 Inkscape::XML::Node *repr = dt->namedview->getRepr();
1852 if (dt->namedview->display_units && (dt->namedview->display_units->abbr == abbr))
1855 Geom::Rect const d = dt->get_display_area();
1863 if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) {
1867 dt->zoom_relative_keep_point(zoom_to, mul*zoom_inc);
1872 dt->zoom_relative( d.midpoint()[Geom::X], d.midpoint()[Geom::Y], mul*zoom_inc);
1880 if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) {
1884 dt->zoom_relative_keep_point(zoom_to, 1 / (mul*zoom_inc));
1889 dt->zoom_relative( d.midpoint()[Geom::X], d.midpoint()[Geom::Y], 1 / (mul*zoom_inc) );
1893 dt->zoom_absolute( d.midpoint()[Geom::X], d.midpoint()[Geom::Y], 1.0 * zcorr );
1896 dt->zoom_absolute( d.midpoint()[Geom::X], d.midpoint()[Geom::Y], 0.5 * zcorr );
1899 dt->zoom_absolute( d.midpoint()[Geom::X], d.midpoint()[Geom::Y], 2.0 * zcorr );
1902 dt->zoom_page();
1905 dt->zoom_page_width();
1908 dt->zoom_drawing();
1911 dt->zoom_selection();
1914 dt->next_zoom();
1917 dt->prev_zoom();
1920 dt->toggleRulers();
1923 dt->toggleScrollbars();
1926 dt->toggleToolbar("commands");
1929 dt->toggleToolbar("snaptoolbox");
1932 dt->toggleToolbar("toppanel");
1935 dt->toggleToolbar("toolbox");
1938 dt->toggleToolbar("panels");
1941 dt->toggleToolbar("statusbar");
1947 dt->toggleSnapGlobal();
1950 dt->toggleGrids();
1953 dt->fullscreen();
1956 dt->fullscreen();
1957 dt->focusMode(!dt->is_fullscreen());
1960 dt->focusMode(!dt->is_focusMode());
1969 dt->setDisplayModeNormal();
1972 dt->setDisplayModeNoFilters();
1975 dt->setDisplayModeOutline();
1978 dt->displayModeToggle();
1981 dt->setDisplayColorModeNormal();
1984 dt->setDisplayColorModeGrayscale();
1987 // dt->setDisplayColorModePrintColorsPreview();
1990 dt->displayColorModeToggle();
1993 dt->toggleColorProfAdjust();
1997 dt->_dlg_mgr->showDialog("IconPreviewPanel");
2004 dt->updateNow();
2019 SPDesktop *dt = sp_action_get_desktop(action);
2020 g_assert(dt->_dlg_mgr != NULL);
2025 dt->_dlg_mgr->showDialog("InkscapePreferences");
2029 dt->_dlg_mgr->showDialog("DocumentMetadata");
2033 dt->_dlg_mgr->showDialog("DocumentProperties");
2036 dt->_dlg_mgr->showDialog("FillAndStroke");
2039 dt->_dlg_mgr->showDialog("Glyphs");
2042 dt->_dlg_mgr->showDialog("Swatches");
2045 dt->_dlg_mgr->showDialog("Symbols");
2048 dt->_dlg_mgr->showDialog("Transformation");
2051 dt->_dlg_mgr->showDialog("AlignAndDistribute");
2054 dt->_dlg_mgr->showDialog("SprayOptionClass");
2057 dt->_dlg_mgr->showDialog("TextFont");
2060 dt->_dlg_mgr->showDialog("XmlTree");
2063 dt->_dlg_mgr->showDialog("Find");
2069 dt->_dlg_mgr->showDialog("SpellCheck");
2072 dt->_dlg_mgr->showDialog("Messages");
2075 dt->_dlg_mgr->showDialog("UndoHistory");
2082 dt->_dlg_mgr->showDialog("CloneTiler");
2086 dt->_dlg_mgr->showDialog("ObjectAttributes");
2090 dt->_dlg_mgr->showDialog("ObjectProperties");
2093 dt->_dlg_mgr->showDialog("InputDevices");
2096 dt->_dlg_mgr->showDialog("Export");
2099 dt->_dlg_mgr->showDialog("ExtensionEditor");
2102 dt->_dlg_mgr->showDialog("LayersPanel");
2105 dt->_dlg_mgr->showDialog("ObjectsPanel");
2108 dt->_dlg_mgr->showDialog("TagsPanel");
2111 dt->_dlg_mgr->showDialog("LivePathEffect");
2114 dt->_dlg_mgr->showDialog("FilterEffectsDialog");
2117 dt->_dlg_mgr->showDialog("SvgFontsDialog");
2120 dt->_dlg_mgr->showDialog("PrintColorsPreviewDialog");
2134 SPDesktop *dt = sp_action_get_desktop(action);
2135 g_assert(dt->_dlg_mgr != NULL);
2157 dt->_dlg_mgr->showDialog("Memory");
2323 SPDesktop *dt = sp_action_get_desktop(action);
2324 SPDocument *doc = dt->getDocument();
2329 verb_fit_canvas_to_selection(dt);
2332 verb_fit_canvas_to_drawing(dt);
2335 fit_canvas_to_selection_or_drawing(dt);
2389 SPDesktop *dt = sp_action_get_desktop(action);
2390 SPDocument *doc = dt->getDocument();
2395 unlock_all(dt);
2399 unlock_all_in_all_layers(dt);
2403 unhide_all(dt);
2407 unhide_all_in_all_layers(dt);