wizard.json 1.46 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
{
    "version": 1,
    "kind": "file",
    "id": "D.Form",
    "category": "R.Qt",
    "trDescription": "Creates a Qt Designer form that you can add to a Qt Widget Project. This is useful if you already have an existing class for the UI business logic.",
    "trDisplayName": "Qt Designer Form",
    "trDisplayCategory": "Qt",
    "icon": "../../global/genericfilewizard.png",
    "featuresRequired": [ "Plugin.Designer" ],

    "options": [
13
        { "key": "UiClass", "value": "%{JS: QtSupport.uiClassName([ %{FormContents} ].join('\\n'))}" },
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
        { "key": "Extension", "value": "%{JS: Util.preferredSuffix('application/x-designer')}"},
        { "key": "InitialFileName", "value": "%{JS: Cpp.classToFileName('%{UiClass}', '%{Extension}') }" }
    ],

    "pages":
    [
        {
            "trDisplayName": "Choose a Form Template",
            "trShortTitle": "Form Template",
            "typeId": "Form"
        },
        {
            "trDisplayName": "Location",
            "trShortTitle": "Location",
            "typeId": "File"
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],

    "generators":
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.ui",
                "target": "%{JS: Cpp.fileName('%{TargetPath}', '%{Extension}')}",
                "openInEditor": true
            }
        }
    ]
}