#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 |
Classes | |
| class | Tab |
| YDumbTab::YDumbTab | ( | const YWidgetOpt & | opt | ) |
Constructor
| virtual char* YDumbTab::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YContainerWidget.
Implements the UI::ChangeWidget()
Reimplemented from YWidget.
Implements the UI::QueryWidget()
Reimplemented from YWidget.
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.
| 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.
| void YDumbTab::addTab | ( | const YCPString & | label | ) | [protected, virtual] |
Add a tab header with the specified label.
Derived classes should reimplement this.
| int YDumbTab::getSelectedTabIndex | ( | ) | [protected, virtual] |
Get the index (0..n) of the currently selected tab.
Derived classes should reimplement this.
| void YDumbTab::setSelectedTab | ( | int | index | ) | [protected, virtual] |
Select a tab by index (0..n) and send an according event.
Derived classes should reimplement this.
vector<Tab> YDumbTab::_tabs [protected] |
1.5.0