author | convert-repo |
Tue, 09 Aug 2016 03:35:30 +0000 | |
changeset 1178 | 3a6dad9479fd |
parent 830 | 06bba14aec4f |
permissions | -rw-r--r-- |
766 | 1 |
" |
2 |
Copyright (c) 2007-2010 Jan Vrany |
|
3 |
Copyright (c) 2009-2010 eXept Software AG |
|
4 |
||
5 |
Permission is hereby granted, free of charge, to any person |
|
6 |
obtaining a copy of this software and associated documentation |
|
7 |
files (the 'Software'), to deal in the Software without |
|
8 |
restriction, including without limitation the rights to use, |
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
10 |
copies of the Software, and to permit persons to whom the |
|
11 |
Software is furnished to do so, subject to the following |
|
12 |
conditions: |
|
13 |
||
14 |
The above copyright notice and this permission notice shall be |
|
15 |
included in all copies or substantial portions of the Software. |
|
16 |
||
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
24 |
OTHER DEALINGS IN THE SOFTWARE. |
|
25 |
" |
|
419 | 26 |
"{ Package: 'stx:libsvn' }" |
251 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
30 |
ApplicationModel subclass:#WizardPane |
|
31 |
instanceVariableNames:'prev next' |
|
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-UI-Dialogs' |
|
35 |
! |
|
36 |
||
766 | 37 |
!WizardPane class methodsFor:'documentation'! |
38 |
||
39 |
copyright |
|
40 |
" |
|
41 |
Copyright (c) 2007-2010 Jan Vrany |
|
42 |
Copyright (c) 2009-2010 eXept Software AG |
|
43 |
||
44 |
Permission is hereby granted, free of charge, to any person |
|
45 |
obtaining a copy of this software and associated documentation |
|
46 |
files (the 'Software'), to deal in the Software without |
|
47 |
restriction, including without limitation the rights to use, |
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
49 |
copies of the Software, and to permit persons to whom the |
|
50 |
Software is furnished to do so, subject to the following |
|
51 |
conditions: |
|
52 |
||
53 |
The above copyright notice and this permission notice shall be |
|
54 |
included in all copies or substantial portions of the Software. |
|
55 |
||
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
63 |
OTHER DEALINGS IN THE SOFTWARE. |
|
64 |
||
65 |
" |
|
66 |
! ! |
|
67 |
||
68 |
!WizardPane class methodsFor:'others'! |
|
69 |
||
70 |
version_CVS |
|
830
06bba14aec4f
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
766
diff
changeset
|
71 |
^ '$Header$' |
766 | 72 |
! ! |
251 | 73 |
|
74 |
!WizardPane methodsFor:'accessing'! |
|
75 |
||
766 | 76 |
acceptEnabled:aBoolean |
77 |
^ self wizard acceptEnabled:aBoolean |
|
251 | 78 |
|
79 |
"Created: / 24-03-2009 / 19:55:38 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
80 |
! |
|
81 |
||
82 |
goNextEnabled: aBoolean |
|
83 |
||
84 |
^self wizard goNextEnabled: aBoolean |
|
85 |
||
86 |
"Created: / 24-03-2009 / 19:55:19 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
87 |
! |
|
88 |
||
89 |
goPrevEnabled: aBoolean |
|
90 |
||
91 |
^self wizard goPrevEnabled: aBoolean |
|
92 |
||
93 |
"Created: / 24-03-2009 / 19:55:28 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
94 |
! |
|
95 |
||
96 |
next |
|
97 |
next ifNil:[ next := self createNext. next prev: self.]. |
|
98 |
^ next |
|
99 |
||
100 |
"Modified: / 02-04-2009 / 17:13:33 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
101 |
! |
|
102 |
||
103 |
next:aWizardPane |
|
104 |
next := aWizardPane. |
|
105 |
! |
|
106 |
||
107 |
prev |
|
108 |
^ prev |
|
109 |
! |
|
110 |
||
111 |
prev:aWizardPane |
|
112 |
prev := aWizardPane. |
|
113 |
! |
|
114 |
||
115 |
task |
|
116 |
||
117 |
^self wizard task |
|
118 |
||
119 |
"Created: / 24-03-2009 / 19:29:10 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
120 |
! |
|
121 |
||
122 |
wizard |
|
123 |
||
124 |
^self masterApplication |
|
125 |
||
126 |
"Created: / 24-03-2009 / 14:37:35 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
127 |
! ! |
|
128 |
||
129 |
!WizardPane methodsFor:'actions'! |
|
130 |
||
131 |
enter |
|
132 |
||
133 |
"This method is called whenever a a pane is shown" |
|
134 |
||
135 |
"Created: / 02-04-2009 / 17:07:42 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
136 |
! |
|
137 |
||
138 |
goNext |
|
139 |
||
140 |
self wizard pane: self next |
|
141 |
||
142 |
"Created: / 20-03-2009 / 14:12:42 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
143 |
"Modified: / 24-03-2009 / 14:38:30 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
144 |
! |
|
145 |
||
146 |
goPrev |
|
147 |
||
148 |
self wizard pane: self prev |
|
149 |
||
150 |
"Created: / 20-03-2009 / 14:12:42 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
151 |
"Modified: / 24-03-2009 / 14:38:42 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
152 |
! |
|
153 |
||
154 |
leave |
|
155 |
||
156 |
"This method is called whenever a a pane is left (via pressing next/prev/accept)" |
|
157 |
||
158 |
"Created: / 02-04-2009 / 17:08:15 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
159 |
! ! |
|
160 |
||
161 |
!WizardPane methodsFor:'change & update'! |
|
162 |
||
163 |
updateButtons |
|
766 | 164 |
self |
165 |
goPrevEnabled:self canGoPrev; |
|
166 |
goNextEnabled:self canGoNext; |
|
167 |
acceptEnabled:self acceptEnabled. |
|
251 | 168 |
|
169 |
"Created: / 24-03-2009 / 19:54:49 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
170 |
"Modified: / 02-04-2009 / 16:27:17 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
171 |
! ! |
|
172 |
||
173 |
!WizardPane methodsFor:'private'! |
|
174 |
||
175 |
createNext |
|
176 |
^ self subclassResponsibility |
|
177 |
||
178 |
"Created: / 21-03-2009 / 10:56:58 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
179 |
! |
|
180 |
||
181 |
showMessage: aString |
|
182 |
||
183 |
^self wizard showMessage: aString |
|
184 |
||
185 |
"Created: / 09-04-2009 / 08:19:03 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
186 |
! |
|
187 |
||
188 |
showProgressWhile: aBlock |
|
189 |
||
190 |
^self wizard showProgressWhile: aBlock |
|
191 |
||
192 |
"Created: / 24-03-2009 / 14:58:48 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
193 |
! ! |
|
194 |
||
195 |
!WizardPane methodsFor:'queries'! |
|
196 |
||
766 | 197 |
acceptEnabled |
198 |
^ false |
|
251 | 199 |
|
200 |
"Created: / 21-03-2009 / 12:22:10 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
201 |
"Modified: / 02-04-2009 / 16:29:58 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
202 |
! |
|
203 |
||
204 |
canGoNext |
|
205 |
||
206 |
^true |
|
207 |
||
208 |
"Created: / 20-03-2009 / 12:41:51 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
209 |
"Modified: / 02-04-2009 / 16:44:52 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
210 |
! |
|
211 |
||
212 |
canGoPrev |
|
213 |
||
214 |
^prev notNil |
|
215 |
||
216 |
"Created: / 20-03-2009 / 12:42:02 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
217 |
! ! |
|
218 |
||
219 |
!WizardPane class methodsFor:'documentation'! |
|
220 |
||
830
06bba14aec4f
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
766
diff
changeset
|
221 |
version |
06bba14aec4f
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
766
diff
changeset
|
222 |
^ '$Header$' |
06bba14aec4f
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
766
diff
changeset
|
223 |
! |
06bba14aec4f
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
766
diff
changeset
|
224 |
|
766 | 225 |
version_SVN |
226 |
^ '§Id§' |
|
251 | 227 |
! ! |