forked from qt-creator/qt-creator
JsonWizard: Update wizards to make use of new features
Change-Id: Id8117ba92db46012b536c2af4e62f364631d949a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -179,12 +179,20 @@
|
|||||||
{
|
{
|
||||||
"source": "file.h",
|
"source": "file.h",
|
||||||
"target": "%{HdrPath}",
|
"target": "%{HdrPath}",
|
||||||
"openInEditor": true
|
"openInEditor": true,
|
||||||
|
"options": [
|
||||||
|
{ "key": "Cpp:License:FileName", "value": "%{HdrFileName}" },
|
||||||
|
{ "key": "Cpp:License:ClassName", "value": "%{CN}" }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "file.cpp",
|
"source": "file.cpp",
|
||||||
"target": "%{SrcPath}",
|
"target": "%{SrcPath}",
|
||||||
"openInEditor": true
|
"openInEditor": true,
|
||||||
|
"options": [
|
||||||
|
{ "key": "Cpp:License:FileName", "value": "%{SrcFileName}" },
|
||||||
|
{ "key": "Cpp:License:ClassName", "value": "%{CN}" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -9,6 +9,8 @@
|
|||||||
"icon": "../../global/genericfilewizard.png",
|
"icon": "../../global/genericfilewizard.png",
|
||||||
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
|
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
|
||||||
|
|
||||||
|
"options": { "key": "FileName", "value": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++hdr')}')}" },
|
||||||
|
|
||||||
"pages" :
|
"pages" :
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@@ -29,8 +31,9 @@
|
|||||||
"data":
|
"data":
|
||||||
{
|
{
|
||||||
"source": "file.h",
|
"source": "file.h",
|
||||||
"target": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++hdr')}')}",
|
"target": "%{FileName}",
|
||||||
"openInEditor": true
|
"openInEditor": true,
|
||||||
|
"options": { "key": "Cpp:License:FileName", "value": "%{JS: Util.completeBaseName('%{FileName}')}" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@@ -9,6 +9,8 @@
|
|||||||
"icon": "../../global/genericfilewizard.png",
|
"icon": "../../global/genericfilewizard.png",
|
||||||
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
|
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
|
||||||
|
|
||||||
|
"options": { "key": "FileName", "value": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++src')}')}" },
|
||||||
|
|
||||||
"pages" :
|
"pages" :
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@@ -29,8 +31,9 @@
|
|||||||
"data":
|
"data":
|
||||||
{
|
{
|
||||||
"source": "file.cpp",
|
"source": "file.cpp",
|
||||||
"target": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++src')}')}",
|
"target": "%{FileName}",
|
||||||
"openInEditor": true
|
"openInEditor": true,
|
||||||
|
"options": { "key": "Cpp:License:FileName", "value": "%{JS: Util.completeBaseName('%{FileName}')}" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user