Searched defs:layer (Results 1 - 19 of 19) sorted by relevance

/inkscape/src/extension/internal/bitmap/
H A Dchannel.cpp22 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/
H A Dcontext-fns.cpp19 * 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 Dlayer-fns.cpp21 #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 Dlayer-model.cpp29 #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 Dlayer-manager.cpp19 #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 Dselection-describer.cpp21 #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...]
H A Dselection.cpp25 #include "layer-model.h"
528 SPObject *layer = _layers->layerForObject(*iter); local
529 layers.insert(layer);
H A Dverbs.cpp56 #include "layer-fns.h"
57 #include "layer-manager.h"
81 #include "ui/dialog/layer-properties.h"
180 * A class to encompass all of the verbs which deal with layer operations.
1275 _("Switch to next layer"));
1276 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Switched to next layer."));
1278 dt->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Cannot go past last layer."));
1287 _("Switch to previous layer"));
1288 dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Switched to previous layer."));
1290 dt->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Cannot go before first layer
1315 SPItem *layer=SP_ITEM(dt->currentLayer()); local
[all...]
H A Dsp-namedview.cpp246 this->readAttr( "inkscape:current-layer" );
859 SPObject *layer = NULL; local
863 layer = document->getObjectById(g_quark_to_string(nv->default_layer_id));
866 if ( !layer || !SP_IS_GROUP(layer) ) {
867 layer = NULL;
869 // if that didn't work out, look for the topmost layer
870 if (!layer) {
873 layer = iter;
877 if (layer) {
[all...]
H A Dstyle-internal.h816 // Each layer represents a layer of paint which can be a fill, a stroke, or markers.
840 layer[i] = SP_CSS_PAINT_ORDER_NORMAL;
852 layer[i] = rhs.layer[i];
868 SPPaintOrderLayer layer[PAINT_ORDER_LAYERS]; member in class:SPIPaintOrder
H A Ddesktop.cpp59 #include "layer-fns.h"
60 #include "layer-manager.h"
61 #include "layer-model.h"
88 static void _layer_activated(SPObject *layer, SPDesktop *desktop);
89 static void _layer_deactivated(SPObject *layer, SPDesktop *desktop);
192 /* Connect display key to layer model */
1649 * only change the layer for single selections, or what?
1655 SPObject *layer=desktop->layers->layerForObject(item); local
1656 if ( layer && layer !
1679 _layer_activated(SPObject *layer, SPDesktop *desktop) argument
1686 _layer_deactivated(SPObject *layer, SPDesktop *desktop) argument
[all...]
/inkscape/src/ui/widget/
H A Dstyle-subject.cpp111 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 Dlayer-selector.cpp2 * 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 Dlayer-properties.cpp16 #include "layer-properties.h"
24 #include "layer-manager.h"
111 SPDesktop *desktop, SPObject *layer)
117 dialog->_setLayer(layer);
136 _("Add layer"));
271 void LayerPropertiesDialog::_addLayer( SPDocument* doc, SPObject* layer, Gtk::TreeModel::Row* parentRow, SPObject* target, int level ) argument
274 if ( _desktop && _desktop->layer_manager && layer && (level < _maxNestDepth) ) {
275 unsigned int counter = _desktop->layer_manager->childCount(layer);
277 SPObject *child = _desktop->layer_manager->nthChildOf(layer, i);
280 g_message(" %3d layer
110 _showDialog(LayerPropertiesDialog::Strategy &strategy, SPDesktop *desktop, SPObject *layer) argument
431 _setLayer(SPObject *layer) argument
[all...]
H A Dlayer-properties.h35 #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 Dlayers.cpp32 #include "layer-fns.h"
33 #include "layer-manager.h"
204 // Make sure selected layer hasn't changed since the action was triggered
320 void LayersPanel::_updateLayer( SPObject *layer ) {
321 _store->foreach( sigc::bind<SPObject*>(sigc::mem_fun(*this, &LayersPanel::_checkForUpdated), layer) );
324 bool LayersPanel::_checkForUpdated(const Gtk::TreePath &/*path*/, const Gtk::TreeIter& iter, SPObject* layer) argument
328 if ( layer == row[_model->_colObject] )
331 * We get notified of layer update here (from layer->setLabel()) before layer
359 _checkForSelected(const Gtk::TreePath &path, const Gtk::TreeIter& iter, SPObject* layer) argument
400 _addLayer( SPDocument* doc, SPObject* layer, Gtk::TreeModel::Row* parentRow, SPObject* target, int level ) argument
[all...]
/inkscape/share/extensions/
H A Ddxf_input.py51 node = inkex.etree.SubElement(layer, 'text', attribs)
80 inkex.etree.SubElement(layer, 'path', attribs)
112 inkex.etree.SubElement(layer, 'path', attribs)
116 inkex.etree.SubElement(layer, 'path', attribs)
120 inkex.etree.SubElement(layer, 'path', attribs)
145 inkex.etree.SubElement(layer, 'path', attribs)
189 inkex.etree.SubElement(layer, 'path', attribs)
243 inkex.etree.SubElement(layer, 'path', attribs)
261 inkex.etree.SubElement(layer, 'path', attribs)
273 node = inkex.etree.SubElement(layer, 'tex
481 layer = block variable
485 layer = layer_nodes[vals[groups['8']][0]] variable
[all...]
/inkscape/src/widgets/
H A Dsp-xmlview-tree.cpp260 const gchar *layer = repr->attribute("inkscape:label"); local
262 if (new_value && layer) {
263 label = g_strdup_printf ("<%s id=\"%s\" inkscape:label=\"%s\">", repr->name(), new_value, layer);
/inkscape/src/extension/implementation/
H A Dscript.cpp775 //Check if it has a default layer set up
776 SPObject *layer = NULL; local
781 //If so, get that layer
784 layer = document->getObjectById(g_quark_to_string(nv->default_layer_id));
790 //If that layer exists,
791 if (layer) {
792 //set the current layer
793 desktop->setCurrentLayer(layer);
925 /** \todo Restore correct layer */

Completed in 56 milliseconds