49 QgsNewNameDialog(
const QString &source = QString(),
const QString &initial = QString(),
50 const QStringList &extensions = QStringList(),
const QStringList &existing = QStringList(),
51 Qt::CaseSensitivity cs = Qt::CaseSensitive,
52 QWidget *parent
SIP_TRANSFERTHIS =
nullptr, Qt::WindowFlags flags = QgsGuiUtils::ModalDialogFlags );
60 void setHintString(
const QString &hintString );
67 QString hintString()
const;
75 void setOverwriteEnabled(
bool enabled );
89 void setAllowEmptyName(
bool allowed );
103 void setConflictingNameWarning(
const QString &
string );
116 void setRegularExpression(
const QString &expression );
123 QString name()
const;
133 static bool exists(
const QString &name,
const QStringList &extensions,
134 const QStringList &existing, Qt::CaseSensitivity cs = Qt::CaseSensitive );
152 Qt::CaseSensitivity mCaseSensitivity = Qt::CaseSensitive;
153 QLabel *mHintLabel =
nullptr;
154 QLineEdit *mLineEdit =
nullptr;
156 QLabel *mNamesLabel =
nullptr;
157 QLabel *mErrorLabel =
nullptr;
160 bool mOverwriteEnabled =
true;
161 bool mAllowEmptyName =
false;
164 QString highlightText(
const QString &text );
165 static QStringList fullNames(
const QString &name,
const QStringList &extensions );
167 static QStringList matching(
const QStringList &newNames,
const QStringList &existingNames,
168 Qt::CaseSensitivity cs = Qt::CaseSensitive );