{
    "version": 1,
    "supportedProjectTypes": [ ],
    "id": "Q.Qml.2",
    "category": "R.Qt",
    "trDescription": "Creates a QML file with boilerplate code, starting with \"import QtQuick\".",
    "trDisplayName": "QML File (Qt Quick 2)",
    "trDisplayCategory": "Qt",
    "iconText": "qml",
    "enabled": "%{JS: isPluginRunning('qmljseditor')}",

    "options": [
        {"key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-qml')}"},
        {"key": "QtQuickVersion", "value": "%{JS: Util.qtQuickVersion(value('TargetPath'))}"}
    ],

    "pages" :
    [
        {
            "trDisplayName": "Location",
            "trShortTitle": "Location",
            "typeId": "File"
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators" :
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.qml.tpl",
                "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}",
                "openInEditor": true
            }
        }
    ]
}
