forked from qt-creator/qt-creator
Fixes: QTCREATORBUG-22033 Change-Id: If37517bb091438e70c5af5102bf833ed46d0c951 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"version": 1,
|
|
"supportedProjectTypes": [ ],
|
|
"id": "B.Source",
|
|
"category": "O.C++",
|
|
"trDescription": "Creates a source file that you can add to a C/C++ project.",
|
|
"trDisplayName": "C/C++ Source File",
|
|
"trDisplayCategory": "C/C++",
|
|
"iconText": "cpp",
|
|
"enabled": "%{JS: value('Plugins').indexOf('CppEditor') >= 0}",
|
|
|
|
"options": [
|
|
{ "key": "FileName", "value": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}" },
|
|
{ "key": "DefaultSuffix", "value": "%{JS: Cpp.cxxSourceSuffix()}" }
|
|
],
|
|
|
|
"pages" :
|
|
[
|
|
{
|
|
"trDisplayName": "Location",
|
|
"trShortTitle": "Location",
|
|
"typeId": "File"
|
|
},
|
|
{
|
|
"trDisplayName": "Project Management",
|
|
"trShortTitle": "Summary",
|
|
"typeId": "Summary"
|
|
}
|
|
],
|
|
"generators" :
|
|
[
|
|
{
|
|
"typeId": "File",
|
|
"data":
|
|
{
|
|
"source": "file.cpp",
|
|
"target": "%{FileName}",
|
|
"openInEditor": true,
|
|
"options": { "key": "Cpp:License:FileName", "value": "%{JS: Util.fileName(value('FileName'))}" }
|
|
}
|
|
}
|
|
]
|
|
}
|