Exemplo n.º 1
0
void QtQuickAppWizard::createInstances(ExtensionSystem::IPlugin *plugin)
{
    const QString basicDescription = tr("Creates a Qt Quick 1 application project that can contain "
                                        "both QML and C++ code and includes a QDeclarativeView.\n\n");
    const QString basicDescription2 = tr("Creates a Qt Quick 2 application project that can contain "
                                        "both QML and C++ code and includes a QQuickView.\n\n");

    Core::FeatureSet basicFeatures = Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_1);

    QtQuickAppWizard *wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(QtQuick1_1);
    wizard->setDisplayName(tr("Qt Quick 1 Application (Built-in Types)"));
    wizard->setDescription(basicDescription + tr("The built-in QML types in the QtQuick 1 namespace allow "
                                                   "you to write cross-platform applications with "
                                                   "a custom look and feel.\n\nRequires <b>Qt 4.7.0</b> or newer."));
    wizard->setRequiredFeatures(basicFeatures);
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(QtQuick2_0);
    wizard->setDisplayName(tr("Qt Quick 2 Application (Built-in Types)"));
    wizard->setDescription(basicDescription2 + tr("The built-in QML types in the QtQuick 2 namespace allow "
                                                    "you to write cross-platform applications with "
                                                    "a custom look and feel.\n\nRequires <b>Qt 5.0</b> or newer."));
    wizard->setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2));
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(MeegoComponents);
    wizard->setDisplayName(tr("Qt Quick 1 Application for MeeGo Harmattan"));
    wizard->setDescription(basicDescription +  tr("The Qt Quick Components for MeeGo Harmattan are "
                                                    "a set of ready-made components that are designed "
                                                    "with specific native appearance for the MeeGo Harmattan "
                                                    "platform.\n\nRequires <b>Qt 4.7.4</b> or newer, and the "
                                                    "component set installed for your Qt version."));
    wizard->setRequiredFeatures(basicFeatures | Core::Feature(QtSupport::Constants::FEATURE_QTQUICK_COMPONENTS_MEEGO)
                                  | Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_1_1));
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(ImportQml);
    wizard->setDisplayName(tr("Qt Quick 1 Application (from Existing QML File)"));
    wizard->setDescription(basicDescription +  tr("Creates a deployable Qt Quick application from "
                                                    "existing QML files. All files and directories that "
                                                    "reside in the same directory as the main .qml file "
                                                    "are deployed. You can modify the contents of the "
                                                    "directory any time before deploying.\n\nRequires <b>Qt 4.7.0</b> or newer."));
    wizard->setRequiredFeatures(basicFeatures);
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(ImportQml2);
    wizard->setDisplayName(tr("Qt Quick 2 Application (from Existing QML File)"));
    wizard->setDescription(basicDescription2 + tr("Creates a deployable Qt Quick application from "
                                                    "existing QML files. All files and directories that "
                                                    "reside in the same directory as the main .qml file "
                                                    "are deployed. You can modify the contents of the "
                                                    "directory any time before deploying.\n\nRequires <b>Qt 5.0</b> or newer."));
    wizard->setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2));
    plugin->addAutoReleasedObject(wizard);
}
Exemplo n.º 2
0
void QtQuickAppWizard::createInstances(ExtensionSystem::IPlugin *plugin)
{
    const QString basicDescription = tr("Creates a Qt Quick 1 application project that can contain "
                                        "both QML and C++ code and includes a QDeclarativeView.\n\n");
    const QString basicDescription2 = tr("Creates a Qt Quick 2 application project that can contain "
                                        "both QML and C++ code and includes a QQuickView.\n\n");

    Core::FeatureSet basicFeatures = Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_1);

    QtQuickAppWizard *wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(QtQuick1_1);
    wizard->setDisplayName(tr("Qt Quick 1 Application (Built-in Types)"));
    wizard->setDescription(basicDescription + tr("The built-in QML types in the QtQuick 1 namespace allow "
                                                   "you to write cross-platform applications with "
                                                   "a custom look and feel.\n\nRequires <b>Qt 4.8.0</b> or newer."));
    wizard->setRequiredFeatures(basicFeatures);
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(QtQuick2_0);
    wizard->setDisplayName(tr("Qt Quick 2 Application (Built-in Types)"));
    wizard->setDescription(basicDescription2 + tr("The built-in QML types in the QtQuick 2 namespace allow "
                                                    "you to write cross-platform applications with "
                                                    "a custom look and feel.\n\nRequires <b>Qt 5.0</b> or newer."));
    wizard->setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2));
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(ImportQml);
    wizard->setDisplayName(tr("Qt Quick 1 Application (from Existing QML File)"));
    wizard->setDescription(basicDescription +  tr("Creates a deployable Qt Quick application from "
                                                    "existing QML files. All files and directories that "
                                                    "reside in the same directory as the main .qml file "
                                                    "are deployed. You can modify the contents of the "
                                                    "directory any time before deploying.\n\nRequires <b>Qt 4.8.0</b> or newer."));
    wizard->setRequiredFeatures(basicFeatures);
    plugin->addAutoReleasedObject(wizard);


    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(ImportQml2);
    wizard->setDisplayName(tr("Qt Quick 2 Application (from Existing QML File)"));
    wizard->setDescription(basicDescription2 + tr("Creates a deployable Qt Quick application from "
                                                    "existing QML files. All files and directories that "
                                                    "reside in the same directory as the main .qml file "
                                                    "are deployed. You can modify the contents of the "
                                                    "directory any time before deploying.\n\nRequires <b>Qt 5.0</b> or newer."));

    wizard->setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2));
    plugin->addAutoReleasedObject(wizard);

    wizard = new QtQuickAppWizard;
    wizard->setQtQuickKind(QtQuick_Controls_1_0);

    wizard->setDisplayName(tr("Qt Quick 2 Application (Qt Quick Controls)"));
    wizard->setDescription(basicDescription +  tr("Creates a deployable Qt Quick application using "
                                                  "Qt Quick Controls. All files and directories that "
                                                  "reside in the same directory as the main .qml file "
                                                  "are deployed. You can modify the contents of the "
                                                  "directory any time before deploying.\n\nRequires <b>Qt 5.1.0</b> or newer."));
    wizard->setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2)
                                | Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_CONTROLS));
    plugin->addAutoReleasedObject(wizard);
}