{
    "version": 1,
    "supportedProjectTypes": [ "Qt4ProjectManager.Qt4Project" ],
    "id": "W.QtLabsControlsApplication",
    "category": "F.Application",
    "trDescription": "Creates a deployable Qt Quick 2 application using Qt Labs Controls.<br/><br/><b>Note:</b> Qt Labs Controls are only available with Qt 5.6. Choose <em>Qt Quick Controls 2 Application</em> when targeting Qt 5.7 or later.",
    "trDisplayName": "Qt Labs Controls Application",
    "trDisplayCategory": "Application",
    "icon": "../qtquickapplication/qml_wizard.png",
    "featuresRequired": [ "QtSupport.Wizards.FeatureQt.labs.controls.1.0" ],
    "enabled": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0}",

    "options":
    [
        { "key": "ProFileName", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectName}', 'pro')}" },
        { "key": "MainCppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" },
        { "key": "QtQuickVersion", "value": "2.6" },
        { "key": "QtLabsControlsVersion", "value": "1.0" },
        { "key": "QtQuickDialogsVersion", "value": "1.0" },
        { "key": "QtQuickLayoutsVersion", "value": "1.0" }
    ],

    "pages":
    [
        {
            "trDisplayName": "Project Location",
            "trShortTitle": "Location",
            "typeId": "Project"
        },
        {
            "trDisplayName": "Kit Selection",
            "trShortTitle": "Kits",
            "typeId": "Kits",
            "enabled": "%{IsTopLevelProject}",
            "data": { "projectFilePath": "%{ProFileName}" }
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators":
    [
        {
            "typeId": "File",
            "data":
            [
                {
                    "source": "app.pro",
                    "target": "%{ProFileName}",
                    "openAsProject": true
                },
                {
                    "source": "main.cpp",
                    "target": "%{MainCppFileName}"
                },
                {
                    "source": "main.qml.tpl",
                    "target": "main.qml",
                    "openInEditor": true
                },
                {
                    "source": "Page1.qml.tpl",
                    "target": "Page1.qml"
                },
                {
                    "source": "Page1Form.ui.qml.tpl",
                    "target": "Page1Form.ui.qml"
                },
                {
                    "source": "qml.qrc"
                },
                {
                    "source": "../../../../shared/qrcdeployment.pri",
                    "target": "%{ProjectDirectory}/deployment.pri"
                },
                {
                    "source": "../../git.ignore",
                    "target": "%{ProjectDirectory}/.gitignore",
                    "condition": "%{JS: !%{IsSubproject} && '%{VersionControl}' === 'G.Git'}"
                }
            ]
        }
    ]
}
