#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; std::string currentName; QPushButton *button; public: NameDialog(std::string currentName, std::set& names); std::string getName(); public slots: void onNameUpdate(const QString& text); void onNameChange(); }; } #endif //NAME_DIALOG_H