# synfigapp::SelectionManager Class Reference

`#include <selectionmanager.h>`

Inheritance diagram for synfigapp::SelectionManager:

List of all members.

## Public Types

typedef std::pair < synfig::Layer::Handle, synfig::String > | LayerParam
typedef std::list< LayerParam > | LayerParamList
typedef std::list < synfig::Layer::Handle > | LayerList
typedef std::list< ValueDesc > | ChildrenList

## Public Member Functions

virtual | ~SelectionManager ()
virtual int | get_selected_layer_count () const =0
| Returns the number of layers selected.
virtual LayerList | get_selected_layers () const =0
| Returns a list of the currently selected layers.
virtual synfig::Layer::Handle | get_selected_layer () const =0
| Returns the first layer selected or an empty handle if none are selected.
virtual void | set_selected_layers (const LayerList &layer_list)=0
| Sets which layers should be selected.
virtual void | set_selected_layer (const synfig::Layer::Handle &layer)=0
| Sets which layer should be selected. Empty handle if none.
virtual void | clear_selected_layers ()=0
| Clears the layer selection list.
virtual int | get_selected_children_count () const =0
| Returns the number of children selected.
virtual ChildrenList | get_selected_children () const =0
| Returns a list of the currently selected children.
virtual ChildrenList::value_type | get_selected_child () const =0
| Returns the first children selected or an empty handle if none are selected.
virtual void | set_selected_children (const ChildrenList &children_list)=0
| Sets which children should be selected.
virtual void | set_selected_child (const ChildrenList::value_type &children)=0
| Sets which children should be selected. Empty handle if none.
virtual void | clear_selected_children ()=0
| Clears the children selection list.
virtual int | get_selected_layer_parameter_count () const =0
| Returns the number of layer parameters selected.
virtual LayerParamList | get_selected_layer_parameters () const =0
| Returns a list of the currently selected layer parameters.
virtual LayerParam | get_selected_layer_parameter () const =0
| Returns the first layer parameter selected or an empty handle if none are selected.
virtual void | set_selected_layer_parameters (const LayerParamList &layer_param_list)=0
| Sets which layer parameters should be selected.
virtual void | set_selected_layer_param (const LayerParam &layer_param)=0
| Sets which layer parameter should be selected. Empty handle if none.
virtual void | clear_selected_layer_parameters ()=0
| Clears the layer parameter selection list.

## Member Typedef Documentation

typedef std::pair<synfig::Layer::Handle,synfig::String> synfigapp::SelectionManager::LayerParam

typedef std::list<LayerParam> synfigapp::SelectionManager::LayerParamList

typedef std::list<synfig::Layer::Handle> synfigapp::SelectionManager::LayerList

typedef std::list<ValueDesc> synfigapp::SelectionManager::ChildrenList

## Constructor & Destructor Documentation

virtual synfigapp::SelectionManager::~SelectionManager | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

virtual int synfigapp::SelectionManager::get_selected_layer_count | ( |  | ) | const`[pure virtual]`

Returns the number of layers selected.

Implemented in synfigapp::NullSelectionManager.

virtual LayerList synfigapp::SelectionManager::get_selected_layers | ( |  | ) | const`[pure virtual]`

Returns a list of the currently selected layers.

Implemented in synfigapp::NullSelectionManager.

virtual synfig::Layer::Handle synfigapp::SelectionManager::get_selected_layer | ( |  | ) | const`[pure virtual]`

Returns the first layer selected or an empty handle if none are selected.

Implemented in synfigapp::NullSelectionManager.

virtual void synfigapp::SelectionManager::set_selected_layers | ( | const LayerList & | layer_list | ) | `[pure virtual]`

Sets which layers should be selected.

virtual void synfigapp::SelectionManager::set_selected_layer | ( | const synfig::Layer::Handle & | layer | ) | `[pure virtual]`

Sets which layer should be selected. Empty handle if none.

Implemented in synfigapp::NullSelectionManager.

virtual void synfigapp::SelectionManager::clear_selected_layers | ( |  | ) | `[pure virtual]`

Clears the layer selection list.

Implemented in synfigapp::NullSelectionManager.

virtual int synfigapp::SelectionManager::get_selected_children_count | ( |  | ) | const`[pure virtual]`

Returns the number of children selected.

Implemented in synfigapp::NullSelectionManager.

virtual ChildrenList synfigapp::SelectionManager::get_selected_children | ( |  | ) | const`[pure virtual]`

Returns a list of the currently selected children.

Implemented in synfigapp::NullSelectionManager.

virtual ChildrenList::value_type synfigapp::SelectionManager::get_selected_child | ( |  | ) | const`[pure virtual]`

Returns the first children selected or an empty handle if none are selected.

Implemented in synfigapp::NullSelectionManager.

virtual void synfigapp::SelectionManager::set_selected_children | ( | const ChildrenList & | children_list | ) | `[pure virtual]`

Sets which children should be selected.

virtual void synfigapp::SelectionManager::set_selected_child | ( | const ChildrenList::value_type & | children | ) | `[pure virtual]`

Sets which children should be selected. Empty handle if none.

Implemented in synfigapp::NullSelectionManager.

virtual void synfigapp::SelectionManager::clear_selected_children | ( |  | ) | `[pure virtual]`

Clears the children selection list.

Implemented in synfigapp::NullSelectionManager.

virtual int synfigapp::SelectionManager::get_selected_layer_parameter_count | ( |  | ) | const`[pure virtual]`

Returns the number of layer parameters selected.

Implemented in synfigapp::NullSelectionManager.

virtual LayerParamList synfigapp::SelectionManager::get_selected_layer_parameters | ( |  | ) | const`[pure virtual]`

Returns a list of the currently selected layer parameters.

Implemented in synfigapp::NullSelectionManager.

virtual LayerParam synfigapp::SelectionManager::get_selected_layer_parameter | ( |  | ) | const`[pure virtual]`

Returns the first layer parameter selected or an empty handle if none are selected.

Implemented in synfigapp::NullSelectionManager.

virtual void synfigapp::SelectionManager::set_selected_layer_parameters | ( | const LayerParamList & | layer_param_list | ) | `[pure virtual]`

Sets which layer parameters should be selected.

virtual void synfigapp::SelectionManager::set_selected_layer_param | ( | const LayerParam & | layer_param | ) | `[pure virtual]`

Sets which layer parameter should be selected. Empty handle if none.

virtual void synfigapp::SelectionManager::clear_selected_layer_parameters | ( |  | ) | `[pure virtual]`

Clears the layer parameter selection list.

Implemented in synfigapp::NullSelectionManager.

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

- selectionmanager.h