MercurialSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Sat, 03 Mar 2012 11:31:58 +0100
changeset 11357 fac80d1a9ce2
parent 11352 78cdf6d851f0
child 11402 23865ce9ff3b
permissions -rw-r--r--
workdir
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2012 by eXept Software AG
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
AbstractSourceCodeManagementSettingsAppl subclass:#MercurialSourceCodeManagementSettingsAppl
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    15
	instanceVariableNames:'workDirectoryHolder repositoryHolder manager repository
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    16
		repositoryPrototypeList addPerModuleRepository
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    17
		removePerModuleRepository perModuleRepository
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    18
		defaultRepositoryHolder selectedPerModuleRepository
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    19
		hgBinDirectoryHolder hgExecutableHolder hgCommandTimeoutHolder
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    20
		repositoriesPerModule perModuleRepositoryModule selectedPushURL
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
    21
		pushURL pushURLPrototypeList listOfPushURLs'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	classVariableNames:'RecentlyUsedRepositoryURLS'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
	poolDictionaries:''
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
	category:'System-SourceCodeManagement'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
copyright
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 COPYRIGHT (c) 2012 by eXept Software AG
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
              All Rights Reserved
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 This software is furnished under a license and may be used
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 only in accordance with the terms of that license and with the
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 inclusion of the above copyright notice.   This software may not
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 be provided or otherwise made available to, or used by, any
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
 other person.  No title to or ownership of the software is
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
 hereby transferred.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
documentation
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    Mercurial part of the source code settings. 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    This settings app controls the parameters of the MercurialSourceCodeManager.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
11334
ac3464062356 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11332
diff changeset
    48
    Extracted for pluggability from SourceCodeManagerSettings in the AbstractSettingsApplication.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'defaults'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
defaultRepositoryName
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
    56
    ^ ''
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    "Created: / 19-04-2011 / 11:00:11 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'help specs'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
helpSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    "This resource specification was automatically generated
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
     by the UIHelpTool of ST/X."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    "Do not manually edit this!! If it is corrupted,
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
     the UIHelpTool may not be able to read the specification."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    "
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
    71
     UIHelpTool openOnClass:MercurialSourceCodeManagementSettingsAppl    
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    <resource: #help>
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    ^ super helpSpec addPairsFrom:#(
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
#addPerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
'Add this per-module entry'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
#addPerPackageManager
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
'Add a new per-package manager definition'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
#browseSourceCache
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
'Open a file browser on the source cache directory'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
#checkPerPackageManager
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
'Open a window to show which scm-manager is responsible for which package.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
#condenseSourceCache
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
'Cleanup old cached versions from the source cache.\Will keep only the current (newest) version in the cache.\Access to older code versions will be slowed down (compare with old version browser function)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
#cvsCommand
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
'The command to use for cvs operations\(the path to "cvs"/"cvs.exe"-command. Not needed, if already in the shell''s PATH value)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
#cvsCommandTimeout
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
#cvsLogin
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
'Perform a "cvs login" operation for the default CVSROOT'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
#cvsRootDefault
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
'The default CVSROOT.\This will be used for all modules which are not listed below.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
#cvsRootPerModule
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
'Specifies per-module CVSROOTs.\This allows for individual projects to be stored in different cvs repositories.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
#cvsRootPerModuleModule
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
'The module for which a specific CVSROOT is defined'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
#cvsRootPerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
'The CVSROOT for which this specific module is defined'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
#defaultManagerType
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
'The default repository type.\This is used for packages for which no entry matches in the list below'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
#editPerPackageManager
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
'Modify the selected per-package manager definition'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
#flushSourceCache
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
'Remove all files from the source cache.\Access to source code will temporarily be slowed down,\until sources have been refetched from the repository'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   123
#hgAddPushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   124
'Add a repository to the push-URL list. A repository-push operation will synchronize your changes with this repository as well'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   125
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   126
#hgCheckAccess
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   127
'Perform a "hg status" command in the default repository to see if the repository is accessable'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   128
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   129
#hgCheckAccessPerModuleRoot
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   130
'Perform a "hg status" command in this module''s repository to see if the repository is accessable'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   131
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   132
#hgCommand
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   133
'The command to use for mercurial operations\(the path to "hg"/"hg.exe"-command. Not needed, if already in the shell''s PATH value)'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   134
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   135
#hgCommandTimeout
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   136
'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value.'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   137
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   138
#hgInit
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   139
'Perform a "hg init" command to setup the repository for the very first time'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   140
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   141
#hgPushURLs
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   142
'The push-URL list. A repository-push operation will send your changes to these repositories as well'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   143
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   144
#hgRemovePushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   145
'Remove the selected repository from the push-URL list. A repository-push operation will no longer synchronize your changes with this repository'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   146
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   147
#hgRootDefault
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   148
'The default mercurial repository.\This will be used for all modules which are not listed below.'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   149
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   150
#hgRootPerModule
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   151
'The mercurial repository for which this specific module is defined'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   152
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   153
#hgRootPerModuleModule
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   154
'The module for which a specific mercurial repository is defined'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   155
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   156
#hgRootPerModuleRoot
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   157
'The mercurial repository for which this specific module is defined'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   158
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
#loginPerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
'Execute a "cvs login" operation for this CVSROOT'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
#moveManagerDown
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
'Move the selected entry down in the list.\(The first matching definition is used to determine which repository type is used.)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
#moveManagerUp
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
'Move the selected entry up in the list.\(The first matching definition is used to determine which repository type is used.)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
#perPackageConfiguration
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
'Define per-package repository types here.\For any non-matching package-id, the default repository type is used.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
#removePerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
'Remove this per-module entry'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
#removePerPackageManager
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
'Remove the selected per-package manager definition'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
#sourceCache
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
'After checkout, keep the sourcefile in a local file (to avoid repeated checkout of the same file)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
#useLocalSources
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
'If present, use the local source files (from the development system''s tree).\If checkout fails, these will always be tried as second chance.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
#useManager
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
'Enable source code management.\If off, all queries for sourcecode are resolved by local files (offline operation)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
#verboseSourceCodeAccess
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
'Output debugging messages on the Transcript\(mostly traces of the underlying scm mechanism, such as cvs commands)'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   191
    "Modified: / 20-01-2012 / 13:50:42 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
defaultIcon
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   197
    ^ self defaultIcon3
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
    "Created: / 22-12-2011 / 13:47:11 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
defaultIcon1
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
    "This resource specification was automatically generated
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
     by the ImageEditor of ST/X."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    "Do not manually edit this!! If it is corrupted,
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
     the ImageEditor may not be able to read the specification."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
     self defaultIcon1 inspect
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
     ImageEditor openOnClass:self andSelector:#defaultIcon1
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
     Icon flushCachedIcons
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
    <resource: #image>
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
    ^Icon
11132
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   218
        constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon1'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
        ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
11132
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   220
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   221
B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   222
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^
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   223
@@@SF!!<_@@$HB@ HB@0FH@L@@BDI@AHC@@@@HP@O@BHIB@ HB@LFH0H@@@@ABQ0@@@@@@@@!!A@@DB@ HCA0OI@8@@@@@@@@@@A\@@@@@@@XDB@ HBP8%I D@
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   224
@@@@@@@BA@$D@P@@@@8IB@ LC P''C0@@@@@@@@DIB@ HBQ0@@@8LA@XA@Q<Y@0@@@@@@@@PLB@ DA@@@@@PCB" JC2T[@@@@@@@@@@PLB@PPBP@@@@P)JB$I
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   225
J!!HA@@@@@@@@@B,LBQXCKB,@A XACQP-F0L@@@@@@@@@@@(RK"T,D0@@BA,/LCD@L @@@@@@@@@@@@@@@ $!!@@@@@QTTC@ 3@@@@@@@@@@@@@@@@@@@@@@@@
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   226
@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]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@G>@@O? @_?0@??8@??8@??<@??<O??>__?>_O?>_G?>NA?>@P_>A<_<C>_<C>_8C>_8C>?0C<? @8?@@@\@@@@@') ; yourself); yourself]
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
defaultIcon2
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
    "This resource specification was automatically generated
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
     by the ImageEditor of ST/X."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
    "Do not manually edit this!! If it is corrupted,
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
     the ImageEditor may not be able to read the specification."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
     self defaultIcon2 inspect
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
     ImageEditor openOnClass:self andSelector:#defaultIcon2
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
     Icon flushCachedIcons
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
    <resource: #image>
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
    ^Icon
11132
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   245
        constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon2'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
        ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
11132
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   247
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   248
B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   249
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^
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   250
@@@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@
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   251
@@@@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
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   252
J!!HA@@@@@@@@@B,LHB@YHB@ A XACQP-F0L@@@@@@@@ @@(RK"T H@@@BA,/LCD@L @@@@@@@@@@HB@ HB@ MP@@@QTTC@ 3@@@@@@@@@@@@@A$ HB@5@@@@
c5fad2575a88 changed:
Claus Gittinger <cg@exept.de>
parents: 11130
diff changeset
   253
@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]
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   254
!
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   255
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   256
defaultIcon3
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   257
    "This resource specification was automatically generated
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   258
     by the ImageEditor of ST/X."
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   259
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   260
    "Do not manually edit this!! If it is corrupted,
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   261
     the ImageEditor may not be able to read the specification."
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   262
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   263
    "
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   264
     self defaultIcon3 inspect
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   265
     ImageEditor openOnClass:self andSelector:#defaultIcon3
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   266
     Icon flushCachedIcons
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   267
    "
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   268
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   269
    <resource: #image>
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   270
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   271
    ^Icon
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   272
        constantNamed:'MercurialSourceCodeManagementSettingsAppl class defaultIcon3'
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   273
        ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   274
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PHCA@PEA D@@@@@@@@@@@@@@@@@@@@GA@ HB@ HB@$C
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   275
B @@@@@@@@@@@@@@@@,IB@ HB@ HB@ LA@4@@@@@@@@@@@@@C LLB@ HB@ HB@ HB@<P@@@@@@@@@@@@BPPHB@ HB@ HB@ HBADR@@@@@@@@@@@@D0$HB@ H
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   276
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^
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   277
@@@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@
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   278
@@@@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
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   279
J!!HA@@@@@@@@@B,LOC0=OC0<A XACQP-F0L@@@@@@@@<@@(RK"T<O@@@BA,/LCD@L @@@@@@@@@@OC0<OC0<MP@@@QTTC@ 3@@@@@@@@@@@@@C4<OC05@@@@
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   280
@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]
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
windowSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
    "This resource specification was automatically generated
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
     by the UIPainter of ST/X."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
    "Do not manually edit this!! If it is corrupted,
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
     the UIPainter may not be able to read the specification."
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
     UIPainter new openOnClass:MercurialSourceCodeManagementSettingsAppl andSelector:#windowSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
     MercurialSourceCodeManagementSettingsAppl new openInterface:#windowSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
     MercurialSourceCodeManagementSettingsAppl open
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
    "
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
    <resource: #canvas>
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    ^ 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
     #(FullSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
        name: windowSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
        window: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
       (WindowSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
          label: 'Mercurial Settings'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
          name: 'Mercurial Settings'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
          min: (Point 10 10)
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   308
          bounds: (Rectangle 0 0 811 723)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
        )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
        component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
       (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
          collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
           (VerticalPanelViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
              name: 'VerticalPanel3'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
              horizontalLayout: fit
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
              verticalLayout: topSpace
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
              horizontalSpace: 3
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
              verticalSpace: 4
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
              component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
             (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
                collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
                 (ViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
                    name: 'ManagerSetupBoxx'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
                    component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
                   (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
                      collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
                       (FramedBoxSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
                          label: 'Mercurial Sourcecode Manager Settings'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
                          name: 'HGSetupBox'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
                          layout: (LayoutFrame 0 0 0 0 0 1 0 1)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
                          labelPosition: topLeft
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
                          translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
                          component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
                         (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
                            collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
                             (CheckBoxSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
                                label: 'Show in Browser Menus'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
                                name: 'CheckBox1'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
                                layout: (LayoutFrame 0 0 5 0 0 1 27 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
                                activeHelpKey: shownInBrowserMenus
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
                                model: shownInBrowserMenusHolder
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
                             (ViewSpec
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   346
                                name: 'CommandBox'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
                                layout: (LayoutFrame 0 0 35 0 0 1 60 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
                                component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
                               (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
                                  collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
                                   (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
                                      label: 'HG Command or Path:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   353
                                      name: 'Label1'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
                                      layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   355
                                      activeHelpKey: hgCommand
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
                                      level: 0
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
                                      translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
                                      adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
                                   (InputFieldSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
                                      name: 'HGExecutableField'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
                                      layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   363
                                      activeHelpKey: hgCommand
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
                                      tabable: true
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   365
                                      model: hgExecutableHolder
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
                                      acceptChannel: acceptChannel
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
                                      acceptOnPointerLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
                                   )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
                                 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
                                )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
                             (ViewSpec
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   374
                                name: 'TimeoutBox'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
                                layout: (LayoutFrame 0 0 61 0 0 1 86 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
                                component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
                               (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
                                  collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
                                   (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
                                      label: 'HG Command Timeout:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
                                      name: 'Label2'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
                                      layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   383
                                      activeHelpKey: hgCommandTimeout
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
                                      level: 0
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
                                      translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
                                      adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
                                   (InputFieldSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
                                      name: 'EntryField1'
11175
a19cbbb94176 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11165
diff changeset
   390
                                      layout: (LayoutFrame 64 0.25 0 0 168 0.25 22 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   391
                                      activeHelpKey: hgCommandTimeout
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
                                      tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
                                      model: hgCommandTimeoutHolder
11175
a19cbbb94176 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11165
diff changeset
   394
                                      type: timeDuration
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
                                      acceptChannel: acceptChannel
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
                                      acceptOnPointerLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
                                   )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
                                 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
                                )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
                             (ViewSpec
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   403
                                name: 'WorkDirectoryBox'
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   404
                                layout: (LayoutFrame 0 0.0 85 0 0 1 110 0)
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   405
                                component: 
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   406
                               (SpecCollection
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   407
                                  collection: (
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   408
                                   (InputFieldSpec
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   409
                                      name: 'EntryField2'
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   410
                                      layout: (LayoutFrame 64 0.25 2 0 0 1 24 0)
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   411
                                      activeHelpKey: hgRootDefault
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   412
                                      tabable: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   413
                                      model: workDirectoryHolder
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   414
                                      immediateAccept: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   415
                                      acceptOnLeave: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   416
                                      acceptOnReturn: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   417
                                      acceptOnTab: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   418
                                      acceptOnLostFocus: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   419
                                      acceptChannel: acceptChannel
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   420
                                      acceptOnPointerLeave: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   421
                                    )
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   422
                                   (LabelSpec
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   423
                                      label: 'Working Directory:'
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   424
                                      name: 'Label9'
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   425
                                      layout: (LayoutFrame 0 0.0 2 0 60 0.25 24 0)
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   426
                                      activeHelpKey: hgRootDefault
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   427
                                      level: 0
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   428
                                      translateLabel: true
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   429
                                      adjust: right
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   430
                                    )
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   431
                                   )
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   432
                                 
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   433
                                )
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   434
                              )
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   435
                             (ViewSpec
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   436
                                name: 'RepositoryBox'
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   437
                                layout: (LayoutFrame 0 0.0 120 0 0 1 145 0)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
                                component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
                               (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
                                  collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
                                   (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
                                      label: 'Default Repository:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
                                      name: 'defaultCvsRootLabel'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
                                      layout: (LayoutFrame 0 0.0 2 0 60 0.25 24 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   445
                                      activeHelpKey: hgRootDefault
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
                                      level: 0
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
                                      translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
                                      adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
                                   (ComboBoxSpec
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   451
                                      name: 'RepositoryComboBox'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
                                      layout: (LayoutFrame 64 0.25 2 0 0 1 24 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   453
                                      activeHelpKey: hgRootDefault
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
                                      tabable: true
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   455
                                      model: repositoryHolder
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
                                      immediateAccept: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
                                      acceptOnLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
                                      acceptOnReturn: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
                                      acceptOnTab: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
                                      acceptOnLostFocus: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
                                      acceptChannel: acceptChannel
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
                                      acceptOnPointerLeave: true
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   463
                                      comboList: repositoryPrototypeList
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
                                   )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
                                 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
                                )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
                             (ActionButtonSpec
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   470
                                label: 'Init'
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   471
                                name: 'Button2'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   472
                                layout: (LayoutFrame -201 1 150 0 -101 1 172 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   473
                                activeHelpKey: hgInit
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   474
                                translateLabel: true
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   475
                                tabable: true
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   476
                                model: initializeRepository
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   477
                                enableChannel: cvsLoginEnabled
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   478
                              )
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   479
                             (ActionButtonSpec
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
                                label: 'Check Access'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
                                name: 'Button1'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   482
                                layout: (LayoutFrame -100 1 150 0 0 1 172 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   483
                                activeHelpKey: hgCheckAccess
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
                                tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
                                model: checkAccess
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
                                enableChannel: cvsLoginEnabled
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
                             (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
                                label: 'Repository per Module:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
                                name: 'knownModulesLabel'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   492
                                layout: (LayoutFrame 0 0.0 178 0 60 0.25 200 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   493
                                activeHelpKey: hgRootPerModule
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
                                adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
                             (SequenceViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
                                name: 'List1'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   499
                                layout: (LayoutFrame 64 0.25 178 0 0 1 297 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   500
                                activeHelpKey: hgRootPerModule
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
                                tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
                                model: selectedPerModuleRepository
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
                                hasHorizontalScrollBar: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
                                hasVerticalScrollBar: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
                                miniScrollerHorizontal: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
                                useIndex: false
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
                                sequenceList: listOfModules
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
                             (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
                                label: 'Module:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
                                name: 'moduleLabel'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   512
                                layout: (LayoutFrame 0 0.0 307 0 60 0.25 324 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   513
                                activeHelpKey: hgRootPerModuleModule
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
                                adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
                             (InputFieldSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
                                name: 'perModuleRepositoryModuleEntryField'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   519
                                layout: (LayoutFrame 64 0.25 303 0 0 1 325 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   520
                                activeHelpKey: hgRootPerModuleModule
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
                                tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
                                model: perModuleRepositoryModule
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
                                acceptChannel: acceptChannel
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
                                acceptOnPointerLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
                             (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
                                label: 'Mercurial Repository:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
                                name: 'hgRepository'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   529
                                layout: (LayoutFrame 0 0.0 332 0 60 0.25 349 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   530
                                activeHelpKey: hgRootPerModuleRoot
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
                                adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
                             (ComboBoxSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
                                name: 'perModuleRepositoryComboBox'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   536
                                layout: (LayoutFrame 64 0.25 328 0 0 1.0 350 0)
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   537
                                activeHelpKey: hgRootPerModuleRoot
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
                                tabable: true
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   539
                                model: perModuleRepository
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
                                immediateAccept: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
                                acceptOnLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
                                acceptOnReturn: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
                                acceptOnTab: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
                                acceptOnLostFocus: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
                                acceptChannel: acceptChannel
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
                                acceptOnPointerLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
                                comboList: hgRepositoryPrototypeList
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
                             (HorizontalPanelViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
                                name: 'HorizontalPanel2'
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   551
                                layout: (LayoutFrame 64 0.25 355 0 -1 1 380 0)
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   552
                                horizontalLayout: right
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
                                verticalLayout: center
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
                                horizontalSpace: 3
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
                                verticalSpace: 3
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
                                component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
                               (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
                                  collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
                                   (ActionButtonSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
                                      label: 'Add/Apply'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
                                      name: 'addButton'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
                                      activeHelpKey: addPerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
                                      translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
                                      tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
                                      model: addPerModuleRoot
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   566
                                      extent: (Point 100 22)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
                                   (ActionButtonSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
                                      label: 'Remove'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
                                      name: 'removeButton'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
                                      activeHelpKey: removePerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
                                      translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
                                      tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
                                      model: removePerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
                                      enableChannel: removeEnabled
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   576
                                      extent: (Point 100 22)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
                                   (ViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
                                      name: 'Box11'
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   580
                                      extent: (Point 100 10)
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   581
                                    )
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   582
                                   (ActionButtonSpec
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   583
                                      label: 'Init'
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   584
                                      name: 'Button3'
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   585
                                      activeHelpKey: hgLoginPerModuleRoot
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   586
                                      translateLabel: true
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   587
                                      tabable: true
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   588
                                      model: initializePerModuleRepository
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   589
                                      enableChannel: cvsLoginEnabled
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   590
                                      extent: (Point 100 22)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
                                   (ActionButtonSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
                                      label: 'Check Access'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
                                      name: 'checkButton2'
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   595
                                      activeHelpKey: hgCheckAccessPerModuleRoot
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
                                      translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
                                      tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
                                      model: checkAccessPerModuleRepository
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
                                      enableChannel: cvsLoginInModuleEnabled
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   600
                                      extent: (Point 100 22)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
                                    )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
                                   )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
                                 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
                                )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
                             )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
                           
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
                          )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
                        )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
                       )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
                     
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
                    )
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   613
                    extent: (Point 811 420)
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   614
                  )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   615
                 (FramedBoxSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   616
                    label: 'Push URLs'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   617
                    name: 'FramedBox2'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   618
                    labelPosition: topLeft
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   619
                    translateLabel: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   620
                    component: 
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   621
                   (SpecCollection
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   622
                      collection: (
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   623
                       (LabelSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   624
                          label: 'URL to Push To:'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   625
                          name: 'Label6'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   626
                          layout: (LayoutFrame 0 0.0 14 0 60 0.25 36 0)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   627
                          activeHelpKey: hgPushURLs
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   628
                          translateLabel: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   629
                          adjust: right
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   630
                        )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   631
                       (SequenceViewSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   632
                          name: 'List2'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   633
                          layout: (LayoutFrame 64 0.25 14 0 0 1 90 0)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   634
                          activeHelpKey: hgPushURLs
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   635
                          tabable: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   636
                          model: selectedPushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   637
                          hasHorizontalScrollBar: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   638
                          hasVerticalScrollBar: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   639
                          miniScrollerHorizontal: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   640
                          useIndex: false
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   641
                          sequenceList: listOfPushURLs
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   642
                        )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   643
                       (LabelSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   644
                          label: 'URL:'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   645
                          name: 'Label8'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   646
                          layout: (LayoutFrame 0 0.0 101 0 60 0.25 118 0)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   647
                          activeHelpKey: hgAddPushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   648
                          translateLabel: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   649
                          adjust: right
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   650
                        )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   651
                       (ComboBoxSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   652
                          name: 'ComboBox2'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   653
                          layout: (LayoutFrame 64 0.25 97 0 0 1.0 119 0)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   654
                          activeHelpKey: hgAddPushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   655
                          tabable: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   656
                          model: pushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   657
                          immediateAccept: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   658
                          acceptOnLeave: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   659
                          acceptOnReturn: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   660
                          acceptOnTab: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   661
                          acceptOnLostFocus: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   662
                          acceptChannel: acceptChannel
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   663
                          acceptOnPointerLeave: true
11348
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
   664
                          comboList: pushURLPrototypeList
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   665
                        )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   666
                       (HorizontalPanelViewSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   667
                          name: 'HorizontalPanel3'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   668
                          layout: (LayoutFrame 64 0.25 125 0 -1 1 150 0)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   669
                          horizontalLayout: right
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   670
                          verticalLayout: center
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   671
                          horizontalSpace: 3
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   672
                          verticalSpace: 3
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   673
                          component: 
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   674
                         (SpecCollection
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   675
                            collection: (
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   676
                             (ActionButtonSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   677
                                label: 'Add/Apply'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   678
                                name: 'Button6'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   679
                                activeHelpKey: hgAddPushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   680
                                translateLabel: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   681
                                tabable: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   682
                                model: addPushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   683
                                extent: (Point 100 22)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   684
                              )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   685
                             (ActionButtonSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   686
                                label: 'Remove'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   687
                                name: 'Button7'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   688
                                activeHelpKey: hgRemovePushURL
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   689
                                translateLabel: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   690
                                tabable: true
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   691
                                model: removePushURL
11348
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
   692
                                enableChannel: removePushURLEnabled
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   693
                                extent: (Point 100 22)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   694
                              )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   695
                             (ViewSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   696
                                name: 'Box17'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   697
                                extent: (Point 100 10)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   698
                              )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   699
                             (ViewSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   700
                                name: 'Box18'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   701
                                extent: (Point 100 10)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   702
                              )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   703
                             (ViewSpec
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   704
                                name: 'Box19'
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   705
                                extent: (Point 99 9)
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   706
                              )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   707
                             )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   708
                           
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   709
                          )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   710
                        )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   711
                       )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   712
                     
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   713
                    )
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   714
                    extent: (Point 811 187)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   715
                  )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
                 (FramedBoxSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
                    label: 'Source Cache'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
                    name: 'FramedBox1'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
                    visibilityChannel: false
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
                    labelPosition: topLeft
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
                    translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
                    component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
                   (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
                      collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
                       (ViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
                          name: 'SourceCacheDirBox'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
                          layout: (LayoutFrame 0 0 0 0 0 1 30 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
                          component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
                         (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
                            collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
                             (LabelSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
                                label: 'Source Cache Dir:'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
                                name: 'SourceCacheDirLabel'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
                                layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
                                adjust: right
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
                             (InputFieldSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
                                name: 'SourceCacheDirEntryField'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
                                layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
                                model: sourceCacheDir
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
                                immediateAccept: false
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
                                acceptOnReturn: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   744
                                acceptOnTab: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
                                acceptOnLostFocus: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
                                acceptOnPointerLeave: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
                             )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
                           
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
                          )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   751
                        )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
                       (HorizontalPanelViewSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   753
                          name: 'CacheActionsHorizontalPanel'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
                          layout: (LayoutFrame 44 0.25 33 0 0 1 67 0)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   755
                          horizontalLayout: fitSpace
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   756
                          verticalLayout: center
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   757
                          horizontalSpace: 3
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   758
                          verticalSpace: 3
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   759
                          component: 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
                         (SpecCollection
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
                            collection: (
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
                             (ActionButtonSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   763
                                label: 'Flush Cache now'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   764
                                name: 'FlushCacheNowButton'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   765
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   766
                                tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   767
                                model: flushSourceCache
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   768
                                extent: (Point 265 22)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
                             (ActionButtonSpec
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
                                label: 'Condense Cache now'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
                                name: 'CondenseCacheNowButton'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
                                translateLabel: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
                                tabable: true
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
                                model: condenseSourceCache
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   776
                                extent: (Point 265 22)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
                              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
                             )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
                           
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
                          )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
                        )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
                       )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
                     
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
                    )
11165
c75bf5c6721d changed:
Claus Gittinger <cg@exept.de>
parents: 11146
diff changeset
   785
                    extent: (Point 811 95)
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
                  )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
                 )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
               
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
              )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
            )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   791
           )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
         
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
        )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
      )
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'queries'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
managerClass
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
    "backlink to my manager class (needed by the settings app)"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
    ^ MercurialSourceCodeManager
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
    "Created: / 19-04-2011 / 12:46:52 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
!MercurialSourceCodeManagementSettingsAppl methodsFor:'actions'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   808
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
addModule:module withData:data
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
    (self listOfModules includes:module) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
        self listOfModules add:module; sort.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   813
    repositoriesPerModule at:module put:data.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
    self updateModifiedChannel.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
    "Created: / 08-11-2006 / 19:25:21 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
basicReadSettings
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
    |infoPerModule|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
    self initialize.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
    self sourceCacheDir value:(MercurialSourceCodeManager cacheDirectoryName).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
    repository := MercurialSourceCodeManager repositoryName.
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
   828
    self repositoryHolder value:(repository ? '') asValue.
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   829
    self workDirectoryHolder value:MercurialSourceCodeManager workDirectory.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
    infoPerModule := MercurialSourceCodeManager repositoryInfoPerModule.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
    infoPerModule keysAndValuesDo:[:module :info | 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
        repositoriesPerModule at:module put:(Array with:MercurialSourceCodeManager with:info).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   835
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   836
    self repositoryHolder value:MercurialSourceCodeManager repositoryName ? self class defaultRepositoryName.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   837
    self hgExecutableHolder value:MercurialSourceCodeManager hgExecutable.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
    self hgCommandTimeoutHolder value:MercurialSourceCodeManager hgCommandTimeout.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
    self verboseSourceCodeAccess value:MercurialSourceCodeManager verboseSourceCodeAccess. 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
    self shownInBrowserMenusHolder value:MercurialSourceCodeManager shownInBrowserMenus. 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
    repositoriesPerModule notNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
        self listOfModules removeAll.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
        listOfModules addAll:repositoriesPerModule keys asList.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
"/    self selectedPerModuleRootChanged.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   848
    "Modified: / 03-03-2012 / 11:11:54 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
basicSaveSettings
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
    |modules nm fn infoPerModule|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
    nm := self sourceCacheDir value.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
    nm notEmptyOrNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
        (fn := nm asFilename) exists ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
            (self confirm:('Mercurial cache directory ''' , nm , ''' does not exist\create ?' withCRs)) ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
                fn recursiveMakeDirectory; 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
                   makeReadableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
                   makeWritableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
                   makeExecutableForAll.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
            ]
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
        (fn isDirectory
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
        and:[fn isReadable
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
        and:[fn isWritable]]) ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
            MercurialSourceCodeManager cacheDirectoryName:nm.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
        ] ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
            self warn:'Invalid sourceCache directory.'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
        ]
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
    MercurialSourceCodeManager hgCommandTimeout:(self hgCommandTimeoutHolder value).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
    modules := repositoriesPerModule select:[:entry | entry first == MercurialSourceCodeManager].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
    infoPerModule := Dictionary new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
    modules keysAndValuesDo:[:module :entry | 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
        entry first == MercurialSourceCodeManager ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
            infoPerModule at:module put:(entry second).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
    MercurialSourceCodeManager repositoryInfoPerModule:infoPerModule.
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   883
    MercurialSourceCodeManager workDirectory:self workDirectoryHolder value.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
    self basicSaveMercurialSettings.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
    self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
    DebugView newDebugger. "/ ???
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
    self acceptChannel value.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
   893
    "Modified: / 03-03-2012 / 11:24:56 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   896
removePerModuleRoot
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
    |module|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
    acceptChannel value:true.    
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   900
    module := self perModuleRepositoryModule value.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
    self listOfModules remove:module ifAbsent:nil.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
    repositoriesPerModule removeKey:module ifAbsent:nil.
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   903
    self perModuleRepositoryModule value:nil.
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   904
    self perModuleRepository value:nil.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
    self updateModifiedChannel.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   907
    "Modified: / 26-01-2012 / 13:50:08 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
!MercurialSourceCodeManagementSettingsAppl methodsFor:'actions - mercurial'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
addPerModuleRoot
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   913
    |module hgRepository|
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
    acceptChannel value:true.    
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   917
    module := self perModuleRepositoryModule value.
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   918
    hgRepository := self perModuleRepository value.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   920
    hgRepository size > 0 ifTrue:[
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   921
        self addModule:module withData:(Array with:MercurialSourceCodeManager with:hgRepository).
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
   924
    "Modified: / 26-01-2012 / 12:29:36 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
basicSaveMercurialSettings
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
    |hgRepository|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
    repositoryHolder notNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
        repositoryHolder value size > 0 ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
            manager notNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
                manager initializeForRepository:repositoryHolder value.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
            ]
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
    MercurialSourceCodeManager hgExecutable:((self hgExecutableHolder value ? '') withoutSeparators).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
    MercurialSourceCodeManager initializeForRepository:(hgRepository := self repositoryHolder value).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
    MercurialSourceCodeManager verboseSourceCodeAccess: verboseSourceCodeAccess value. 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
    MercurialSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value. 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
    RecentlyUsedRepositoryURLS isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
        RecentlyUsedRepositoryURLS := OrderedCollection new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
    (RecentlyUsedRepositoryURLS includes:hgRepository) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
        RecentlyUsedRepositoryURLS addFirst:hgRepository.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
        RecentlyUsedRepositoryURLS size > 20 ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
            RecentlyUsedRepositoryURLS removeLast.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
    "Modified: / 10-01-2012 / 00:18:15 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
    "Created: / 14-01-2012 / 20:01:47 / cg"
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   954
!
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   955
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   956
checkAccess
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   957
    self halt:'unimplemented feature'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   958
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   959
    "Created: / 17-01-2012 / 17:34:53 / cg"
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   960
!
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   961
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   962
initializeRepository
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   963
    self halt:'unimplemented feature'
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   964
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
   965
    "Created: / 17-01-2012 / 17:42:27 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
!MercurialSourceCodeManagementSettingsAppl methodsFor:'aspects'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
hgCommandTimeoutHolder
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
    hgCommandTimeoutHolder isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
        hgCommandTimeoutHolder := ValueHolder new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
        hgCommandTimeoutHolder onChangeSend:#updateModifiedChannel to:self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    ^ hgCommandTimeoutHolder.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
    "Created: / 14-01-2012 / 20:02:13 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
hgExecutableHolder
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
    hgExecutableHolder isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
        hgExecutableHolder := ValueHolder new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
        hgExecutableHolder onChangeSend:#updateModifiedChannel to:self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
    ^ hgExecutableHolder.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
    "Created: / 14-01-2012 / 20:02:22 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
11332
6399027892e7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11323
diff changeset
   990
initialListOfModules
6399027892e7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11323
diff changeset
   991
    ^ repositoriesPerModule keys asList sort.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
11332
6399027892e7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11323
diff changeset
   993
    "Created: / 02-03-2012 / 14:41:07 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
11350
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
   996
listOfPushURLs
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
   997
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
   998
    listOfPushURLs isNil ifTrue:[
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
   999
        listOfPushURLs := List new.
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
  1000
    ].
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
  1001
    ^ listOfPushURLs.
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
  1002
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
  1003
    "Created: / 02-03-2012 / 16:22:13 / cg"
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
  1004
!
8c96fbd86add class definition
Claus Gittinger <cg@exept.de>
parents: 11348
diff changeset
  1005
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
perModuleRepository
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
    perModuleRepository isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
        perModuleRepository := ValueHolder new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
        perModuleRepository addDependent:self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
    ^ perModuleRepository.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
    "Created: / 14-01-2012 / 20:18:59 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
perModuleRepositoryModule
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
    perModuleRepositoryModule isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
        perModuleRepositoryModule := ValueHolder new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
    ^ perModuleRepositoryModule.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
    "Created: / 14-01-2012 / 20:19:51 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
11348
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1025
pushURL
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1026
    pushURL isNil ifTrue:[
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1027
        pushURL := ValueHolder new.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1028
        pushURL addDependent:self.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1029
    ].
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1030
    ^ pushURL.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1031
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1032
    "Created: / 02-03-2012 / 15:53:11 / cg"
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1033
!
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1034
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1035
pushURLPrototypeList
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1036
    |prototypeList|
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1037
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1038
    pushURLPrototypeList isNil ifTrue:[
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1039
        prototypeList := OrderedSet new.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1040
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1041
"/        cvsRoot := self cvsRootFromCVSRootFileOrNil.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1042
"/        cvsRoot notNil ifTrue:[
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1043
"/            prototypeList add:cvsRoot    
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1044
"/        ].
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1045
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1046
        prototypeList add:('https://inst.kilnhg.com/Repo/Foo/Bar/Baz').
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1047
        "/ prototypeList add:('https://inst.kilnhg.com/Repo/Dino-VM/Group/Dino-VM').
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1048
        pushURLPrototypeList := prototypeList asOrderedCollection.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1049
    ].
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1050
    ^ pushURLPrototypeList.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1051
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1052
    "Created: / 02-03-2012 / 15:53:58 / cg"
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1053
!
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1054
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
repositoryHolder
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1057
    repositoryHolder isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
        repositoryHolder := '' asValue.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
        repositoryHolder addDependent:self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
    ^ repositoryHolder.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
    "Created: / 14-01-2012 / 20:03:00 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
repositoryPrototypeList
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
    |prototypeList|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
    repositoryPrototypeList isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
        prototypeList := OrderedSet new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
"/        cvsRoot := self cvsRootFromCVSRootFileOrNil.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
"/        cvsRoot notNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
"/            prototypeList add:cvsRoot    
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1075
"/        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
11352
78cdf6d851f0 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 11350
diff changeset
  1077
        prototypeList add:('./hgRepository').
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
        prototypeList add:('https://inst.kilnhg.com/Repo/Foo/Bar/Baz').
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
        "/ prototypeList add:('https://inst.kilnhg.com/Repo/Dino-VM/Group/Dino-VM').
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
        repositoryPrototypeList := prototypeList asOrderedCollection.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
    ^ repositoryPrototypeList.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
    "Created: / 14-01-2012 / 20:13:43 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1085
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1086
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
selectedPerModuleRepository
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
    selectedPerModuleRepository isNil ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
        selectedPerModuleRepository := ValueHolder new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
        selectedPerModuleRepository addDependent:self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
    ^ selectedPerModuleRepository.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
    "Created: / 14-01-2012 / 20:14:04 / cg"
11348
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1095
!
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1096
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1097
selectedPushURL
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1098
    selectedPushURL isNil ifTrue:[
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1099
        selectedPushURL := ValueHolder new.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1100
        selectedPushURL addDependent:self.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1101
    ].
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1102
    ^ selectedPushURL.
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1103
0cb6dd19eb52 class definition
Claus Gittinger <cg@exept.de>
parents: 11334
diff changeset
  1104
    "Created: / 02-03-2012 / 15:52:09 / cg"
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1105
!
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1106
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1107
workDirectoryHolder
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1108
    workDirectoryHolder isNil ifTrue:[
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1109
        workDirectoryHolder := ValueHolder new.
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1110
        workDirectoryHolder addDependent:self.
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1111
    ].
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1112
    ^ workDirectoryHolder.
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1113
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1114
    "Created: / 03-03-2012 / 10:34:19 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
!MercurialSourceCodeManagementSettingsAppl methodsFor:'change & update'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
selectedPerModuleRepositoryChanged
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1120
    |repository entry|
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1122
    self acceptChannel value:true.    
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1123
    repository := self selectedPerModuleRepository value.
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1124
    repository isNil ifTrue:[ 
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
        self removeEnabled value:false.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
        self perModuleRepositoryModule value:' '.
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1127
        self perModuleRepository value:''.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
        ^ self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1131
    entry := repositoriesPerModule at:repository ifAbsent:#().    
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
    (entry first = MercurialSourceCodeManager) ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
        self removeEnabled value:true.
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1134
        self perModuleRepositoryModule value:repository.
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1135
        self perModuleRepository value:(entry at:2).
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
    ] ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1137
        self removeEnabled value:false.
11199
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1138
        self perModuleRepositoryModule value:repository , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
24c54d30aad3 changed:
Claus Gittinger <cg@exept.de>
parents: 11175
diff changeset
  1139
        self perModuleRepository value:''.
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
    "Created: / 14-01-2012 / 20:24:57 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1145
sourceDirChanged
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
    |nm fn previousDir|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1147
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1148
    manager isNil ifTrue:[^ self].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1149
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
    previousDir := AbstractSourceCodeManager cacheDirectoryName.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1151
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
    nm := self sourceCacheDir value.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1153
    nm isEmptyOrNil ifTrue:[^ self].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1154
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1155
    (fn := nm asFilename) exists ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1156
        (self confirm:(resources 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1157
                            stringWithCRs:'SourceCache directory "%1" does not exist.\Create ?'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1158
                            with:nm)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1159
        ) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1160
            self sourceCacheDir value:previousDir.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1161
            ^ self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1162
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1163
        fn 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1164
            recursiveMakeDirectory; 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
            makeReadableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1166
            makeWritableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1167
            makeExecutableForAll.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1168
        ^ self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1169
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1170
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1171
    (fn isDirectory) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1172
        self warn:(resources 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1173
                            stringWithCRs:'Not a directory: "%1"'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1174
                            with:nm).
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1175
        self sourceCacheDir value:previousDir.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1176
        ^ self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1177
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1178
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1179
    (fn isReadable and:[fn isWritable]) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1180
        (self confirm:(resources 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1181
                            stringWithCRs:'SourceCache directory "%1" is not both readable and writable.\Change ?'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1182
                            with:nm)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1183
        ) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1184
            self sourceCacheDir value:previousDir.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1185
            ^ self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1186
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1187
        fn
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1188
            makeReadableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1189
            makeWritableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1190
            makeExecutableForAll.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1191
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
"/    (fn isReadableForAll and:[fn isWritableForAll]) ifFalse:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1193
"/        (self confirm:(resources 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1194
"/                            stringWithCRs:'SourceCache directory "%1" is not both readable and writable for other users.\Change ?'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1195
"/                            with:nm)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1196
"/        ) ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1197
"/            fn
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1198
"/                makeReadableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1199
"/                makeWritableForAll;
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1200
"/                makeExecutableForAll.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1201
"/        ]
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1202
"/    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1203
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1204
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1205
update:something with:aParameter from:changedObject 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1206
    "/ common    
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1207
    changedObject == sourceCacheDir ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1208
        self sourceDirChanged.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1209
        self updateModifiedChannel.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1210
        ^ self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1211
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1212
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1213
    "/ cvs
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1214
    changedObject == repositoryHolder ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1215
        self updateModifiedChannel.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1216
        "/ self updateLoginEnableHolders.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1217
        ^ self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1218
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1219
"/    changedObject == perModuleRepository ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1220
"/        self updateLoginEnableHolders.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1221
"/        ^ self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1222
"/    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1223
    changedObject == selectedPerModuleRepository ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1224
        self selectedPerModuleRepositoryChanged.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1225
        ^ self
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1226
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1227
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1228
    super update:something with:aParameter from:changedObject
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1229
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1230
    "Modified: / 14-01-2012 / 20:26:51 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1231
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1232
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1233
!MercurialSourceCodeManagementSettingsAppl methodsFor:'help'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1234
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1235
helpFilename
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1236
    ^ 'Launcher/mercurialSetup.html'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1237
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1238
    "Modified: / 14-01-2012 / 20:27:00 / cg"
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1239
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1240
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1241
!MercurialSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1242
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1243
initialize
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1244
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1245
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1246
    sourceCacheDir := nil asValue.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1247
    sourceCacheDir addDependent:self.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1248
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1249
    repositoriesPerModule := Dictionary new.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1250
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1251
    MercurialSourceCodeManager repositoryInfoPerModule 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1252
        keysAndValuesDo:[:module :info |
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1253
            module withoutSeparators ~= module ifTrue:[
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1254
                self halt:'should not happen any longer'
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1255
            ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1256
            repositoriesPerModule at:module put:(Array with:MercurialSourceCodeManager with:info)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1257
        ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1258
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1259
    super initialize.
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1260
11146
Claus Gittinger <cg@exept.de>
parents: 11133
diff changeset
  1261
    "Modified: / 17-01-2012 / 17:39:13 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1262
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1263
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1264
!MercurialSourceCodeManagementSettingsAppl methodsFor:'queries'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1265
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1266
hasUnsavedChanges
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1267
    |modules|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1268
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1269
    ((MercurialSourceCodeManager cacheDirectoryName ? '') ~= (self sourceCacheDir value ? '')) ifTrue:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1270
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1271
    modules := repositoriesPerModule select:[:entry | entry first == MercurialSourceCodeManager].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1272
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
  1273
    MercurialSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1274
        ((modules includesKey:module) and:[info = (modules at:module) second])
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1275
        ifFalse:[^ true].
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
  1276
    ].   
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1277
    modules keysAndValuesDo:[:module :info|
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1278
        ((MercurialSourceCodeManager repositoryInfoPerModule includesKey:module) 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1279
            and:[(MercurialSourceCodeManager repositoryInfoPerModule at:module) = info second])
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1280
        ifFalse:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1281
    ].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1282
    (MercurialSourceCodeManager hgCommandTimeout ~= hgCommandTimeoutHolder value)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1283
        ifTrue:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1284
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1285
    ((MercurialSourceCodeManager hgExecutable ? '') ~= (self hgExecutableHolder value ? '') withoutSeparators)  
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1286
        ifTrue:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1287
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1288
    (MercurialSourceCodeManager repositoryName ? self class defaultRepositoryName ~= self repositoryHolder value)    
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1289
        ifTrue:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1290
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1291
    (MercurialSourceCodeManager verboseSourceCodeAccess ~= self verboseSourceCodeAccess value) 
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1292
        ifTrue:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1293
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1294
    (MercurialSourceCodeManager shownInBrowserMenus ~= self shownInBrowserMenusHolder value)
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1295
        ifTrue:[^ true].
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1296
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1297
    ^ false
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1298
11133
fb5acac1388d added: #defaultIcon3
Claus Gittinger <cg@exept.de>
parents: 11132
diff changeset
  1299
    "Modified: / 14-01-2012 / 23:41:33 / cg"
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1300
! !
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1301
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1302
!MercurialSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1303
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1304
version
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1305
    ^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.14 2012-03-03 10:31:58 cg Exp $'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1306
!
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1307
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1308
version_CVS
11357
fac80d1a9ce2 workdir
Claus Gittinger <cg@exept.de>
parents: 11352
diff changeset
  1309
    ^ '$Header: /cvs/stx/stx/libtool/MercurialSourceCodeManagementSettingsAppl.st,v 1.14 2012-03-03 10:31:58 cg Exp $'
11130
045e06ed380c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1310
! !