ifm::layout::TabbedContainer Class Reference

Inheritance diagram for ifm::layout::TabbedContainer:

ifm::layout::Container ifm::layout::Component

List of all members.


Detailed Description

Layout object representing a TabbedContainer.

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.
TabbedContainercopy () const
const ComponentListget_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

TabbedContainerDatam_data

Classes

class  TabbedContainerData


Member Typedef Documentation

typedef std::list<Component*> ifm::layout::Container::ComponentList [inherited]


Constructor & Destructor Documentation

ifm::layout::TabbedContainer::TabbedContainer ( int  id = ID_NONE,
const std::string &  name = "" 
)

ifm::layout::TabbedContainer::TabbedContainer ( const TabbedContainer other  ) 


Member Function Documentation

void ifm::layout::Container::add ( Component component  )  [inherited]

Adds a Component as a child of this Container.

It will be placed after any existing children.

Note:
Takes ownership of the pointer, do not delete it.

TabbedContainer * ifm::layout::TabbedContainer::copy (  )  const [virtual]

Returns:
A copy of this TabbedContainer layout.

Reimplemented from ifm::layout::Container.

const Container::ComponentList & ifm::layout::Container::get_children (  )  const [inherited]

Returns the list of child Components.

int ifm::layout::Container::get_id (  )  const [inherited]

Returns:
The ID for this Container.

std::string ifm::layout::Component::get_name (  )  const [inherited]

Returns:
The name of the component.

ALIGNMENT ifm::layout::Container::get_orientation (  )  const [inherited]

Returns:
The orientation for this Container.

int ifm::layout::TabbedContainer::get_selected_tab (  )  const

Returns:
Which tab is initially selected

component_type ifm::layout::Component::get_type (  )  const [inherited]

Returns:
The type of the Component.

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


Member Data Documentation

Reimplemented from ifm::layout::Container.


doxygen Get IFM - Interface Management System at SourceForge.net. Fast, secure and Free Open Source software downloads