10 setSubTitle(
"Enter parameters for RAM Port component");
20 std::vector<GateTypeComponent*> ram_ports;
28 for (
int i=0; i<pinGroups.
length(); i++) {
43 mLabDataGroup =
new QLabel(
"Name of the data pingroup: ");
44 mLabAddressGroup =
new QLabel(
"Name of the address pingroup: ");
45 mLabClockFunction =
new QLabel(
"Clock boolean function: ");
46 mLabEnableFunciton =
new QLabel(
"Enable boolean function: ");
47 mLabIsWritePort =
new QLabel(
"Is a write port: ");
49 mLayout->
addWidget(mLabDataGroup, 6*(ramPortCnt-1)+1, 0);
51 mLayout->
addWidget(mLabAddressGroup, 6*(ramPortCnt-1)+2, 0);
53 mLayout->
addWidget(mLabClockFunction, 6*(ramPortCnt-1)+3, 0);
55 mLayout->
addWidget(mLabEnableFunciton, 6*(ramPortCnt-1)+4, 0);
57 mLayout->
addWidget(mLabIsWritePort, 6*(ramPortCnt-1)+5, 0);
60 if(!ram_ports.empty() && ramPortCnt<=ram_ports.size()) {
68 mRamPortEdits.append(rp);
78 mWizard->mEditMode =
true;
92 mWizard->mEditMode =
false;
QList< PinItem * > getPingroups()
std::vector< GateTypeComponent * > get_components(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const
bool has_component_of_type(const GateTypeComponent::ComponentType type) const
static bool is_class_of(const GateTypeComponent *component)
RAMPortWizardPage(QWidget *parent=nullptr)
QList< RAMPort > getRamPorts()
bool isComplete() const override
void initializePage() override
void setData(GateType *gate)
void stateChanged(int state)
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
QLineEdit * enableFunciton
QLineEdit * clockFunction