Lines Matching defs:desktop

41 #include "desktop.h"
64 void sp_selected_path_boolop(Inkscape::Selection *selection, SPDesktop *desktop, bool_op bop, const unsigned int verb=SP_VERB_NONE, const Glib::ustring description="");
65 void sp_selected_path_do_offset(SPDesktop *desktop, bool expand, double prefOffset);
66 void sp_selected_path_create_offset_object(SPDesktop *desktop, int expand, bool updating);
69 sp_selected_path_union(Inkscape::Selection *selection, SPDesktop *desktop)
71 sp_selected_path_boolop(selection, desktop, bool_op_union, SP_VERB_SELECTION_UNION, _("Union"));
75 sp_selected_path_union_skip_undo(Inkscape::Selection *selection, SPDesktop *desktop)
77 sp_selected_path_boolop(selection, desktop, bool_op_union, SP_VERB_NONE, _("Union"));
81 sp_selected_path_intersect(Inkscape::Selection *selection, SPDesktop *desktop)
83 sp_selected_path_boolop(selection, desktop, bool_op_inters, SP_VERB_SELECTION_INTERSECT, _("Intersection"));
87 sp_selected_path_diff(Inkscape::Selection *selection, SPDesktop *desktop)
89 sp_selected_path_boolop(selection, desktop, bool_op_diff, SP_VERB_SELECTION_DIFF, _("Difference"));
93 sp_selected_path_diff_skip_undo(Inkscape::Selection *selection, SPDesktop *desktop)
95 sp_selected_path_boolop(selection, desktop, bool_op_diff, SP_VERB_NONE, _("Difference"));
99 sp_selected_path_symdiff(Inkscape::Selection *selection, SPDesktop *desktop)
101 sp_selected_path_boolop(selection, desktop, bool_op_symdiff, SP_VERB_SELECTION_SYMDIFF, _("Exclusion"));
104 sp_selected_path_cut(Inkscape::Selection *selection, SPDesktop *desktop)
106 sp_selected_path_boolop(selection, desktop, bool_op_cut, SP_VERB_SELECTION_CUT, _("Division"));
110 sp_selected_path_cut_skip_undo(Inkscape::Selection *selection, SPDesktop *desktop)
112 sp_selected_path_boolop(selection, desktop, bool_op_cut, SP_VERB_NONE, _("Division"));
116 sp_selected_path_slice(Inkscape::Selection *selection, SPDesktop *desktop)
118 sp_selected_path_boolop(selection, desktop, bool_op_slice, SP_VERB_SELECTION_SLICE, _("Cut path"));
122 // If desktop == NULL, errors will be shown on stderr
124 boolop_display_error_message(SPDesktop *desktop, Glib::ustring const &msg)
126 if (desktop) {
127 desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, msg);
332 // boolean operations on the desktop
335 sp_selected_path_boolop(Inkscape::Selection *selection, SPDesktop *desktop, bool_op bop, const unsigned int verb, const Glib::ustring description)
342 boolop_display_error_message(desktop, _("Select <b>at least 2 paths</b> to perform a boolean operation."));
346 boolop_display_error_message(desktop, _("Select <b>at least 1 path</b> to perform a boolean union."));
363 boolop_display_error_message(desktop, _("Unable to determine the <b>z-order</b> of the objects selected for difference, XOR, division, or path cut."));
378 boolop_display_error_message(desktop, _("Unable to determine the <b>z-order</b> of the objects selected for difference, XOR, division, or path cut."));
408 boolop_display_error_message(desktop, _("One of the objects is <b>not a path</b>, cannot perform boolean operation."));
1148 sp_selected_path_outline(SPDesktop *desktop)
1150 Inkscape::Selection *selection = desktop->getSelection();
1153 desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select <b>stroked path(s)</b> to convert stroke to path."));
1341 SPDocument * doc = desktop->getDocument();
1480 SPItem *newitem = (SPItem *) desktop->getDocument()->getObjectByRepr(repr);
1510 DocumentUndo::done(desktop->getDocument(), SP_VERB_SELECTION_OUTLINE,
1514 desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No stroked paths</b> in the selection."));
1521 sp_selected_path_offset(SPDesktop *desktop)
1526 sp_selected_path_do_offset(desktop, true, prefOffset);
1529 sp_selected_path_inset(SPDesktop *desktop)
1534 sp_selected_path_do_offset(desktop, false, prefOffset);
1538 sp_selected_path_offset_screen(SPDesktop *desktop, double pixels)
1540 sp_selected_path_do_offset(desktop, true, pixels / desktop->current_zoom());
1544 sp_selected_path_inset_screen(SPDesktop *desktop, double pixels)
1546 sp_selected_path_do_offset(desktop, false, pixels / desktop->current_zoom());
1550 void sp_selected_path_create_offset_object_zero(SPDesktop *desktop)
1552 sp_selected_path_create_offset_object(desktop, 0, false);
1555 void sp_selected_path_create_offset(SPDesktop *desktop)
1557 sp_selected_path_create_offset_object(desktop, 1, false);
1559 void sp_selected_path_create_inset(SPDesktop *desktop)
1561 sp_selected_path_create_offset_object(desktop, -1, false);
1564 void sp_selected_path_create_updating_offset_object_zero(SPDesktop *desktop)
1566 sp_selected_path_create_offset_object(desktop, 0, true);
1569 void sp_selected_path_create_updating_offset(SPDesktop *desktop)
1571 sp_selected_path_create_offset_object(desktop, 1, true);
1573 void sp_selected_path_create_updating_inset(SPDesktop *desktop)
1575 sp_selected_path_create_offset_object(desktop, -1, true);
1578 void sp_selected_path_create_offset_object(SPDesktop *desktop, int expand, bool updating)
1581 Inkscape::Selection *selection = desktop->getSelection();
1585 desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("Selected object is <b>not a path</b>, cannot inset/outset."));
1673 DocumentUndo::done(desktop->getDocument(),
1687 Inkscape::XML::Document *xml_doc = desktop->doc()->getReprDoc();
1721 SPItem *nitem = reinterpret_cast<SPItem *>(desktop->getDocument()->getObjectByRepr(repr));
1740 DocumentUndo::done(desktop->getDocument(),
1764 sp_selected_path_do_offset(SPDesktop *desktop, bool expand, double prefOffset)
1766 Inkscape::Selection *selection = desktop->getSelection();
1769 desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select <b>path(s)</b> to inset/outset."));
1928 Inkscape::XML::Document *xml_doc = desktop->doc()->getReprDoc();
1943 SPItem *newitem = (SPItem *) desktop->getDocument()->getObjectByRepr(repr);
1960 DocumentUndo::done(desktop->getDocument(),
1964 desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No paths</b> to inset/outset in the selection."));
1971 sp_selected_path_simplify_items(SPDesktop *desktop,
1980 sp_selected_path_simplify_item(SPDesktop *desktop,
1993 return sp_selected_path_simplify_items(desktop, selection, items,
2049 Inkscape::XML::Document *xml_doc = desktop->doc()->getReprDoc();
2086 SPItem *newitem = (SPItem *) desktop->getDocument()->getObjectByRepr(repr);
2115 sp_selected_path_simplify_items(SPDesktop *desktop,
2145 desktop->setWaitingCursor();
2167 desktop->messageStack()->flash(Inkscape::IMMEDIATE_MESSAGE, message);
2171 didSomething |= sp_selected_path_simplify_item(desktop, selection, item,
2175 desktop->clearWaitingCursor();
2178 desktop->messageStack()->flashF(Inkscape::NORMAL_MESSAGE, _("<b>%d</b> paths simplified."), pathsSimplified);
2185 sp_selected_path_simplify_selection(SPDesktop *desktop, float threshold, bool justCoalesce,
2188 Inkscape::Selection *selection = desktop->getSelection();
2191 desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE,
2198 bool didSomething = sp_selected_path_simplify_items(desktop, selection,
2205 DocumentUndo::done(desktop->getDocument(), SP_VERB_SELECTION_SIMPLIFY,
2208 desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No paths</b> to simplify in the selection."));
2218 sp_selected_path_simplify(SPDesktop *desktop)
2249 sp_selected_path_simplify_selection(desktop, simplifyThreshold,