- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UTabWidget Class Reference

A tab widget provides a stack of widgets which order may be changed via tabs. More...

#include <utabwidget.hpp>

Inheritance diagram for ufo::UTabWidget:

ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

void addTab (UWidget *child, const std::string &label)
void removeTab (int index)
std::string getTabText (int index) const
UWidgetgetTabWidget (int index) const
int getTabIndex (const std::string &label) const
int getTabIndex (UWidget *child) const
void setSelectedIndex (int index)
int getSelectedIndex () const
int getTabCount () const
USignal1< UTabWidget * > & sigSelectionChanged ()

Protected Member Functions

virtual void slotTabSelected (UTabBar *bar)

Detailed Description

A tab widget provides a stack of widgets which order may be changed via tabs.

Author:
Johannes Schmidt


Member Function Documentation

int ufo::UTabWidget::getTabIndex UWidget child  )  const
 

Returns the tab index for the given child (or -1).

int ufo::UTabWidget::getTabIndex const std::string &  label  )  const
 

Returns the index of the tab bar tab with the given label or -1 if no tab has this label.

std::string ufo::UTabWidget::getTabText int  index  )  const
 

Returns the label of the tab bar tab with the given index or "" if the index is out of range.

UWidget* ufo::UTabWidget::getTabWidget int  index  )  const
 

Returns the tab page with the given index or NULL if the index is out of range.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt