summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/wizards/files/cppheader/wizard.json
blob: 36956636a3f469720b5fbe5f4542182332075e6a (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
{
    "version": 1,
    "supportedProjectTypes": [ ],
    "id": "C.Header",
    "category": "O.C++",
    "trDescription": "Creates a header file that you can add to a C/C++ project.",
    "trDisplayName": "C/C++ Header File",
    "trDisplayCategory": "C/C++",
    "iconText": "h",
    "enabled": "%{JS: value('Plugins').indexOf('CppEditor') >= 0}",

    "options": [
        { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-c++hdr')}" },
        { "key": "FileName", "value": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}" }
    ],

    "pages" :
    [
        {
            "trDisplayName": "Location",
            "trShortTitle": "Location",
            "typeId": "File"
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators" :
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.h",
                "target": "%{FileName}",
                "openInEditor": true,
                "options": { "key": "Cpp:License:FileName", "value": "%{JS: Util.fileName(value('FileName'))}" }
            }
        }
    ]
}