PerforceSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Fri, 01 Jun 2012 10:38:21 +0200
changeset 11531 f5f8306664d7
parent 11530 ba6b2f17e30d
child 11546 b1bc718b6e76
permissions -rw-r--r--
class definition
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10029
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     1
"
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     2
 COPYRIGHT (c) 2011 by eXept Software AG
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     3
              All Rights Reserved
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     4
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     5
 This software is furnished under a license and may be used
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     6
 only in accordance with the terms of that license and with the
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     9
 other person.  No title to or ownership of the software is
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    10
 hereby transferred.
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    11
"
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    12
AbstractSourceCodeManagementSettingsAppl subclass:#PerforceSourceCodeManagementSettingsAppl
11531
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    13
	instanceVariableNames:'selectedPerModuleRoot perforceExecutableHolder
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    14
		listOfPerforceModules defaultSettingsHolder tableColumns
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    15
		defaultSettingsPrototypeList checkLabel'
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    16
	classVariableNames:'RecentlyUsedCVSRoots RecentlyUsedStoreHosts
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    17
		RecentlyUsedSmallTeamHosts LastStoreHost LastStoreUser
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    18
		LastStorePassword'
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    19
	poolDictionaries:''
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    20
	category:'System-SourceCodeManagement'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
ApplicationModel subclass:#ManagerPerModuleApp
11531
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    24
	instanceVariableNames:'moduleHolder acceptChannel settingsHolder
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    25
		sourceCodeManagementSettingsApp acceptEnableChannel canceled
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    26
		defaultSettingsPrototypeList'
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    27
	classVariableNames:''
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    28
	poolDictionaries:''
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    29
	privateIn:PerforceSourceCodeManagementSettingsAppl
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
Object subclass:#ModuleManager
11531
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    33
	instanceVariableNames:'manager module settings app check checkIcon'
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    34
	classVariableNames:''
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    35
	poolDictionaries:''
f5f8306664d7 class definition
Claus Gittinger <cg@exept.de>
parents: 11530
diff changeset
    36
	privateIn:PerforceSourceCodeManagementSettingsAppl
11022
e19e9601a49c added: #defaultIcon4
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
    37
!
e19e9601a49c added: #defaultIcon4
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
    38
e19e9601a49c added: #defaultIcon4
Claus Gittinger <cg@exept.de>
parents: 11012
diff changeset
    39
11530
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
    40
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
    41
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    51
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'instance creation'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
openFromSourceCodeManagementSettingsApp:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    |inst|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    inst := self new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    inst sourceCodeManagementSettingsApp:something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    inst openModal.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    ^ inst
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    63
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'interface specs'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
     by the UIPainter of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
     the UIPainter may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    "
11530
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
    73
     UIPainter new openOnClass:PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp andSelector:#windowSpec
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
    74
     PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp new openInterface:#windowSpec
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
    75
     PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp open
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    <resource: #canvas>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    ^ 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
     #(FullSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
        name: windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
        window: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
       (WindowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
          label: 'Manager per Module'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
          name: 'Manager per Module'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
          min: (Point 10 10)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
          max: (Point 1024 768)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
          bounds: (Rectangle 0 0 653 100)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
        component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
       (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
          collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
           (VerticalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
              name: 'VerticalPanel1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
              layout: (LayoutFrame 0 0 0 0 -5 1 -30 1)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
              horizontalLayout: fit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
              verticalLayout: topSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
              horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
              verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
              component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
             (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
                collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
                 (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
                    name: 'HorizontalPanel1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
                    horizontalLayout: leftFit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
                    verticalLayout: center
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
                    horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
                    verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
                    component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
                   (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
                      collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
                       (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
                          label: 'Module:'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
                          name: 'Label16'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
                          translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
                          adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
                          extent: (Point 180 17)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
                       (InputFieldSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
                          name: 'EntryField7'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
                          tabable: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
                          model: moduleHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
                          acceptChannel: acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
                          acceptOnPointerLeave: true
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   126
                          extent: (Point 465 22)
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
                       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
                     
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
                    )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
                    extent: (Point 648 23)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
                 (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
                    name: 'HorizontalPanel4'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
                    horizontalLayout: leftFit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
                    verticalLayout: topSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
                    horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
                    verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
                    component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
                   (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
                      collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
                       (ViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
                          name: 'Box1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
                          component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
                         (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
                            collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
                             (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
                                label: 'Manager Info'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
                                name: 'Label18'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
                                layout: (LayoutFrame 0 0 0 0 149 0 16 0)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
                                translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
                                adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
                              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
                             (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
                                label: 'client:user:pass@host:port '
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
                                name: 'Label19'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
                                layout: (LayoutFrame 0 0 14 0 180 0 29 0)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
                                style: (FontDescription helvetica medium roman 10)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
                                level: 0
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
                                translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
                                adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
                              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
                             )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
                           
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
                          )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
                          extent: (Point 180 35)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
                        )
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   168
                       (ComboBoxSpec
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   169
                          name: 'ComboBox1'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
                          model: settingsHolder
11530
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   171
                          immediateAccept: false
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   172
                          acceptOnLostFocus: true
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   173
                          acceptOnPointerLeave: false
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
                          comboList: defaultSettingsPrototypeList
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   175
                          extent: (Point 465 20)
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
                     
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
                    )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
                    extent: (Point 648 35)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
                 )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
               
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
            )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
           (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
              name: 'HorizontalPanel2'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
              layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
              horizontalLayout: fitSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
              verticalLayout: center
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
              horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
              verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
              component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
             (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
                collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
                 (ActionButtonSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
                    label: 'Add'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
                    name: 'Button1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
                    translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
                    model: doAccept
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
                    enableChannel: acceptEnableChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
                    extent: (Point 322 22)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
                 (ActionButtonSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
                    label: 'Cancel'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
                    name: 'Button2'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
                    translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
                    model: doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
                    extent: (Point 322 22)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
                 )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
               
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
            )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
           )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
         
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
      )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   221
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'accessing'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
canceled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
    ^ canceled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
defaultSettingsPrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
    defaultSettingsPrototypeList isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   230
        defaultSettingsPrototypeList := sourceCodeManagementSettingsApp perforcePrototypeList.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
    ^ defaultSettingsPrototypeList.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
sourceCodeManagementSettingsApp
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    ^ sourceCodeManagementSettingsApp
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
sourceCodeManagementSettingsApp:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
    sourceCodeManagementSettingsApp := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   243
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'aspects'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
    acceptChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   256
        acceptChannel := TriggerValue new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
    ^ acceptChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
acceptEnableChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
    acceptEnableChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   272
        acceptEnableChannel := true asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
"/       acceptEnableChannel addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
"/       acceptEnableChannel onChangeSend:#acceptEnableChannelChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
    ^ acceptEnableChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
moduleHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    moduleHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   291
        moduleHolder := ValueHolder new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
"/ if your app needs to be notified of changes, uncomment one of the lines below:
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   293
        moduleHolder addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
"/       moduleHolder onChangeSend:#moduleHolderChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
    ^ moduleHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
settingsHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
    settingsHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   310
        settingsHolder := ValueHolder new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
"/       settingsHolder addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
"/       settingsHolder onChangeSend:#settingsHolderChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
    ^ settingsHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   318
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'initialization & release'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
    canceled := true.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
    ^ super doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
postBuildWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
    "This is a hook method generated by the Browser.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
     It will be invoked during the initialization of your app/dialog,
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   329
     after all of the visual components have been built,
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
     but BEFORE the top window is made visible.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
     Add any app-specific actions here (reading files, setting up values etc.)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
     See also #postOpenWith:, which is invoked after opening."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
    "/ add any code here ...
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
    canceled := false.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
    ^ super postBuildWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
postOpenWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
    "This is a hook method generated by the Browser.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
     It will be invoked right after the applications window has been opened.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
     Add any app-specific actions here (starting background processes etc.).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
     See also #postBuildWith:, which is invoked before opening."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
    "/ add any code here ...
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
    ^ super postOpenWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   351
!PerforceSourceCodeManagementSettingsAppl::ModuleManager class methodsFor:'instance creation'!
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   352
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   353
newForApplication:anApplication
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   354
    |instance|
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   355
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   356
    instance := self new.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   357
    instance app:anApplication.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   358
    ^instance
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   359
! !
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   360
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   361
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'accessing'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   363
app
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   364
    ^ app
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   365
!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   366
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   367
app:something
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   368
    app := something.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   369
!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   370
11530
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   371
check
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   372
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   373
    |icon|
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   374
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   375
    check isNil ifTrue:[
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   376
        ^'unchecked'
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   377
    ].
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   378
    check ifTrue:[
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   379
        icon := GenericToolbarIconLibrary ledGreen14x14.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   380
    ] ifFalse:[
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   381
        icon := GenericToolbarIconLibrary ledRed14x14.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   382
    ].
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   383
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   384
    ^icon
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   385
!
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   386
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   387
check:something
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   388
    check := something.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   389
!
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   390
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   391
checkIcon
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   392
    ^ checkIcon
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   393
!
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   394
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   395
checkIcon:something
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   396
    checkIcon := something.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   397
!
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   398
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
manager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
    ^ manager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
manager:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
    manager := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
    ^ module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
module:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
    module := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
settings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
    ^ settings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   417
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
settings:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
    settings := something.
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   421
    app notNil ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   422
        app listOfModules changed.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   423
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
11530
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   426
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'actions'!
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   427
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   428
doubleClick
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   429
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   430
    PerforceSourceCodeManager perforceError handle:[:ex|
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   431
        self warn:ex description.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   432
        check := false.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   433
    ] do:[
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   434
        check := PerforceSourceCodeManager checkPerforceSettings:settings forPackage:module.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   435
    ].
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   436
    self changed.
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   437
! !
ba6b2f17e30d **** new version from Christian
Claus Gittinger <cg@exept.de>
parents: 11328
diff changeset
   438
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   439
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'comparing'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
< aModuleManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
    ^ self module < aModuleManager module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   446
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'queries'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
availableManagerTypeNames
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
    ^ AbstractSourceCodeManager availableManagers collect:[:cls | cls managerTypeName].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
managerClass
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
    ^ AbstractSourceCodeManager availableManagers detect:[:cls | cls managerTypeName = manager] ifNone:[nil].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456