aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/files/js/wizard.json
blob: 505ca578170cc168bf76bb8da9ff853c3b08c629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
50
51
52
53
54
55
56
57
{
    "version": 1,
    "supportedProjectTypes": [ ],
    "id": "Z.Js",
    "category": "R.Qt",
    "trDescription": "Creates a JavaScript file.",
    "trDisplayName": "JS File",
    "trDisplayCategory": "Qt",
    "iconText": "js",
    "enabled": "%{JS: value('Plugins').indexOf('QmlJSEditor') >= 0}",

    "options": { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('application/javascript')}" },

    "pages" :
    [
        {
            "trDisplayName": "Location",
            "trShortTitle": "Location",
            "typeId": "File"
        },
        {
            "trDisplayName": "Options",
            "trShortTitle": "Options",
            "typeId": "Fields",
            "data":
            [
                {
                    "name": "Stateless",
                    "trDisplayName": "Stateless library",
                    "type": "CheckBox",
                    "span": true,
                    "data":
                    {
                        "checked": false
                    }
                }
            ]
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators" :
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.js",
                "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}",
                "openInEditor": true
            }
        }
    ]
}