YDumbTab Class Reference

#include <YDumbTab.h>

Inheritance diagram for YDumbTab:

YContainerWidget YWidget List of all members.

Public Member Functions

 YDumbTab (const YWidgetOpt &opt)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newvalue)
YCPValue queryWidget (const YCPSymbol &property)
void addTab (const YCPValue &id, const YCPString &label, bool selected)

Protected Member Functions

int findTab (const YCPValue &id)
virtual void addTab (const YCPString &label)
virtual int getSelectedTabIndex ()
virtual void setSelectedTab (int index)

Protected Attributes

vector< Tab_tabs

Classes

class  Tab

Detailed Description

Implementation of the YDumbTab widget


Constructor & Destructor Documentation

YDumbTab::YDumbTab const YWidgetOpt opt  ) 
 

Constructor


Member Function Documentation

void YDumbTab::addTab const YCPString label  )  [protected, virtual]
 

Add a tab header with the specified label.

Derived classes should reimplement this.

void YDumbTab::addTab const YCPValue id,
const YCPString label,
bool  selected
 

Add a new tab - only the header; this widget does not take care of tab contents. This ist the application's responsibility - hence the name DumbTab.

YCPValue YDumbTab::changeWidget const YCPSymbol property,
const YCPValue newvalue
[virtual]
 

Implements the UI::ChangeWidget()

Reimplemented from YWidget.

int YDumbTab::findTab const YCPValue id  )  [protected]
 

Find a tab header with the specified ID and return its index or -1 if there is no tab header with that ID. For tabs without IDs, the tab labels will be compared.

int YDumbTab::getSelectedTabIndex  )  [protected, virtual]
 

Get the index (0..n) of the currently selected tab.

Derived classes should reimplement this.

YCPValue YDumbTab::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the UI::QueryWidget()

Reimplemented from YWidget.

void YDumbTab::setSelectedTab int  index  )  [protected, virtual]
 

Select a tab by index (0..n) and send an according event.

Derived classes should reimplement this.

virtual char* YDumbTab::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YContainerWidget.


Member Data Documentation

vector<Tab> YDumbTab::_tabs [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6