#ifndef NEWLOCATIONDIALOG_H #define NEWLOCATIONDIALOG_H #include #include #include #include "project.h" namespace Ui { class NewLocationDialog; } class NewLocationDialog : public QDialog { Q_OBJECT public: explicit NewLocationDialog(Project *project = nullptr, QWidget *parent = nullptr); ~NewLocationDialog(); virtual void accept() override; private: Ui::NewLocationDialog *ui; QPointer project = nullptr; const QString namePrefix; bool validateIdName(bool allowEmpty = false); void onIdNameChanged(const QString &name); void dialogButtonClicked(QAbstractButton *button); }; #endif // NEWLOCATIONDIALOG_H