toolbar.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /*
  2. * Activiti Modeler component part of the Activiti project
  3. * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. 'use strict';
  19. var KISBPM = KISBPM || {};
  20. KISBPM.TOOLBAR_CONFIG = {
  21. "items" : [
  22. {
  23. "type" : "button",
  24. "title" : "TOOLBAR.ACTION.SAVE",
  25. "cssClass" : "editor-icon editor-icon-save",
  26. "action" : "KISBPM.TOOLBAR.ACTIONS.saveModel"
  27. },
  28. {
  29. "type" : "separator",
  30. "title" : "",
  31. "cssClass" : "toolbar-separator"
  32. },
  33. {
  34. "type" : "button",
  35. "title" : "TOOLBAR.ACTION.CUT",
  36. "cssClass" : "editor-icon editor-icon-cut",
  37. "action" : "KISBPM.TOOLBAR.ACTIONS.cut",
  38. "enabled" : false,
  39. "enabledAction" : "element"
  40. },
  41. {
  42. "type" : "button",
  43. "title" : "TOOLBAR.ACTION.COPY",
  44. "cssClass" : "editor-icon editor-icon-copy",
  45. "action" : "KISBPM.TOOLBAR.ACTIONS.copy",
  46. "enabled" : false,
  47. "enabledAction" : "element"
  48. },
  49. {
  50. "type" : "button",
  51. "title" : "TOOLBAR.ACTION.PASTE",
  52. "cssClass" : "editor-icon editor-icon-paste",
  53. "action" : "KISBPM.TOOLBAR.ACTIONS.paste",
  54. "enabled" : false
  55. },
  56. {
  57. "type" : "button",
  58. "title" : "TOOLBAR.ACTION.DELETE",
  59. "cssClass" : "editor-icon editor-icon-delete",
  60. "action" : "KISBPM.TOOLBAR.ACTIONS.deleteItem",
  61. "enabled" : false,
  62. "enabledAction" : "element"
  63. },
  64. {
  65. "type" : "separator",
  66. "title" : "TOOLBAR.ACTION.SAVE",
  67. "cssClass" : "toolbar-separator"
  68. },
  69. {
  70. "type" : "button",
  71. "title" : "TOOLBAR.ACTION.REDO",
  72. "cssClass" : "editor-icon editor-icon-redo",
  73. "action" : "KISBPM.TOOLBAR.ACTIONS.redo",
  74. "enabled" : false
  75. },
  76. {
  77. "type" : "button",
  78. "title" : "TOOLBAR.ACTION.UNDO",
  79. "cssClass" : "editor-icon editor-icon-undo",
  80. "action" : "KISBPM.TOOLBAR.ACTIONS.undo",
  81. "enabled" : false
  82. },
  83. {
  84. "type" : "separator",
  85. "title" : "TOOLBAR.ACTION.SAVE",
  86. "cssClass" : "toolbar-separator"
  87. },
  88. {
  89. "type" : "button",
  90. "title" : "TOOLBAR.ACTION.ALIGNVERTICAL",
  91. "cssClass" : "editor-icon editor-icon-align-vertical",
  92. "action" : "KISBPM.TOOLBAR.ACTIONS.alignVertical",
  93. "enabled" : false,
  94. "enabledAction" : "element",
  95. "minSelectionCount" : 2
  96. },
  97. {
  98. "type" : "button",
  99. "title" : "TOOLBAR.ACTION.ALIGNHORIZONTAL",
  100. "cssClass" : "editor-icon editor-icon-align-horizontal",
  101. "action" : "KISBPM.TOOLBAR.ACTIONS.alignHorizontal",
  102. "enabledAction" : "element",
  103. "enabled" : false,
  104. "minSelectionCount" : 2
  105. },
  106. {
  107. "type" : "button",
  108. "title" : "TOOLBAR.ACTION.SAMESIZE",
  109. "cssClass" : "editor-icon editor-icon-same-size",
  110. "action" : "KISBPM.TOOLBAR.ACTIONS.sameSize",
  111. "enabledAction" : "element",
  112. "enabled" : false,
  113. "minSelectionCount" : 2
  114. },
  115. {
  116. "type" : "separator",
  117. "title" : "TOOLBAR.ACTION.SAVE",
  118. "cssClass" : "toolbar-separator"
  119. },
  120. {
  121. "type" : "button",
  122. "title" : "TOOLBAR.ACTION.ZOOMIN",
  123. "cssClass" : "editor-icon editor-icon-zoom-in",
  124. "action" : "KISBPM.TOOLBAR.ACTIONS.zoomIn"
  125. },
  126. {
  127. "type" : "button",
  128. "title" : "TOOLBAR.ACTION.ZOOMOUT",
  129. "cssClass" : "editor-icon editor-icon-zoom-out",
  130. "action" : "KISBPM.TOOLBAR.ACTIONS.zoomOut"
  131. },
  132. {
  133. "type" : "button",
  134. "title" : "TOOLBAR.ACTION.ZOOMACTUAL",
  135. "cssClass" : "editor-icon editor-icon-zoom-actual",
  136. "action" : "KISBPM.TOOLBAR.ACTIONS.zoomActual"
  137. },
  138. {
  139. "type" : "button",
  140. "title" : "TOOLBAR.ACTION.ZOOMFIT",
  141. "cssClass" : "editor-icon editor-icon-zoom-fit",
  142. "action" : "KISBPM.TOOLBAR.ACTIONS.zoomFit"
  143. },
  144. {
  145. "type" : "separator",
  146. "title" : "TOOLBAR.ACTION.SAVE",
  147. "cssClass" : "toolbar-separator"
  148. },
  149. {
  150. "type" : "button",
  151. "title" : "TOOLBAR.ACTION.BENDPOINT.ADD",
  152. "cssClass" : "editor-icon editor-icon-bendpoint-add",
  153. "action" : "KISBPM.TOOLBAR.ACTIONS.addBendPoint",
  154. "id" : "add-bendpoint-button"
  155. },
  156. {
  157. "type" : "button",
  158. "title" : "TOOLBAR.ACTION.BENDPOINT.REMOVE",
  159. "cssClass" : "editor-icon editor-icon-bendpoint-remove",
  160. "action" : "KISBPM.TOOLBAR.ACTIONS.removeBendPoint",
  161. "id" : "remove-bendpoint-button"
  162. }
  163. ],
  164. "secondaryItems" : [
  165. {
  166. "type" : "button",
  167. "title" : "Close",
  168. "cssClass" : "editor-icon editor-icon-close",
  169. "action" : "KISBPM.TOOLBAR.ACTIONS.closeEditor"
  170. }
  171. ]
  172. };