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