10 setSubTitle(
"Enter parameters for state component");
14 mNegStateIdentifier =
new QLineEdit(
this);
16 mLabStateIdentifier =
new QLabel(
"State identifier: ");
17 mLabNegStateIdentifier =
new QLabel(
"Negative state identifier: ");
19 mLayout->
addWidget(mLabStateIdentifier, 0, 0);
20 mLayout->
addWidget(mStateIdentifier, 0, 1);
21 mLayout->
addWidget(mLabNegStateIdentifier, 1, 0);
22 mLayout->
addWidget(mNegStateIdentifier, 1, 1);
29 QRegExp rx(
"[A-z]([A-z]|\\d|_)*");
54 void StateWizardPage::handleTextChanged(
const QString &text)
61 void StateWizardPage::handleNegTextChanged(
const QString &text)
69 if(mStateIdentifier->
text().isEmpty())
return false;
70 for (
auto pingroup : mPinGroups) {
71 QString groupName = pingroup->getName();
72 if(mStateIdentifier->
text() == groupName || mNegStateIdentifier->
text() == groupName)
return false;
73 for(
auto it : pingroup->getChildren())
77 if(mStateIdentifier->
text() == pinName || mNegStateIdentifier->
text() == pinName)
return false;
QList< PinItem * > getPingroups()
bool has_component_of_type(const GateTypeComponent::ComponentType type) const
T * get_component_as(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const
static bool is_class_of(const GateTypeComponent *component)
void initializePage() override
bool isComplete() const override
void setData(GateType *gate)
StateWizardPage(QWidget *parent=nullptr)
void setValidator(const QValidator *v)
void setText(const QString &)
void textChanged(const QString &text)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString fromStdString(const std::string &str)
void setSubTitle(const QString &subTitle)
void setTitle(const QString &title)
QWizard * wizard() const const