#ifndef NAME_DIALOG_H #define NAME_DIALOG_H #include #include #include #include #include #include #include namespace display { class NameDialog : public QDialog { std::set usedNames; QLineEdit *edit = nullptr; domain::ComponentInstance *componentInstance = nullptr; domain::BusInstance *busInstance = nullptr; QPushButton *button; public: NameDialog(domain::ComponentInstance *instance, std::set& names); NameDialog(domain::BusInstance *instance, std::set& names); public slots: void onNameUpdate(const QString& text); void onNameChange(); }; } #endif //NAME_DIALOG_H