SHAPER  9.12.0
ModuleBase_PageWidget Class Reference
Inheritance diagram for ModuleBase_PageWidget:
Inheritance graph

Public Member Functions

 ModuleBase_PageWidget (QWidget *theParent=0)
 Constructs a page that looks like a QFrame. More...
 
virtual ~ModuleBase_PageWidget ()
 Destructs the page. More...
 
QWidgetpageWidget ()
 Cast the page to regular QWidget. More...
 
void addModelWidget (ModuleBase_ModelWidget *theWidget)
 Adds the given ModuleBase_ModelWidget to the page. More...
 
void addPageWidget (ModuleBase_PageBase *theWidget)
 Adds the given ModuleBase_PageBase to the page. More...
 
void addWidget (QWidget *theWidget)
 Adds the given widget to the page. More...
 
void clearPage ()
 Removes all items from page's layout. More...
 
bool takeFocus ()
 Passes focus from page to the first ModuleBase_ModelWidget contained on the page. More...
 
QList< ModuleBase_ModelWidget * > modelWidgets () const
 Returns list of ModuleBase_ModelWidgets contained on the page. More...
 
void alignToTop ()
 Aligns top all widgets on page. More...
 

Protected Member Functions

virtual void placeModelWidget (ModuleBase_ModelWidget *theWidget)
 Adds the given widget to page's layout. More...
 
virtual void placeWidget (QWidget *theWidget)
 Adds the given page to page's layout. More...
 
virtual QLayout * pageLayout ()
 Returns page's layout (QGridLayout) More...
 
virtual void addPageStretch ()
 Adds a stretch to page's layout. More...
 
virtual void placePageWidget (ModuleBase_PageBase *theWidget)
 Pure Virtual. Allows to derived class to lay out the page properly;. More...
 

Detailed Description

Represent a property panel's list of ModuleBase_ModelWidgets.

Constructor & Destructor Documentation

◆ ModuleBase_PageWidget()

ModuleBase_PageWidget::ModuleBase_PageWidget ( QWidget theParent = 0)
explicit

Constructs a page that looks like a QFrame.

◆ ~ModuleBase_PageWidget()

ModuleBase_PageWidget::~ModuleBase_PageWidget ( )
virtual

Destructs the page.

Member Function Documentation

◆ placeModelWidget()

void ModuleBase_PageWidget::placeModelWidget ( ModuleBase_ModelWidget theWidget)
protectedvirtual

Adds the given widget to page's layout.

Implements ModuleBase_PageBase.

◆ placeWidget()

void ModuleBase_PageWidget::placeWidget ( QWidget theWidget)
protectedvirtual

Adds the given page to page's layout.

Implements ModuleBase_PageBase.

◆ pageLayout()

QLayout * ModuleBase_PageWidget::pageLayout ( )
protectedvirtual

Returns page's layout (QGridLayout)

Implements ModuleBase_PageBase.

◆ addPageStretch()

void ModuleBase_PageWidget::addPageStretch ( )
protectedvirtual

Adds a stretch to page's layout.

Implements ModuleBase_PageBase.

◆ pageWidget()

QWidget * ModuleBase_PageBase::pageWidget ( )
inherited

Cast the page to regular QWidget.

◆ addModelWidget()

void ModuleBase_PageBase::addModelWidget ( ModuleBase_ModelWidget theWidget)
inherited

Adds the given ModuleBase_ModelWidget to the page.

◆ addPageWidget()

void ModuleBase_PageBase::addPageWidget ( ModuleBase_PageBase theWidget)
inherited

Adds the given ModuleBase_PageBase to the page.

◆ addWidget()

void ModuleBase_PageBase::addWidget ( QWidget theWidget)
inherited

Adds the given widget to the page.

◆ clearPage()

void ModuleBase_PageBase::clearPage ( )
inherited

Removes all items from page's layout.

◆ takeFocus()

bool ModuleBase_PageBase::takeFocus ( )
inherited

Passes focus from page to the first ModuleBase_ModelWidget contained on the page.

◆ modelWidgets()

QList< ModuleBase_ModelWidget * > ModuleBase_PageBase::modelWidgets ( ) const
inherited

Returns list of ModuleBase_ModelWidgets contained on the page.

◆ alignToTop()

void ModuleBase_PageBase::alignToTop ( )
inherited

Aligns top all widgets on page.

◆ placePageWidget()

void ModuleBase_PageBase::placePageWidget ( ModuleBase_PageBase theWidget)
protectedvirtualinherited

Pure Virtual. Allows to derived class to lay out the page properly;.