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

@@ -32,8 +32,6 @@
#include "customwidgetpluginwizardpage.h"
#include "customwidgetwizard.h"
#include <utils/projectintropage.h>
namespace Qt4ProjectManager {
namespace Internal {
@@ -43,20 +41,17 @@ CustomWidgetWizardDialog::CustomWidgetWizardDialog(const QString &templateName,
const QIcon &icon,
const QList<QWizardPage*> &extensionPages,
QWidget *parent) :
QWizard(parent),
m_introPage(new Utils::ProjectIntroPage),
ProjectExplorer::BaseProjectWizardDialog(parent),
m_widgetsPage(new CustomWidgetWidgetsWizardPage),
m_pluginPage(new CustomWidgetPluginWizardPage)
{
setWindowIcon(icon);
setWindowTitle(templateName);
Core::BaseFileWizard::setupWizard(this);
m_introPage->setDescription(tr("This wizard generates a Qt4 Designer Custom Widget "
"or a Qt4 Designer Custom Widget Collection project."));
setIntroDescription(tr("This wizard generates a Qt4 Designer Custom Widget "
"or a Qt4 Designer Custom Widget Collection project."));
setPage(IntroPageId, m_introPage);
setPage(WidgetsPageId, m_widgetsPage);
setPage(PluginPageId, m_pluginPage);
@@ -65,21 +60,6 @@ CustomWidgetWizardDialog::CustomWidgetWizardDialog(const QString &templateName,
connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(slotCurrentIdChanged(int)));
}
void CustomWidgetWizardDialog::setPath(const QString &path)
{
m_introPage->setPath(path);
}
QString CustomWidgetWizardDialog::path() const
{
return m_introPage->path();
}
QString CustomWidgetWizardDialog::name() const
{
return m_introPage->name();
}
FileNamingParameters CustomWidgetWizardDialog::fileNamingParameters() const
{
return m_widgetsPage->fileNamingParameters();