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