summaryrefslogtreecommitdiff
path: root/src/libs/utils/filewizardpage.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-03-19 16:33:44 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-03-19 18:08:16 +0100
commit9c8f4e30a7d4758293afe73392f9cc80f1154e80 (patch)
treecc47d4f41b2c099d4e8569755179e79b967e800b /src/libs/utils/filewizardpage.h
parentd2f07b967d6b4c5a00bd35cb6ac1d3399698f610 (diff)
downloadqt-creator-9c8f4e30a7d4758293afe73392f9cc80f1154e80.tar.gz
Allow specifying the name of a new generic project
The name is used as the base for files like [project].creator, [project].files, etc. and is displayed in the Projects mode and the Projects tree.
Diffstat (limited to 'src/libs/utils/filewizardpage.h')
-rw-r--r--src/libs/utils/filewizardpage.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/libs/utils/filewizardpage.h b/src/libs/utils/filewizardpage.h
index 657ec4f4ef..b41839e0bf 100644
--- a/src/libs/utils/filewizardpage.h
+++ b/src/libs/utils/filewizardpage.h
@@ -39,10 +39,15 @@ namespace Utils {
struct FileWizardPagePrivate;
-/* Standard wizard page for a single file letting the user choose name
- * and path. Sets the "FileNames" QWizard field. */
-
-class QWORKBENCH_UTILS_EXPORT FileWizardPage : public QWizardPage {
+/**
+ * Standard wizard page for a single file letting the user choose name
+ * and path. Sets the "FileNames" QWizard field.
+ *
+ * The name and path labels can be changed. By default they are simply "Name:"
+ * and "Path:".
+ */
+class QWORKBENCH_UTILS_EXPORT FileWizardPage : public QWizardPage
+{
Q_OBJECT
Q_DISABLE_COPY(FileWizardPage)
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
@@ -56,7 +61,10 @@ public:
virtual bool isComplete() const;
- // Validate a base name entry field (potentially containing extension)
+ void setNameLabel(const QString &label);
+ void setPathLabel(const QString &label);
+
+ // Validate a base name entry field (potentially containing extension)
static bool validateBaseName(const QString &name, QString *errorMessage = 0);
signals: