Actions.qml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the AGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.1
  5. import UM 1.0 as UM
  6. Item {
  7. property alias open: openAction;
  8. property alias save: saveAction;
  9. property alias quit: quitAction;
  10. property alias undo: undoAction;
  11. property alias redo: redoAction;
  12. property alias deleteSelection: deleteSelectionAction;
  13. property alias deleteObject: deleteObjectAction;
  14. property alias centerObject: centerObjectAction;
  15. property alias groupObjects: groupObjectsAction;
  16. property alias unGroupObjects:unGroupObjectsAction;
  17. property alias mergeObjects: mergeObjectsAction;
  18. //property alias unMergeObjects: unMergeObjectsAction;
  19. property alias multiplyObject: multiplyObjectAction;
  20. property alias splitObject: splitObjectAction;
  21. property alias deleteAll: deleteAllAction;
  22. property alias reloadAll: reloadAllAction;
  23. property alias resetAllTranslation: resetAllTranslationAction;
  24. property alias resetAll: resetAllAction;
  25. property alias addMachine: addMachineAction;
  26. property alias configureMachines: settingsAction;
  27. property alias preferences: preferencesAction;
  28. property alias showEngineLog: showEngineLogAction;
  29. property alias documentation: documentationAction;
  30. property alias reportBug: reportBugAction;
  31. property alias about: aboutAction;
  32. Action {
  33. id: undoAction;
  34. //: Undo action
  35. text: qsTr("&Undo");
  36. iconName: "edit-undo";
  37. shortcut: StandardKey.Undo;
  38. }
  39. Action {
  40. id: redoAction;
  41. //: Redo action
  42. text: qsTr("&Redo");
  43. iconName: "edit-redo";
  44. shortcut: StandardKey.Redo;
  45. }
  46. Action {
  47. id: quitAction;
  48. //: Quit action
  49. text: qsTr("&Quit");
  50. iconName: "application-exit";
  51. shortcut: StandardKey.Quit;
  52. }
  53. Action {
  54. id: preferencesAction;
  55. //: Preferences action
  56. text: qsTr("&Preferences...");
  57. iconName: "configure";
  58. }
  59. Action {
  60. id: addMachineAction;
  61. //: Add Printer action
  62. text: qsTr("&Add Printer...");
  63. }
  64. Action {
  65. id: settingsAction;
  66. //: Configure Printers action
  67. text: qsTr("&Configure Printers");
  68. iconName: "configure";
  69. }
  70. Action {
  71. id: documentationAction;
  72. //: Show Online Documentation action
  73. text: qsTr("Show Online &Documentation");
  74. iconName: "help-contents";
  75. shortcut: StandardKey.Help;
  76. }
  77. Action {
  78. id: reportBugAction;
  79. //: Report a Bug Action
  80. text: qsTr("Report a &Bug");
  81. iconName: "tools-report-bug";
  82. }
  83. Action {
  84. id: aboutAction;
  85. //: About action
  86. text: qsTr("&About...");
  87. iconName: "help-about";
  88. }
  89. Action {
  90. id: deleteSelectionAction;
  91. //: Delete selection action
  92. text: qsTr("Delete Selection");
  93. iconName: "edit-delete";
  94. shortcut: StandardKey.Delete;
  95. }
  96. Action {
  97. id: deleteObjectAction;
  98. //: Delete object action
  99. text: qsTr("Delete Object");
  100. iconName: "edit-delete";
  101. shortcut: StandardKey.Backspace;
  102. }
  103. Action {
  104. id: centerObjectAction;
  105. //: Center object action
  106. text: qsTr("Center Object on Platform");
  107. }
  108. Action
  109. {
  110. id: groupObjectsAction
  111. text: qsTr("Group objects");
  112. enabled: UM.Scene.numObjectsSelected > 1 ? true: false
  113. }
  114. Action
  115. {
  116. id: unGroupObjectsAction
  117. text: qsTr("Ungroup objects");
  118. enabled: UM.Scene.isGroupSelected
  119. }
  120. Action
  121. {
  122. id: mergeObjectsAction
  123. text: qsTr("Merge objects");
  124. enabled: UM.Scene.numObjectsSelected > 1 ? true: false
  125. }
  126. Action {
  127. id: multiplyObjectAction;
  128. //: Duplicate object action
  129. text: qsTr("Duplicate Object");
  130. }
  131. Action {
  132. id: splitObjectAction;
  133. //: Split object action
  134. text: qsTr("Split Object into Parts");
  135. enabled: false;
  136. }
  137. Action {
  138. id: deleteAllAction;
  139. //: Clear build platform action
  140. text: qsTr("Clear Build Platform");
  141. iconName: "edit-clear";
  142. }
  143. Action {
  144. id: reloadAllAction;
  145. //: Reload all objects action
  146. text: qsTr("Reload All Objects");
  147. }
  148. Action {
  149. id: resetAllTranslationAction;
  150. //: Reset all positions action
  151. text: qsTr("Reset All Object Positions");
  152. }
  153. Action {
  154. id: resetAllAction;
  155. //: Reset all positions action
  156. text: qsTr("Reset All Object Transformations");
  157. }
  158. Action {
  159. id: openAction;
  160. //: Open file action
  161. text: qsTr("&Open...");
  162. iconName: "document-open";
  163. shortcut: StandardKey.Open;
  164. }
  165. Action {
  166. id: saveAction;
  167. //: Save file action
  168. text: qsTr("&Save...");
  169. iconName: "document-save";
  170. shortcut: StandardKey.Save;
  171. }
  172. Action {
  173. id: showEngineLogAction;
  174. //: Show engine log action
  175. text: qsTr("Show engine &log...");
  176. iconName: "view-list-text";
  177. }
  178. }