aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/projectintropage.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-11-26 18:03:16 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-11-26 18:03:26 +0100
commit3e34a9ae7add389126f0307aac9f38c4a5217ac3 (patch)
treeed11ee78b9b49e134f2c57dc879ea3493c101d0c /src/libs/utils/projectintropage.h
parentf27c5cc61716aa25d9d7a8b24b582c771cc17e7b (diff)
Project Wizards: Introduce notion of project directory, polish.
- Introduce project directory and "use" flag to file manager, use that in new item dialog - Add configuration under Project settings, rename it to "General" - Make wizards create project names as "untitled1.." - Remove modules page from Qt application wizards (parametrizable) - Give Utils::ProjectIntroPage a "Set as default location" toggle. - Introduce wizard dialog base classes for handling that. - Introduce notion of "last visited directory to file manager" for open and non-project wizards, route open through file manager. - Clean out QmlAppWizard Task-number: QTCREATORBUG-333 Rubber-stamped-by: con <qtc-committer@nokia.com>
Diffstat (limited to 'src/libs/utils/projectintropage.h')
-rw-r--r--src/libs/utils/projectintropage.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/utils/projectintropage.h b/src/libs/utils/projectintropage.h
index 9e127ee646..6fb53ec66d 100644
--- a/src/libs/utils/projectintropage.h
+++ b/src/libs/utils/projectintropage.h
@@ -58,6 +58,7 @@ class QTCREATOR_UTILS_EXPORT ProjectIntroPage : public QWizardPage
Q_PROPERTY(QString description READ description WRITE setPath DESIGNABLE true)
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
Q_PROPERTY(QString name READ name WRITE setName DESIGNABLE true)
+ Q_PROPERTY(bool useAsDefaultPath READ useAsDefaultPath WRITE setUseAsDefaultPath DESIGNABLE true)
public:
explicit ProjectIntroPage(QWidget *parent = 0);
virtual ~ProjectIntroPage();
@@ -65,11 +66,12 @@ public:
QString name() const;
QString path() const;
QString description() const;
+ bool useAsDefaultPath() const;
// Insert an additional control into the form layout for the target.
void insertControl(int row, QWidget *label, QWidget *control);
- virtual bool isComplete() const;
+ virtual bool isComplete() const;
// Validate a project directory name entry field
static bool validateProjectDirectory(const QString &name, QString *errorMessage);
@@ -81,6 +83,7 @@ public slots:
void setPath(const QString &path);
void setName(const QString &name);
void setDescription(const QString &description);
+ void setUseAsDefaultPath(bool u);
private slots:
void slotChanged();