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>
This commit is contained in:
Friedemann Kleint
2009-11-26 18:03:16 +01:00
parent f27c5cc617
commit 3e34a9ae7a
33 changed files with 798 additions and 486 deletions

View File

@@ -33,7 +33,6 @@
#include "qt4projectmanager.h"
#include "qt4projectmanagerconstants.h"
#include <utils/pathchooser.h>
#include <cpptools/cppmodelmanagerinterface.h>
#include <QtCore/QDir>
@@ -66,8 +65,10 @@ QWizard *ConsoleAppWizard::createWizardDialog(QWidget *parent,
const QString &defaultPath,
const WizardPageList &extensionPages) const
{
ConsoleAppWizardDialog *dialog = new ConsoleAppWizardDialog(name(), icon(), extensionPages, parent);
dialog->setPath(defaultPath.isEmpty() ? Utils::PathChooser::homePath() : defaultPath);
ConsoleAppWizardDialog *dialog = new ConsoleAppWizardDialog(name(), icon(), extensionPages,
showModulesPageForApplications(), parent);
dialog->setPath(defaultPath);
dialog->setName(ConsoleAppWizardDialog::projectName(defaultPath));
return dialog;
}