author | Jan Vrany <jan.vrany@labware.com> |
Tue, 11 Jul 2023 12:59:07 +0100 | |
branch | jv |
changeset 1174 | f0a16c301971 |
parent 1106 | 3699dacedeab |
permissions | -rw-r--r-- |
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
1 |
" |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
2 |
COPYRIGHT (c) 2020 LabWare |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
3 |
" |
320 | 4 |
"{ Package: 'stx:goodies/monticello' }" |
5 |
||
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
6 |
"{ NameSpace: Smalltalk }" |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
7 |
|
320 | 8 |
AbstractSettingsApplication subclass:#MCSettingsApp |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
9 |
instanceVariableNames:'mcRepositories selectedRepositoryHolder' |
553 | 10 |
classVariableNames:'' |
11 |
poolDictionaries:'' |
|
588 | 12 |
category:'SCM-Monticello-St/X UI' |
320 | 13 |
! |
14 |
||
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
15 |
!MCSettingsApp class methodsFor:'documentation'! |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
16 |
|
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
17 |
copyright |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
18 |
" |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
19 |
COPYRIGHT (c) 2020 LabWare |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
20 |
|
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
21 |
|
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
22 |
" |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
23 |
! ! |
320 | 24 |
|
25 |
!MCSettingsApp class methodsFor:'help specs'! |
|
26 |
||
27 |
flyByHelpSpec |
|
28 |
||
29 |
<resource: #help> |
|
30 |
||
31 |
^self helpSpec |
|
32 |
||
33 |
"Created: / 26-05-2008 / 14:25:31 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
34 |
! |
|
35 |
||
36 |
helpSpec |
|
37 |
"This resource specification was automatically generated |
|
38 |
by the UIHelpTool of ST/X." |
|
39 |
||
40 |
"Do not manually edit this!! If it is corrupted, |
|
41 |
the UIHelpTool may not be able to read the specification." |
|
42 |
||
43 |
" |
|
524 | 44 |
UIHelpTool openOnClass:MCSettingsApp |
320 | 45 |
" |
46 |
||
47 |
<resource: #help> |
|
48 |
||
49 |
^ super helpSpec addPairsFrom:#( |
|
50 |
||
524 | 51 |
#addRepository |
52 |
'Add another monticello repository to the list' |
|
53 |
||
54 |
#makePrimaryRepository |
|
55 |
'Checkin from the browser will go into this repository by default' |
|
56 |
||
538 | 57 |
#primaryRepository |
58 |
'Checkin from the browser will go into this repository by default' |
|
59 |
||
524 | 60 |
#removeRepository |
61 |
'Remove the selected repository from the list' |
|
320 | 62 |
|
63 |
) |
|
64 |
||
538 | 65 |
"Modified: / 03-12-2011 / 11:35:51 / cg" |
320 | 66 |
! ! |
67 |
||
68 |
!MCSettingsApp class methodsFor:'image specs'! |
|
69 |
||
70 |
defaultIcon |
|
553 | 71 |
"/ ^ self repositoryIcon. |
72 |
^ self squeakRepositoryIcon24x24 |
|
73 |
||
74 |
"Created: / 26-05-2008 / 14:55:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
75 |
"Modified: / 16-09-2010 / 14:02:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
76 |
"Modified: / 15-01-2012 / 10:34:53 / cg" |
|
77 |
! |
|
78 |
||
79 |
repositoryIcon |
|
518 | 80 |
"This resource specification was automatically generated |
81 |
by the ImageEditor of ST/X." |
|
320 | 82 |
|
518 | 83 |
"Do not manually edit this!! If it is corrupted, |
84 |
the ImageEditor may not be able to read the specification." |
|
85 |
||
86 |
" |
|
87 |
self defaultIcon inspect |
|
88 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
89 |
Icon flushCachedIcons |
|
90 |
" |
|
91 |
||
92 |
<resource: #image> |
|
93 |
||
94 |
^Icon |
|
553 | 95 |
constantNamed:#'MCSettingsApp class repositoryIcon' |
518 | 96 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
97 |
@@@@@@@@@@@A@PHB@0P@@@@@@@@@@@@@@@@@@@HEA \HA $JB0HD@@@@@@@@@@@@@@HLA04NC0HD@@L@@ P@@@@@@@@@@@@ED@ NDP@@@@@@@@@D@@@@@@@@ |
|
98 |
@@@BA \FAPP@@@@@@@@@@@P@@@@@@@@@AQ@RC0@@@@@@@@@@@@@@@@@@@@@@@@TGA!!DD@@@@@@@@@@@@@@@@@@@D@PDIA08OA@@@@@@@@@@@@@@@@@@@AP S |
|
99 |
A0XIBPXGC0P@@@@@@@@@@@@@@@@ECAPLBPXOAP@@@@@@EQX@@@@@@@@@@@TIE@XOAP@@@@@@EQ\XE @@@@@@@@@@AP$OAP@@@@@@FQ\ZE!! V@@@@@@@@@@@E |
|
100 |
F0@@@@@@EQ\ZF!!(VFAX@@@@@@@@@@@@@@@@ZEQ\VE!!(ZF!!XWF @@@@@@@@@@@@@@@@@@@A\ZE!!(@@@@@@@@@@@@@@@@@@@@@@@@XE!!XZ@@@@@@@@@@@@@@@@ |
|
101 |
@@@@@@@@EQ(V@@@@@@@@@@@@@@@@@@@@@@@@EQ\VE @@@@@@@@@@@@@@@@@@@@@@EQ VE @@@@@@@@@@@@@@F @@@@@WEQ VE!!(@@@@@@@@@@@@@@@@@E!!\W |
|
102 |
EQXVE @@@@@@@@@@@@@@@@@@@@@@@A(Z@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 32 64 0 0 64 0 32 32 0 0 32 0 32 96 32 96 192 128 192 224 192 160 224 160 32 128 64 64 96 64 64 96 32 32 160 64 160 224 192 64 160 96 32 128 32 224 224 224 64 128 64 160 192 160 224 224 192 32 160 96 160 160 160 64 64 64 96 96 96 128 128 128 192 192 192 32 32 32 32 64 32]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@O8@@?>@A??@A?C C<@0C8@PC8@@??@@??F@_>O@O<_ G8?0C1?8A#?<@C?<@@_@H@_@L@?@GC>@C?>@A?<@@_0@') ; yourself); yourself] |
|
320 | 103 |
|
104 |
"Created: / 26-05-2008 / 14:55:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
105 |
"Modified: / 16-09-2010 / 14:02:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
518 | 106 |
"Modified: / 25-11-2011 / 15:46:41 / cg" |
553 | 107 |
"Created: / 15-01-2012 / 10:34:23 / cg" |
108 |
! |
|
109 |
||
110 |
squeakIcon |
|
111 |
"This resource specification was automatically generated |
|
112 |
by the ImageEditor of ST/X." |
|
113 |
||
114 |
"Do not manually edit this!! If it is corrupted, |
|
115 |
the ImageEditor may not be able to read the specification." |
|
116 |
||
117 |
" |
|
118 |
self squeakIcon inspect |
|
119 |
ImageEditor openOnClass:self andSelector:#squeakIcon |
|
120 |
Icon flushCachedIcons |
|
121 |
" |
|
122 |
||
123 |
<resource: #image> |
|
124 |
||
125 |
^Icon |
|
126 |
constantNamed:'SVN::ConfigurationApp class squeakIcon' |
|
127 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 18; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
128 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@DB@0@@@@@@@@@@@@@@A@TF@@@@@@@@@@\@@ D@@@@@@@@@@@@C |
|
129 |
@ @F@@@@@@@@@@ @@@H@@@@@@@@@@@@B@@@F@@@@@@@@@@$@@@@J@@@@@@@@@@H@@@@F@@@@@@@@@@,@@@@@@@@@@@@@@@@@@@@K@@@@@@@@@@0@@@@@@@@@ |
|
130 |
@@@@@@@@@@@K@@@@@@@@@@DM@@@@@04@@@@@CP@@@@,A@@@@@@@@@@@N@@@@C0<M@@@OC04@@@,@@@@@@@@@@@@K@@@@C1@Q@@@ODAD@@AH@@@@@@@@@@@@@ |
|
131 |
@@@@DQLM@@@QC04@@@@@@@@@@@@@B@@@@@ @@@@@@P@@@@@@B@@@@@@@@@@KB0@@@@@F@@@QC0<Q@@@@@@@@@@@@@@@@@@@KB0,@@@@QC0<Q@@@@B0,KB0@@ |
|
132 |
@@@@@@@@@@@K@@@@@0@@@@@KB0@@@@,@@@@@@@@@B0@@@@@@@@@@@@@@@@,K@@@K@@@@@@X@@@@@@@@@@@@@@@@@@@@@B0@@') ; colorMapFromArray:#[164 164 164 232 232 232 102 102 102 233 233 233 236 236 236 143 143 143 161 161 161 110 110 110 190 190 190 163 163 163 97 97 97 169 169 169 124 124 124 185 185 185 155 155 155 0 0 0 255 255 255 139 139 139 118 118 118 4 4 4]; mask:((Depth1Image new) width: 24; height: 18; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@C @8B0A(BPAHBHBHB@@HB@@HCFDXAGNPAGNP@GN@G0 <LI9CC18<DX!!"I @YB@@D') ; yourself); yourself] |
|
133 |
! |
|
134 |
||
135 |
squeakRepositoryIcon24x24 |
|
136 |
"This resource specification was automatically generated |
|
137 |
by the ImageEditor of ST/X." |
|
138 |
||
139 |
"Do not manually edit this!! If it is corrupted, |
|
140 |
the ImageEditor may not be able to read the specification." |
|
141 |
||
142 |
" |
|
143 |
self squeakRepositoryIcon24x24 inspect |
|
144 |
ImageEditor openOnClass:self andSelector:#squeakRepositoryIcon24x24 |
|
145 |
Icon flushCachedIcons |
|
146 |
" |
|
147 |
||
148 |
<resource: #image> |
|
149 |
||
150 |
^Icon |
|
151 |
constantNamed:'SVN::ConfigurationApp class squeakRepositoryIcon24x24' |
|
152 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
153 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@DB@0@@@@@@@@@@@@@@A@TF@@@@@@@@@@\@@ D@@@@@@@@@@@@C |
|
154 |
@ @F@@@@@@@@@@ @@@H@@@@@@@@@@@@B@@@F@@@@@@@@@@$@@@@J@@@@@@@@@@H@@@@F@@@@@@@@@@,@@@@@@@@@@@@@@@@@@@@K@@@@@@@@@@0@@@@@@@@@ |
|
155 |
@@@@@@@@@@@K@@@@@@@@@@DM@@@@@04@@@@@CP@@@@,A@@@@@@@@@@@N@@@@C0<M@@@OC04@@@,@@@@@@@@@@@@K@@@@C1@Q@@@ODAD@@AH@@@@@@@@@@@@@ |
|
156 |
@@@@DQLM@@@QC04@@@@@@@@@@@@@B@@ZF!!\W@@@@@P@@@@@@B@@@@@@@@@@KB1\ZF!!(ZE0@QC0<Q@@@@@@@@@@@@@@@@E!!(ZB0,@@A\QC0<Q@@@@B0,KB0@@ |
|
157 |
@@@@E1 W@@@K@@@@@0@@@@@KB0@@@@,@@A\WF!!$ZF0@@G@@@@@@@@@@@@@,K@@@K@@@WFQ(W@@@\GA0@@@@@@@@@@@@@B0@@@@@@E2@@@A0_G18\@@@@@@@@ |
|
158 |
@@@@@@@@@@@@@@@@GA0]GA0\@@@@@@@@@@@@@@@@@@@\@@@@@@@\G@@@@@@@@@@@@@@@@@@@@@@@GA0\GA0\C0@@@@@@@@@@@@@@@@@@@@@@@A4\GA0O@@@@ |
|
159 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[164 164 164 232 232 232 102 102 102 233 233 233 236 236 236 143 143 143 161 161 161 110 110 110 190 190 190 163 163 163 97 97 97 169 169 169 124 124 124 185 185 185 155 155 155 0 0 0 255 255 255 139 139 139 118 118 118 4 4 4 229 229 229 214 214 214 0 64 0 32 96 32 96 192 128 32 128 64 32 160 64 32 128 32 64 64 64 96 96 96 128 128 128 32 32 32 32 64 32]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@C @8B0A(BPAHBHBHB@@HB@@HCFDXAGNPAGNP@GN@G8 <O=9CG38<GX!!"_$@YON@DF_@@@?@@HL@@G<@@C8@@@@@@') ; yourself); yourself] |
|
320 | 160 |
! |
161 |
||
162 |
svnIcon |
|
163 |
"^ IconLibrary svn_wizban" |
|
164 |
^nil |
|
165 |
||
166 |
"Created: / 24-05-2008 / 01:44:19 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
167 |
"Modified: / 16-09-2010 / 14:02:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
168 |
! ! |
|
169 |
||
170 |
!MCSettingsApp class methodsFor:'interface opening'! |
|
171 |
||
172 |
open |
|
173 |
||
174 |
| settingsApp | |
|
175 |
||
176 |
settingsApp := SettingsDialog new. |
|
177 |
settingsApp addApplClass:self fullName |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
178 |
withName:'Monticello'. |
320 | 179 |
settingsApp showRoot: false. |
180 |
settingsApp selectedItem value: |
|
181 |
(settingsApp applicationList root children anyOne). |
|
182 |
settingsApp open. |
|
183 |
||
184 |
"Created: / 26-05-2008 / 12:17:20 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
185 |
"Modified: / 04-04-2012 / 11:17:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
320 | 186 |
! ! |
187 |
||
188 |
!MCSettingsApp class methodsFor:'interface specs'! |
|
189 |
||
190 |
windowSpec |
|
191 |
"This resource specification was automatically generated |
|
192 |
by the UIPainter of ST/X." |
|
193 |
||
194 |
"Do not manually edit this!! If it is corrupted, |
|
195 |
the UIPainter may not be able to read the specification." |
|
196 |
||
197 |
" |
|
198 |
UIPainter new openOnClass:MCSettingsApp andSelector:#windowSpec |
|
199 |
MCSettingsApp new openInterface:#windowSpec |
|
200 |
MCSettingsApp open |
|
201 |
" |
|
202 |
||
203 |
<resource: #canvas> |
|
204 |
||
205 |
^ |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
206 |
#(FullSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
207 |
name: windowSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
208 |
uuid: 'a78e4130-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
209 |
window: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
210 |
(WindowSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
211 |
label: 'Monticello Settings' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
212 |
name: 'Monticello Settings' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
213 |
uuid: 'a78e4131-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
214 |
min: (Point 10 10) bounds: (Rectangle 0 0 647 627) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
215 |
) component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
216 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
217 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
218 |
(LabelSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
219 |
label: ' Monticello Settings' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
220 |
name: 'Title' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
221 |
layout: (LayoutFrame 0 0 0 0 0 1 66 0) style: (FontDescription helvetica medium roman 18 #'iso10646-1' nil nil) uuid: 'a78e4132-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
222 |
backgroundColor: (Color 100.0 100.0 100.0) translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
223 |
adjust: left |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
224 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
225 |
(LabelSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
226 |
label: 'Icon' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
227 |
name: 'Icon' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
228 |
layout: (LayoutFrame -75 1 0 0 0 1 66 0) uuid: 'a78e4133-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
229 |
initiallyInvisible: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
230 |
hasCharacterOrientedLabel: false |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
231 |
backgroundColor: (Color 100.0 100.0 100.0) translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
232 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
233 |
(VerticalPanelViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
234 |
name: 'Controls' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
235 |
layout: (LayoutFrame 0 0 70 0 0 1 0 1) uuid: 'a78e4134-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
236 |
horizontalLayout: fit |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
237 |
verticalLayout: topFit |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
238 |
horizontalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
239 |
verticalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
240 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
241 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
242 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
243 |
(HorizontalPanelViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
244 |
name: 'EnabledAndResetPanel' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
245 |
uuid: 'a78e4135-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
246 |
horizontalLayout: rightSpaceFit |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
247 |
verticalLayout: topSpace |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
248 |
horizontalSpace: 0 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
249 |
verticalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
250 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
251 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
252 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
253 |
(CheckBoxSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
254 |
label: 'Show in Browser Menus' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
255 |
name: 'Enabled' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
256 |
uuid: 'a78e4136-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
257 |
model: mcEnabled |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
258 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
259 |
useDefaultExtent: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
260 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
261 |
(ActionButtonSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
262 |
label: 'Flush caches' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
263 |
name: 'ResetCachedRepositoriesButton' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
264 |
uuid: 'a78e6840-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
265 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
266 |
model: flushCaches |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
267 |
useDefaultExtent: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
268 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
269 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
270 |
) useDefaultExtent: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
271 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
272 |
(ViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
273 |
name: 'Box1' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
274 |
uuid: 'a78e6841-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
275 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
276 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
277 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
278 |
(LabelSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
279 |
label: 'Primary Repository: ' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
280 |
name: 'Label2' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
281 |
layout: (LayoutFrame 7 0 0 0 150 0 22 0) activeHelpKey: primaryRepository |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
282 |
uuid: 'a78e6842-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
283 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
284 |
adjust: left |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
285 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
286 |
(LabelSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
287 |
name: 'Label3' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
288 |
layout: (LayoutFrame 150 0 0 0 0 1 22 0) activeHelpKey: primaryRepository |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
289 |
uuid: 'a78e6843-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
290 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
291 |
labelChannel: mcPrimaryRepository |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
292 |
adjust: left |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
293 |
) |
320 | 294 |
) |
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
295 |
) extent: (Point 647 24) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
296 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
297 |
(FramedBoxSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
298 |
label: 'Repositories' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
299 |
name: 'Repositories' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
300 |
uuid: 'a78e6844-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
301 |
labelPosition: topLeft |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
302 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
303 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
304 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
305 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
306 |
(VerticalPanelViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
307 |
name: 'RepositoryConfigurations' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
308 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) uuid: 'a78e6845-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
309 |
horizontalLayout: fit |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
310 |
verticalLayout: bottomFit |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
311 |
horizontalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
312 |
verticalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
313 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
314 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
315 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
316 |
(ViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
317 |
name: 'RepositoryConfigurationListBox' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
318 |
uuid: 'a78e6846-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
319 |
model: mcRepositories |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
320 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
321 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
322 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
323 |
(SelectionInListModelViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
324 |
name: 'RepositoryList' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
325 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) uuid: 'a78e6847-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
326 |
model: selectedRepositoryHolder |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
327 |
hasHorizontalScrollBar: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
328 |
hasVerticalScrollBar: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
329 |
listModel: mcRepositories |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
330 |
useIndex: false |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
331 |
highlightMode: line |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
332 |
) |
320 | 333 |
) |
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
334 |
) extent: (Point 613 429) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
335 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
336 |
(HorizontalPanelViewSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
337 |
name: 'AddRemovePanel' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
338 |
uuid: 'a78e6848-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
339 |
horizontalLayout: fit |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
340 |
verticalLayout: center |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
341 |
horizontalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
342 |
verticalSpace: 3 |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
343 |
component: |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
344 |
(SpecCollection |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
345 |
collection: ( |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
346 |
(ActionButtonSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
347 |
label: 'Add...' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
348 |
name: 'AddConfigurationAction' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
349 |
activeHelpKey: addRepository |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
350 |
uuid: 'a78e6849-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
351 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
352 |
model: addRepositoryAction |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
353 |
extent: (Point 151 25) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
354 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
355 |
(ActionButtonSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
356 |
label: 'Remove...' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
357 |
name: 'RemoveConfigurationAction' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
358 |
activeHelpKey: removeRepository |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
359 |
uuid: 'a78e684a-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
360 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
361 |
model: removeRepositoryAction |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
362 |
enableChannel: repositorySelectedHolder |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
363 |
extent: (Point 151 25) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
364 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
365 |
(LabelSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
366 |
name: 'Label1' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
367 |
uuid: 'a78e684b-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
368 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
369 |
extent: (Point 151 22) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
370 |
) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
371 |
(ActionButtonSpec |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
372 |
label: 'Define as Primary' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
373 |
name: 'Button1' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
374 |
activeHelpKey: makePrimaryRepository |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
375 |
uuid: 'a78e8f50-babb-11ea-9743-606720e43e2c' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
376 |
translateLabel: true |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
377 |
model: defineAsPrimaryRepositoryAction |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
378 |
enableChannel: mcEnabledAndRepositorySelectedHolder |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
379 |
extent: (Point 151 25) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
380 |
) |
320 | 381 |
) |
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
382 |
) extent: (Point 613 30) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
383 |
) |
320 | 384 |
) |
385 |
) |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
386 |
) |
320 | 387 |
) |
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
388 |
) extent: (Point 647 495) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
389 |
) |
320 | 390 |
) |
391 |
) |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
392 |
) |
320 | 393 |
) |
394 |
) |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
395 |
) |
320 | 396 |
! ! |
397 |
||
524 | 398 |
!MCSettingsApp class methodsFor:'queries'! |
399 |
||
400 |
managerTypeName |
|
401 |
||
402 |
^ 'Monticello' |
|
403 |
||
404 |
"Created: / 21-07-2011 / 11:47:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
405 |
! ! |
|
406 |
||
320 | 407 |
!MCSettingsApp methodsFor:'accessing'! |
408 |
||
409 |
repositoryConfiguration |
|
410 |
||
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
411 |
^self selectedRepositoryHolder value |
320 | 412 |
|
413 |
"Created: / 26-05-2008 / 12:04:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
414 |
"Modified: / 27-09-2011 / 11:55:22 / cg" |
320 | 415 |
! |
416 |
||
417 |
repositoryConfiguration: anObject |
|
418 |
||
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
419 |
self selectedRepositoryHolder value: anObject |
320 | 420 |
|
421 |
"Created: / 26-05-2008 / 12:12:17 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
422 |
"Modified: / 27-09-2011 / 11:55:24 / cg" |
320 | 423 |
! |
424 |
||
425 |
repositoryConfigurationList |
|
426 |
||
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
427 |
^self mcRepositories value |
320 | 428 |
|
429 |
"Created: / 26-05-2008 / 12:05:01 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
430 |
"Modified: / 27-09-2011 / 11:50:53 / cg" |
320 | 431 |
! |
432 |
||
433 |
repositoryManager |
|
434 |
||
435 |
^RepositoryManager current |
|
436 |
||
437 |
"Created: / 26-05-2008 / 10:46:30 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
438 |
! |
|
439 |
||
440 |
workingCopyBase |
|
441 |
||
442 |
^self workingCopyBaseAspect value |
|
443 |
||
444 |
"Created: / 26-05-2008 / 13:15:22 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
445 |
! ! |
|
446 |
||
447 |
!MCSettingsApp methodsFor:'actions'! |
|
448 |
||
449 |
addRepositoryAction |
|
782 | 450 |
| dialog class codeHolder repo lastInput asking | |
320 | 451 |
|
452 |
class := Dialog |
|
453 |
choose:'Select repository type' |
|
524 | 454 |
fromList:#('HTTP Repository' 'FTP Repository' 'Local Repository') |
455 |
values:(Array |
|
456 |
with: MCHttpRepository |
|
457 |
with: MCFtpRepository |
|
458 |
with: MCDirectoryRepository) |
|
320 | 459 |
lines:5 cancel:[^self]. |
460 |
||
461 |
codeHolder := ValueHolder new. |
|
782 | 462 |
|
463 |
asking := true. |
|
464 |
[asking] whileTrue:[ |
|
918 | 465 |
class == MCDirectoryRepository ifTrue:[ |
466 |
|dir| |
|
467 |
dir := Dialog requestDirectoryName:'MC Repository Directory'. |
|
468 |
dir isEmptyOrNil ifTrue:[^ self]. |
|
469 |
repo := MCDirectoryRepository directory:dir. |
|
470 |
] ifFalse:[ |
|
471 |
dialog := Dialog |
|
472 |
forRequestText:'Please Fill in Data:' |
|
473 |
lines:10 columns:60 |
|
474 |
initialAnswer: (lastInput ? class creationTemplate) |
|
475 |
model:codeHolder. |
|
476 |
dialog open. |
|
477 |
dialog accepted ifFalse:[^self]. |
|
478 |
lastInput := codeHolder value. |
|
479 |
repo := Compiler evaluate: codeHolder value. |
|
480 |
]. |
|
782 | 481 |
|
482 |
repo isValid ifTrue:[ |
|
483 |
asking := false |
|
484 |
] ifFalse:[ |
|
485 |
|answer| |
|
486 |
||
487 |
repo class == MCDirectoryRepository ifTrue:[ |
|
488 |
answer := Dialog confirmWithCancel:'Invalid repository. Create?'. |
|
489 |
answer == nil ifTrue:[ |
|
490 |
^ self |
|
491 |
]. |
|
492 |
answer == true ifTrue:[ |
|
493 |
repo directory asFilename recursiveMakeDirectory |
|
494 |
]. |
|
495 |
asking := false |
|
496 |
] ifFalse:[ |
|
497 |
answer := Dialog confirmWithCancel:'Invalid repository. Try again?'. |
|
498 |
answer == nil ifTrue:[ |
|
499 |
^ self |
|
500 |
]. |
|
501 |
answer == false ifTrue:[ |
|
502 |
asking := false |
|
503 |
]. |
|
504 |
] |
|
505 |
]. |
|
506 |
]. |
|
320 | 507 |
self mcRepositories value add: repo. |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
508 |
self mcRepositories changed:#value. |
555 | 509 |
self updateModifiedChannel |
320 | 510 |
|
511 |
"Created: / 26-05-2008 / 12:04:30 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
512 |
"Modified: / 16-08-2009 / 17:24:17 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
524 | 513 |
"Modified (format): / 01-12-2011 / 20:31:10 / cg" |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
514 |
"Modified: / 04-04-2012 / 11:14:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
524 | 515 |
! |
516 |
||
517 |
defineAsPrimaryRepositoryAction |
|
518 |
self mcPrimaryRepository value:(self selectedRepositoryHolder value) |
|
519 |
||
520 |
"Created: / 01-12-2011 / 20:33:16 / cg" |
|
320 | 521 |
! |
522 |
||
523 |
flushCaches |
|
524 |
<resource: #uiCallback> |
|
525 |
||
526 |
"automatically generated by UIPainter..." |
|
527 |
||
528 |
"*** the code below performs no action" |
|
529 |
"*** (except for some feedback on the Transcript)" |
|
530 |
"*** Please change as required and accept in the browser." |
|
531 |
"*** (and replace this comment by something more useful ;-)" |
|
532 |
||
533 |
"action to be defined here..." |
|
534 |
||
535 |
Transcript showCR:self class name, ': action for flushCaches ...'. |
|
536 |
! |
|
537 |
||
538 |
removeRepositoryAction |
|
524 | 539 |
self repositoryConfiguration notNil ifTrue:[ |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
540 |
self mcRepositories value remove: self repositoryConfiguration. |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
541 |
self mcRepositories changed:#value. |
555 | 542 |
self updateModifiedChannel |
524 | 543 |
]. |
320 | 544 |
|
545 |
"Created: / 26-05-2008 / 12:04:10 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
524 | 546 |
"Modified: / 01-12-2011 / 20:50:08 / cg" |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
547 |
"Modified: / 04-04-2012 / 11:15:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
320 | 548 |
! ! |
549 |
||
550 |
!MCSettingsApp methodsFor:'aspects'! |
|
551 |
||
552 |
mcEnabled |
|
524 | 553 |
^self settingsAspectFor: #mcEnabled default:false |
320 | 554 |
|
555 |
"Created: / 16-09-2010 / 14:14:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
524 | 556 |
"Modified: / 01-12-2011 / 20:08:10 / cg" |
557 |
! |
|
558 |
||
559 |
mcEnabledAndRepositorySelectedHolder |
|
560 |
^ BlockValue |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
561 |
forLogical: self mcEnabled |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
562 |
and: self repositorySelectedHolder |
524 | 563 |
|
564 |
"Created: / 01-12-2011 / 19:58:57 / cg" |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
565 |
"Modified: / 30-06-2020 / 11:24:34 / Jan Vrany <jan.vrany@labware.com>" |
524 | 566 |
! |
567 |
||
568 |
mcPrimaryRepository |
|
569 |
||
570 |
^self settingsAspectFor: #mcPrimaryRepository default:nil |
|
571 |
||
572 |
"Created: / 16-09-2010 / 14:14:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
573 |
"Created: / 01-12-2011 / 20:06:36 / cg" |
|
320 | 574 |
! |
575 |
||
576 |
mcRepositories |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
577 |
"return/create the 'mcRepositories' value holder (automatically generated)" |
320 | 578 |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
579 |
mcRepositories isNil ifTrue:[ |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
580 |
mcRepositories := ValueHolder new. |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
581 |
]. |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
582 |
^ mcRepositories |
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
583 |
! |
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
584 |
|
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
585 |
repositorySelectedHolder |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
586 |
^ BlockValue |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
587 |
with:[:v | v value notNil ] |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
588 |
argument:(self selectedRepositoryHolder) |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
589 |
|
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
590 |
"Created: / 30-06-2020 / 11:23:26 / Jan Vrany <jan.vrany@labware.com>" |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
591 |
! |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
592 |
|
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
593 |
selectedRepositoryHolder |
524 | 594 |
selectedRepositoryHolder isNil ifTrue:[ |
595 |
selectedRepositoryHolder := nil asValue. |
|
596 |
]. |
|
597 |
^ selectedRepositoryHolder |
|
504
9cd65fe6164f
added: #selectedRepositoryHolder
Claus Gittinger <cg@exept.de>
parents:
461
diff
changeset
|
598 |
|
524 | 599 |
"Created: / 01-12-2011 / 20:19:36 / cg" |
320 | 600 |
! ! |
601 |
||
602 |
!MCSettingsApp methodsFor:'helpers'! |
|
603 |
||
524 | 604 |
settingsAspectFor:settingName default:default |
320 | 605 |
|holder| |
606 |
||
607 |
self createBuilder. |
|
608 |
||
524 | 609 |
(holder := builder bindingAt:settingName) isNil ifTrue:[ |
610 |
holder := (currentUserPrefs at:settingName asSymbol ifAbsent:default) asValue. |
|
611 |
builder aspectAt:settingName put:holder. |
|
612 |
holder onChangeSend:#updateModifiedChannel to:self. |
|
320 | 613 |
]. |
614 |
^ holder. |
|
615 |
||
616 |
"Created: / 25-05-2009 / 18:43:42 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
524 | 617 |
"Created: / 01-12-2011 / 20:07:59 / cg" |
320 | 618 |
! ! |
619 |
||
620 |
!MCSettingsApp methodsFor:'protocol'! |
|
621 |
||
622 |
basicReadSettings |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
623 |
|
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
624 |
self mcRepositories value: MCRepositoryGroup default repositories copy. |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
625 |
|
524 | 626 |
"/ special case, because default value of false is not ok here !! |
627 |
(currentUserPrefs includesKey:#mcPrimaryRepository) ifTrue:[ |
|
628 |
self |
|
629 |
readAspects: #(mcPrimaryRepository) |
|
630 |
from:currentUserPrefs. |
|
631 |
]. |
|
320 | 632 |
|
633 |
self |
|
524 | 634 |
readAspects: #(mcEnabled) |
320 | 635 |
from:currentUserPrefs. |
636 |
||
524 | 637 |
"Modified: / 01-12-2011 / 20:26:23 / cg" |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
638 |
"Modified: / 04-04-2012 / 11:11:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
320 | 639 |
! |
640 |
||
641 |
basicSaveSettings |
|
642 |
||
643 |
self |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
644 |
writeAspects: #(mcEnabled mcPrimaryRepository) |
320 | 645 |
to:currentUserPrefs. |
646 |
||
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
647 |
MCRepositoryGroup default repositories: self mcRepositories value copy |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
648 |
|
320 | 649 |
"Created: / 19-04-2008 / 09:42:59 / Jan Vrany <vranyj1@fel.cvut.cz>" |
650 |
"Modified: / 25-05-2009 / 19:06:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
524 | 651 |
"Modified: / 01-12-2011 / 20:06:01 / cg" |
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
652 |
"Modified: / 04-04-2012 / 11:24:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
320 | 653 |
! |
654 |
||
655 |
helpFilename |
|
656 |
"subclasses must return the relative name of a helpFile |
|
657 |
in the doc/online/<language>/help directory. |
|
658 |
Or nil, if no help is available." |
|
659 |
||
660 |
^nil |
|
661 |
||
662 |
"Created: / 19-04-2008 / 09:42:59 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
663 |
"Modified: / 26-05-2008 / 13:12:53 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
664 |
! ! |
|
665 |
||
666 |
!MCSettingsApp methodsFor:'queries'! |
|
667 |
||
668 |
hasUnsavedChanges |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
669 |
|
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
670 |
self mcRepositories value = MCRepositoryGroup default repositories ifFalse:[^true]. |
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
671 |
|
524 | 672 |
"/ special case, because default value of false is not ok here !! |
673 |
(currentUserPrefs includesKey:#mcPrimaryRepository) ifTrue:[ |
|
674 |
(self |
|
675 |
hasChangedAspectIn: #(mcPrimaryRepository) |
|
676 |
asComparedTo:currentUserPrefs) ifTrue:[^ true]. |
|
555 | 677 |
] ifFalse:[ |
567 | 678 |
self mcRepositories value notNil ifTrue:[ |
679 |
self mcRepositories value ~= MCRepositoryGroup default repositories ifTrue:[ |
|
680 |
^ true |
|
681 |
] |
|
682 |
] |
|
524 | 683 |
]. |
517 | 684 |
^ self |
524 | 685 |
hasChangedAspectIn: #(mcEnabled) |
517 | 686 |
asComparedTo:currentUserPrefs |
320 | 687 |
|
688 |
"Created: / 28-05-2008 / 07:33:26 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
689 |
"Modified: / 19-08-2009 / 12:07:01 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
560
86b316aba34b
Fixes in reading/storing MC preferences
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
555
diff
changeset
|
690 |
"Modified: / 04-04-2012 / 11:12:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
567 | 691 |
"Modified: / 24-07-2012 / 15:50:53 / cg" |
320 | 692 |
! ! |
693 |
||
694 |
!MCSettingsApp class methodsFor:'documentation'! |
|
695 |
||
696 |
version |
|
918 | 697 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSettingsApp.st,v 1.14 2014-03-01 09:40:15 cg Exp $' |
320 | 698 |
! |
699 |
||
700 |
version_CVS |
|
918 | 701 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSettingsApp.st,v 1.14 2014-03-01 09:40:15 cg Exp $' |
320 | 702 |
! |
703 |
||
1106
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
704 |
version_HG |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
705 |
|
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
706 |
^ '$Changeset: <not expanded> $' |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
707 |
! |
3699dacedeab
Allow adding / removing Monticello repositories in settings even if Monticello is disabled
Jan Vrany <jan.vrany@labware.com>
parents:
918
diff
changeset
|
708 |
|
320 | 709 |
version_SVN |
918 | 710 |
^ '$Id: MCSettingsApp.st,v 1.14 2014-03-01 09:40:15 cg Exp $' |
320 | 711 |
! ! |
782 | 712 |