gui2/tstacked_widget: Add getter for the total number of layers

This commit is contained in:
Ignacio R. Morelle 2015-07-10 23:01:50 -03:00
parent 4854413f75
commit 86df4a9250
2 changed files with 10 additions and 0 deletions

View file

@ -148,4 +148,9 @@ void tstacked_widget::select_layer(const int layer)
}
}
unsigned int tstacked_widget::get_layer_count() const
{
return generator_->get_item_count();
}
} // namespace gui2

View file

@ -63,6 +63,11 @@ public:
*/
void select_layer(const int layer);
/**
* Gets the total number of layers.
*/
unsigned int get_layer_count() const;
private:
/**
* Finishes the building initialization of the widget.