Widget to define a component property. More...
#include <ComponentPropertyWidget.h>
Public Slots | |
void | nameChanged (QString) |
void | remove () |
void | typeChanged (QString) |
Public Member Functions | |
ComponentPropertyWidget (ComponentAddPropertyWidget *parent) | |
Constructor. More... | |
QString | getDefaultValue () |
QString | getDescription () |
QString | getName () |
QString | getType () |
QString | getUnit () |
void | setRequiredName () |
void | unsetRequiredName () |
~ComponentPropertyWidget () override=default | |
Destructor. More... | |
Private Attributes | |
ComponentAddPropertyWidget * | parent |
Has to keep track of its parent in case it has to be removed: The remove button is on this widget, and it cannot "auto-remove" from its parent. More... | |
Ui::ComponentPropertyWidget | ui |
Qt Designer defined GUI. More... | |
Widget to define a component property.
ComponentPropertyWidget::ComponentPropertyWidget | ( | ComponentAddPropertyWidget * | parent | ) |
|
overridedefault |
Destructor.
QString ComponentPropertyWidget::getDefaultValue | ( | ) |
References ui.
Referenced by ComponentAddPropertyState::addDomParameters().
QString ComponentPropertyWidget::getDescription | ( | ) |
References ui.
Referenced by ComponentAddPropertyState::addDomParameters().
QString ComponentPropertyWidget::getName | ( | ) |
References ui.
Referenced by ComponentAddPropertyState::addDomParameters().
QString ComponentPropertyWidget::getType | ( | ) |
References ui.
Referenced by ComponentAddPropertyState::addDomParameters().
QString ComponentPropertyWidget::getUnit | ( | ) |
References ui.
Referenced by ComponentAddPropertyState::addDomParameters().
|
slot |
References ui.
|
slot |
References parent, and ComponentAddPropertyWidget::removeProperty().
void ComponentPropertyWidget::setRequiredName | ( | ) |
References enhancedStyle, and ui.
|
slot |
References ParameterGenerator::getTypeDefaultValue(), and ui.
Referenced by ComponentPropertyWidget().
void ComponentPropertyWidget::unsetRequiredName | ( | ) |
References normalStyle, and ui.
|
private |
Has to keep track of its parent in case it has to be removed: The remove button is on this widget, and it cannot "auto-remove" from its parent.
Referenced by ComponentPropertyWidget(), and remove().
|
private |
Qt Designer defined GUI.
Referenced by ComponentPropertyWidget(), getDefaultValue(), getDescription(), getName(), getType(), getUnit(), nameChanged(), setRequiredName(), typeChanged(), and unsetRequiredName().