|
#include <CTabs.h>

Public Member Functions | |
| CTabs (const char *label=0L, int32_t layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP) | |
| Constructor in SPTK style. | |
| ~CTabs () | |
| Destructor. | |
| virtual Fl_Group * | newPage (const char *label, bool autoColor=false) |
| Creates a new CGroup page. | |
| virtual Fl_Group * | newScroll (const char *label, bool autoColor=false) |
| Creates a new CScroll page. | |
| virtual void | draw () |
| Custom draw method. | |
| void | showTabs (bool show) |
| Show/hide tabs flag. | |
| Fl_Group * | page () |
| Returns currently selected page. | |
| uint32_t | page (Fl_Widget *page) |
| Selects page. | |
| uint32_t | pageCount () const |
| Returns tabs count. | |
| uint32_t | pageNumber () const |
| Returns selected page number. | |
| void | pageNumber (uint32_t pageNumber) |
| Sets selected page by number. | |
| void | remove (Fl_Group *page) |
| Removes a page completely. | |
| virtual std::string | className () const |
| Returns widget class name (internal SPTK RTTI). | |
Static Public Member Functions | |
| static CLayoutClient * | creator (CXmlNode *node) |
| Creates a widget based on the XML node information. | |
Protected Member Functions | |
| virtual void | prepareNewPage (Fl_Group *page, bool autoColor) |
| Sets default parameters for a new page. | |
It can show the tabs in several rows if they are too wide to fit.
| sptk::CTabs::CTabs | ( | const char * | label = 0L, |
|
| int32_t | layoutSize = 10, |
|||
| CLayoutAlign | layoutAlign = SP_ALIGN_TOP | |||
| ) |
Constructor in SPTK style.
| label | const char*, label | |
| layoutSize | int, widget align in layout | |
| layoutAlign | CLayoutAlign, widget align in layout |
| static CLayoutClient* sptk::CTabs::creator | ( | CXmlNode * | node | ) | [static] |
Creates a widget based on the XML node information.
| node | CXmlNode*, an XML node with widget information |
Reimplemented from sptk::CGroup.
| virtual Fl_Group* sptk::CTabs::newPage | ( | const char * | label, | |
| bool | autoColor = false | |||
| ) | [virtual] |
Creates a new CGroup page.
| label | const char*, tab and page label | |
| autoColor | bool, auto-color assignment on/off |
| virtual Fl_Group* sptk::CTabs::newScroll | ( | const char * | label, | |
| bool | autoColor = false | |||
| ) | [virtual] |
Creates a new CScroll page.
| label | const char*, tab and page label | |
| autoColor | bool, auto-color assignment on/off |
| void sptk::CTabs::pageNumber | ( | uint32_t | pageNumber | ) |
Sets selected page by number.
| pageNumber | uint32_t, a page number to select |
| void sptk::CTabs::remove | ( | Fl_Group * | page | ) |
Removes a page completely.
| page | Fl_Group*, page to remove |
| void sptk::CTabs::showTabs | ( | bool | show | ) |
Show/hide tabs flag.
| show | bool, if true the tabs would be visible |