added: #defaultIcon3
authorClaus Gittinger <cg@exept.de>
Sun, 15 Jan 2012 02:45:02 +0100
changeset 11133 fb5acac1388d
parent 11132 c5fad2575a88
child 11134 d717f4642fe0
added: #defaultIcon3 changed:6 methods
MercurialSourceCodeManagementSettingsAppl.st
--- a/MercurialSourceCodeManagementSettingsAppl.st	Sat Jan 14 23:37:47 2012 +0100
+++ b/MercurialSourceCodeManagementSettingsAppl.st	Sun Jan 15 02:45:02 2012 +0100
@@ -52,7 +52,7 @@
 
 defaultRepositoryName
 
-    ^ '/cvs/stx'
+    ^ ''
 
     "Created: / 19-04-2011 / 11:00:11 / cg"
 ! !
@@ -157,7 +157,7 @@
 !MercurialSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
 
 defaultIcon
-    ^ self defaultIcon2
+    ^ self defaultIcon3
 
     "Created: / 22-12-2011 / 13:47:11 / cg"
 !
@@ -214,6 +214,33 @@
 @@@@M3 7A@$D@P@@@@8IB@ LC P''C0@@@C\7N#$:N0 HHA0@@@8LA@XA@Q<Y@0@@@@@7NS(7B@  HB@@@@PCB" JC2T[@@@@@@@@M34LBB@<OAP @@P)JB$I
 J!!HA@@@@@@@@@B,LHB@YHB@ A XACQP-F0L@@@@@@@@ @@(RK"T H@@@BA,/LCD@L @@@@@@@@@@HB@ HB@ MP@@@QTTC@ 3@@@@@@@@@@@@@A$ HB@5@@@@
 @CP\L0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[143 136 136 208 208 208 192 192 184 176 176 176 175 168 168 176 168 168 191 184 184 191 176 176 159 152 144 160 160 160 239 232 224 192 184 184 159 152 160 207 192 200 207 200 200 144 144 144 224 224 224 160 152 160 127 120 120 144 144 136 128 128 128 111 104 104 207 200 208 239 232 240 95 88 88 96 96 96 79 72 80 112 112 120 192 192 200 223 208 208 111 104 96 80 80 80 64 64 64 223 216 216 128 120 128 31 24 24 32 32 24 79 72 64 64 56 56 47 40 40 240 240 240 239 224 224 63 48 48 191 184 176 112 112 104 64 64 56 63 56 56 48 48 48 48 40 48 127 112 120 160 160 168 208 200 208 224 224 216 0 0 0 0 64 0 32 96 32 96 192 128 32 128 64 32 160 64 32 128 32 32 32 32 32 64 32]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@G>@@O? @_?0@??8@??8@??<@??<O??>__?>_O?>_??>O=?>GR_>G<_<_>_<O>_8G?_8C??0K<? G<?@C8\@@@@@') ; yourself); yourself]
+!
+
+defaultIcon3
+    "This resource specification was automatically generated
+     by the ImageEditor of ST/X."
+
+    "Do not manually edit this!! If it is corrupted,
+     the ImageEditor may not be able to read the specification."
+
+    "
+     self defaultIcon3 inspect
+     ImageEditor openOnClass:self andSelector:#defaultIcon3
+     Icon flushCachedIcons
+    "
+
+    <resource: #image>
+
+    ^Icon
+        constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon3'
+        ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
+B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
+B@ HB@ HB@ SA@@@@@@@@@@@@APLB@ HB@ HB@ HB@ IEP@@@@@VA@LW@Q OC@ HB@ HB@ HB@ LFPD@@@DLBP\Q@@@ZF0 LB@ HB@ HB@ IF@X@@A0HA!!4^
+@@@SF!!<_@@$HB@ HB@0FH@L@@BDI@AH:N#\7HP@O@BHIB@ HB@LFH0H@@@@ABS\:N#(:M0@!!A@@DB@ HCA0OI@8@@@@@M#(:@A\@@C\@@@XDB@ HBP8%I D@
+@@@@M3 7A@$D@P@@@@8IB@ LC P''C0@@@C\7N#$:N0 HOA0@@@8LA@XA@Q<Y@0@@@@@7NS(7B@ <OC0@@@PCB" JC2T[@@@@@@@@M4@LBC0?O38<@@P)JB$I
+J!!HA@@@@@@@@@B,LOC0=OC0<A XACQP-F0L@@@@@@@@<@@(RK"T<O@@@BA,/LCD@L @@@@@@@@@@OC0<OC0<MP@@@QTTC@ 3@@@@@@@@@@@@@C4<OC05@@@@
+@CP\L0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[174 169 169 255 255 255 233 233 230 216 216 216 213 209 209 214 209 209 232 229 229 229 223 223 191 187 181 197 197 197 255 255 255 233 230 230 194 189 194 247 244 245 251 250 250 177 177 177 255 255 255 194 189 194 155 149 149 175 175 169 157 157 157 136 128 128 251 251 251 255 255 255 117 108 108 118 118 118 97 89 98 139 139 147 240 240 242 255 255 255 137 128 118 98 98 98 79 79 79 255 255 255 156 149 156 38 30 30 39 39 30 97 89 79 79 69 69 58 49 49 255 255 255 255 255 255 77 59 59 229 226 223 137 137 128 79 79 69 77 69 69 59 59 59 59 49 59 154 140 147 199 199 204 251 251 251 255 255 255 0 0 0 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:'@@@@@@@@@G>@@O? @_?0@??8@??8@??<@??<O??>__?>_O?>_??>O=?>GR_>G<_<_>_<O>_8G?_8C??0K<? G<?@C8\@@@@@') ; yourself); yourself]
 ! !
 
 !MercurialSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
@@ -298,7 +325,7 @@
                                       layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
                                       activeHelpKey: cvsCommand
                                       tabable: true
-                                      model: gExecutableHolder
+                                      model: hgExecutableHolder
                                       acceptChannel: acceptChannel
                                       acceptOnPointerLeave: true
                                     )
@@ -353,11 +380,11 @@
                                       adjust: right
                                     )
                                    (ComboBoxSpec
-                                      name: 'cvsRootComboBox'
+                                      name: 'RepositoryComboBox'
                                       layout: (LayoutFrame 64 0.25 2 0 0 1 24 0)
                                       activeHelpKey: cvsRootDefault
                                       tabable: true
-                                      model: hgRepository
+                                      model: repositoryHolder
                                       immediateAccept: true
                                       acceptOnLeave: true
                                       acceptOnReturn: true
@@ -365,16 +392,26 @@
                                       acceptOnLostFocus: true
                                       acceptChannel: acceptChannel
                                       acceptOnPointerLeave: true
-                                      comboList: hgRepositoryPrototypeList
+                                      comboList: repositoryPrototypeList
                                     )
                                    )
                                  
                                 )
                               )
                              (ActionButtonSpec
+                                label: 'Init'
+                                name: 'Button2'
+                                layout: (LayoutFrame -201 1 122 0 -101 1 144 0)
+                                activeHelpKey: cvsLogin
+                                translateLabel: true
+                                tabable: true
+                                model: initializeRepository
+                                enableChannel: cvsLoginEnabled
+                              )
+                             (ActionButtonSpec
                                 label: 'Check Access'
                                 name: 'Button1'
-                                layout: (LayoutFrame -117 1 122 0 0 1 144 0)
+                                layout: (LayoutFrame -100 1 122 0 0 1 144 0)
                                 activeHelpKey: cvsLogin
                                 translateLabel: true
                                 tabable: true
@@ -444,7 +481,7 @@
                              (HorizontalPanelViewSpec
                                 name: 'HorizontalPanel2'
                                 layout: (LayoutFrame 64 0.25 327 0 -1 1 352 0)
-                                horizontalLayout: fitSpace
+                                horizontalLayout: right
                                 verticalLayout: center
                                 horizontalSpace: 3
                                 verticalSpace: 3
@@ -458,7 +495,7 @@
                                       translateLabel: true
                                       tabable: true
                                       model: addPerModuleRoot
-                                      extent: (Point 123 22)
+                                      extent: (Point 100 22)
                                     )
                                    (ActionButtonSpec
                                       label: 'Remove'
@@ -468,11 +505,21 @@
                                       tabable: true
                                       model: removePerModuleRoot
                                       enableChannel: removeEnabled
-                                      extent: (Point 124 22)
+                                      extent: (Point 100 22)
                                     )
                                    (ViewSpec
                                       name: 'Box11'
-                                      extent: (Point 124 10)
+                                      extent: (Point 100 10)
+                                    )
+                                   (ActionButtonSpec
+                                      label: 'Init'
+                                      name: 'Button3'
+                                      activeHelpKey: cvsLogin
+                                      translateLabel: true
+                                      tabable: true
+                                      model: initializePerModuleRepository
+                                      enableChannel: cvsLoginEnabled
+                                      extent: (Point 100 22)
                                     )
                                    (ActionButtonSpec
                                       label: 'Check Access'
@@ -482,7 +529,7 @@
                                       tabable: true
                                       model: checkAccessPerModuleRepository
                                       enableChannel: cvsLoginInModuleEnabled
-                                      extent: (Point 124 22)
+                                      extent: (Point 100 22)
                                     )
                                    )
                                  
@@ -609,7 +656,7 @@
     self sourceCacheDir value:(MercurialSourceCodeManager cacheDirectoryName).
 
     repository := MercurialSourceCodeManager repositoryName.
-    repositoryHolder := (repository ? '') asValue.
+    self repositoryHolder value:(repository ? '') asValue.
 
     infoPerModule := MercurialSourceCodeManager repositoryInfoPerModule.
     infoPerModule keysAndValuesDo:[:module :info | 
@@ -628,7 +675,7 @@
     ].
 "/    self selectedPerModuleRootChanged.
 
-    "Modified: / 14-01-2012 / 19:57:13 / cg"
+    "Modified: / 14-01-2012 / 23:59:03 / cg"
 !
 
 basicSaveSettings
@@ -979,7 +1026,6 @@
     sourceCacheDir := nil asValue.
     sourceCacheDir addDependent:self.
 
-    repositoryHolder := '' asValue.
     repositoriesPerModule := Dictionary new.
 
     MercurialSourceCodeManager repositoryInfoPerModule 
@@ -992,7 +1038,7 @@
 
     super initialize.
 
-    "Modified: / 14-01-2012 / 20:27:37 / cg"
+    "Modified: / 14-01-2012 / 23:56:57 / cg"
 ! !
 
 !MercurialSourceCodeManagementSettingsAppl methodsFor:'queries'!
@@ -1004,10 +1050,10 @@
 
     modules := repositoriesPerModule select:[:entry | entry first == MercurialSourceCodeManager].
 
-    CVSSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
+    MercurialSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
         ((modules includesKey:module) and:[info = (modules at:module) second])
         ifFalse:[^ true].
-    ].
+    ].   
     modules keysAndValuesDo:[:module :info|
         ((MercurialSourceCodeManager repositoryInfoPerModule includesKey:module) 
             and:[(MercurialSourceCodeManager repositoryInfoPerModule at:module) = info second])
@@ -1030,15 +1076,15 @@
 
     ^ false
 
-    "Modified: / 14-01-2012 / 20:30:19 / cg"
+    "Modified: / 14-01-2012 / 23:41:33 / cg"
 ! !
 
 !MercurialSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.2 2012-01-14 22:37:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.3 2012-01-15 01:45:02 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.2 2012-01-14 22:37:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.3 2012-01-15 01:45:02 cg Exp $'
 ! !