Lines Matching refs:layer
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 = *iter;
273 // Debug::EventTracker<DebugLayerNote> tracker(Util::format("Examining %s", layer->label()));
277 if ( root->isAncestorOf(layer) ) {
279 for ( SPObject* curr = layer; curr && (curr != root) && needsAdd; curr = curr->parent ) {
283 // If we have a layer-group as the one or a parent, ensure it is listed as a valid layer.
290 // If a non-layer group is a parent of layer groups, then show it also as a layer.
303 if ( !includes(layer) ) {
304 layersToAdd.insert(SP_GROUP(layer));
315 SPGroup* layer = *it;
321 SPObject const *higher = layer;
327 // Debug::EventTracker<DebugAddLayer> tracker(*layer);
329 sigc::connection connection = layer->connectModified(sigc::mem_fun(*this, &LayerManager::_objectModified));
331 LayerWatcher *eye = new LayerWatcher(this, layer, connection);
333 layer->getRepr()->addObserver(*eye);
335 _addOne(layer);
342 void LayerManager::_selectedLayerChanged(SPObject *layer)
345 _layer_changed_signal.emit(layer);