author | Jan Vrany <jan.vrany@labware.com> |
Fri, 03 Dec 2021 11:40:55 +0000 | |
changeset 934 | 84b7d3b8f3a6 |
parent 930 | faa37e6f6886 |
permissions | -rw-r--r-- |
211 | 1 |
" |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
2 |
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
|
3 |
Copyright (C) 2012-2015 Jan Vrany |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
4 |
Copyright (C) 2020-2021 LabWare |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
5 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
6 |
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
|
7 |
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
|
8 |
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
|
9 |
version 2.1 of the License. |
211 | 10 |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
11 |
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
|
12 |
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
|
13 |
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
|
14 |
Lesser General Public License for more details. |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
15 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
16 |
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
|
17 |
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
|
18 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
211 | 19 |
" |
44 | 20 |
"{ Package: 'stx:libscm/common' }" |
21 |
||
514
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
22 |
"{ 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
|
23 |
|
44 | 24 |
SCMAbstractDialog subclass:#SCMAbstractCommitDialog |
25 |
instanceVariableNames:'task messageView messageModifiedHolder fileSelectionHolder |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
26 |
fileListShowOnlyModifiedHolder fileListHolder fileListView |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
27 |
enabledHolder' |
44 | 28 |
classVariableNames:'' |
29 |
poolDictionaries:'' |
|
30 |
category:'SCM-Common-StX-Interface' |
|
31 |
! |
|
32 |
||
33 |
Object subclass:#FileEntry |
|
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
34 |
instanceVariableNames:'application entry include includeEditable name icon' |
44 | 35 |
classVariableNames:'' |
36 |
poolDictionaries:'' |
|
37 |
privateIn:SCMAbstractCommitDialog |
|
38 |
! |
|
39 |
||
211 | 40 |
!SCMAbstractCommitDialog class methodsFor:'documentation'! |
41 |
||
42 |
copyright |
|
43 |
" |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
333
diff
changeset
|
44 |
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
|
45 |
Copyright (C) 2012-2015 Jan Vrany |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
46 |
Copyright (C) 2020-2021 LabWare |
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 |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
321 |
uuid: 'ef35eb20-f5eb-11eb-b159-0021ccd5e3d3' |
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
|
322 |
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
|
323 |
(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
|
324 |
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
|
325 |
name: 'SubVersion: Dialog ' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
326 |
uuid: 'ef368760-f5eb-11eb-b159-0021ccd5e3d3' |
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
|
327 |
labelChannel: titleHolder |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
328 |
min: (Point 10 10) bounds: (Rectangle 0 0 648 451) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
329 |
) component: |
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
|
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' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
334 |
layout: (LayoutFrame 0 0 0 0 0 1 66 0) uuid: 'ef36ae70-f5eb-11eb-b159-0021ccd5e3d3' |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
335 |
backgroundColor: (Color 100.0 100.0 100.0) component: |
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
|
336 |
(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
|
337 |
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
|
338 |
(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
|
339 |
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
|
340 |
name: 'DialogTitle' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
341 |
layout: (LayoutFrame 10 0 0 0 -75 1 40 0) style: (FontDescription helvetica medium roman 18 #'iso10646-1' nil nil) uuid: 'ef36ae71-f5eb-11eb-b159-0021ccd5e3d3' |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
342 |
foregroundColor: (Color 0.0 0.0 0.0) backgroundColor: (Color 100.0 100.0 100.0) translateLabel: true |
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
|
343 |
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
|
344 |
adjust: left |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
345 |
) |
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
|
346 |
(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
|
347 |
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
|
348 |
name: 'DialogSubtitle' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
349 |
layout: (LayoutFrame 30 0 40 0 -75 1 66 0) uuid: 'ef36ae72-f5eb-11eb-b159-0021ccd5e3d3' |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
350 |
foregroundColor: (Color 0.0 0.0 0.0) backgroundColor: (Color 100.0 100.0 100.0) translateLabel: true |
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
|
351 |
labelChannel: subtitleHolder |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
352 |
resizeForLabelHorizontal: false |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
353 |
resizeForLabelVertical: false |
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
|
354 |
adjust: left |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
355 |
) |
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
|
356 |
(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
|
357 |
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
|
358 |
name: 'DialogIcon' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
359 |
layout: (LayoutFrame -157 1 0 0 0 1 66 0) uuid: 'ef36ae73-f5eb-11eb-b159-0021ccd5e3d3' |
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
|
360 |
hasCharacterOrientedLabel: false |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
361 |
backgroundColor: (Color 100.0 100.0 100.0) translateLabel: true |
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
|
362 |
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
|
363 |
adjust: right |
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 |
) |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
365 |
) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
366 |
) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
367 |
) |
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
|
368 |
(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
|
369 |
name: 'ContentBox' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
370 |
layout: (LayoutFrame 5 0 70 0 -5 1 -50 1) uuid: 'ef36ae74-f5eb-11eb-b159-0021ccd5e3d3' |
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
|
371 |
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
|
372 |
(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
|
373 |
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
|
374 |
(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
|
375 |
name: 'Content' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
376 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) uuid: 'ef36ae75-f5eb-11eb-b159-0021ccd5e3d3' |
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
|
377 |
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
|
378 |
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
|
379 |
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
|
380 |
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
|
381 |
) |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
382 |
) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
383 |
) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
384 |
) |
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
|
385 |
(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
|
386 |
name: 'Separator' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
387 |
layout: (LayoutFrame 5 0 -50 1 -5 1 -30 1) uuid: 'ef36d580-f5eb-11eb-b159-0021ccd5e3d3' |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
388 |
) |
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
|
389 |
(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
|
390 |
name: 'Buttons' |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
391 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) uuid: 'ef36d581-f5eb-11eb-b159-0021ccd5e3d3' |
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
|
392 |
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
|
393 |
) |
930
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
394 |
) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
395 |
) |
faa37e6f6886
`SCMAbstractCommitDialog`: specify text color on header pane
Jan Vrany <jan.vrany@labware.com>
parents:
914
diff
changeset
|
396 |
) |
44 | 397 |
! ! |
398 |
||
399 |
!SCMAbstractCommitDialog class methodsFor:'menu specs'! |
|
400 |
||
401 |
fileListMenu |
|
402 |
"This resource specification was automatically generated |
|
403 |
by the MenuEditor of ST/X." |
|
404 |
||
405 |
"Do not manually edit this!! If it is corrupted, |
|
406 |
the MenuEditor may not be able to read the specification." |
|
407 |
||
408 |
||
409 |
" |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
410 |
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
|
411 |
(Menu new fromLiteralArrayEncoding:(SCMAbstractCommitDialog fileListMenu)) startUp |
44 | 412 |
" |
413 |
||
414 |
<resource: #menu> |
|
415 |
||
416 |
^ |
|
417 |
#(Menu |
|
418 |
( |
|
419 |
(MenuItem |
|
333 | 420 |
enabled: canShowDiffsForEntry |
44 | 421 |
label: 'Show differences' |
422 |
itemValue: doShowDiffsForEntry |
|
423 |
) |
|
424 |
(MenuItem |
|
333 | 425 |
enabled: canShowDiffsForEntry |
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
426 |
label: 'Show differences (against newest)' |
44 | 427 |
itemValue: doShowDiffsForEntryAgainstHEAD |
428 |
) |
|
514
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
429 |
(MenuItem |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
430 |
label: '-' |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
431 |
) |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
432 |
(MenuItem |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
433 |
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
|
434 |
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
|
435 |
) |
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: '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
|
438 |
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
|
439 |
) |
44 | 440 |
) |
441 |
nil |
|
442 |
nil |
|
443 |
) |
|
444 |
! ! |
|
445 |
||
446 |
!SCMAbstractCommitDialog methodsFor:'accessing'! |
|
447 |
||
448 |
defaultSubtitle |
|
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
449 |
| t packages| |
44 | 450 |
|
451 |
t := self task. |
|
381
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
452 |
packages := t packages. |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
453 |
^packages notEmptyOrNil ifTrue:[ |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
454 |
packages size == 1 ifTrue:[ |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
455 |
'Package: ' , packages anElement name asText allItalic |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
456 |
] ifFalse:[ |
3dde2b867931
SCMAbstractFileoutLikeTask refactored to support multiple packages.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
359
diff
changeset
|
457 |
'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
|
458 |
]. |
44 | 459 |
] ifFalse:[ |
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
460 |
| title | |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
461 |
|
914
04391080b32d
Rename "temporaryWorkingCopy" to just "workingCopy" thorough the code
Jan Vrany <jan.vrany@labware.com>
parents:
864
diff
changeset
|
462 |
title := t workingCopy root pathName , ' [' , t workingCopy branch name , ']'. |
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
463 |
title size > 70 ifTrue:[ |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
464 |
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
|
465 |
]. |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
466 |
title. |
44 | 467 |
] |
468 |
||
469 |
"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
|
470 |
"Modified: / 22-02-2014 / 23:45:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 471 |
! |
472 |
||
473 |
fileListToCommit |
|
474 |
^(self fileListHolder value ? #()) |
|
475 |
select:[:entry|entry include] |
|
476 |
thenCollect:[:entry|entry path]. |
|
477 |
||
478 |
"Created: / 08-02-2012 / 18:16:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
479 |
! |
|
480 |
||
481 |
message |
|
482 |
||
483 |
^messageView notNil |
|
484 |
ifTrue:[messageView contents] |
|
485 |
ifFalse:[nil] |
|
486 |
||
487 |
"Created: / 31-03-2008 / 21:06:28 / janfrog" |
|
488 |
"Modified: / 09-04-2009 / 08:50:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
489 |
"Modified: / 08-02-2012 / 18:07:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
490 |
! |
|
491 |
||
492 |
message: aString |
|
493 |
||
494 |
^messageView contents: aString |
|
495 |
||
496 |
"Created: / 08-04-2009 / 23:27:09 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
497 |
"Modified: / 08-02-2012 / 18:08:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
498 |
! |
|
499 |
||
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
500 |
model |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
501 |
<resource: #obsolete> |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
502 |
|
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
503 |
self breakPoint: #jv. |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
504 |
^self task |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
505 |
|
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
506 |
"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
|
507 |
! |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
508 |
|
44 | 509 |
task |
510 |
||
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
511 |
^task |
44 | 512 |
|
513 |
"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
|
514 |
"Modified: / 12-01-2013 / 11:57:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 515 |
! |
516 |
||
171
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
517 |
task: t |
771ae4f01925
Changes to support standalone commit (without package model).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
144
diff
changeset
|
518 |
task := t. |
44 | 519 |
|
520 |
"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
|
521 |
"Modified: / 12-01-2013 / 12:00:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 522 |
! |
523 |
||
524 |
workingCopy |
|
525 |
||
526 |
^self task workingCopy |
|
527 |
||
528 |
"Created: / 08-02-2012 / 18:07:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
529 |
! ! |
|
530 |
||
531 |
!SCMAbstractCommitDialog methodsFor:'acessing-views'! |
|
532 |
||
533 |
messageView: aView |
|
534 |
||
535 |
messageView := aView scrolledView. |
|
536 |
"/ messageView model: |
|
537 |
"/ (self class messages |
|
538 |
"/ at: self task package |
|
539 |
"/ ifAbsent:[self task message]) |
|
540 |
||
541 |
"Created: / 08-02-2012 / 17:58:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
542 |
! ! |
|
543 |
||
544 |
!SCMAbstractCommitDialog methodsFor:'actions'! |
|
545 |
||
546 |
doAccept |
|
547 |
||
548 |
self showProgressWhile:[ |
|
58
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
549 |
self acceptEnabled:false. |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
550 |
(self task) |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
551 |
message:self message; |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
552 |
paths: self fileListToCommit; |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
553 |
doCommit. |
057693eae3c7
- SCMAbstractCommitDialog
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
53
diff
changeset
|
554 |
self accept value:true |
44 | 555 |
] |
556 |
||
557 |
"Created: / 01-04-2008 / 18:59:12 / janfrog" |
|
558 |
"Modified: / 19-08-2009 / 14:26:41 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
559 |
"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
|
560 |
"Modified (format): / 15-11-2012 / 10:12:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 561 |
! |
562 |
||
563 |
doBrowseWorkingCopy |
|
914
04391080b32d
Rename "temporaryWorkingCopy" to just "workingCopy" thorough the code
Jan Vrany <jan.vrany@labware.com>
parents:
864
diff
changeset
|
564 |
self task workingCopyRoot browse |
44 | 565 |
|
172
ca0b1a930b87
Fix: use temporaryWorkingCopy in SCMAbstractCommitDialog>>doBrowseWorkingCopy.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
566 |
"Modified: / 12-01-2013 / 14:03:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 567 |
! |
568 |
||
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
569 |
doCommitAllChangedPackages |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
570 |
| revision packages | |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
571 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
572 |
"/ 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
|
573 |
revision := task packages revision. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
574 |
packages := task packages class new. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
575 |
task packages anElement root yourselfAndAllChildrenDo:[:each| |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
576 |
(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
|
577 |
packages add: each. |
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 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
580 |
task packages: packages. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
581 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
582 |
"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
|
583 |
"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
|
584 |
! |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
585 |
|
44 | 586 |
doShowDiffsForEntry |
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
587 |
"raise an error: must be redefined in concrete subclass(es)" |
44 | 588 |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
589 |
^ self subclassResponsibility |
44 | 590 |
! |
591 |
||
592 |
doShowDiffsForEntryAgainstHEAD |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
593 |
"raise an error: must be redefined in concrete subclass(es)" |
44 | 594 |
|
144
36273f5f4f52
SCM-specific methods pushed down to HGCommitDialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
119
diff
changeset
|
595 |
^ self subclassResponsibility |
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
596 |
! |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
597 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
598 |
postBuildFileListView: aScrolledView |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
599 |
<resource: #uiCallback> |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
600 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
601 |
fileListView := aScrolledView scrolledView. |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
602 |
"/ 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
|
603 |
"/ (ListModelView::TableRenderer canUnderstand: #showItemInAdditionToColumns:) ifTrue:[ |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
604 |
"/ fileListView setupTableRenderer |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
605 |
"/ showItemInAdditionToColumns: false; |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
606 |
"/ columnDescriptors: self class fileListColumnSpec. |
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 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
609 |
"Modified: / 29-11-2013 / 15:35:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 610 |
! ! |
611 |
||
612 |
!SCMAbstractCommitDialog methodsFor:'aspects'! |
|
613 |
||
614 |
acceptButtonTitleAspect |
|
615 |
||
616 |
^'Commit' |
|
617 |
||
618 |
"Created: / 08-02-2012 / 17:46:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
619 |
! |
|
620 |
||
621 |
browseWorkingCopyLabel |
|
622 |
||
623 |
^'Browse working copy...' asText |
|
624 |
colorizeAllWith: Color blue; |
|
625 |
actionForAll:[ self doBrowseWorkingCopy ]; |
|
626 |
yourself |
|
627 |
||
628 |
"Created: / 05-02-2012 / 01:28:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
629 |
! |
|
630 |
||
631 |
enabledHolder |
|
632 |
<resource: #uiAspect> |
|
633 |
||
634 |
enabledHolder isNil ifTrue:[ |
|
635 |
enabledHolder := true asValue. |
|
636 |
]. |
|
637 |
^ enabledHolder. |
|
638 |
||
639 |
"Modified (comment): / 11-02-2012 / 23:28:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
640 |
! |
|
641 |
||
642 |
fileListHolder |
|
643 |
<resource: #uiAspect> |
|
644 |
||
645 |
"automatically generated by UIPainter ..." |
|
646 |
||
647 |
"*** the code below creates a default model when invoked." |
|
648 |
"*** (which may not be the one you wanted)" |
|
649 |
"*** Please change as required and accept it in the browser." |
|
650 |
"*** (and replace this comment by something more useful ;-)" |
|
651 |
||
652 |
fileListHolder isNil ifTrue:[ |
|
653 |
fileListHolder := ValueHolder new. |
|
654 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
655 |
"/ fileListHolder addDependent:self. |
|
656 |
"/ fileListHolder onChangeSend:#fileListHolderChanged to:self. |
|
657 |
]. |
|
658 |
^ fileListHolder. |
|
659 |
||
660 |
"Modified: / 08-02-2012 / 18:27:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
661 |
! |
|
662 |
||
663 |
fileListShowOnlyModifiedHolder |
|
664 |
<resource: #uiAspect> |
|
665 |
||
666 |
"automatically generated by UIPainter ..." |
|
667 |
||
668 |
"*** the code below creates a default model when invoked." |
|
669 |
"*** (which may not be the one you wanted)" |
|
670 |
"*** Please change as required and accept it in the browser." |
|
671 |
"*** (and replace this comment by something more useful ;-)" |
|
672 |
||
673 |
fileListShowOnlyModifiedHolder isNil ifTrue:[ |
|
674 |
fileListShowOnlyModifiedHolder := true asValue. |
|
675 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
676 |
"/ fileListShowOnlyModifiedHolder addDependent:self. |
|
677 |
fileListShowOnlyModifiedHolder onChangeSend:#updateFileList to:self. |
|
678 |
]. |
|
679 |
^ fileListShowOnlyModifiedHolder. |
|
680 |
||
681 |
"Modified: / 08-02-2012 / 18:04:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
682 |
! |
|
683 |
||
684 |
fileSelectionHolder |
|
685 |
<resource: #uiAspect> |
|
686 |
||
687 |
"automatically generated by UIPainter ..." |
|
688 |
||
689 |
"*** the code below creates a default model when invoked." |
|
690 |
"*** (which may not be the one you wanted)" |
|
691 |
"*** Please change as required and accept it in the browser." |
|
692 |
"*** (and replace this comment by something more useful ;-)" |
|
693 |
||
694 |
fileSelectionHolder isNil ifTrue:[ |
|
695 |
fileSelectionHolder := ValueHolder new. |
|
696 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
697 |
"/ fileSelectionHolder addDependent:self. |
|
698 |
"/ fileSelectionHolder onChangeSend:#fileSelectionHolderChanged to:self. |
|
699 |
]. |
|
700 |
^ fileSelectionHolder. |
|
701 |
! |
|
702 |
||
703 |
infoPanel |
|
704 |
infoPanel isNil ifTrue:[ |
|
705 |
infoPanel := Tools::InlineMessageDialog new. |
|
706 |
infoPanel panelHiddenHolder: self enabledHolder. |
|
707 |
]. |
|
708 |
^ infoPanel |
|
709 |
||
710 |
"Created: / 09-02-2012 / 19:23:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
711 |
! |
|
712 |
||
713 |
messageModifiedHolder |
|
714 |
"return/create the 'messageModifiedHolder' value holder (automatically generated)" |
|
715 |
||
716 |
messageModifiedHolder isNil ifTrue:[ |
|
717 |
messageModifiedHolder := ValueHolder with: false. |
|
718 |
messageModifiedHolder onChangeEvaluate:[ |
|
719 |
self acceptEnabled: (self message indexOfNonSeparator ~~ 0). |
|
720 |
messageModifiedHolder setValue: false. |
|
721 |
] |
|
722 |
]. |
|
723 |
^ messageModifiedHolder |
|
724 |
||
725 |
"Modified: / 08-02-2012 / 18:46:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
726 |
! ! |
|
727 |
||
728 |
!SCMAbstractCommitDialog methodsFor:'change & update'! |
|
729 |
||
730 |
updateFileList |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
731 |
"raise an error: must be redefined in concrete subclass(es)" |
44 | 732 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
733 |
^ self subclassResponsibility |
44 | 734 |
! ! |
735 |
||
736 |
!SCMAbstractCommitDialog methodsFor:'hooks'! |
|
737 |
||
738 |
commonPostBuild |
|
739 |
||
740 |
self window extent: 640@640 |
|
741 |
||
742 |
"Created: / 08-02-2012 / 18:30:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
743 |
! |
|
744 |
||
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
745 |
postOpenWith1: anUIBuilder |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
746 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
747 |
(self task isPackageCommit |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
748 |
and:[ self task isSelectiveFileoutTask not |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
749 |
and:[ self task isCommitingAllChangedPackages not ]]) ifTrue:[ |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
750 |
self infoPanel |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
751 |
reset; |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
752 |
beInformation; |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
753 |
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
|
754 |
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
|
755 |
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
|
756 |
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
|
757 |
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
|
758 |
show. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
759 |
^ false. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
760 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
761 |
^ true. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
762 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
763 |
"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
|
764 |
"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
|
765 |
! |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
766 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
767 |
postOpenWith2: anUIBuilder |
44 | 768 |
|
769 |
self showProgressWhile:[ |
|
770 |
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
|
771 |
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
|
772 |
self doUpdateButtonEnablements. |
44 | 773 |
]. |
774 |
||
389
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
775 |
"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
|
776 |
"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
|
777 |
! |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
778 |
|
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
779 |
postOpenWith: anUIBuilder |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
780 |
(self postOpenWith1: anUIBuilder) ifTrue:[ |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
781 |
self postOpenWith2: anUIBuilder |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
782 |
]. |
1e2e6ce45878
Added new warning to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
381
diff
changeset
|
783 |
|
44 | 784 |
"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
|
785 |
"Modified: / 03-03-2014 / 10:01:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 786 |
! ! |
787 |
||
514
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
788 |
!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
|
789 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
790 |
doSelectAll |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
791 |
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
|
792 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
793 |
"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
|
794 |
! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
795 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
796 |
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
|
797 |
(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
|
798 |
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
|
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 |
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
|
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 |
"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
|
803 |
! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
804 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
805 |
doSelectNone |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
806 |
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
|
807 |
|
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
808 |
"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
|
809 |
! ! |
7a1a8fa59edd
Added menu etries to select all / no files in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
810 |
|
44 | 811 |
!SCMAbstractCommitDialog methodsFor:'private'! |
812 |
||
813 |
doRunSanityChecks |
|
814 |
||
815 |
| checker problems anyError | |
|
816 |
||
817 |
self task isPackageCommit ifFalse:[ |
|
818 |
^self. |
|
819 |
]. |
|
820 |
||
821 |
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
|
822 |
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
|
823 |
"/ #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
|
824 |
"/ (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
|
825 |
(checker isNil or:[(problems := checker problems) isEmptyOrNil]) ifTrue:[ |
44 | 826 |
self doUpdateWorkingCopy. |
827 |
^self. |
|
828 |
]. |
|
829 |
||
830 |
anyError := problems anySatisfy:[:problem|problem severity == #error]. |
|
831 |
self infoPanel |
|
832 |
reset; |
|
833 |
beWarning; |
|
834 |
message: |
|
835 |
(problems size == 1 |
|
836 |
ifTrue:[self resources string:'A problem has been found in the code'] |
|
837 |
ifFalse:[problems size printString , (self resources string:' problems has been found in the code')]); |
|
838 |
||
839 |
addButtonWithLabel: (self resources string:'Show') |
|
840 |
action: [ |
|
841 |
Tools::ProjectCheckerBrowser new projectChecker: checker; open. self doCancel |
|
842 |
]; |
|
843 |
||
844 |
addButton:((Button label: (self resources string:'OK') |
|
845 |
action: [ |
|
846 |
self infoPanel beProgress. |
|
847 |
self doUpdateWorkingCopy. |
|
848 |
self infoPanel hide |
|
849 |
]) enabled: anyError not; yourself); |
|
850 |
||
851 |
addButtonWithLabel: (self resources string:'Cancel') |
|
852 |
action:[self doCancel]; |
|
853 |
||
854 |
show. |
|
855 |
^anyError not |
|
856 |
||
857 |
"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
|
858 |
"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
|
859 |
"Modified (comment): / 21-02-2014 / 23:30:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 860 |
! |
861 |
||
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
|
862 |
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
|
863 |
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
|
864 |
|
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
|
865 |
"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
|
866 |
! |
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
|
867 |
|
44 | 868 |
doUpdateCode |
869 |
self task doPrepareWorkingCopy1 |
|
870 |
||
871 |
"Created: / 10-05-2012 / 17:24:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
872 |
! |
|
873 |
||
874 |
doUpdateWorkingCopy |
|
875 |
||
876 |
self task doPrepareWorkingCopy2. |
|
877 |
self message: self task message. |
|
878 |
self messageModifiedHolder changed:#value. |
|
879 |
self updateFileList. |
|
880 |
||
881 |
"Created: / 10-05-2012 / 17:25:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
882 |
! ! |
|
883 |
||
333 | 884 |
!SCMAbstractCommitDialog methodsFor:'queries'! |
885 |
||
886 |
canShowDiffsForEntry |
|
887 |
^self fileSelectionHolder value notEmptyOrNil |
|
888 |
||
889 |
"Created: / 11-07-2013 / 01:57:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
890 |
! ! |
|
891 |
||
44 | 892 |
!SCMAbstractCommitDialog::FileEntry class methodsFor:'instance creation'! |
893 |
||
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
894 |
application:applicationArg entry:entryArg name: nameArg |
44 | 895 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
896 |
^self new application:applicationArg entry:entryArg name: nameArg |
44 | 897 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
898 |
"Created: / 15-11-2012 / 01:38:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 899 |
! ! |
900 |
||
901 |
!SCMAbstractCommitDialog::FileEntry methodsFor:'accessing'! |
|
902 |
||
903 |
author |
|
904 |
^entry author |
|
905 |
||
906 |
"Created: / 09-02-2012 / 14:36:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
907 |
! |
|
908 |
||
909 |
date |
|
910 |
^entry date |
|
911 |
||
912 |
"Created: / 09-02-2012 / 14:36:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
913 |
! |
|
914 |
||
915 |
entry |
|
916 |
^ entry |
|
917 |
! |
|
918 |
||
359
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
919 |
icon |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
920 |
^ icon |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
921 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
922 |
"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
|
923 |
! |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
924 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
925 |
icon: anImage |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
926 |
icon := anImage |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
927 |
|
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
928 |
"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
|
929 |
! |
b6516e783b2d
Added status icon to commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
930 |
|
44 | 931 |
include |
932 |
^ include |
|
933 |
! |
|
934 |
||
935 |
include:aBoolean |
|
936 |
include := aBoolean. |
|
937 |
! |
|
938 |
||
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
939 |
includeEditable |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
940 |
^ includeEditable |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
941 |
! |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
942 |
|
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
943 |
includeEditable:something |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
944 |
includeEditable := something. |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
945 |
! |
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
946 |
|
44 | 947 |
path |
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
948 |
^entry pathName |
44 | 949 |
|
950 |
"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
|
951 |
"Modified: / 15-11-2012 / 01:36:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 952 |
! |
953 |
||
954 |
pathText |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
955 |
^name |
44 | 956 |
|
957 |
"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
|
958 |
"Modified: / 15-11-2012 / 01:36:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 959 |
! |
960 |
||
961 |
revision |
|
962 |
^entry revision |
|
963 |
||
964 |
"Created: / 09-02-2012 / 14:36:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
965 |
! |
|
966 |
||
967 |
statusIcon |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
968 |
^nil |
44 | 969 |
|
970 |
"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
|
971 |
"Modified: / 15-11-2012 / 01:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 972 |
! ! |
973 |
||
974 |
!SCMAbstractCommitDialog::FileEntry methodsFor:'initialization'! |
|
975 |
||
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
976 |
application:applicationArg entry:entryArg name: nameArg |
44 | 977 |
application := applicationArg. |
978 |
entry := entryArg. |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
979 |
include := true. |
282
fb71143ed353
Fixes for commiting from filebrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
211
diff
changeset
|
980 |
includeEditable := true. |
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
981 |
name := nameArg. |
44 | 982 |
|
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
983 |
"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
|
984 |
"Modified: / 01-04-2013 / 13:33:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
44 | 985 |
! ! |
986 |
||
987 |
!SCMAbstractCommitDialog class methodsFor:'documentation'! |
|
988 |
||
989 |
version_GIT |
|
990 |
"Never, ever change this method. Ask JV or CG why" |
|
991 |
^thisContext method mclass theNonMetaclass instVarNamed: #revision |
|
992 |
! |
|
993 |
||
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
994 |
version_HG |
114
8b27cb46af9a
version_HG changed to return String.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
66
diff
changeset
|
995 |
|
8b27cb46af9a
version_HG changed to return String.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
66
diff
changeset
|
996 |
^ '$Changeset: <not expanded> $' |
53
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
997 |
! |
8043f7b6f41a
- More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
44
diff
changeset
|
998 |
|
44 | 999 |
version_SVN |
914
04391080b32d
Rename "temporaryWorkingCopy" to just "workingCopy" thorough the code
Jan Vrany <jan.vrany@labware.com>
parents:
864
diff
changeset
|
1000 |
^ '§Id:: §' |
44 | 1001 |
! ! |
333 | 1002 |