#include <YDumbTab.h>
Inheritance diagram for YDumbTab:
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 |
|
Constructor |
|
Add a tab header with the specified label. Derived classes should reimplement this. |
|
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. |
|
Implements the UI::ChangeWidget() any CurrentItem the currently selected tab Reimplemented from YWidget. |
|
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. |
|
Get the index (0..n) of the currently selected tab. Derived classes should reimplement this. |
|
Implements the UI::QueryWidget() Reimplemented from YWidget. |
|
Select a tab by index (0..n) and send an according event. Derived classes should reimplement this. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YContainerWidget. |
|
|