Lines Matching defs:layer
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 for the desktop.
238 /** Selects the given layer in the dropdown selector.
240 void LayerSelector::_selectLayer(SPObject *layer) {
262 if (layer) {
263 List<SPObject &> hierarchy=reverse_list<SPObject::ParentIterator>(layer, root);
264 if ( layer == root ) {
274 column_matches_object(_model_columns.object, *layer)
281 _layer = layer;
285 if ( !layer || layer == root ) {
292 _visibility_toggle.set_active(( SP_IS_ITEM(layer) ? SP_ITEM(layer)->isHidden() : false ));
294 _lock_toggle.set_active(( SP_IS_ITEM(layer) ? SP_ITEM(layer)->isLocked() : false ));
302 /** Sets the current desktop layer to the actively selected layer.
306 SPObject *layer=_selector.get_active()->get_value(_model_columns.object);
307 if ( _desktop && layer ) {
311 _desktop->layer_manager->setCurrentLayer(layer);
362 SPObject *layer( hierarchy ? &*hierarchy : NULL );
366 if ( &*siblings == layer ) {
367 _buildSiblingEntries(depth+1, *layer, rest(hierarchy));
393 if ( mode && !std::strcmp(mode, "layer") ) {
400 if ( mode && !std::strcmp(mode, "layer") ) {
410 if ( mode && !std::strcmp(mode, "layer") ) {
445 SPObject *layer = _desktop ? _desktop->currentLayer() : 0;
446 if ( layer ) {
447 bool wantedValue = ( SP_IS_ITEM(layer) ? SP_ITEM(layer)->isLocked() : false );
451 wantedValue = ( SP_IS_ITEM(layer) ? SP_ITEM(layer)->isHidden() : false );
460 /** Builds and appends a row in the layer model object.
475 SPObject *layer=_desktop->currentLayer();
476 if ( (&object == layer) || (&object == layer->parent) ) {
539 /** Formats the label for a given layer row
553 SPObject *layer=( _desktop ? _desktop->currentLayer() : NULL );
556 bool isancestor = !( (layer && (object->parent == layer->parent)) || ((layer == root) && (object->parent == root)));
558 bool iscurrent = ( (object == layer) && (object != root) );
602 lock? _("Lock layer") : _("Unlock layer"));
610 hide? _("Hide layer") : _("Unhide layer"));