Computer Assisted Medical Intervention Tool Kit  version 5.2
ComponentAddPropertyState Class Reference

State to add a property to a component. More...

#include <ComponentAddPropertyState.h>

+ Inheritance diagram for ComponentAddPropertyState:
+ Collaboration diagram for ComponentAddPropertyState:

Public Member Functions

 ComponentAddPropertyState (QString name, ComponentAddPropertyWidget *widget, WizardMainWindow *mainWindow, ComponentCreationState *parent)
 Constructor. More...
 
void resetDomComponent (cepcoreschema::Component *domComponent)
 
 ~ComponentAddPropertyState () override=default
 Destructor. More...
 
- Public Member Functions inherited from WizardState
QString getName ()
 
QWidget * getWidget ()
 
 WizardState (QString name, QWidget *widget, WizardMainWindow *mainWidnow)
 Constructor. More...
 
 WizardState (QString name, QWidget *widget, WizardMainWindow *mainWidnow, QState *parent)
 Constructor. More...
 
 ~WizardState () override=default
 Destructor. More...
 

Protected Member Functions

void addDomParameters ()
 
void onEntry (QEvent *event) override
 
void onExit (QEvent *event) override
 
- Protected Member Functions inherited from WizardState
void onEntry (QEvent *event) override
 Reimplemented from QState. More...
 
void onExit (QEvent *event) override
 

Additional Inherited Members

- Protected Attributes inherited from WizardState
WizardMainWindowmainWindow
 
QString name
 
QWidget * widget
 

Detailed Description

State to add a property to a component.

Constructor & Destructor Documentation

◆ ComponentAddPropertyState()

ComponentAddPropertyState::ComponentAddPropertyState ( QString  name,
ComponentAddPropertyWidget widget,
WizardMainWindow mainWindow,
ComponentCreationState parent 
)

Constructor.

◆ ~ComponentAddPropertyState()

ComponentAddPropertyState::~ComponentAddPropertyState ( )
overridedefault

Destructor.

Member Function Documentation

◆ addDomParameters()

void ComponentAddPropertyState::addDomParameters ( )
protected

References description, ComponentPropertyWidget::getDefaultValue(), ComponentPropertyWidget::getDescription(), ComponentPropertyWidget::getName(), ComponentPropertyWidget::getType(), ComponentPropertyWidget::getUnit(), WizardState::name, and WizardState::widget.

Referenced by onExit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onEntry()

void ComponentAddPropertyState::onEntry ( QEvent *  event)
overrideprotected

References WizardState::onEntry().

+ Here is the call graph for this function:

◆ onExit()

void ComponentAddPropertyState::onExit ( QEvent *  event)
overrideprotected

References addDomParameters(), and WizardState::onExit().

+ Here is the call graph for this function:

◆ resetDomComponent()

void ComponentAddPropertyState::resetDomComponent ( cepcoreschema::Component *  domComponent)

References ComponentAddPropertyWidget::setToDefault(), and WizardState::widget.

Referenced by ComponentCreationState::onEntry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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