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