/inkscape/src/ |
H A D | desktop-events.cpp | 47 #include "sp-guide.h" 61 void sp_dt_ruler_snap_new_guide(SPDesktop *desktop, SPCanvasItem *guide, Geom::Point &event_dt, Geom::Point &normal); 90 static SPCanvasItem *guide = NULL; local 160 guide = sp_guideline_new(desktop->guides, NULL, event_dt, normal); 161 sp_guideline_set_color(SP_GUIDELINE(guide), desktop->namedview->guidehicolor); 193 // explicitly show guidelines; if I draw a guide, I want them on 199 sp_dt_ruler_snap_new_guide(desktop, guide, event_dt, normal); 201 sp_guideline_set_normal(SP_GUIDELINE(guide), normal); 202 sp_guideline_set_position(SP_GUIDELINE(guide), event_dt); 221 sp_dt_ruler_snap_new_guide(desktop, guide, event_d 294 SPGuide *guide = SP_GUIDE(data); local [all...] |
H A D | sp-guide.cpp | 32 #include "sp-guide.h" 35 #include <sp-guide-constraint.h> 82 document->addResource("guide", this); 94 this->document->removeResource("guide", this); 203 Inkscape::XML::Node *repr = xml_doc->createElement("sodipodi:guide"); 233 SPGuide *guide= SP_GUIDE(doc->getObjectByRepr(repr)); local 234 return guide; 267 std::set<SPObject *> current = doc->getResourceList("guide"); 269 SPGuide* guide = SP_GUIDE(*(current.begin())); local 270 sp_guide_remove(guide); 525 sp_guide_remove(SPGuide *guide) argument [all...] |
H A D | sp-item-notify-moveto.cpp | 7 #include <sp-guide.h> 15 * Called by sp_guide_moveto to indicate that the guide line corresponding to g has been moved, and 62 * guide send notifications in order of increasing importance.
|
H A D | sp-guide.h | 20 #include "sp-guide-attachment.h" 98 void sp_guide_remove(SPGuide *guide);
|
H A D | sp-namedview.cpp | 33 #include "sp-guide.h" 55 static void sp_namedview_show_single_guide(SPGuide* guide, bool show); 56 static void sp_namedview_lock_single_guide(SPGuide* guide, bool show); 226 this->readAttr( "inkscape:snap-from-guide" ); 954 static void sp_namedview_show_single_guide(SPGuide* guide, bool show) argument 957 guide->showSPGuide(); 959 guide->hideSPGuide(); 963 static void sp_namedview_lock_single_guide(SPGuide* guide, bool locked) argument 965 guide->set_locked(locked, true); 1100 sp_repr_set_boolean(this->getRepr(), "inkscape:guide 1179 SPGuide &guide = *(*it); local [all...] |
H A D | snap.h | 21 #include "guide-snapper.h" 312 * Wrapper method to make snapping of the guide origin a bit easier (i.e. simplifies the calling code). 316 * @param p Current position of the point on the guide that is to be snapped; will be overwritten by the position of the snap target if snapping has occurred. 317 * @param origin_or_vector Data used for tangential and perpendicular snapping. When rotating a guide the origin of the rotation is specified here, whereas when 318 * dragging a guide its vector is specified here 320 * @param freeze_angle If true (in which case origin is false), then the vector specified in origin_or_vector will not be touched, i.e. the guide will 321 * in all circumstances keep its angle. Otherwise the vector in origin_or_vector can be updated, meaning that the guide might take on the angle of a curve that 327 * Wrapper method to make snapping of the guide origin a bit easier (i.e. simplifies the calling code). 331 * @param p Current position of the point on the guide that is to be snapped; will be overwritten by the position of the snap target if snapping has occurred. 332 * @param guideline The guide tha 336 Inkscape::GuideSnapper guide; ///< guide snapper member in class:SnapManager [all...] |
H A D | snap.cpp | 34 #include "sp-guide.h" 43 guide(this, 0), 58 s.push_back(&guide); 391 g_warning("Dear developer, when snapping guides you shouldn't ask me to freeze the guide's vector when you haven't specified one"); 419 origin_or_vector = Geom::rot90(s.getTangent()); // then use it to update the normal of the guide 542 // search for the closest snapped guide line 548 // When freely snapping to a grid/guide/path, only one degree of freedom is eliminated 549 // Therefore we will try get fully constrained by finding an intersection with another grid/guide/path 552 // the grid/guide/path we're snapping to. This snappoint is therefore fully constrained, so there's 565 // search for the closest snapped intersection of a guide wit [all...] |
/inkscape/share/extensions/ |
H A D | setup_typography_canvas.py | 55 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi')) 56 guide.set("orientation", orientation) 57 guide.set("position", str(x)+","+str(y)) 58 guide.set(inkex.addNS('label', 'inkscape'), label)
|
H A D | guillotine.py | 59 This is used to sort the horizontal and vertical guide positions, 82 Returns all guide elements as an iterable collection 86 xpath = self.document.xpath("//sodipodi:guide", 89 guide = {} 92 guide['orientation'] = 'horizontal' 93 guide['position'] = y 94 guides.append(guide) 96 guide['orientation'] = 'vertical' 97 guide['position'] = x 98 guides.append(guide) [all...] |
H A D | empty_dvd_cover.py | 21 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi')) 22 guide.set("orientation", orientation) 23 guide.set("position", str(x)+","+str(y)) 25 # guide.set(inkex.addNS('label', 'inkscape'), label)
|
H A D | svgfont2layers.py | 35 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi')) 36 guide.set(inkex.addNS('label', 'inkscape'), label) 37 guide.set("orientation", "0,1") 38 guide.set("position", "0,"+str(y))
|
H A D | layers2svgfont.py | 30 guides = namedview.findall(inkex.addNS('guide', 'sodipodi')) 31 for guide in guides: 32 l=guide.get(inkex.addNS('label', 'inkscape')) 34 return int(guide.get("position").split(",")[index])
|
H A D | perfectboundcover.py | 132 for node in self.document.xpath('/svg:svg/sodipodi:namedview/sodipodi:guide', namespaces=inkex.NSS): 135 for guide in guides: 136 newguide = inkex.etree.Element(inkex.addNS('guide','sodipodi')) 137 newguide.set("orientation", guide[0]) 138 newguide.set("position", "%f" % (guide[1] * 96))
|
H A D | inkex.py | 263 guide = etree.SubElement( 265 addNS('guide','sodipodi'), atts) 266 return guide
|
/inkscape/src/ui/dialog/ |
H A D | guides.h | 51 GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop); 56 static void showDialog(SPGuide *guide, SPDesktop *desktop);
|
H A D | guides.cpp | 25 #include "sp-guide.h" 45 GuidelinePropertiesDialog::GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop) argument 46 : _desktop(desktop), _guide(guide), 48 _relative_toggle(_("Rela_tive change"), _("Move and/or rotate the guide relative to current settings")), 66 void GuidelinePropertiesDialog::showDialog(SPGuide *guide, SPDesktop *desktop) { argument 67 GuidelinePropertiesDialog dialog(guide, desktop); 139 _("Set guide properties")); 147 _("Delete guide"));
|
/inkscape/src/libcola/ |
H A D | gradient_projection.h | 30 guide(NULL), 38 void* guide; member in class:AlignmentConstraint
|
/inkscape/src/ui/tools/ |
H A D | measure-tool.cpp | 858 Inkscape::XML::Node *guide; local 859 guide = xml_doc->createElement("sodipodi:guide"); 863 guide->setAttribute("position", position.str().c_str() ); 864 guide->setAttribute("inkscape:color", "rgb(167,0,255)"); 865 guide->setAttribute("inkscape:label", label); 870 guide->setAttribute("orientation", angle_str.str().c_str()); 871 namedview->appendChild(guide); 872 Inkscape::GC::release(guide);
|