QmlProjectPlugin: replacing QmlProjectApplicationWizard

The new wizard is template based. This allows easy addition of
custom QML templates and also allows us to add more QML wizards
for e. g. components later.

This template mechanism allows substitution in comment, which
allows us to keep valid QML file as templates.

This reduces the maintance burden significantly.

Change-Id: I7766b037635131da2af5aae518d6fe4597ff8b9f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Thomas Hartmann
2013-01-11 13:31:03 +01:00
parent 4e0880bde4
commit d26ec5048f
16 changed files with 886 additions and 290 deletions

View File

@@ -29,11 +29,11 @@
#include "qmlprojectplugin.h"
#include "qmlprojectmanager.h"
#include "qmlprojectapplicationwizard.h"
#include "qmlprojectconstants.h"
#include "qmlproject.h"
#include "qmlprojectrunconfigurationfactory.h"
#include "qmlprojectruncontrol.h"
#include "qmlapplicationwizard.h"
#include "fileformat/qmlprojectfileformat.h"
#include <extensionsystem/pluginmanager.h>
@@ -81,10 +81,8 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
addAutoReleasedObject(new Internal::QmlProjectRunConfigurationFactory);
addAutoReleasedObject(new Internal::QmlProjectRunControlFactory);
addAutoReleasedObject(new Internal::QmlProjectApplicationWizard(
Internal::QmlProjectApplicationWizard::QtQuick1Project));
addAutoReleasedObject(new Internal::QmlProjectApplicationWizard(
Internal::QmlProjectApplicationWizard::QtQuick2Project));
Internal::QmlApplicationWizard::createInstances(this);
QmlProjectFileFormat::registerDeclarativeTypes();