Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::LayerSelector Class Referencefinal

#include <layer-selector.h>

Inheritance diagram for Inkscape::UI::Widget::LayerSelector:

Public Member Functions

 LayerSelector (SPDesktop *desktop=nullptr)
 
 ~LayerSelector () final
 
void setDesktop (SPDesktop *desktop)
 

Private Member Functions

void _layerChanged (SPGroup *layer)
 Selects the given layer in the widget.
 
void _layerModified ()
 If anything happens to the layer, refresh it.
 
void _selectLayer ()
 
void _hideLayer ()
 
void _lockLayer ()
 
void _layerChoose ()
 
Glib::ustring getThisCssClass () const
 

Private Attributes

SPDesktop_desktop = nullptr
 
SPGroup_layer = nullptr
 
Gtk::ToggleButton _eye_toggle
 
Gtk::ToggleButton _lock_toggle
 
Gtk::Button _layer_name
 
Gtk::Label _layer_label
 
Glib::RefPtr< Gtk::CssProvider > _label_style
 
AlternateIcons * _eye_label = nullptr
 
AlternateIcons * _lock_label = nullptr
 
sigc::scoped_connection _layer_changed
 
sigc::scoped_connection _hide_layer_connection
 
sigc::scoped_connection _lock_layer_connection
 
std::unique_ptr< Inkscape::XML::SignalObserver_observer
 

Detailed Description

Definition at line 42 of file layer-selector.h.

Constructor & Destructor Documentation

◆ LayerSelector()

◆ ~LayerSelector()

Inkscape::UI::Widget::LayerSelector::~LayerSelector ( )
final

Definition at line 121 of file layer-selector.cpp.

References setDesktop().

Member Function Documentation

◆ _hideLayer()

void Inkscape::UI::Widget::LayerSelector::_hideLayer ( )
private

◆ _layerChanged()

void Inkscape::UI::Widget::LayerSelector::_layerChanged ( SPGroup layer)
private

Selects the given layer in the widget.

Definition at line 141 of file layer-selector.cpp.

References _layer, _layerModified(), _observer, and SPGroup::set().

Referenced by setDesktop().

◆ _layerChoose()

void Inkscape::UI::Widget::LayerSelector::_layerChoose ( )
private

◆ _layerModified()

◆ _lockLayer()

void Inkscape::UI::Widget::LayerSelector::_lockLayer ( )
private

◆ _selectLayer()

void Inkscape::UI::Widget::LayerSelector::_selectLayer ( )
private

◆ getThisCssClass()

Glib::ustring Inkscape::UI::Widget::LayerSelector::getThisCssClass ( ) const
private

Definition at line 204 of file layer-selector.cpp.

Referenced by _layerModified(), and LayerSelector().

◆ setDesktop()

Member Data Documentation

◆ _desktop

SPDesktop* Inkscape::UI::Widget::LayerSelector::_desktop = nullptr
private

Definition at line 50 of file layer-selector.h.

Referenced by _hideLayer(), _layerChoose(), _layerModified(), _lockLayer(), and setDesktop().

◆ _eye_label

AlternateIcons* Inkscape::UI::Widget::LayerSelector::_eye_label = nullptr
private

Definition at line 59 of file layer-selector.h.

Referenced by _layerModified(), and LayerSelector().

◆ _eye_toggle

Gtk::ToggleButton Inkscape::UI::Widget::LayerSelector::_eye_toggle
private

Definition at line 53 of file layer-selector.h.

Referenced by _hideLayer(), _layerModified(), and LayerSelector().

◆ _hide_layer_connection

sigc::scoped_connection Inkscape::UI::Widget::LayerSelector::_hide_layer_connection
private

Definition at line 63 of file layer-selector.h.

Referenced by _layerModified(), and LayerSelector().

◆ _label_style

Glib::RefPtr<Gtk::CssProvider> Inkscape::UI::Widget::LayerSelector::_label_style
private

Definition at line 57 of file layer-selector.h.

Referenced by _layerModified(), and LayerSelector().

◆ _layer

SPGroup* Inkscape::UI::Widget::LayerSelector::_layer = nullptr
private

Definition at line 51 of file layer-selector.h.

Referenced by _layerChanged(), and _layerModified().

◆ _layer_changed

sigc::scoped_connection Inkscape::UI::Widget::LayerSelector::_layer_changed
private

Definition at line 62 of file layer-selector.h.

Referenced by setDesktop().

◆ _layer_label

Gtk::Label Inkscape::UI::Widget::LayerSelector::_layer_label
private

Definition at line 56 of file layer-selector.h.

Referenced by _layerModified(), and LayerSelector().

◆ _layer_name

Gtk::Button Inkscape::UI::Widget::LayerSelector::_layer_name
private

Definition at line 55 of file layer-selector.h.

Referenced by LayerSelector().

◆ _lock_label

AlternateIcons* Inkscape::UI::Widget::LayerSelector::_lock_label = nullptr
private

Definition at line 60 of file layer-selector.h.

Referenced by _layerModified(), and LayerSelector().

◆ _lock_layer_connection

sigc::scoped_connection Inkscape::UI::Widget::LayerSelector::_lock_layer_connection
private

Definition at line 64 of file layer-selector.h.

Referenced by _layerModified(), and LayerSelector().

◆ _lock_toggle

Gtk::ToggleButton Inkscape::UI::Widget::LayerSelector::_lock_toggle
private

Definition at line 54 of file layer-selector.h.

Referenced by _layerModified(), _lockLayer(), and LayerSelector().

◆ _observer

std::unique_ptr<Inkscape::XML::SignalObserver> Inkscape::UI::Widget::LayerSelector::_observer
private

Definition at line 65 of file layer-selector.h.

Referenced by _layerChanged(), and LayerSelector().


The documentation for this class was generated from the following files: