# studio::LayerTree Class Reference

`#include <layertree.h>`

List of all members.

## Public Types

typedef studio::ColumnID | ColumnID
typedef std::list < synfig::Layer::Handle > | LayerList

## Public Member Functions

Gtk::HBox & | get_hbox ()
Gtk::TreeView & | get_layer_tree_view ()
Gtk::TreeView & | get_param_tree_view ()
const Gtk::TreeView & | get_layer_tree_view () const
const Gtk::TreeView & | get_param_tree_view () const
Glib::RefPtr< Gtk::TreeSelection > | get_selection ()
Glib::SignalProxy1< bool, GdkEvent * > | signal_event ()
| LayerTree ()
| ~LayerTree ()
void | set_model (Glib::RefPtr< LayerTreeStore > layer_tree_store_)
void | set_time_adjustment (Gtk::Adjustment &adjustment)
void | set_show_timetrack (bool x=true)
sigc::signal< void, synfig::Layer::Handle > & | signal_layer_toggle ()
| Signal called when layer is toggled.
sigc::signal< void, synfigapp::ValueDesc, synfig::ValueBase > & | signal_edited_value ()
| Signal called with a value has been edited.
sigc::signal< bool, int, Gtk::TreeRow, ColumnID > & | signal_layer_user_click ()
sigc::signal< bool, int, Gtk::TreeRow, ColumnID > & | signal_param_user_click ()
sigc::signal< void, synfigapp::ValueDesc, std::set < synfig::Waypoint, std::less < synfig::UniqueID > >, int > & | signal_waypoint_clicked_layertree ()
etl::handle < synfigapp::SelectionManager > | get_selection_manager ()
void | select_layer (synfig::Layer::Handle layer)
void | select_layers (const LayerList &layer_list)
void | select_all_children_layers (synfig::Layer::Handle layer)
void | select_all_children (Gtk::TreeModel::Children::iterator iter)
LayerList | get_selected_layers () const
synfig::Layer::Handle | get_selected_layer () const
void | clear_selected_layers ()

## Public Attributes

LayerTreeStore::Model | layer_model
LayerParamTreeStore::Model | param_model
synfig::Layer::Handle | last_top_selected_layer
Gtk::TreePath | last_top_selected_path

## Member Typedef Documentation

typedef studio::ColumnID studio::LayerTree::ColumnID

typedef std::list<synfig::Layer::Handle> studio::LayerTree::LayerList

## Constructor & Destructor Documentation

LayerTree::LayerTree | ( |  | ) |

References get_layer_tree_view(), get_param_tree_view(), get_selection(), studio::Widget_ValueBase::set_param_desc(), studio::Widget_ValueBase::set_sensitive(), studio::Widget_ValueBase::set_value(), studio::Widget_ValueBase::signal_activate(), and SMALL_BUTTON.

LayerTree::~LayerTree | ( |  | ) |

## Member Function Documentation

Gtk::HBox& studio::LayerTree::get_hbox | ( |  | ) | `[inline]`

Gtk::TreeView& studio::LayerTree::get_layer_tree_view | ( |  | ) | `[inline]`

Referenced by clear_selected_layers(), get_selected_layers(), get_selection(), studio::Dock_Layers::init_canvas_view_vfunc(), LayerTree(), select_all_children(), select_layer(), set_model(), and signal_event().

Gtk::TreeView& studio::LayerTree::get_param_tree_view | ( |  | ) | `[inline]`

Referenced by studio::Dock_Layers::init_canvas_view_vfunc(), LayerTree(), set_model(), and set_time_adjustment().

const Gtk::TreeView& studio::LayerTree::get_layer_tree_view | ( |  | ) | const`[inline]`

const Gtk::TreeView& studio::LayerTree::get_param_tree_view | ( |  | ) | const`[inline]`

Glib::RefPtr<Gtk::TreeSelection> studio::LayerTree::get_selection | ( |  | ) | `[inline]`

References get_layer_tree_view().

Referenced by get_selected_layers(), studio::LayerParamTreeStore::LayerParamTreeStore(), LayerTree(), studio::LayerActionManager::refresh(), studio::CanvasView::set_ext_widget(), and studio::LayerActionManager::set_layer_tree().

Glib::SignalProxy1< bool,GdkEvent* > studio::LayerTree::signal_event | ( |  | ) | `[inline]`

References get_layer_tree_view().

void LayerTree::set_model | ( | Glib::RefPtr< LayerTreeStore > | layer_tree_store_ | ) |

References synfigapp::Action::create(), get_layer_tree_view(), get_param_tree_view(), studio::CellRenderer_TimeTrack::set_canvas_interface(), and studio::LayerTreeStore::z_sorter().

Referenced by studio::Dock_Layers::init_canvas_view_vfunc().

void LayerTree::set_time_adjustment | ( | Gtk::Adjustment & | adjustment | ) |

References get_param_tree_view(), and studio::CellRenderer_TimeTrack::set_adjustment().

Referenced by studio::Dock_Layers::init_canvas_view_vfunc().

void LayerTree::set_show_timetrack | ( | bool | x = `true` | ) |

Referenced by studio::CanvasView::hide_timebar(), and studio::CanvasView::show_timebar().

sigc::signal<void,synfig::Layer::Handle>& studio::LayerTree::signal_layer_toggle | ( |  | ) | `[inline]`

Signal called when layer is toggled.

sigc::signal<void,synfigapp::ValueDesc,synfig::ValueBase>& studio::LayerTree::signal_edited_value | ( |  | ) | `[inline]`

Signal called with a value has been edited.

Referenced by studio::Dock_Layers::init_canvas_view_vfunc().

sigc::signal<bool,int, Gtk::TreeRow, ColumnID>& studio::LayerTree::signal_layer_user_click | ( |  | ) | `[inline]`

Referenced by studio::CanvasView::set_ext_widget().

sigc::signal<bool,int, Gtk::TreeRow, ColumnID>& studio::LayerTree::signal_param_user_click | ( |  | ) | `[inline]`

Referenced by studio::CanvasView::set_ext_widget().

sigc::signal<void,synfigapp::ValueDesc,std::set<synfig::Waypoint,std::less<synfig::UniqueID> >,int>& studio::LayerTree::signal_waypoint_clicked_layertree | ( |  | ) | `[inline]`

Referenced by studio::CanvasView::set_ext_widget().

etl::handle<synfigapp::SelectionManager> studio::LayerTree::get_selection_manager | ( |  | ) | `[inline]`

void LayerTree::select_layer | ( | synfig::Layer::Handle | layer | ) |

References get_layer_tree_view().

Referenced by select_layers().

void LayerTree::select_layers | ( | const LayerList & | layer_list | ) |

References select_layer().

void LayerTree::select_all_children_layers | ( | synfig::Layer::Handle | layer | ) |

References select_all_children().

Referenced by studio::CanvasView::popup_layer_menu(), and studio::LayerActionManager::refresh().

void LayerTree::select_all_children | ( | Gtk::TreeModel::Children::iterator | iter | ) |

References studio::LayerTreeStore::Model::children_lock, get_layer_tree_view(), and layer_model.

Referenced by select_all_children_layers().

LayerTree::LayerList LayerTree::get_selected_layers | ( |  | ) | const

References __layer_grabber(), get_layer_tree_view(), and get_selection().

Referenced by get_selected_layer(), studio::LayerParamTreeStore::rebuild(), and studio::LayerActionManager::refresh().

synfig::Layer::Handle LayerTree::get_selected_layer | ( |  | ) | const

References get_selected_layers().

Referenced by studio::LayerActionManager::refresh().

void LayerTree::clear_selected_layers | ( |  | ) |

References get_layer_tree_view().

## Member Data Documentation

LayerTreeStore::Model studio::LayerTree::layer_model

Referenced by select_all_children().

LayerParamTreeStore::Model studio::LayerTree::param_model

synfig::Layer::Handle studio::LayerTree::last_top_selected_layer

Gtk::TreePath studio::LayerTree::last_top_selected_path

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

- layertree.h
- layertree.cpp