sptk2 logo
SPTK Home Page

sptk::CTabs Class Reference
[GUI Classes]

Tabs widget. More...

#include <CTabs.h>

Inheritance diagram for sptk::CTabs:

sptk::CGroup sptk::CLayoutManager sptk::CLayoutClient sptk::CDialogTabs

List of all members.

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 CLayoutClientcreator (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.


Detailed Description

Tabs widget.

It can show the tabs in several rows if they are too wide to fit.


Constructor & Destructor Documentation

sptk::CTabs::CTabs ( const char *  label = 0L,
int32_t  layoutSize = 10,
CLayoutAlign  layoutAlign = SP_ALIGN_TOP 
)

Constructor in SPTK style.

Parameters:
label const char*, label
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout


Member Function Documentation

static CLayoutClient* sptk::CTabs::creator ( CXmlNode node  )  [static]

Creates a widget based on the XML node information.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
pageNumber uint32_t, a page number to select

void sptk::CTabs::remove ( Fl_Group *  page  ) 

Removes a page completely.

Parameters:
page Fl_Group*, page to remove

void sptk::CTabs::showTabs ( bool  show  ) 

Show/hide tabs flag.

Parameters:
show bool, if true the tabs would be visible


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:19 2012: SPTK 3.5.7