A TabbedContainer is meant for holding Panels. It displays one tab per child and the user can select one tab at a time.
Public Types | |
typedef std::list< Component * > | ComponentList |
Public Member Functions | |
void | add (Component *component) |
Adds a Component as a child of this Container. | |
TabbedContainer * | copy () const |
const ComponentList & | get_children () const |
int | get_id () const |
std::string | get_name () const |
ALIGNMENT | get_orientation () const |
int | get_selected_tab () const |
component_type | get_type () const |
void | set_name (const std::string &name) |
void | set_orientation (ALIGNMENT orientation) |
void | set_selected_tab (int index) |
TabbedContainer (const TabbedContainer &other) | |
TabbedContainer (int id=ID_NONE, const std::string &name="") | |
Private Attributes | |
TabbedContainerData * | m_data |
Classes | |
class | TabbedContainerData |
typedef std::list<Component*> ifm::layout::Container::ComponentList [inherited] |
ifm::layout::TabbedContainer::TabbedContainer | ( | int | id = ID_NONE , |
|
const std::string & | name = "" | |||
) |
ifm::layout::TabbedContainer::TabbedContainer | ( | const TabbedContainer & | other | ) |
void ifm::layout::Container::add | ( | Component * | component | ) | [inherited] |
TabbedContainer * ifm::layout::TabbedContainer::copy | ( | ) | const [virtual] |
const Container::ComponentList & ifm::layout::Container::get_children | ( | ) | const [inherited] |
Returns the list of child Components.
int ifm::layout::Container::get_id | ( | ) | const [inherited] |
std::string ifm::layout::Component::get_name | ( | ) | const [inherited] |
ALIGNMENT ifm::layout::Container::get_orientation | ( | ) | const [inherited] |
int ifm::layout::TabbedContainer::get_selected_tab | ( | ) | const |
component_type ifm::layout::Component::get_type | ( | ) | const [inherited] |
void ifm::layout::Component::set_name | ( | const std::string & | name | ) | [inherited] |
Sets the name of this component.
void ifm::layout::Container::set_orientation | ( | ALIGNMENT | orientation | ) | [inherited] |
Sets the orientation for this Container.
void ifm::layout::TabbedContainer::set_selected_tab | ( | int | index | ) |
Specifies which tab should be initially selected
Reimplemented from ifm::layout::Container.