419
|
1 |
"{ Package: 'stx:libsvn' }"
|
251
|
2 |
|
|
3 |
"{ NameSpace: SVN }"
|
|
4 |
|
|
5 |
ApplicationModel subclass:#WizardPane
|
|
6 |
instanceVariableNames:'prev next'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'SVN-UI-Dialogs'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!WizardPane methodsFor:'accessing'!
|
|
14 |
|
|
15 |
doAcceptEnabled: aBoolean
|
|
16 |
|
|
17 |
^self wizard doAcceptEnabled: aBoolean
|
|
18 |
|
|
19 |
"Created: / 24-03-2009 / 19:55:38 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
20 |
!
|
|
21 |
|
|
22 |
goNextEnabled: aBoolean
|
|
23 |
|
|
24 |
^self wizard goNextEnabled: aBoolean
|
|
25 |
|
|
26 |
"Created: / 24-03-2009 / 19:55:19 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
27 |
!
|
|
28 |
|
|
29 |
goPrevEnabled: aBoolean
|
|
30 |
|
|
31 |
^self wizard goPrevEnabled: aBoolean
|
|
32 |
|
|
33 |
"Created: / 24-03-2009 / 19:55:28 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
34 |
!
|
|
35 |
|
|
36 |
next
|
|
37 |
next ifNil:[ next := self createNext. next prev: self.].
|
|
38 |
^ next
|
|
39 |
|
|
40 |
"Modified: / 02-04-2009 / 17:13:33 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
41 |
!
|
|
42 |
|
|
43 |
next:aWizardPane
|
|
44 |
next := aWizardPane.
|
|
45 |
!
|
|
46 |
|
|
47 |
prev
|
|
48 |
^ prev
|
|
49 |
!
|
|
50 |
|
|
51 |
prev:aWizardPane
|
|
52 |
prev := aWizardPane.
|
|
53 |
!
|
|
54 |
|
|
55 |
task
|
|
56 |
|
|
57 |
^self wizard task
|
|
58 |
|
|
59 |
"Created: / 24-03-2009 / 19:29:10 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
60 |
!
|
|
61 |
|
|
62 |
wizard
|
|
63 |
|
|
64 |
^self masterApplication
|
|
65 |
|
|
66 |
"Created: / 24-03-2009 / 14:37:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
67 |
! !
|
|
68 |
|
|
69 |
!WizardPane methodsFor:'actions'!
|
|
70 |
|
|
71 |
enter
|
|
72 |
|
|
73 |
"This method is called whenever a a pane is shown"
|
|
74 |
|
|
75 |
"Created: / 02-04-2009 / 17:07:42 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
76 |
!
|
|
77 |
|
|
78 |
goNext
|
|
79 |
|
|
80 |
self wizard pane: self next
|
|
81 |
|
|
82 |
"Created: / 20-03-2009 / 14:12:42 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
83 |
"Modified: / 24-03-2009 / 14:38:30 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
84 |
!
|
|
85 |
|
|
86 |
goPrev
|
|
87 |
|
|
88 |
self wizard pane: self prev
|
|
89 |
|
|
90 |
"Created: / 20-03-2009 / 14:12:42 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
91 |
"Modified: / 24-03-2009 / 14:38:42 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
92 |
!
|
|
93 |
|
|
94 |
leave
|
|
95 |
|
|
96 |
"This method is called whenever a a pane is left (via pressing next/prev/accept)"
|
|
97 |
|
|
98 |
"Created: / 02-04-2009 / 17:08:15 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
99 |
! !
|
|
100 |
|
|
101 |
!WizardPane methodsFor:'change & update'!
|
|
102 |
|
|
103 |
updateButtons
|
|
104 |
|
|
105 |
self
|
|
106 |
goPrevEnabled: self canGoPrev;
|
|
107 |
goNextEnabled: self canGoNext;
|
|
108 |
doAcceptEnabled: self canDoAccept.
|
|
109 |
|
|
110 |
"Created: / 24-03-2009 / 19:54:49 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
111 |
"Modified: / 02-04-2009 / 16:27:17 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
112 |
! !
|
|
113 |
|
|
114 |
!WizardPane methodsFor:'private'!
|
|
115 |
|
|
116 |
createNext
|
|
117 |
^ self subclassResponsibility
|
|
118 |
|
|
119 |
"Created: / 21-03-2009 / 10:56:58 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
120 |
!
|
|
121 |
|
|
122 |
showMessage: aString
|
|
123 |
|
|
124 |
^self wizard showMessage: aString
|
|
125 |
|
|
126 |
"Created: / 09-04-2009 / 08:19:03 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
127 |
!
|
|
128 |
|
|
129 |
showProgressWhile: aBlock
|
|
130 |
|
|
131 |
^self wizard showProgressWhile: aBlock
|
|
132 |
|
|
133 |
"Created: / 24-03-2009 / 14:58:48 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
134 |
! !
|
|
135 |
|
|
136 |
!WizardPane methodsFor:'queries'!
|
|
137 |
|
|
138 |
canDoAccept
|
|
139 |
|
|
140 |
^false
|
|
141 |
|
|
142 |
"Created: / 21-03-2009 / 12:22:10 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
143 |
"Modified: / 02-04-2009 / 16:29:58 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
144 |
!
|
|
145 |
|
|
146 |
canGoNext
|
|
147 |
|
|
148 |
^true
|
|
149 |
|
|
150 |
"Created: / 20-03-2009 / 12:41:51 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
151 |
"Modified: / 02-04-2009 / 16:44:52 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
152 |
!
|
|
153 |
|
|
154 |
canGoPrev
|
|
155 |
|
|
156 |
^prev notNil
|
|
157 |
|
|
158 |
"Created: / 20-03-2009 / 12:42:02 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
159 |
! !
|
|
160 |
|
|
161 |
!WizardPane class methodsFor:'documentation'!
|
|
162 |
|
|
163 |
version_CVS
|
|
164 |
^ '$Header$'
|
|
165 |
! !
|