author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Jan 2019 09:35:11 +0000 | |
changeset 866 | 8a885a75daa9 |
parent 864 | c854577212b8 |
child 914 | 04391080b32d |
permissions | -rw-r--r-- |
864
c854577212b8
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
535
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
c854577212b8
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
535
diff
changeset
|
2 |
|
211 | 3 |
" |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
4 |
stx:libscm - a new source code management library for Smalltalk/X |
509
f92210d4585b
Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
436
diff
changeset
|
5 |
Copyright (C) 2012-2015 Jan Vrany |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
6 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
7 |
This library is free software; you can redistribute it and/or |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
8 |
modify it under the terms of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
9 |
License as published by the Free Software Foundation; either |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
10 |
version 2.1 of the License. |
211 | 11 |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
12 |
This library is distributed in the hope that it will be useful, |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
15 |
Lesser General Public License for more details. |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
16 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
17 |
You should have received a copy of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
18 |
License along with this library; if not, write to the Free Software |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
211 | 20 |
" |
44 | 21 |
"{ Package: 'stx:libscm/common' }" |
22 |
||
514
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
23 |
"{ NameSpace: Smalltalk }" |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
24 |
|
44 | 25 |
SCMAbstractDialog subclass:#SCMAbstractCommitDialog |
26 |
instanceVariableNames:'task messageView messageModifiedHolder fileSelectionHolder |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
27 |
fileListShowOnlyModifiedHolder fileListHolder fileListView |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
28 |
enabledHolder' |
44 | 29 |
classVariableNames:'' |
30 |
poolDictionaries:'' |
|
31 |
category:'SCM-Common-StX-Interface' |
|
32 |
! |
|
33 |
||
34 |
Object subclass:#FileEntry |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
35 |
instanceVariableNames:'application entry include includeEditable name icon' |
44 | 36 |
classVariableNames:'' |
37 |
poolDictionaries:'' |
|
38 |
privateIn:SCMAbstractCommitDialog |
|
39 |
! |
|
40 |
||
211 | 41 |
!SCMAbstractCommitDialog class methodsFor:'documentation'! |
42 |
||
43 |
copyright |
|
44 |
" |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
45 |
stx:libscm - a new source code management library for Smalltalk/X |
509
f92210d4585b
Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
436
diff
changeset
|
46 |
Copyright (C) 2012-2015 Jan Vrany |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
47 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
48 |
This library is free software; you can redistribute it and/or |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
49 |
modify it under the terms of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
50 |
License as published by the Free Software Foundation; either |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
51 |
version 2.1 of the License. |
211 | 52 |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
53 |
This library is distributed in the hope that it will be useful, |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
54 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
55 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
56 |
Lesser General Public License for more details. |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
57 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
58 |
You should have received a copy of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
59 |
License along with this library; if not, write to the Free Software |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
60 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
211 | 61 |
" |
62 |
! ! |
|
44 | 63 |
|
64 |
!SCMAbstractCommitDialog class methodsFor:'interface specs'! |
|
65 |
||
66 |
contentSpec |
|
67 |
"This resource specification was automatically generated |
|
68 |
by the UIPainter of ST/X." |
|
69 |
||
70 |
"Do not manually edit this!! If it is corrupted, |
|
71 |
the UIPainter may not be able to read the specification." |
|
72 |
||
73 |
" |
|
74 |
UIPainter new openOnClass:SVN::CommitDialog2 andSelector:#contentSpec |
|
75 |
SVN::CommitDialog2 new openInterface:#contentSpec |
|
76 |
" |
|
77 |
||
78 |
<resource: #canvas> |
|
79 |
||
80 |
^ |
|
81 |
#(FullSpec |
|
82 |
name: contentSpec |
|
83 |
window: |
|
84 |
(WindowSpec |
|
85 |
label: 'Commit...' |
|
86 |
name: 'Commit...' |
|
87 |
min: (Point 10 10) |
|
88 |
bounds: (Rectangle 0 0 698 529) |
|
89 |
) |
|
90 |
component: |
|
91 |
(SpecCollection |
|
92 |
collection: ( |
|
93 |
(VariableVerticalPanelSpec |
|
94 |
name: 'VariablePanel' |
|
95 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
96 |
component: |
|
97 |
(SpecCollection |
|
98 |
collection: ( |
|
99 |
(ViewSpec |
|
100 |
name: 'MessageAndInfoPane' |
|
101 |
component: |
|
102 |
(SpecCollection |
|
103 |
collection: ( |
|
104 |
(SubCanvasSpec |
|
105 |
name: 'InfoPanel' |
|
106 |
layout: (LayoutFrame 0 0 0 0 0 1 40 0) |
|
107 |
level: 0 |
|
108 |
initiallyInvisible: true |
|
109 |
hasHorizontalScrollBar: false |
|
110 |
hasVerticalScrollBar: false |
|
111 |
clientKey: infoPanel |
|
112 |
createNewBuilder: false |
|
113 |
) |
|
114 |
(ViewSpec |
|
115 |
name: 'MessagePane' |
|
116 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
117 |
component: |
|
118 |
(SpecCollection |
|
119 |
collection: ( |
|
120 |
(LabelSpec |
|
121 |
label: 'Commit message:' |
|
122 |
name: 'MessageLabel' |
|
123 |
layout: (LayoutFrame 0 0 0 0 0 1 25 0) |
|
124 |
translateLabel: true |
|
125 |
adjust: left |
|
126 |
) |
|
127 |
(TextEditorSpec |
|
128 |
name: 'Message' |
|
129 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1) |
|
130 |
enableChannel: enabledHolder |
|
131 |
hasHorizontalScrollBar: true |
|
132 |
hasVerticalScrollBar: true |
|
133 |
modifiedChannel: messageModifiedHolder |
|
134 |
hasKeyboardFocusInitially: false |
|
135 |
postBuildCallback: messageView: |
|
136 |
) |
|
137 |
) |
|
138 |
||
139 |
) |
|
140 |
) |
|
141 |
) |
|
142 |
||
143 |
) |
|
144 |
) |
|
145 |
(ViewSpec |
|
146 |
name: 'FilePane' |
|
147 |
component: |
|
148 |
(SpecCollection |
|
149 |
collection: ( |
|
150 |
(UISubSpecification |
|
151 |
name: 'FilePaneSpec' |
|
152 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
153 |
minorKey: filePaneSpec |
|
154 |
) |
|
155 |
) |
|
156 |
||
157 |
) |
|
158 |
) |
|
159 |
) |
|
160 |
||
161 |
) |
|
162 |
handles: (Any 0.5 1.0) |
|
163 |
) |
|
164 |
) |
|
165 |
||
166 |
) |
|
167 |
) |
|
168 |
! |
|
169 |
||
170 |
fileListColumnSpec |
|
171 |
"This resource specification was automatically generated |
|
172 |
by the DataSetBuilder of ST/X." |
|
173 |
||
174 |
"Do not manually edit this!! If it is corrupted, |
|
175 |
the DataSetBuilder may not be able to read the specification." |
|
176 |
||
177 |
" |
|
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
178 |
DataSetBuilder new openOnClass:SCMAbstractCommitDialog andSelector:#fileListColumnSpec |
44 | 179 |
" |
180 |
||
181 |
<resource: #tableColumns> |
|
182 |
||
183 |
^#( |
|
184 |
(DataSetColumnSpec |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
185 |
label: 'Icon' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
186 |
activeHelpKey: '' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
187 |
activeHelpKeyForLabel: '' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
188 |
labelButtonType: Button |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
189 |
width: 22 |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
190 |
minWidth: 22 |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
191 |
height: heightOfFirstRow |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
192 |
menuFromApplication: false |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
193 |
printSelector: icon |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
194 |
canSelect: false |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
195 |
showRowSeparator: false |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
196 |
showColSeparator: false |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
197 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
198 |
(DataSetColumnSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
199 |
label: 'Check' |
44 | 200 |
activeHelpKey: '' |
201 |
activeHelpKeyForLabel: '' |
|
202 |
labelButtonType: None |
|
203 |
width: 22 |
|
204 |
minWidth: 22 |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
205 |
height: heightOfFirstRow |
44 | 206 |
editorType: CheckToggle |
207 |
rendererType: CheckToggle |
|
208 |
model: include |
|
209 |
menuFromApplication: false |
|
210 |
printSelector: include |
|
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
211 |
selectSelector: includeEditable |
44 | 212 |
showRowSeparator: false |
213 |
showColSeparator: false |
|
214 |
) |
|
215 |
(DataSetColumnSpec |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
216 |
label: 'File' |
44 | 217 |
labelAlignment: left |
218 |
activeHelpKey: '' |
|
219 |
activeHelpKeyForLabel: '' |
|
220 |
labelButtonType: Button |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
221 |
height: heightOfFirstRow |
44 | 222 |
menuFromApplication: false |
223 |
printSelector: pathText |
|
224 |
canSelect: false |
|
225 |
showRowSeparator: false |
|
226 |
showColSeparator: false |
|
227 |
) |
|
228 |
) |
|
229 |
||
230 |
! |
|
231 |
||
232 |
filePaneSpec |
|
233 |
"This resource specification was automatically generated |
|
234 |
by the UIPainter of ST/X." |
|
235 |
||
236 |
"Do not manually edit this!! If it is corrupted, |
|
237 |
the UIPainter may not be able to read the specification." |
|
238 |
||
239 |
" |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
240 |
UIPainter new openOnClass:SCMAbstractCommitDialog andSelector:#filePaneSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
241 |
SCMAbstractCommitDialog new openInterface:#filePaneSpec |
44 | 242 |
" |
243 |
||
244 |
<resource: #canvas> |
|
245 |
||
246 |
^ |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
247 |
#(FullSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
248 |
name: filePaneSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
249 |
window: |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
250 |
(WindowSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
251 |
label: 'File List' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
252 |
name: 'File List' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
253 |
min: (Point 10 10) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
254 |
bounds: (Rectangle 0 0 586 403) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
255 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
256 |
component: |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
257 |
(SpecCollection |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
258 |
collection: ( |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
259 |
(LabelSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
260 |
label: 'Checked files will be commited to repository.' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
261 |
name: 'FileListLabel' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
262 |
layout: (LayoutFrame 0 0 10 0 0 1 35 0) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
263 |
translateLabel: true |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
264 |
adjust: left |
44 | 265 |
) |
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
266 |
(DataSetSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
267 |
name: 'WCEntryTable' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
268 |
layout: (LayoutFrame 0 0 35 0 0 1 -30 1) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
269 |
enableChannel: enabledHolder |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
270 |
model: fileSelectionHolder |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
271 |
menu: fileListMenu |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
272 |
hasHorizontalScrollBar: true |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
273 |
hasVerticalScrollBar: true |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
274 |
dataList: fileListHolder |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
275 |
useIndex: false |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
276 |
columnHolder: fileListColumnSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
277 |
showLabels: false |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
278 |
postBuildCallback: postBuildFileListView: |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
279 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
280 |
(CheckBoxSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
281 |
label: 'Show only modified entries' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
282 |
name: 'ShowOnlyChanged' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
283 |
layout: (LayoutFrame 0 0 -30 1 -170 1 0 1) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
284 |
enableChannel: enabledHolder |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
285 |
model: fileListShowOnlyModifiedHolder |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
286 |
translateLabel: true |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
287 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
288 |
(LinkButtonSpec |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
289 |
label: 'Browse working copy' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
290 |
name: 'BrowseWC' |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
291 |
layout: (LayoutFrame -170 1 -30 1 0 1 0 1) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
292 |
translateLabel: true |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
293 |
labelChannel: browseWorkingCopyLabel |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
294 |
adjust: right |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
295 |
model: doBrowseWorkingCopy |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
296 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
297 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
298 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
299 |
) |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
300 |
) |
44 | 301 |
! |
302 |
||
303 |
windowSpec |
|
304 |
"This resource specification was automatically generated |
|
305 |
by the UIPainter of ST/X." |
|
306 |
||
307 |
"Do not manually edit this!! If it is corrupted, |
|
308 |
the UIPainter may not be able to read the specification." |
|
309 |
||
310 |
" |
|
66
4a4af79eb019
SCMAbstractPackageModel: fixed initialization of working copy
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
60
diff
changeset
|
311 |
UIPainter new openOnClass:SCMAbstractCommitDialog andSelector:#windowSpec |
4a4af79eb019
SCMAbstractPackageModel: fixed initialization of working copy
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
60
diff
changeset
|
312 |
SCMAbstractCommitDialog new openInterface:#windowSpec |
4a4af79eb019
SCMAbstractPackageModel: fixed initialization of working copy
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
60
diff
changeset
|
313 |
SCMAbstractCommitDialog open |
44 | 314 |
" |
315 |
||
316 |
<resource: #canvas> |
|
317 |
||
318 |
^ |
|
535
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
319 |
#(FullSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
320 |
name: windowSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
321 |
window: |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
322 |
(WindowSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
323 |
label: 'SubVersion: Dialog ' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
324 |
name: 'SubVersion: Dialog ' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
325 |
labelChannel: titleHolder |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
326 |
min: (Point 10 10) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
327 |
bounds: (Rectangle 0 0 648 451) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
328 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
329 |
component: |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
330 |
(SpecCollection |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
331 |
collection: ( |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
332 |
(ViewSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
333 |
name: 'TitleBox' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
334 |
layout: (LayoutFrame 0 0 0 0 0 1 66 0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
335 |
backgroundColor: (Color 100.0 100.0 100.0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
336 |
component: |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
337 |
(SpecCollection |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
338 |
collection: ( |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
339 |
(LabelSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
340 |
label: 'DialogTitle' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
341 |
name: 'DialogTitle' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
342 |
layout: (LayoutFrame 10 0 0 0 -75 1 40 0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
343 |
style: (FontDescription helvetica medium roman 18 #'iso10646-1') |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
344 |
backgroundColor: (Color 100.0 100.0 100.0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
345 |
translateLabel: true |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
346 |
labelChannel: titleHolder |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
347 |
adjust: left |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
348 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
349 |
(LabelSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
350 |
label: 'DialogSubtitle' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
351 |
name: 'DialogSubtitle' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
352 |
layout: (LayoutFrame 30 0 40 0 -75 1 66 0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
353 |
backgroundColor: (Color 100.0 100.0 100.0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
354 |
translateLabel: true |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
355 |
labelChannel: subtitleHolder |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
356 |
resizeForLabel: false |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
357 |
adjust: left |
44 | 358 |
) |
535
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
359 |
(LabelSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
360 |
label: 'Icon' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
361 |
name: 'DialogIcon' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
362 |
layout: (LayoutFrame -157 1 0 0 0 1 66 0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
363 |
hasCharacterOrientedLabel: false |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
364 |
backgroundColor: (Color 100.0 100.0 100.0) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
365 |
translateLabel: true |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
366 |
labelChannel: dialogIconAspect |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
367 |
adjust: right |
44 | 368 |
) |
535
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
369 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
370 |
|
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
371 |
) |
44 | 372 |
) |
535
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
373 |
(ViewSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
374 |
name: 'ContentBox' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
375 |
layout: (LayoutFrame 5 0 70 0 -5 1 -50 1) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
376 |
component: |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
377 |
(SpecCollection |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
378 |
collection: ( |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
379 |
(SubCanvasSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
380 |
name: 'Content' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
381 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
382 |
hasHorizontalScrollBar: false |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
383 |
hasVerticalScrollBar: false |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
384 |
specHolder: contentSpecHolder |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
385 |
createNewBuilder: false |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
386 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
387 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
388 |
|
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
389 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
390 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
391 |
(DividerSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
392 |
name: 'Separator' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
393 |
layout: (LayoutFrame 5 0 -50 1 -5 1 -30 1) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
394 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
395 |
(UISubSpecification |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
396 |
name: 'Buttons' |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
397 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
398 |
minorKey: buttonsSpec |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
399 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
400 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
401 |
|
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
402 |
) |
cde846c99f0d
UI: dialog button ordering updated to follow St/X UI Coding Guideline.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
514
diff
changeset
|
403 |
) |
44 | 404 |
! ! |
405 |
||
406 |
!SCMAbstractCommitDialog class methodsFor:'menu specs'! |
|
407 |
||
408 |
fileListMenu |
|
409 |
"This resource specification was automatically generated |
|
410 |
by the MenuEditor of ST/X." |
|
411 |
||
412 |
"Do not manually edit this!! If it is corrupted, |
|
413 |
the MenuEditor may not be able to read the specification." |
|
414 |
||
415 |
||
416 |
" |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
417 |
MenuEditor new openOnClass:SCMAbstractCommitDialog andSelector:#fileListMenu |
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
418 |
(Menu new fromLiteralArrayEncoding:(SCMAbstractCommitDialog fileListMenu)) startUp |
44 | 419 |
" |
420 |
||
421 |
<resource: #menu> |
|
422 |
||
423 |
^ |
|
424 |
#(Menu |
|
425 |
( |
|
426 |
(MenuItem |
|
333 | 427 |
enabled: canShowDiffsForEntry |
44 | 428 |
label: 'Show differences' |
429 |
itemValue: doShowDiffsForEntry |
|
430 |
) |
|
431 |
(MenuItem |
|
333 | 432 |
enabled: canShowDiffsForEntry |
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
433 |
label: 'Show differences (against newest)' |
44 | 434 |
itemValue: doShowDiffsForEntryAgainstHEAD |
435 |
) |
|
514
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
436 |
(MenuItem |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
437 |
label: '-' |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
438 |
) |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
439 |
(MenuItem |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
440 |
label: 'Select All Files' |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
441 |
itemValue: doSelectAll |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
442 |
) |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
443 |
(MenuItem |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
444 |
label: 'Unselect all Files' |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
445 |
itemValue: doSelectNone |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
446 |
) |
44 | 447 |
) |
448 |
nil |
|
449 |
nil |
|
450 |
) |
|
451 |
! ! |
|
452 |
||
453 |
!SCMAbstractCommitDialog methodsFor:'accessing'! |
|
454 |
||
455 |
defaultSubtitle |
|
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
456 |
| t packages| |
44 | 457 |
|
458 |
t := self task. |
|
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
459 |
packages := t packages. |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
460 |
^packages notEmptyOrNil ifTrue:[ |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
461 |
packages size == 1 ifTrue:[ |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
462 |
'Package: ' , packages anElement name asText allItalic |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
463 |
] ifFalse:[ |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
464 |
'Packages: ' , ((packages collect:[:e | e name ]) asStringWith: ', ') |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
465 |
]. |
44 | 466 |
] ifFalse:[ |
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
467 |
| title | |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
468 |
|
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
469 |
title := t temporaryWorkingCopy root pathName , ' [' , t temporaryWorkingCopy branch name , ']'. |
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
470 |
title size > 70 ifTrue:[ |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
471 |
title := '...' , (title copyFrom: title size - 67). |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
472 |
]. |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
473 |
title. |
44 | 474 |
] |
475 |
||
476 |
"Created: / 28-10-2008 / 09:14:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
477 |
"Modified: / 22-02-2014 / 23:45:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 478 |
! |
479 |
||
480 |
fileListToCommit |
|
481 |
^(self fileListHolder value ? #()) |
|
482 |
select:[:entry|entry include] |
|
483 |
thenCollect:[:entry|entry path]. |
|
484 |
||
485 |
"Created: / 08-02-2012 / 18:16:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
486 |
! |
|
487 |
||
488 |
message |
|
489 |
||
490 |
^messageView notNil |
|
491 |
ifTrue:[messageView contents] |
|
492 |
ifFalse:[nil] |
|
493 |
||
494 |
"Created: / 31-03-2008 / 21:06:28 / janfrog" |
|
495 |
"Modified: / 09-04-2009 / 08:50:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
496 |
"Modified: / 08-02-2012 / 18:07:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
497 |
! |
|
498 |
||
499 |
message: aString |
|
500 |
||
501 |
^messageView contents: aString |
|
502 |
||
503 |
"Created: / 08-04-2009 / 23:27:09 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
504 |
"Modified: / 08-02-2012 / 18:08:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
505 |
! |
|
506 |
||
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
507 |
model |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
508 |
<resource: #obsolete> |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
509 |
|
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
510 |
self breakPoint: #jv. |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
511 |
^self task |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
512 |
|
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
513 |
"Created: / 12-01-2013 / 11:59:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
514 |
! |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
515 |
|
44 | 516 |
task |
517 |
||
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
518 |
^task |
44 | 519 |
|
520 |
"Created: / 23-03-2009 / 11:49:15 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
521 |
"Modified: / 12-01-2013 / 11:57:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 522 |
! |
523 |
||
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
524 |
task: t |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
525 |
task := t. |
44 | 526 |
|
527 |
"Created: / 23-03-2009 / 11:49:24 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
528 |
"Modified: / 12-01-2013 / 12:00:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 529 |
! |
530 |
||
531 |
workingCopy |
|
532 |
||
533 |
^self task workingCopy |
|
534 |
||
535 |
"Created: / 08-02-2012 / 18:07:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
536 |
! ! |
|
537 |
||
538 |
!SCMAbstractCommitDialog methodsFor:'acessing-views'! |
|
539 |
||
540 |
messageView: aView |
|
541 |
||
542 |
messageView := aView scrolledView. |
|
543 |
"/ messageView model: |
|
544 |
"/ (self class messages |
|
545 |
"/ at: self task package |
|
546 |
"/ ifAbsent:[self task message]) |
|
547 |
||
548 |
"Created: / 08-02-2012 / 17:58:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
549 |
! ! |
|
550 |
||
551 |
!SCMAbstractCommitDialog methodsFor:'actions'! |
|
552 |
||
553 |
doAccept |
|
554 |
||
555 |
self showProgressWhile:[ |
|
58
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
556 |
self acceptEnabled:false. |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
557 |
(self task) |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
558 |
message:self message; |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
559 |
paths: self fileListToCommit; |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
560 |
doCommit. |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
561 |
self accept value:true |
44 | 562 |
] |
563 |
||
564 |
"Created: / 01-04-2008 / 18:59:12 / janfrog" |
|
565 |
"Modified: / 19-08-2009 / 14:26:41 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
566 |
"Modified: / 08-02-2012 / 18:17:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
58
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
567 |
"Modified (format): / 15-11-2012 / 10:12:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 568 |
! |
569 |
||
570 |
doBrowseWorkingCopy |
|
172
ca0b1a930b87
Fix: use temporaryWorkingCopy in SCMAbstractCommitDialog>>doBrowseWorkingCopy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
571 |
self task temporaryWorkingCopyRoot browse |
44 | 572 |
|
172
ca0b1a930b87
Fix: use temporaryWorkingCopy in SCMAbstractCommitDialog>>doBrowseWorkingCopy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
573 |
"Modified: / 12-01-2013 / 14:03:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 574 |
! |
575 |
||
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
576 |
doCommitAllChangedPackages |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
577 |
| revision packages | |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
578 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
579 |
"/ Collect all changed packages at given revision... |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
580 |
revision := task packages revision. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
581 |
packages := task packages class new. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
582 |
task packages anElement root yourselfAndAllChildrenDo:[:each| |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
583 |
(each isVirtual not and:[each revision = revision and:[ each hasChanges ]]) ifTrue:[ |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
584 |
packages add: each. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
585 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
586 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
587 |
task packages: packages. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
588 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
589 |
"Created: / 03-03-2014 / 10:08:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
436
58c7b3b23cd2
Fixed commit warning when not all modified packages are about to commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
407
diff
changeset
|
590 |
"Modified: / 27-05-2014 / 16:03:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
591 |
! |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
592 |
|
44 | 593 |
doShowDiffsForEntry |
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
594 |
"raise an error: must be redefined in concrete subclass(es)" |
44 | 595 |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
596 |
^ self subclassResponsibility |
44 | 597 |
! |
598 |
||
599 |
doShowDiffsForEntryAgainstHEAD |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
600 |
"raise an error: must be redefined in concrete subclass(es)" |
44 | 601 |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
602 |
^ self subclassResponsibility |
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
603 |
! |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
604 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
605 |
postBuildFileListView: aScrolledView |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
606 |
<resource: #uiCallback> |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
607 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
608 |
fileListView := aScrolledView scrolledView. |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
609 |
"/ Ugly hack to make it working on 6.2.2, sigh. |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
610 |
"/ (ListModelView::TableRenderer canUnderstand: #showItemInAdditionToColumns:) ifTrue:[ |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
611 |
"/ fileListView setupTableRenderer |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
612 |
"/ showItemInAdditionToColumns: false; |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
613 |
"/ columnDescriptors: self class fileListColumnSpec. |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
614 |
"/ ]. |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
615 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
616 |
"Modified: / 29-11-2013 / 15:35:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 617 |
! ! |
618 |
||
619 |
!SCMAbstractCommitDialog methodsFor:'aspects'! |
|
620 |
||
621 |
acceptButtonTitleAspect |
|
622 |
||
623 |
^'Commit' |
|
624 |
||
625 |
"Created: / 08-02-2012 / 17:46:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
626 |
! |
|
627 |
||
628 |
browseWorkingCopyLabel |
|
629 |
||
630 |
^'Browse working copy...' asText |
|
631 |
colorizeAllWith: Color blue; |
|
632 |
actionForAll:[ self doBrowseWorkingCopy ]; |
|
633 |
yourself |
|
634 |
||
635 |
"Created: / 05-02-2012 / 01:28:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
636 |
! |
|
637 |
||
638 |
enabledHolder |
|
639 |
<resource: #uiAspect> |
|
640 |
||
641 |
enabledHolder isNil ifTrue:[ |
|
642 |
enabledHolder := true asValue. |
|
643 |
]. |
|
644 |
^ enabledHolder. |
|
645 |
||
646 |
"Modified (comment): / 11-02-2012 / 23:28:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
647 |
! |
|
648 |
||
649 |
fileListHolder |
|
650 |
<resource: #uiAspect> |
|
651 |
||
652 |
"automatically generated by UIPainter ..." |
|
653 |
||
654 |
"*** the code below creates a default model when invoked." |
|
655 |
"*** (which may not be the one you wanted)" |
|
656 |
"*** Please change as required and accept it in the browser." |
|
657 |
"*** (and replace this comment by something more useful ;-)" |
|
658 |
||
659 |
fileListHolder isNil ifTrue:[ |
|
660 |
fileListHolder := ValueHolder new. |
|
661 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
662 |
"/ fileListHolder addDependent:self. |
|
663 |
"/ fileListHolder onChangeSend:#fileListHolderChanged to:self. |
|
664 |
]. |
|
665 |
^ fileListHolder. |
|
666 |
||
667 |
"Modified: / 08-02-2012 / 18:27:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
668 |
! |
|
669 |
||
670 |
fileListShowOnlyModifiedHolder |
|
671 |
<resource: #uiAspect> |
|
672 |
||
673 |
"automatically generated by UIPainter ..." |
|
674 |
||
675 |
"*** the code below creates a default model when invoked." |
|
676 |
"*** (which may not be the one you wanted)" |
|
677 |
"*** Please change as required and accept it in the browser." |
|
678 |
"*** (and replace this comment by something more useful ;-)" |
|
679 |
||
680 |
fileListShowOnlyModifiedHolder isNil ifTrue:[ |
|
681 |
fileListShowOnlyModifiedHolder := true asValue. |
|
682 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
683 |
"/ fileListShowOnlyModifiedHolder addDependent:self. |
|
684 |
fileListShowOnlyModifiedHolder onChangeSend:#updateFileList to:self. |
|
685 |
]. |
|
686 |
^ fileListShowOnlyModifiedHolder. |
|
687 |
||
688 |
"Modified: / 08-02-2012 / 18:04:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
689 |
! |
|
690 |
||
691 |
fileSelectionHolder |
|
692 |
<resource: #uiAspect> |
|
693 |
||
694 |
"automatically generated by UIPainter ..." |
|
695 |
||
696 |
"*** the code below creates a default model when invoked." |
|
697 |
"*** (which may not be the one you wanted)" |
|
698 |
"*** Please change as required and accept it in the browser." |
|
699 |
"*** (and replace this comment by something more useful ;-)" |
|
700 |
||
701 |
fileSelectionHolder isNil ifTrue:[ |
|
702 |
fileSelectionHolder := ValueHolder new. |
|
703 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
704 |
"/ fileSelectionHolder addDependent:self. |
|
705 |
"/ fileSelectionHolder onChangeSend:#fileSelectionHolderChanged to:self. |
|
706 |
]. |
|
707 |
^ fileSelectionHolder. |
|
708 |
! |
|
709 |
||
710 |
infoPanel |
|
711 |
infoPanel isNil ifTrue:[ |
|
712 |
infoPanel := Tools::InlineMessageDialog new. |
|
713 |
infoPanel panelHiddenHolder: self enabledHolder. |
|
714 |
]. |
|
715 |
^ infoPanel |
|
716 |
||
717 |
"Created: / 09-02-2012 / 19:23:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
718 |
! |
|
719 |
||
720 |
messageModifiedHolder |
|
721 |
"return/create the 'messageModifiedHolder' value holder (automatically generated)" |
|
722 |
||
723 |
messageModifiedHolder isNil ifTrue:[ |
|
724 |
messageModifiedHolder := ValueHolder with: false. |
|
725 |
messageModifiedHolder onChangeEvaluate:[ |
|
726 |
self acceptEnabled: (self message indexOfNonSeparator ~~ 0). |
|
727 |
messageModifiedHolder setValue: false. |
|
728 |
] |
|
729 |
]. |
|
730 |
^ messageModifiedHolder |
|
731 |
||
732 |
"Modified: / 08-02-2012 / 18:46:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
733 |
! ! |
|
734 |
||
735 |
!SCMAbstractCommitDialog methodsFor:'change & update'! |
|
736 |
||
737 |
updateFileList |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
738 |
"raise an error: must be redefined in concrete subclass(es)" |
44 | 739 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
740 |
^ self subclassResponsibility |
44 | 741 |
! ! |
742 |
||
743 |
!SCMAbstractCommitDialog methodsFor:'hooks'! |
|
744 |
||
745 |
commonPostBuild |
|
746 |
||
747 |
self window extent: 640@640 |
|
748 |
||
749 |
"Created: / 08-02-2012 / 18:30:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
750 |
! |
|
751 |
||
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
752 |
postOpenWith1: anUIBuilder |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
753 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
754 |
(self task isPackageCommit |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
755 |
and:[ self task isSelectiveFileoutTask not |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
756 |
and:[ self task isCommitingAllChangedPackages not ]]) ifTrue:[ |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
757 |
self infoPanel |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
758 |
reset; |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
759 |
beInformation; |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
760 |
message:(resources string: 'There are more changed packages...'); |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
761 |
addButtonWithLabel: (resources string:'Commit all changed') |
436
58c7b3b23cd2
Fixed commit warning when not all modified packages are about to commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
407
diff
changeset
|
762 |
action: [ self doCommitAllChangedPackages. self infoPanel hide. self postOpenWith2: anUIBuilder]; |
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
763 |
addButtonWithLabel: (resources string:'Continue') |
436
58c7b3b23cd2
Fixed commit warning when not all modified packages are about to commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
407
diff
changeset
|
764 |
action: [ self infoPanel hide. self postOpenWith2: anUIBuilder]; |
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
765 |
show. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
766 |
^ false. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
767 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
768 |
^ true. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
769 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
770 |
"Created: / 03-03-2014 / 10:00:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
436
58c7b3b23cd2
Fixed commit warning when not all modified packages are about to commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
407
diff
changeset
|
771 |
"Modified: / 27-05-2014 / 16:03:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
772 |
! |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
773 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
774 |
postOpenWith2: anUIBuilder |
44 | 775 |
|
776 |
self showProgressWhile:[ |
|
777 |
self doUpdateCode. |
|
407
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
778 |
self doRunSanityChecks. |
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
779 |
self doUpdateButtonEnablements. |
44 | 780 |
]. |
781 |
||
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
782 |
"Created: / 03-03-2014 / 09:59:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
407
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
783 |
"Modified: / 26-03-2014 / 15:06:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
784 |
! |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
785 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
786 |
postOpenWith: anUIBuilder |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
787 |
(self postOpenWith1: anUIBuilder) ifTrue:[ |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
788 |
self postOpenWith2: anUIBuilder |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
789 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
790 |
|
44 | 791 |
"Created: / 09-02-2012 / 15:23:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
792 |
"Modified: / 03-03-2014 / 10:01:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 793 |
! ! |
794 |
||
514
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
795 |
!SCMAbstractCommitDialog methodsFor:'menu actions'! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
796 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
797 |
doSelectAll |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
798 |
self doSelectAllMatching: [ :file | true ] |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
799 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
800 |
"Modified: / 19-01-2015 / 10:01:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
801 |
! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
802 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
803 |
doSelectAllMatching: block |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
804 |
(self fileListHolder value ? #()) do:[:each | |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
805 |
each include: (block value: each entry) |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
806 |
]. |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
807 |
fileListView invalidate |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
808 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
809 |
"Created: / 19-01-2015 / 10:00:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
810 |
! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
811 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
812 |
doSelectNone |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
813 |
self doSelectAllMatching: [ :file | false ] |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
814 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
815 |
"Created: / 19-01-2015 / 10:00:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
816 |
! ! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
817 |
|
44 | 818 |
!SCMAbstractCommitDialog methodsFor:'private'! |
819 |
||
820 |
doRunSanityChecks |
|
821 |
||
822 |
| checker problems anyError | |
|
823 |
||
824 |
self task isPackageCommit ifFalse:[ |
|
825 |
^self. |
|
826 |
]. |
|
827 |
||
828 |
ActivityNotification notify: (self resources string:'Checking code...'). |
|
302
e078bdcef149
Fixes for Smalltalk/X 6.2.2 (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
282
diff
changeset
|
829 |
checker := self task doSanityChecks. |
e078bdcef149
Fixes for Smalltalk/X 6.2.2 (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
282
diff
changeset
|
830 |
"/ #doSanityChecks may return nil if the ProjectChecker is not available |
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
831 |
"/ (like in St/X 6.2.2) |
302
e078bdcef149
Fixes for Smalltalk/X 6.2.2 (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
282
diff
changeset
|
832 |
(checker isNil or:[(problems := checker problems) isEmptyOrNil]) ifTrue:[ |
44 | 833 |
self doUpdateWorkingCopy. |
834 |
^self. |
|
835 |
]. |
|
836 |
||
837 |
anyError := problems anySatisfy:[:problem|problem severity == #error]. |
|
838 |
self infoPanel |
|
839 |
reset; |
|
840 |
beWarning; |
|
841 |
message: |
|
842 |
(problems size == 1 |
|
843 |
ifTrue:[self resources string:'A problem has been found in the code'] |
|
844 |
ifFalse:[problems size printString , (self resources string:' problems has been found in the code')]); |
|
845 |
||
846 |
addButtonWithLabel: (self resources string:'Show') |
|
847 |
action: [ |
|
848 |
Tools::ProjectCheckerBrowser new projectChecker: checker; open. self doCancel |
|
849 |
]; |
|
850 |
||
851 |
addButton:((Button label: (self resources string:'OK') |
|
852 |
action: [ |
|
853 |
self infoPanel beProgress. |
|
854 |
self doUpdateWorkingCopy. |
|
855 |
self infoPanel hide |
|
856 |
]) enabled: anyError not; yourself); |
|
857 |
||
858 |
addButtonWithLabel: (self resources string:'Cancel') |
|
859 |
action:[self doCancel]; |
|
860 |
||
861 |
show. |
|
862 |
^anyError not |
|
863 |
||
864 |
"Created: / 10-05-2012 / 17:24:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
302
e078bdcef149
Fixes for Smalltalk/X 6.2.2 (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
282
diff
changeset
|
865 |
"Modified: / 30-06-2013 / 12:50:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
866 |
"Modified (comment): / 21-02-2014 / 23:30:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 867 |
! |
868 |
||
407
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
869 |
doUpdateButtonEnablements |
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
870 |
self messageModifiedHolder changed:#value. |
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
871 |
|
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
872 |
"Created: / 26-03-2014 / 15:06:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
873 |
! |
c3470898ba5f
Fix for issue #30 - Commit button is disabled even if commit message is not empty (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
389
diff
changeset
|
874 |
|
44 | 875 |
doUpdateCode |
876 |
self task doPrepareWorkingCopy1 |
|
877 |
||
878 |
"Created: / 10-05-2012 / 17:24:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
879 |
! |
|
880 |
||
881 |
doUpdateWorkingCopy |
|
882 |
||
883 |
self task doPrepareWorkingCopy2. |
|
884 |
self message: self task message. |
|
885 |
self messageModifiedHolder changed:#value. |
|
886 |
self updateFileList. |
|
887 |
||
888 |
"Created: / 10-05-2012 / 17:25:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
889 |
! ! |
|
890 |
||
333 | 891 |
!SCMAbstractCommitDialog methodsFor:'queries'! |
892 |
||
893 |
canShowDiffsForEntry |
|
894 |
^self fileSelectionHolder value notEmptyOrNil |
|
895 |
||
896 |
"Created: / 11-07-2013 / 01:57:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
897 |
! ! |
|
898 |
||
44 | 899 |
!SCMAbstractCommitDialog::FileEntry class methodsFor:'instance creation'! |
900 |
||
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
901 |
application:applicationArg entry:entryArg name: nameArg |
44 | 902 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
903 |
^self new application:applicationArg entry:entryArg name: nameArg |
44 | 904 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
905 |
"Created: / 15-11-2012 / 01:38:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 906 |
! ! |
907 |
||
908 |
!SCMAbstractCommitDialog::FileEntry methodsFor:'accessing'! |
|
909 |
||
910 |
author |
|
911 |
^entry author |
|
912 |
||
913 |
"Created: / 09-02-2012 / 14:36:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
914 |
! |
|
915 |
||
916 |
date |
|
917 |
^entry date |
|
918 |
||
919 |
"Created: / 09-02-2012 / 14:36:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
920 |
! |
|
921 |
||
922 |
entry |
|
923 |
^ entry |
|
924 |
! |
|
925 |
||
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
926 |
icon |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
927 |
^ icon |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
928 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
929 |
"Created: / 29-11-2013 / 14:20:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
930 |
! |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
931 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
932 |
icon: anImage |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
933 |
icon := anImage |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
934 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
935 |
"Created: / 29-11-2013 / 14:20:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
936 |
! |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
937 |
|
44 | 938 |
include |
939 |
^ include |
|
940 |
! |
|
941 |
||
942 |
include:aBoolean |
|
943 |
include := aBoolean. |
|
944 |
! |
|
945 |
||
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
946 |
includeEditable |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
947 |
^ includeEditable |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
948 |
! |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
949 |
|
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
950 |
includeEditable:something |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
951 |
includeEditable := something. |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
952 |
! |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
953 |
|
44 | 954 |
path |
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
955 |
^entry pathName |
44 | 956 |
|
957 |
"Created: / 09-02-2012 / 14:39:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
958 |
"Modified: / 15-11-2012 / 01:36:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 959 |
! |
960 |
||
961 |
pathText |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
962 |
^name |
44 | 963 |
|
964 |
"Created: / 09-02-2012 / 14:36:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
965 |
"Modified: / 15-11-2012 / 01:36:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 966 |
! |
967 |
||
968 |
revision |
|
969 |
^entry revision |
|
970 |
||
971 |
"Created: / 09-02-2012 / 14:36:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
972 |
! |
|
973 |
||
974 |
statusIcon |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
975 |
^nil |
44 | 976 |
|
977 |
"Created: / 09-02-2012 / 14:36:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
978 |
"Modified: / 15-11-2012 / 01:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 979 |
! ! |
980 |
||
981 |
!SCMAbstractCommitDialog::FileEntry methodsFor:'initialization'! |
|
982 |
||
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
983 |
application:applicationArg entry:entryArg name: nameArg |
44 | 984 |
application := applicationArg. |
985 |
entry := entryArg. |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
986 |
include := true. |
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
987 |
includeEditable := true. |
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
988 |
name := nameArg. |
44 | 989 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
990 |
"Created: / 15-11-2012 / 01:36:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
991 |
"Modified: / 01-04-2013 / 13:33:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 992 |
! ! |
993 |
||
994 |
!SCMAbstractCommitDialog class methodsFor:'documentation'! |
|
995 |
||
996 |
version_GIT |
|
997 |
"Never, ever change this method. Ask JV or CG why" |
|
998 |
^thisContext method mclass theNonMetaclass instVarNamed: #revision |
|
999 |
! |
|
1000 |
||
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
1001 |
version_HG |
114
8b27cb46af9a
version_HG changed to return String.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
66
diff
changeset
|
1002 |
|
8b27cb46af9a
version_HG changed to return String.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
66
diff
changeset
|
1003 |
^ '$Changeset: <not expanded> $' |
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
1004 |
! |
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
1005 |
|
44 | 1006 |
version_SVN |
864
c854577212b8
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
535
diff
changeset
|
1007 |
^ '§Id:: §' |
44 | 1008 |
! ! |
333 | 1009 |