提交 | 用户 | 时间
|
1ac2bc
|
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 |
|
|
15 |
* You should have received a copy of the GNU Lesser General Public |
|
16 |
* License along with this library; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 |
*/ |
|
19 |
'use strict'; |
|
20 |
|
|
21 |
var KISBPM = KISBPM || {}; |
|
22 |
KISBPM.TOOLBAR_CONFIG = { |
|
23 |
"items" : [ |
|
24 |
{ |
|
25 |
"type" : "button", |
|
26 |
"title" : "TOOLBAR.ACTION.SAVE", |
|
27 |
"cssClass" : "editor-icon editor-icon-save", |
|
28 |
"action" : "KISBPM.TOOLBAR.ACTIONS.saveModel" |
|
29 |
}, |
|
30 |
{ |
|
31 |
"type" : "separator", |
|
32 |
"title" : "", |
|
33 |
"cssClass" : "toolbar-separator" |
|
34 |
}, |
|
35 |
{ |
|
36 |
"type" : "button", |
|
37 |
"title" : "TOOLBAR.ACTION.CUT", |
|
38 |
"cssClass" : "editor-icon editor-icon-cut", |
|
39 |
"action" : "KISBPM.TOOLBAR.ACTIONS.cut", |
|
40 |
"enabled" : false, |
|
41 |
"enabledAction" : "element" |
|
42 |
}, |
|
43 |
{ |
|
44 |
"type" : "button", |
|
45 |
"title" : "TOOLBAR.ACTION.COPY", |
|
46 |
"cssClass" : "editor-icon editor-icon-copy", |
|
47 |
"action" : "KISBPM.TOOLBAR.ACTIONS.copy", |
|
48 |
"enabled" : false, |
|
49 |
"enabledAction" : "element" |
|
50 |
}, |
|
51 |
{ |
|
52 |
"type" : "button", |
|
53 |
"title" : "TOOLBAR.ACTION.PASTE", |
|
54 |
"cssClass" : "editor-icon editor-icon-paste", |
|
55 |
"action" : "KISBPM.TOOLBAR.ACTIONS.paste", |
|
56 |
"enabled" : false |
|
57 |
}, |
|
58 |
{ |
|
59 |
"type" : "button", |
|
60 |
"title" : "TOOLBAR.ACTION.DELETE", |
|
61 |
"cssClass" : "editor-icon editor-icon-delete", |
|
62 |
"action" : "KISBPM.TOOLBAR.ACTIONS.deleteItem", |
|
63 |
"enabled" : false, |
|
64 |
"enabledAction" : "element" |
|
65 |
}, |
|
66 |
{ |
|
67 |
"type" : "separator", |
|
68 |
"title" : "TOOLBAR.ACTION.SAVE", |
|
69 |
"cssClass" : "toolbar-separator" |
|
70 |
}, |
|
71 |
{ |
|
72 |
"type" : "button", |
|
73 |
"title" : "TOOLBAR.ACTION.REDO", |
|
74 |
"cssClass" : "editor-icon editor-icon-redo", |
|
75 |
"action" : "KISBPM.TOOLBAR.ACTIONS.redo", |
|
76 |
"enabled" : false |
|
77 |
}, |
|
78 |
{ |
|
79 |
"type" : "button", |
|
80 |
"title" : "TOOLBAR.ACTION.UNDO", |
|
81 |
"cssClass" : "editor-icon editor-icon-undo", |
|
82 |
"action" : "KISBPM.TOOLBAR.ACTIONS.undo", |
|
83 |
"enabled" : false |
|
84 |
}, |
|
85 |
{ |
|
86 |
"type" : "separator", |
|
87 |
"title" : "TOOLBAR.ACTION.SAVE", |
|
88 |
"cssClass" : "toolbar-separator" |
|
89 |
}, |
|
90 |
{ |
|
91 |
"type" : "button", |
|
92 |
"title" : "TOOLBAR.ACTION.ALIGNVERTICAL", |
|
93 |
"cssClass" : "editor-icon editor-icon-align-vertical", |
|
94 |
"action" : "KISBPM.TOOLBAR.ACTIONS.alignVertical", |
|
95 |
"enabled" : false, |
|
96 |
"enabledAction" : "element", |
|
97 |
"minSelectionCount" : 2 |
|
98 |
}, |
|
99 |
{ |
|
100 |
"type" : "button", |
|
101 |
"title" : "TOOLBAR.ACTION.ALIGNHORIZONTAL", |
|
102 |
"cssClass" : "editor-icon editor-icon-align-horizontal", |
|
103 |
"action" : "KISBPM.TOOLBAR.ACTIONS.alignHorizontal", |
|
104 |
"enabledAction" : "element", |
|
105 |
"enabled" : false, |
|
106 |
"minSelectionCount" : 2 |
|
107 |
}, |
|
108 |
{ |
|
109 |
"type" : "button", |
|
110 |
"title" : "TOOLBAR.ACTION.SAMESIZE", |
|
111 |
"cssClass" : "editor-icon editor-icon-same-size", |
|
112 |
"action" : "KISBPM.TOOLBAR.ACTIONS.sameSize", |
|
113 |
"enabledAction" : "element", |
|
114 |
"enabled" : false, |
|
115 |
"minSelectionCount" : 2 |
|
116 |
}, |
|
117 |
{ |
|
118 |
"type" : "separator", |
|
119 |
"title" : "TOOLBAR.ACTION.SAVE", |
|
120 |
"cssClass" : "toolbar-separator" |
|
121 |
}, |
|
122 |
{ |
|
123 |
"type" : "button", |
|
124 |
"title" : "TOOLBAR.ACTION.ZOOMIN", |
|
125 |
"cssClass" : "editor-icon editor-icon-zoom-in", |
|
126 |
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomIn" |
|
127 |
}, |
|
128 |
{ |
|
129 |
"type" : "button", |
|
130 |
"title" : "TOOLBAR.ACTION.ZOOMOUT", |
|
131 |
"cssClass" : "editor-icon editor-icon-zoom-out", |
|
132 |
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomOut" |
|
133 |
}, |
|
134 |
{ |
|
135 |
"type" : "button", |
|
136 |
"title" : "TOOLBAR.ACTION.ZOOMACTUAL", |
|
137 |
"cssClass" : "editor-icon editor-icon-zoom-actual", |
|
138 |
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomActual" |
|
139 |
}, |
|
140 |
{ |
|
141 |
"type" : "button", |
|
142 |
"title" : "TOOLBAR.ACTION.ZOOMFIT", |
|
143 |
"cssClass" : "editor-icon editor-icon-zoom-fit", |
|
144 |
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomFit" |
|
145 |
}, |
|
146 |
{ |
|
147 |
"type" : "separator", |
|
148 |
"title" : "TOOLBAR.ACTION.SAVE", |
|
149 |
"cssClass" : "toolbar-separator" |
|
150 |
}, |
|
151 |
{ |
|
152 |
"type" : "button", |
|
153 |
"title" : "TOOLBAR.ACTION.BENDPOINT.ADD", |
|
154 |
"cssClass" : "editor-icon editor-icon-bendpoint-add", |
|
155 |
"action" : "KISBPM.TOOLBAR.ACTIONS.addBendPoint", |
|
156 |
"id" : "add-bendpoint-button" |
|
157 |
}, |
|
158 |
{ |
|
159 |
"type" : "button", |
|
160 |
"title" : "TOOLBAR.ACTION.BENDPOINT.REMOVE", |
|
161 |
"cssClass" : "editor-icon editor-icon-bendpoint-remove", |
|
162 |
"action" : "KISBPM.TOOLBAR.ACTIONS.removeBendPoint", |
|
163 |
"id" : "remove-bendpoint-button" |
|
164 |
} |
|
165 |
], |
|
166 |
|
|
167 |
"secondaryItems" : [ |
|
168 |
{ |
|
169 |
"type" : "button", |
|
170 |
"title" : "Close", |
|
171 |
"cssClass" : "editor-icon editor-icon-close", |
|
172 |
"action" : "KISBPM.TOOLBAR.ACTIONS.closeEditor" |
|
173 |
} |
|
174 |
] |
|
175 |
}; |