#ifndef NAME_DIALOG_H #define NAME_DIALOG_H #include #include #include #include #include #include #include "comdel/domain/instance.h" #include "generic_dialog.h" namespace display { class NameDialog : public GenericDialog { public: NameDialog(std::string currentName, std::set& names); std::string getName(); protected: bool onUpdate() override; public slots: void onNameUpdate(const QString& text); private: std::set usedNames; QLineEdit *edit = nullptr; std::string currentName; }; } #endif //NAME_DIALOG_H