SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pqSMTKOperationToolbar Class Referenceabstract

A base class for toolbars that wish to include SMTK operation buttons. More...

#include <pqSMTKOperationToolbar.h>

Inheritance diagram for pqSMTKOperationToolbar:
[legend]
Collaboration diagram for pqSMTKOperationToolbar:
[legend]

Classes

class  pqInternal
 

Public Member Functions

 pqSMTKOperationToolbar (QWidget *parent=nullptr)
 Construct the toolbar. More...
 
 ~pqSMTKOperationToolbar () override
 Destroy the toolbar.
 

Protected Member Functions

virtual void populateToolbar (qtOperationTypeModel *operationModel)=0
 This method is called immediately after startup (as soon as the event loop starts) to populate the toolbar as your subclass sees fit. More...
 

Protected Attributes

pqInternalm_p
 

Detailed Description

A base class for toolbars that wish to include SMTK operation buttons.

Inherit this class and provide an implementation for the pure virtual populateToolbar() method which will be invoked whenever an SMTK wrapper object is created (due to a client-server connection being established). This method should clear the toolbar and re-insert all its items.

Constructor & Destructor Documentation

◆ pqSMTKOperationToolbar()

pqSMTKOperationToolbar::pqSMTKOperationToolbar ( QWidget *  parent = nullptr)

Construct the toolbar.

Your subclass should set the object name and window title here.

this->setObjectName("ToolbarName");
this->setWindowTitle("User-presentable toolbar name");

The window title is used to provide the name of the toolbar in the application's "View" menu.

Member Function Documentation

◆ populateToolbar()

virtual void pqSMTKOperationToolbar::populateToolbar ( qtOperationTypeModel operationModel)
protectedpure virtual

This method is called immediately after startup (as soon as the event loop starts) to populate the toolbar as your subclass sees fit.

Call operationModel->insertIntoToolBar<OpList>() as many times as you like to insert a tool-button for each operation in OpList.

This method is delayed until startup to ensure operationModel is available.


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