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