State to add a property to a component. More...
#include <ComponentAddPropertyState.h>
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 |
Private Attributes | |
cepcoreschema::Component * | domComponent |
Additional Inherited Members | |
Protected Attributes inherited from WizardState | |
WizardMainWindow * | mainWindow |
QString | name |
QWidget * | widget |
State to add a property to a component.
ComponentAddPropertyState::ComponentAddPropertyState | ( | QString | name, |
ComponentAddPropertyWidget * | widget, | ||
WizardMainWindow * | mainWindow, | ||
ComponentCreationState * | parent | ||
) |
Constructor.
References domComponent.
|
overridedefault |
Destructor.
|
protected |
References description, domComponent, ComponentAddPropertyWidget::getComponentPropertyWidgets(), ComponentPropertyWidget::getDefaultValue(), ComponentPropertyWidget::getDescription(), ComponentPropertyWidget::getName(), ComponentPropertyWidget::getType(), ComponentPropertyWidget::getUnit(), WizardState::name, and WizardState::widget.
Referenced by onExit().
|
overrideprotected |
|
overrideprotected |
void ComponentAddPropertyState::resetDomComponent | ( | cepcoreschema::Component * | domComponent | ) |
References domComponent, ComponentAddPropertyWidget::setToDefault(), and WizardState::widget.
Referenced by ComponentCreationState::onEntry().
|
private |
Referenced by addDomParameters(), ComponentAddPropertyState(), and resetDomComponent().