SHAPER  9.12.0
ModuleBase_ToolBox Class Reference

An extension of QFrame object. More...

Inheritance diagram for ModuleBase_ToolBox:
Inheritance graph

Signals

void currentChanged (int)
 A signal which is emited on current item changed. More...
 

Public Member Functions

 ModuleBase_ToolBox (QWidget *theParent, const bool theUseFrameStyleBox=false)
 Constructor. More...
 
void addItem (QWidget *thePage, const QString &theName, const QPixmap &theIcon)
 Add a new item to the tool box. More...
 
int count () const
 
int currentIndex () const
 
void setCurrentIndex (const int theIdx)
 Set current item. More...
 

Static Public Member Functions

static bool isOffToolBoxParent (ModuleBase_ModelWidget *theWidget)
 Found in the controls of the model widget parent in Stacked Widget returns whether this controls are in the current widget of the stacked widgets. More...
 

Detailed Description

An extension of QFrame object.

Constructor & Destructor Documentation

◆ ModuleBase_ToolBox()

ModuleBase_ToolBox::ModuleBase_ToolBox ( QWidget theParent,
const bool  theUseFrameStyleBox = false 
)

Constructor.

Parameters
theParenta parent widget
theUseFrameStyleBoxa flag if the tool box should have box covered buttons and current page

Member Function Documentation

◆ addItem()

void ModuleBase_ToolBox::addItem ( QWidget thePage,
const QString &  theName,
const QPixmap &  theIcon 
)

Add a new item to the tool box.

Parameters
thePagea widget of the new item
theNamea name of the item
theIconan icon of the item

◆ count()

int ModuleBase_ToolBox::count ( ) const
Returns
number of items

◆ currentIndex()

int ModuleBase_ToolBox::currentIndex ( ) const
Returns
index of current widget

◆ setCurrentIndex()

void ModuleBase_ToolBox::setCurrentIndex ( const int  theIdx)

Set current item.

Parameters
theIdxan index

◆ isOffToolBoxParent()

bool ModuleBase_ToolBox::isOffToolBoxParent ( ModuleBase_ModelWidget theWidget)
static

Found in the controls of the model widget parent in Stacked Widget returns whether this controls are in the current widget of the stacked widgets.

Parameters
theWidgeta model widget
Returns
boolean result

◆ currentChanged

void ModuleBase_ToolBox::currentChanged ( int  )
signal

A signal which is emited on current item changed.