/inkscape/share/extensions/ |
H A D | webslicer_effect.py | 36 # Test if webslicer-layer layer existis 37 layer = self.document.xpath( 38 '//*[@id="webslicer-layer" and @inkscape:groupmode="layer"]', 40 if len(layer) is 0: 42 # Create a new layer 43 layer = inkex.etree.SubElement(self.document.getroot(), 'g') 44 layer.set('id', 'webslicer-layer') [all...] |
H A D | new_glyph_layer.py | 46 # Create a new layer. 47 layer = inkex.etree.SubElement(svg, 'g') 48 layer.set(inkex.addNS('label', 'inkscape'), u'GlyphLayer-'+char) 49 layer.set(inkex.addNS('groupmode', 'inkscape'), 'layer') 50 layer.set('style', 'display:none') #initially not visible 53 # Move selection to the newly created layer 55 layer.append(node)
|
H A D | synfig_fileformat.py | 201 def paramType(layer, param, value=None): 202 if layer in layers.keys(): 203 layer_params = layers[layer] 207 raise Exception, "Invalid parameter type for layer" 209 # Unknown layer, try to determine parameter type based on value 211 raise Exception, "No information for given layer" 236 def defaultLayerVersion(layer): 237 if layer in layer_versions.keys(): 238 return layer_versions[layer] 242 def defaultLayerParams(layer) [all...] |
H A D | dm2svg.py | 36 layer = 'layer1' 38 svg_element = '<g inkscape:groupmode="layer" id="%s">' % layer 47 # Emit the current element and close the last layer 51 # Start a new layer 52 layer = 'layer%d' % (ord(f.read(1)) + 1) 54 svg_element = '<g inkscape:groupmode="layer" id="%s">' % layer
|
H A D | tar_layers.py | 71 for (name, layer) in self.layers(newdoc): 72 layer.getparent().remove(layer) 83 return node.tag == GROUP and node.attrib.get(GROUPMODE,'').lower() == 'layer' 107 layer = copy.deepcopy(_layer) 109 template.getroot().replace(previous, layer) 111 template.getroot().append(layer) 112 previous = layer
|
H A D | synfig_output.py | 41 """A synfig document, with commands for adding layers and layer parameters""" 191 """Build an empty layer""" 193 layer = self.root_canvas.makeelement("layer") 195 layer = etree.SubElement(canvas, "layer") 197 layer.set("type", layer_type) 198 layer.set("desc", desc) 200 layer.set("active", "true") 202 layer [all...] |
H A D | draw_from_triangle.py | 325 layer = inkex.etree.SubElement(self.current_layer, 'g', group_attribs) 362 draw_SVG_circle(0, pt, params, st, 'Circumcentre', layer) 364 draw_SVG_circle(r, pt, params, st, 'Circumcircle', layer) 369 draw_SVG_circle(0, pt, params, st, 'Incentre', layer) 372 draw_SVG_circle(r, pt, params, st, 'Incircle', layer) 379 draw_SVG_tri(v_mat, params, st,'ContactTriangle',layer) 386 draw_SVG_tri(v_mat, params, st,'ExtouchTriangle',layer) 390 draw_SVG_circle(0, pt, params, st, 'Orthocentre', layer) 394 draw_SVG_tri(v_mat, params, st,'OrthicTriangle',layer) 398 draw_SVG_circle(0, pt, params, st, 'Centroid', layer) [all...] |
H A D | svgfont2layers.py | 92 layer = inkex.etree.SubElement(self.svg, inkex.addNS('g', 'svg')) 93 layer.set(inkex.addNS('label', 'inkscape'), "GlyphLayer-" + unicode_char) 94 layer.set(inkex.addNS('groupmode', 'inkscape'), "layer") 98 layer.set("style", "display:none") 121 new_path = inkex.etree.SubElement(layer, inkex.addNS('path', 'svg')) 132 path = inkex.etree.SubElement(layer, inkex.addNS('path', 'svg'))
|
H A D | layout_nup.py | 218 layer = sub(root, 'g', {'id':'guidelayer', 219 'inkscape:groupmode':'layer'}) 224 sub(layer, *padbox) 228 makeClones(layer, 'innerguide') 233 sub(layer, *margbox) 237 makeClones(layer, 'outerguide') 241 layer = sub(root, 'g', {'id':'cutlayer', 242 'inkscape:groupmode':'layer'}) 246 group = sub(layer, 'g', id='cross') 266 makeClones(layer, 'cros [all...] |
H A D | webslicer_create_group.py | 55 self.layer = self.get_slicer_layer() 56 if is_empty(self.layer): 59 self.layer_descendants = self.get_descendants_in_array(self.layer) 76 inkex.errormsg(_('Oops... The element "%s" is not in the Web Slicer layer') % id)
|
H A D | dxf_outlines.py | 96 self.layer = '0' # mandatory layer 107 self.dxf_add(" 0\nLINE\n 5\n%x\n100\nAcDbEntity\n 8\n%s\n 62\n%d\n100\nAcDbLine\n" % (self.handle, self.layer, self.color)) 115 self.layer_LWPOLY = self.layer 132 self.dxf_add(" 0\nSPLINE\n 5\n%x\n100\nAcDbEntity\n 8\n%s\n 62\n%d\n100\nAcDbSpline\n" % (self.handle, self.layer, self.color)) 149 self.layer_ROBO = self.layer 285 if group.get(inkex.addNS('groupmode', 'inkscape')) == 'layer': 292 layer = group.get(inkex.addNS('label', 'inkscape')) 293 if self.options.layer_name and self.options.layer_option and self.options.layer_option=='name' and not layer.lower() in self.options.layer_name: 296 layer [all...] |
H A D | nicechart.py | 30 # don't create a new layer for each chart, but a normal group 280 # Create a new layer. 281 layer = inkex.etree.SubElement(svg, 'g') 282 layer.set(inkex.addNS('label', 'inkscape'), 'Chart-Layer: %s' % (what)) 283 layer.set(inkex.addNS('groupmode', 'inkscape'), 'layer') 431 layer.append(shadow) 432 layer.append(rect) 434 layer.append(text) 454 layer [all...] |
H A D | gcodetools.py | 31 10 Jun Put 3D into a separate layer called 3D, created unless it already exists 1697 def draw(self, group, style, layer, transform, num = 0, reverse_angle = 1): 1698 st = P(gcodetools.transform(self.st.to_list(), layer, True)) 1699 c = P(gcodetools.transform(self.c.to_list(), layer, True)) 1753 def draw(self, group, style, layer, transform, num = 0, reverse_angle = 1): 1754 st = gcodetools.transform(self.st.to_list(), layer, True) 1755 end = gcodetools.transform(self.end.to_list(), layer, True) 1837 def draw(self, layer, group=None, style=styles["biarc_style"]): 1849 gcodetools.preview_groups = { layer: inkex.etree.SubElement( gcodetools.layers[min(1,len(gcodetools.layers)-1)], inkex.addNS('g','svg'), {"gcodetools": "Preview group"} ) } 1850 elif layer no [all...] |
H A D | printing_marks.py | 279 # Test if printing-marks layer existis 280 layer = self.document.xpath( 281 '//*[@id="printing-marks" and @inkscape:groupmode="layer"]', 283 if layer: svg.remove(layer[0]) # remove if it existis 284 # Create a new layer 285 layer = inkex.etree.SubElement(svg, 'g') 286 layer.set('id', 'printing-marks') 287 layer.set(inkex.addNS('label', 'inkscape'), 'Printing Marks') 288 layer [all...] |
/inkscape/src/ |
H A D | layer-fns.cpp | 21 #include "layer-fns.h" 34 /** Finds the next sibling layer for a \a layer 38 SPObject *next_sibling_layer(SPObject *layer) { argument 42 layer->getNext(), NULL, &is_layer 46 /** Finds the previous sibling layer for a \a layer 50 SPObject *previous_sibling_layer(SPObject *layer) { argument 54 layer->parent->firstChild(), layer, 64 first_descendant_layer(SPObject *layer) argument 84 last_child_layer(SPObject *layer) argument 92 last_elder_layer(SPObject *root, SPObject *layer) argument 115 next_layer(SPObject *root, SPObject *layer) argument 142 previous_layer(SPObject *root, SPObject *layer) argument 171 create_layer(SPObject *root, SPObject *layer, LayerRelativePosition position) argument [all...] |
H A D | layer-fns.h | 25 SPObject *create_layer(SPObject *root, SPObject *layer, LayerRelativePosition position); 27 SPObject *next_layer(SPObject *root, SPObject *layer); 29 SPObject *previous_layer(SPObject *root, SPObject *layer);
|
H A D | context-fns.cpp | 19 * Check to see if the current layer is both unhidden and unlocked. If not, 24 * \return true if the current layer is both unhidden and unlocked, otherwise false. 29 SPItem const *layer = SP_ITEM(desktop->currentLayer()); local 31 if ( !layer || desktop->itemIsHidden(layer) ) { 33 _("<b>Current layer is hidden</b>. Unhide it to be able to draw on it.")); 37 if ( !layer || layer->isLocked() ) { 39 _("<b>Current layer is locked</b>. Unlock it to be able to draw on it.")); 48 * Check to see if the current layer i 58 SPItem const *layer = SP_ITEM(desktop->currentLayer()); local [all...] |
H A D | layer-manager.cpp | 19 #include "layer-manager.h" 90 : DebugLayer(Util::share_static_string("layer-note")) 109 _addProperty("layer", stringify_obj(obj)); 116 : DebugLayerObj(obj, Util::share_static_string("add-layer")) 163 * Return a unique layer name similar to param label 165 * the next unique larger number suffix not already used for any layer name 194 std::set<SPObject *> layers = _document->getResourceList("layer"); 233 _resource_connection = document->connectResourcesChanged("layer", sigc::mem_fun(*this, &LayerManager::_rebuild)); 263 std::set<SPObject *> layers = _document->getResourceList("layer"); 272 SPObject *layer local 315 SPGroup* layer = *it; local 342 _selectedLayerChanged(SPObject *layer) argument [all...] |
H A D | layer-model.cpp | 29 #include "layer-fns.h" 30 #include "layer-model.h" 42 static void _layer_activated(SPObject *layer, Inkscape::LayerModel *layer_model); 43 static void _layer_deactivated(SPObject *layer, Inkscape::LayerModel *layer_model); 88 * Returns current root (=bottom) layer. 96 * Returns current top layer. 104 * Resets the bottom layer to the current root 113 * Sets the current layer of the desktop. 115 * Make \a object the top layer. 145 // Dont lock any ancestors, since that would in turn lock the layer a 231 _layer_activated(SPObject *layer, Inkscape::LayerModel *layer_model) argument 238 _layer_deactivated(SPObject *layer, Inkscape::LayerModel *layer_model) argument [all...] |
H A D | selection-describer.cpp | 21 #include "layer-model.h" 132 SPObject *layer = selection->layers()->layerForObject(item); local 137 if (layer == root) { 139 } else if(!layer) { 144 if (layer->label()) { 145 layer_label = layer->label(); 148 layer_label = layer->defaultLabel(); 152 layer_name = g_strdup_printf(_("layer <b>%s</b>"), quoted_layer_label); 154 layer_name = g_strdup_printf(_("layer <b><i>%s</i></b>"), quoted_layer_label); 174 if (layer [all...] |
/inkscape/src/extension/internal/bitmap/ |
H A D | channel.cpp | 22 Magick::ChannelType layer = Magick::UndefinedChannel; local 23 if (!strcmp(_layerName, "Red Channel")) layer = Magick::RedChannel; 24 else if (!strcmp(_layerName, "Green Channel")) layer = Magick::GreenChannel; 25 else if (!strcmp(_layerName, "Blue Channel")) layer = Magick::BlueChannel; 26 else if (!strcmp(_layerName, "Cyan Channel")) layer = Magick::CyanChannel; 27 else if (!strcmp(_layerName, "Magenta Channel")) layer = Magick::MagentaChannel; 28 else if (!strcmp(_layerName, "Yellow Channel")) layer = Magick::YellowChannel; 29 else if (!strcmp(_layerName, "Black Channel")) layer = Magick::BlackChannel; 30 else if (!strcmp(_layerName, "Opacity Channel")) layer = Magick::OpacityChannel; 31 else if (!strcmp(_layerName, "Matte Channel")) layer [all...] |
/inkscape/src/ui/widget/ |
H A D | style-subject.cpp | 111 void StyleSubject::CurrentLayer::_setLayer(SPObject *layer) { argument 117 _element = layer; 118 if (layer) { 119 sp_object_ref(layer, NULL); 120 _layer_release = layer->connectRelease(sigc::hide(sigc::bind(sigc::mem_fun(*this, &CurrentLayer::_setLayer), (SPObject *)NULL))); 121 _layer_modified = layer->connectModified(sigc::hide(sigc::hide(sigc::mem_fun(*this, &CurrentLayer::_emitChanged)))); 142 SPObject *layer = _getLayer(); local 143 if (layer && SP_IS_ITEM(layer)) { 144 return SP_ITEM(layer) 162 SPObject *layer = _getLayer(); local [all...] |
H A D | layer-selector.cpp | 2 * Inkscape::Widgets::LayerSelector - layer selector widget 20 #include "ui/dialog/layer-properties.h" 27 #include "layer-manager.h" 30 #include "ui/widget/layer-selector.h" 90 * initalizes the layer dropdown selector with a label renderer, 91 * and hooks up signal for setting the desktop layer when the 116 _visibility_toggle.set_tooltip_text(_("Toggle current layer visibility")); 136 _lock_toggle.set_tooltip_text(_("Lock or unlock current layer")); 139 _selector.set_tooltip_text(_("Current layer")); 166 * Then it selects the current layer fo 240 _selectLayer(SPObject *layer) argument 306 SPObject *layer=_selector.get_active()->get_value(_model_columns.object); local 445 SPObject *layer = _desktop ? _desktop->currentLayer() : 0; local 475 SPObject *layer=_desktop->currentLayer(); local 553 SPObject *layer=( _desktop ? _desktop->currentLayer() : NULL ); local [all...] |
/inkscape/src/ui/dialog/ |
H A D | layer-properties.h | 35 #include "layer-fns.h" 36 #include "ui/widget/layer-selector.h" 51 static void showRename(SPDesktop *desktop, SPObject *layer) { argument 52 _showDialog(Rename::instance(), desktop, layer); local 54 static void showCreate(SPDesktop *desktop, SPObject *layer) { argument 55 _showDialog(Create::instance(), desktop, layer); local 57 static void showMove(SPDesktop *desktop, SPObject *layer) { argument 58 _showDialog(Move::instance(), desktop, layer); local 154 void _setLayer(SPObject *layer); 156 static void _showDialog(Strategy &strategy, SPDesktop *desktop, SPObject *layer); [all...] |
H A D | layers.h | 2 * A simple dialog for layer UI. 88 void _updateLayer(SPObject *layer); 89 bool _checkForUpdated(const Gtk::TreePath &path, const Gtk::TreeIter& iter, SPObject* layer); 91 void _selectLayer(SPObject *layer); 92 bool _checkForSelected(const Gtk::TreePath& path, const Gtk::TreeIter& iter, SPObject* layer); 95 void _addLayer( SPDocument* doc, SPObject* layer, Gtk::TreeModel::Row* parentRow, SPObject* target, int level ); 99 // Hooked to the layer manager:
|