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

@@ -28,10 +28,7 @@
**************************************************************************/
#include "emptyprojectwizarddialog.h"
#include "emptyprojectwizard.h"
#include <utils/projectintropage.h>
#include "qtprojectparameters.h"
namespace Qt4ProjectManager {
namespace Internal {
@@ -40,38 +37,24 @@ EmptyProjectWizardDialog::EmptyProjectWizardDialog(const QString &templateName,
const QIcon &icon,
const QList<QWizardPage*> &extensionPages,
QWidget *parent) :
QWizard(parent),
m_introPage(new Utils::ProjectIntroPage)
ProjectExplorer::BaseProjectWizardDialog(parent)
{
setWindowIcon(icon);
setWindowTitle(templateName);
Core::BaseFileWizard::setupWizard(this);
m_introPage->setDescription(tr("This wizard generates an empty Qt4 project. "
"Add files to it later on by using the other wizards."));
addPage(m_introPage);
setIntroDescription(tr("This wizard generates an empty Qt4 project. "
"Add files to it later on by using the other wizards."));
foreach (QWizardPage *p, extensionPages)
addPage(p);
}
void EmptyProjectWizardDialog::setPath(const QString &path)
{
m_introPage->setPath(path);
}
void EmptyProjectWizardDialog::setName(const QString &name)
{
m_introPage->setName(name);
}
QtProjectParameters EmptyProjectWizardDialog::parameters() const
{
QtProjectParameters rc;
rc.type = QtProjectParameters::EmptyProject;
rc.name = m_introPage->name();
rc.path = m_introPage->path();
rc.name = name();
rc.path = path();
return rc;
}