Guest User

Untitled

a guest
May 25th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. {
  2. "version": 1,
  3. "supportedProjectTypes": [ ],
  4. "id": "S.QtQuickUi",
  5. "category": "R.Qt",
  6. "trDescription": "Creates a Qt Quick Designer UI form along with a matching QML file for implementation purposes. You can add the form and file to an existing Qt Quick Project.",
  7. "trDisplayName": "QtQuick UI File Only",
  8. "trDisplayCategory": "Qt",
  9. "iconText": "ui.qml",
  10. "featuresRequired": [ "QtSupport.Wizards.FeatureQtQuick.UiFiles" ],
  11. "enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}",
  12.  
  13. "options" : [
  14. { "key": "UiFile", "value": "%{FormClass}.%{JS: Util.preferredSuffix('application/x-qt.ui+qml')}" }
  15. ],
  16.  
  17. "pages" :
  18. [
  19. {
  20. "trDisplayName": "Define Class",
  21. "trShortTitle": "Details",
  22. "typeId": "Fields",
  23. "data" :
  24. [
  25.  
  26. {
  27. "name": "FormClass",
  28. "trDisplayName": "Component form name:",
  29. "mandatory": true,
  30. "type": "LineEdit",
  31. "data": {
  32. "validator": "(?:[A-Z_][a-zA-Z_0-9]*|)",
  33. "fixup": "%{JS: '%{INPUT}'.charAt(0).toUpperCase() + '%{INPUT}'.slice(1) }",
  34. "trText": "Form"
  35. }
  36. },
  37. {
  38. "name": "TargetPath",
  39. "type": "PathChooser",
  40. "trDisplayName": "Path:",
  41. "mandatory": true,
  42. "data":
  43. {
  44. "kind": "existingDirectory",
  45. "basePath": "%{InitialPath}",
  46. "path": "%{InitialPath}"
  47. }
  48. }
  49. ]
  50. },
  51. {
  52. "trDisplayName": "Project Management",
  53. "trShortTitle": "Summary",
  54. "typeId": "Summary"
  55. }
  56. ],
  57. "generators" :
  58. [
  59. {
  60. "typeId": "File",
  61. "data": [
  62. {
  63. "source": "fileForm.ui.qml.tpl",
  64. "target": "%{TargetPath}/%{UiFile}",
  65. "openInEditor": true
  66. }
  67. ]
  68. }
  69. ]
  70. }
Add Comment
Please, Sign In to add comment