PerforceSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Tue, 19 Apr 2011 13:21:57 +0200
changeset 9861 2fb5f110fe82
parent 9848 74fc0d845a9b
child 9864 d9b21106b707
permissions -rw-r--r--
class definition added: #managerClass
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libtool' }"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     3
AbstractSourceCodeManagementSettingsAppl subclass:#P4SourceCodeManagementSettingsAppl
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     4
        instanceVariableNames:'sourceCacheDir listOfModules removeEnabled acceptChannel
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     5
                selectedPerModuleRoot verboseSourceCodeAccess
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     6
                perforceExecutableHolder listOfPerforceModules
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     7
                defaultSettingsHolder tableColumns defaultSettingsPrototypeList'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     8
        classVariableNames:'RecentlyUsedCVSRoots RecentlyUsedStoreHosts
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
     9
                RecentlyUsedSmallTeamHosts LastStoreHost LastStoreUser
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    10
                LastStorePassword'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    11
        poolDictionaries:''
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    12
        category:'Interface-Smalltalk'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
ApplicationModel subclass:#ManagerPerModuleApp
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    16
        instanceVariableNames:'moduleHolder acceptChannel settingsHolder
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    17
                sourceCodeManagementSettingsApp acceptEnableChannel canceled
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    18
                defaultSettingsPrototypeList'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    19
        classVariableNames:''
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    20
        poolDictionaries:''
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    21
        privateIn:P4SourceCodeManagementSettingsAppl
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
Object subclass:#ModuleManager
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    25
        instanceVariableNames:'manager module settings app'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    26
        classVariableNames:''
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    27
        poolDictionaries:''
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    28
        privateIn:P4SourceCodeManagementSettingsAppl
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!
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
!P4SourceCodeManagementSettingsAppl class methodsFor:'image specs'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
defaultIcon
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
     by the ImageEditor of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
     the ImageEditor may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
     self defaultIcon inspect
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
     ImageEditor openOnClass:self andSelector:#defaultIcon
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
     Icon flushCachedIcons
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
    <resource: #image>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    ^Icon
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    50
        constantNamed:#'AbstractSettingsApplication::SourceCodeManagementSettingsAppl class defaultIcon'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    51
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
@@@@@@@@@@@A@PHB@0P@@@@@@@@@@@@@@@@@@@HEA \HA $JB0HD@@@@@@@@@@@@@@HLA04NC0HD@@L@@ P@@@@@@@@@@@@ED@ NDP@@@@@@@@@D@@@@@@@@
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
@@@BA \FAPP@@@@@@@@@@@P@@@@@@@@@AQ@RC0@@@@@@@@@@@@@@@@@@@@@@@@TGA!!DD@@@@@@@@@@@@@@@@@@@D@PDIA08OA@@@@@@@@@@@@@@@@@@@AP S
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
A0XIBPXGC0P@@@@@@@@@@@@@@@@ECAPLBPXOAP@@@@@@EQX@@@@@@@@@@@TIE@XOAP@@@@@@EQ\XE @@@@@@@@@@AP$OAP@@@@@@FQ\ZE!! V@@@@@@@@@@@E
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
F0@@@@@@EQ\ZF!!(VFAX@@@@@@@@@@@@@@@@ZEQ\VE!!(ZF!!XWF @@@@@@@@@@@@@@@@@@@A\ZE!!(@@@@@@@@@@@@@@@@@@@@@@@@XE!!XZ@@@@@@@@@@@@@@@@
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
@@@@@@@@EQ(V@@@@@@@@@@@@@@@@@@@@@@@@EQ\VE @@@@@@@@@@@@@@@@@@@@@@EQ VE @@@@@@@@@@@@@@F @@@@@WEQ VE!!(@@@@@@@@@@@@@@@@@E!!\W
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
EQXVE @@@@@@@@@@@@@@@@@@@@@@@A(Z@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 32 64 0 0 64 0 32 32 0 0 32 0 32 96 32 96 192 128 192 224 192 160 224 160 32 128 64 64 96 64 64 96 32 32 160 64 160 224 192 64 160 96 32 128 32 224 224 224 64 128 64 160 192 160 224 224 192 32 160 96 160 160 160 64 64 64 96 96 96 128 128 128 192 192 192 32 32 32 32 64 32]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@O8@@?>@A??@A?C C<@0C8@PC8@@??@@??F@_>O@O<_ G8?0C1?8A#?<@C?<@@_@H@_@L@?@GC>@C?>@A?<@@_0@') ; yourself); yourself]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!P4SourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
     by the UIPainter of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
     the UIPainter may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
     UIPainter new openOnClass:P4SourceCodeManagementSettingsAppl andSelector:#windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
     P4SourceCodeManagementSettingsAppl new openInterface:#windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
     P4SourceCodeManagementSettingsAppl open
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    <resource: #canvas>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    77
    ^ 
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
     #(FullSpec
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    79
        name: windowSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    80
        window: 
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
       (WindowSpec
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    82
          label: 'Source Code Manager Settings'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    83
          name: 'Source Code Manager Settings'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    84
          min: (Point 10 10)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    85
          bounds: (Rectangle 0 0 726 653)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    86
        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    87
        component: 
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
       (SpecCollection
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    89
          collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    90
           (VerticalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    91
              name: 'VerticalPanel2'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    92
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    93
              horizontalLayout: fit
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    94
              verticalLayout: topSpace
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    95
              horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    96
              verticalSpace: 20
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    97
              component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    98
             (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
    99
                collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   100
                 (VerticalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   101
                    name: 'VerticalPanel3'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   102
                    horizontalLayout: fit
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   103
                    verticalLayout: top
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   104
                    horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   105
                    verticalSpace: 4
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   106
                    component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   107
                   (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   108
                      collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   109
                       (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   110
                          name: 'Box3'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   111
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   112
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   113
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   114
                             (LabelSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   115
                                label: 'Perforce Command or Path:'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   116
                                name: 'Label22'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   117
                                layout: (LayoutFrame 0 0.0 59 0 60 0.25 81 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   118
                                level: 0
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   119
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   120
                                adjust: right
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   121
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   122
                             (InputFieldSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   123
                                name: 'EntryField8'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   124
                                layout: (LayoutFrame 66 0.25 59 0 -5 1 81 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   125
                                tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   126
                                model: perforceExecutableHolder
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   127
                                immediateAccept: false
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   128
                                acceptOnLostFocus: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   129
                                acceptChannel: acceptChannel
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   130
                                acceptOnPointerLeave: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   131
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   132
                             (LabelSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   133
                                label: 'Default Perforce Root'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   134
                                name: ''
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   135
                                layout: (LayoutFrame 0 0.0 22 0 60 0.25 44 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   136
                                level: 0
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   137
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   138
                                adjust: right
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   139
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   140
                             (LabelSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   141
                                label: 'client:user:pass@host:port '
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   142
                                name: 'Label18'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   143
                                layout: (LayoutFrame 4 0.0 40 0 64 0.25 55 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   144
                                style: (FontDescription helvetica medium roman 10)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   145
                                level: 0
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   146
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   147
                                adjust: right
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   148
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   149
                             (ComboBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   150
                                name: 'cvsRootComboBox'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   151
                                layout: (LayoutFrame 66 0.25 28 0 -5 1 50 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   152
                                tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   153
                                model: defaultSettingsHolder
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   154
                                immediateAccept: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   155
                                acceptOnLeave: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   156
                                acceptOnReturn: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   157
                                acceptOnTab: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   158
                                acceptOnLostFocus: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   159
                                acceptChannel: acceptChannel
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   160
                                acceptOnPointerLeave: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   161
                                comboList: defaultSettingsPrototypeList
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   162
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   163
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   164
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   165
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   166
                          extent: (Point 726 105)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   167
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   168
                       (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   169
                          name: 'ManagerSetupBoxx'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   170
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   171
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   172
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   173
                             (FramedBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   174
                                label: 'Per Module Manager Setup'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   175
                                name: 'PerModuleManagerSetup'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   176
                                layout: (LayoutFrame 0 0 -1 0 0 1 -3 1)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   177
                                labelPosition: topLeft
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   178
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   179
                                component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   180
                               (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   181
                                  collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   182
                                   (DataSetSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   183
                                      name: 'Table1'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   184
                                      layout: (LayoutFrame 5 0 5 0 0 1 180 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   185
                                      model: selectedPerModuleRoot
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   186
                                      hasHorizontalScrollBar: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   187
                                      hasVerticalScrollBar: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   188
                                      dataList: listOfModules
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   189
                                      useIndex: false
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   190
                                      columnHolder: tableColumns
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   191
                                      beDependentOfRows: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   192
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   193
                                   (HorizontalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   194
                                      name: 'HorizontalPanel11'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   195
                                      layout: (LayoutFrame 5 0 -25 1 -1 1 0 1)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   196
                                      horizontalLayout: fitSpace
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   197
                                      verticalLayout: center
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   198
                                      horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   199
                                      verticalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   200
                                      component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   201
                                     (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   202
                                        collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   203
                                         (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   204
                                            label: 'Add/Apply'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   205
                                            name: 'Button2'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   206
                                            translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   207
                                            tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   208
                                            model: addPerModuleRoot
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   209
                                            extent: (Point 340 22)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   210
                                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   211
                                         (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   212
                                            label: 'Remove'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   213
                                            name: 'Button3'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   214
                                            translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   215
                                            tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   216
                                            model: removePerModuleRoot
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   217
                                            enableChannel: removeEnabled
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   218
                                            extent: (Point 341 22)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   219
                                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   220
                                         )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   221
                                       
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   222
                                      )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   223
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   224
                                   )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   225
                                 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   226
                                )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   227
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   228
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   229
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   230
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   231
                          extent: (Point 726 250)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   232
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   233
                       (FramedBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   234
                          label: 'Source Cache'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   235
                          name: 'FramedBox2'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   236
                          labelPosition: topLeft
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   237
                          translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   238
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   239
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   240
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   241
                             (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   242
                                name: 'Box4'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   243
                                layout: (LayoutFrame 0 0 0 0 0 1 30 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   244
                                component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   245
                               (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   246
                                  collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   247
                                   (LabelSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   248
                                      label: 'Source Cache Dir:'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   249
                                      name: 'Label23'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   250
                                      layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   251
                                      translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   252
                                      adjust: right
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   253
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   254
                                   (InputFieldSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   255
                                      name: 'EntryField9'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   256
                                      layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   257
                                      model: sourceCacheDir
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   258
                                      immediateAccept: false
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   259
                                      acceptOnReturn: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   260
                                      acceptOnTab: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   261
                                      acceptOnLostFocus: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   262
                                      acceptOnPointerLeave: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   263
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   264
                                   )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   265
                                 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   266
                                )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   267
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   268
                             (HorizontalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   269
                                name: 'HorizontalPanel12'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   270
                                layout: (LayoutFrame 44 0.25 33 0 0 1 67 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   271
                                horizontalLayout: fitSpace
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   272
                                verticalLayout: center
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   273
                                horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   274
                                verticalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   275
                                component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   276
                               (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   277
                                  collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   278
                                   (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   279
                                      label: 'Flush Cache now'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   280
                                      name: 'Button4'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   281
                                      translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   282
                                      tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   283
                                      model: flushSourceCache
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   284
                                      extent: (Point 234 22)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   285
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   286
                                   (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   287
                                      label: 'Condense Cache now'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   288
                                      name: 'Button5'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   289
                                      translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   290
                                      tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   291
                                      model: condenseSourceCache
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   292
                                      extent: (Point 235 22)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   293
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   294
                                   )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   295
                                 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   296
                                )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   297
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   298
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   299
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   300
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   301
                          extent: (Point 726 95)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   302
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   303
                       (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   304
                          name: 'VerboseBox'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   305
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   306
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   307
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   308
                             (CheckBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   309
                                label: 'Verbose (Trace Access on Transcript)'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   310
                                name: 'CheckBox6'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   311
                                layout: (LayoutFrame 30 0 5 0 -5 1 27 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   312
                                model: verboseSourceCodeAccess
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   313
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   314
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   315
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   316
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   317
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   318
                          extent: (Point 726 25)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   319
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   320
                       )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   321
                     
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   322
                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   323
                    extent: (Point 726 768)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   324
                  )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   325
                 )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   326
               
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   327
              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   328
            )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   329
           )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   330
         
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   331
        )
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
      )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   335
!P4SourceCodeManagementSettingsAppl class methodsFor:'queries'!
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   336
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   337
managerClass
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   338
    "backlink to my manager class (needed by the settings app)"
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   339
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   340
    ^ PerforceSourceCodeManager
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   341
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   342
    "Created: / 19-04-2011 / 12:52:02 / cg"
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   343
! !
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   344
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
!P4SourceCodeManagementSettingsAppl class methodsFor:'tableColumns specs'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
tableColumns
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
     by the DataSetBuilder of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
     the DataSetBuilder may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   353
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
     DataSetBuilder new openOnClass:P4SourceCodeManagementSettingsAppl andSelector:#tableColumns
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
    <resource: #tableColumns>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
    ^#(
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
      (DataSetColumnSpec
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   362
         label: 'Module'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   363
         labelButtonType: Button
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   364
         usePreferredWidth: true
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   365
         model: module
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
      (DataSetColumnSpec
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   368
         label: 'Settings'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   369
         labelButtonType: Button
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   370
         editorType: InputField
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   371
         model: settings
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   372
         isResizeable: false
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
      )
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   375
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
!P4SourceCodeManagementSettingsAppl methodsFor:'actions'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
addModule:aModuleManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
    |detectedManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
    detectedManager := self listOfModules detect:[:eachModuleManager| eachModuleManager module = aModuleManager module] ifNone:nil.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
    detectedManager isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   386
        self listOfModules add:aModuleManager; sort.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   387
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
    ] ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   389
        Dialog information:'Manager for Module ', aModuleManager module, ' already exists'.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
    "Created: / 08-11-2006 / 19:25:21 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
addModule:module withData:data
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
    (self listOfModules includes:module) ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   398
        self listOfModules add:module; sort.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
    self updateModifiedChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
    "Created: / 08-11-2006 / 19:25:21 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
addPerModuleRoot
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
    |app moduleManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
    app := ManagerPerModuleApp openFromSourceCodeManagementSettingsApp:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
    app canceled ifFalse:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   412
        moduleManager := ModuleManager newForApplication:self.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   413
        app moduleHolder value isEmptyOrNil ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   414
            self information:'Adding without module name not allowed'.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   415
            ^ self.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   416
        ].
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   417
        moduleManager module:app moduleHolder value.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   418
        moduleManager settings:app settingsHolder value.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   419
        moduleManager settings:app settingsHolder value.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   420
        self listOfModules add:moduleManager.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   421
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
    "Modified: / 08-11-2006 / 19:27:39 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   426
basicReadSettings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
    |moduleManager moduleAndSettings|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   428
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   429
    self initialize.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   430
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   431
    self defaultSettingsHolder value:PerforceSourceCodeManager getPerforceDefaultSettingsString.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
    self listOfModules removeAll.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
    moduleAndSettings := PerforceSourceCodeManager repositoryInfoPerModule copy.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
    moduleAndSettings notEmptyOrNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
        moduleAndSettings keysAndValuesDo:[:module :settings|
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   436
            moduleManager := ModuleManager newForApplication:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
            moduleManager module:module.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
            moduleManager settings:settings.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
            self listOfModules add:moduleManager.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
    self listOfModules sort.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
    self hasManager ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
        self sourceCacheDir value:(PerforceSourceCodeManager cacheDirectoryName).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
    self perforceExecutableHolder value:PerforceSourceCodeManager perforceExecutable.
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   449
    self verboseSourceCodeAccess value:PerforceSourceCodeManager verboseSourceCodeAccess.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
"/    self selectedPerModuleRootChanged.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   453
    "Modified: / 19-04-2011 / 10:53:15 / cg"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
basicSaveSettings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
    |client settings repositoryInfoPerModule|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
    self hasManager ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
        | nm fn|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
        nm := self sourceCacheDir value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
        nm notEmptyOrNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
            (fn := nm asFilename) exists ifFalse:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
                (self confirm:('Perforce cache directory ''' , nm , ''' does not exist\create ?' withCRs)) ifTrue:[
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   466
                    fn makeDirectory;
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
                       makeReadableForAll;
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
                       makeWritableForAll;
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
                       makeExecutableForAll.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
                ]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
            ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
            (fn isDirectory
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
            and:[fn isReadable
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
            and:[fn isWritable]]) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
                PerforceSourceCodeManager cacheDirectoryName:nm.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
            ] ifFalse:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
                self warn:'Invalid sourceCache directory.'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
            ]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
        repositoryInfoPerModule := Dictionary new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
        self listOfModules do:[:aModuleManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
            repositoryInfoPerModule at:aModuleManager module put:aModuleManager settings.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
        PerforceSourceCodeManager repositoryInfoPerModule:repositoryInfoPerModule.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
        PerforceSourceCodeManager perforceExecutable:((self perforceExecutableHolder value ? '') withoutSeparators).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
        client := self defaultSettingsHolder value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
        client notNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
            settings := PerforceSourceCodeManager getPerforceSettingsFromString:client.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
            PerforceSourceCodeManager perforceClient:(settings at:#client ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
            PerforceSourceCodeManager perforceUser:(settings at:#user ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
            PerforceSourceCodeManager perforcePort:(settings at:#port ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
            PerforceSourceCodeManager perforcePassword:(settings at:#password ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
        ].
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   495
        PerforceSourceCodeManager verboseSourceCodeAccess:self verboseSourceCodeAccess value.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
    self acceptChannel value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   500
    "Modified: / 19-04-2011 / 10:53:46 / cg"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
condenseSourceCache
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
    self withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
    Method flushSourceStreamCache.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
    "Modified: / 28-11-2006 / 12:21:33 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
flushSourceCache
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
    self withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
    Method flushSourceStreamCache.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
    "Modified: / 28-11-2006 / 12:21:21 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
removePerModuleRoot
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
    |module|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   521
    acceptChannel value:true.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
    module := self selectedPerModuleRoot value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    self listOfModules remove:module ifAbsent:nil.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
    self updateModifiedChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
!P4SourceCodeManagementSettingsAppl methodsFor:'aspects'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    acceptChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   532
        acceptChannel := TriggerValue new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
    ^ acceptChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
defaultSettingsHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
    defaultSettingsHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   540
        defaultSettingsHolder := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   541
        defaultSettingsHolder addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
    ^ defaultSettingsHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
defaultSettingsPrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
    defaultSettingsPrototypeList isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   549
        defaultSettingsPrototypeList := self perforcePrototypeList.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
    ^ defaultSettingsPrototypeList.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
listOfModules
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   556
    listOfModules isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   557
        listOfModules := List new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   558
        listOfModules addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
    ^ listOfModules.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
perforceExecutableHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
    perforceExecutableHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   565
        perforceExecutableHolder := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   566
        perforceExecutableHolder onChangeSend:#updateModifiedChannel to:self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
    ^ perforceExecutableHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
    "Created: / 21-09-2006 / 15:37:06 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
perforcePrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
    |first client|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
    client := PerforceSourceCodeManager perforceClient.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
    client isEmptyOrNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   579
        client := 'workspace'.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
    ].
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   581
    first := (client ,':', PerforceSourceCodeManager perforceUser, ':',
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   582
                           (PerforceSourceCodeManager perforcePassword ? 'pass'), '@',
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   583
                           PerforceSourceCodeManager perforcePort).
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
    ^ Array with:first.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
removeEnabled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
    removeEnabled isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   590
        removeEnabled := false asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
    ^ removeEnabled.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
selectedPerModuleRoot
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
    selectedPerModuleRoot isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   597
        selectedPerModuleRoot := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   598
        selectedPerModuleRoot addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
    ^ selectedPerModuleRoot.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
sourceCacheDir
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
    sourceCacheDir isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   605
        sourceCacheDir := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   606
        sourceCacheDir onChangeSend:#updateModifiedChannel to:self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
    ^ sourceCacheDir.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
tableColumns
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
    tableColumns isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   622
        tableColumns := self class tableColumns asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
"/ 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
   624
"/       tableColumns addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
"/       tableColumns onChangeSend:#tableColumnsChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
    ^ tableColumns.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
verboseSourceCodeAccess
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
    verboseSourceCodeAccess isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   632
        verboseSourceCodeAccess := false asValue.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   633
        verboseSourceCodeAccess onChangeSend:#updateModifiedChannel to:self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    ^ verboseSourceCodeAccess.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
!P4SourceCodeManagementSettingsAppl methodsFor:'change & update'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
selectedPerModuleRootChanged
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
    self removeEnabled value:self selectedPerModuleRoot value notNil.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
sourceDirChanged
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
    | nm fn|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
    nm := self sourceCacheDir value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
    nm isEmptyOrNil ifTrue:[^ self].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
    (fn := nm asFilename) exists ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   652
        (self confirm:('SourceCache directory ''' , nm , ''' does not exist.\Create ?' withCRs)) ifTrue:[
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   653
            fn makeDirectory;
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   654
               makeReadableForAll;
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   655
               makeWritableForAll;
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   656
               makeExecutableForAll.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   657
        ] ifFalse:[
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   658
            self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   659
            ^ self.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   660
        ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
    (fn isDirectory
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
    and:[fn isReadable
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
    and:[fn isWritable]]) ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   665
        AbstractSourceCodeManager cacheDirectoryName:nm.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
    ] ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   667
        self warn:'Invalid sourceCache directory.'.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   668
        self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   672
update:something with:aParameter from:changedObject
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   673
    "/ common
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
    changedObject == sourceCacheDir ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   675
        self sourceDirChanged.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   676
        self updateModifiedChannel.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   677
        ^ self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
    changedObject == selectedPerModuleRoot ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   681
        self selectedPerModuleRootChanged.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   682
        ^ self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
    changedObject == self listOfModules ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   686
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
    changedObject == defaultSettingsHolder ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   690
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   692
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   694
    super update:something with:aParameter from:changedObject
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   695
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
    "Modified: / 09-11-2006 / 14:41:10 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
!P4SourceCodeManagementSettingsAppl methodsFor:'help'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
helpFilename
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
    ^ 'Launcher/cvsSetup.html'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
!P4SourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
initialize
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
    sourceCacheDir := nil asValue.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   711
    sourceCacheDir addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
    super initialize.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   715
    "Modified: / 08-11-2006 / 19:20:32 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
!P4SourceCodeManagementSettingsAppl methodsFor:'queries'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
hasManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
    "true if ANY source code management class is available"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
    ^ PerforceSourceCodeManager notNil and:[PerforceSourceCodeManager isLoaded]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
hasUnsavedChanges
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
    |repositoryInfoPerModule client settings|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
    client := self defaultSettingsHolder value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
    client notNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
        settings := PerforceSourceCodeManager getPerforceSettingsFromString:client.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
        PerforceSourceCodeManager perforceClient ~= (settings at:#client ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
        PerforceSourceCodeManager perforceUser ~= (settings at:#user ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
        PerforceSourceCodeManager perforcePort ~= (settings at:#port ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
        PerforceSourceCodeManager perforcePassword ~= (settings at:#password ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   744
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
    repositoryInfoPerModule := Dictionary new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
    self listOfModules do:[:aModuleManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
        repositoryInfoPerModule at:aModuleManager module put:aModuleManager settings.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
    ].
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   751
    PerforceSourceCodeManager verboseSourceCodeAccess ~= self verboseSourceCodeAccess value ifTrue:[
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   752
        ^true
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   753
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   755
    PerforceSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   756
        ((repositoryInfoPerModule includesKey:module) and:[info = (repositoryInfoPerModule at:module)])
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   757
        ifFalse:[^ true].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   758
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   759
    repositoryInfoPerModule keysAndValuesDo:[:module :info|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
        ((PerforceSourceCodeManager repositoryInfoPerModule includesKey:module) and:[(PerforceSourceCodeManager repositoryInfoPerModule at:module) = info])
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
        ifFalse:[^ true].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
    ].
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   763
    self perforceExecutableHolder value ~= PerforceSourceCodeManager perforceExecutable ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   764
        ^true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   765
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   766
    ^ false
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   767
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   768
    "Modified: / 19-04-2011 / 10:54:31 / cg"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
repositoryInfoPerModuleFor:sourceCodeManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
    |repositoryInfoPerModule|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
    repositoryInfoPerModule := Dictionary new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
    self listOfModules do:[:aModuleManager|
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   777
        repositoryInfoPerModule at:aModuleManager module put:aModuleManager settings.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
    ^ repositoryInfoPerModule
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
!P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'instance creation'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
openFromSourceCodeManagementSettingsApp:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
    |inst|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
    inst := self new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
    inst sourceCodeManagementSettingsApp:something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
    inst openModal.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   791
    ^ inst
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
!P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'interface specs'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
     by the UIPainter of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
     the UIPainter may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
     UIPainter new openOnClass:P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp andSelector:#windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
     P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp new openInterface:#windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
     P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp open
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   808
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
    <resource: #canvas>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
    ^ 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
     #(FullSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   813
        name: windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
        window: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
       (WindowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
          label: 'Manager per Module'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
          name: 'Manager per Module'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
          min: (Point 10 10)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
          max: (Point 1024 768)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
          bounds: (Rectangle 0 0 653 100)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
        component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
       (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
          collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
           (VerticalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
              name: 'VerticalPanel1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
              layout: (LayoutFrame 0 0 0 0 -5 1 -30 1)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
              horizontalLayout: fit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
              verticalLayout: topSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
              horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
              verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
              component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
             (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
                collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   835
                 (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   836
                    name: 'HorizontalPanel1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   837
                    horizontalLayout: leftFit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
                    verticalLayout: center
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
                    horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
                    verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
                    component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
                   (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
                      collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
                       (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
                          label: 'Module:'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
                          name: 'Label16'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
                          translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   848
                          adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
                          extent: (Point 180 17)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
                       (InputFieldSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
                          name: 'EntryField7'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
                          tabable: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
                          model: moduleHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
                          acceptChannel: acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
                          acceptOnPointerLeave: true
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   857
                          extent: (Point 465 22)
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
                       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
                     
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
                    )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
                    extent: (Point 648 23)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
                 (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
                    name: 'HorizontalPanel4'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
                    horizontalLayout: leftFit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
                    verticalLayout: topSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
                    horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
                    verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
                    component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
                   (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
                      collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
                       (ViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
                          name: 'Box1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
                          component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
                         (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
                            collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
                             (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
                                label: 'Manager Info'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
                                name: 'Label18'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
                                layout: (LayoutFrame 0 0 0 0 149 0 16 0)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
                                translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
                                adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
                              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
                             (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
                                label: 'client:user:pass@host:port '
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
                                name: 'Label19'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
                                layout: (LayoutFrame 0 0 14 0 180 0 29 0)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
                                style: (FontDescription helvetica medium roman 10)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
                                level: 0
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
                                translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
                                adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
                              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
                             )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
                           
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   896
                          )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
                          extent: (Point 180 35)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
                        )
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   899
                       (ComboBoxSpec
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   900
                          name: 'ComboBox1'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
                          model: settingsHolder
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   902
                          acceptOnPointerLeave: false
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
                          comboList: defaultSettingsPrototypeList
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   904
                          extent: (Point 465 20)
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
                       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
                     
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
                    )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
                    extent: (Point 648 35)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
                 )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
               
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
            )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
           (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
              name: 'HorizontalPanel2'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
              layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
              horizontalLayout: fitSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
              verticalLayout: center
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
              horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
              verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
              component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
             (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
                collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
                 (ActionButtonSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
                    label: 'Add'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
                    name: 'Button1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
                    translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
                    model: doAccept
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
                    enableChannel: acceptEnableChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
                    extent: (Point 322 22)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
                 (ActionButtonSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
                    label: 'Cancel'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
                    name: 'Button2'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
                    translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
                    model: doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
                    extent: (Point 322 22)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
                 )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
               
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
            )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
           )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
         
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
      )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
!P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'accessing'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
canceled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
    ^ canceled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
defaultSettingsPrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
    defaultSettingsPrototypeList isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   959
        defaultSettingsPrototypeList := sourceCodeManagementSettingsApp perforcePrototypeList.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
    ^ defaultSettingsPrototypeList.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
sourceCodeManagementSettingsApp
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
    ^ sourceCodeManagementSettingsApp
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
sourceCodeManagementSettingsApp:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
    sourceCodeManagementSettingsApp := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
!P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'aspects'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
    acceptChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   985
        acceptChannel := TriggerValue new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
    ^ acceptChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
acceptEnableChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   998
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
    acceptEnableChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1001
        acceptEnableChannel := true asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
"/ 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
  1003
"/       acceptEnableChannel addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
"/       acceptEnableChannel onChangeSend:#acceptEnableChannelChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
    ^ acceptEnableChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
moduleHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
    moduleHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1020
        moduleHolder := ValueHolder new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
"/ 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
  1022
        moduleHolder addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
"/       moduleHolder onChangeSend:#moduleHolderChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
    ^ moduleHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
settingsHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1030
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1031
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1035
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1036
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1037
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1038
    settingsHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1039
        settingsHolder := ValueHolder new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1040
"/ 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
  1041
"/       settingsHolder addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1042
"/       settingsHolder onChangeSend:#settingsHolderChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1043
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1044
    ^ settingsHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1045
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1046
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
!P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'initialization & release'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
    canceled := true.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
    ^ super doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
postBuildWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
    "This is a hook method generated by the Browser.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1057
     It will be invoked during the initialization of your app/dialog,
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
  1058
     after all of the visual components have been built,
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
     but BEFORE the top window is made visible.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
     Add any app-specific actions here (reading files, setting up values etc.)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
     See also #postOpenWith:, which is invoked after opening."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
    "/ add any code here ...
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
    canceled := false.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
    ^ super postBuildWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
postOpenWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
    "This is a hook method generated by the Browser.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
     It will be invoked right after the applications window has been opened.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
     Add any app-specific actions here (starting background processes etc.).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
     See also #postBuildWith:, which is invoked before opening."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1075
    "/ add any code here ...
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
    ^ super postOpenWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1080
!P4SourceCodeManagementSettingsAppl::ModuleManager class methodsFor:'instance creation'!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1081
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1082
newForApplication:anApplication
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1083
    |instance|
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1084
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1085
    instance := self new.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1086
    instance app:anApplication.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1087
    ^instance
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1088
! !
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1089
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
!P4SourceCodeManagementSettingsAppl::ModuleManager methodsFor:'accessing'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1092
app
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1093
    ^ app
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1094
!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1095
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1096
app:something
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1097
    app := something.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1098
!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1099
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
manager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1101
    ^ manager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1102
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
manager:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
    manager := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1106
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1107
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1108
module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1109
    ^ module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
module:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
    module := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
settings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
    ^ settings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
settings:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
    settings := something.
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1122
    app notNil ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1123
        app listOfModules changed.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1124
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
!P4SourceCodeManagementSettingsAppl::ModuleManager methodsFor:'comparing'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
< aModuleManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1131
    ^ self module < aModuleManager module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
!P4SourceCodeManagementSettingsAppl::ModuleManager methodsFor:'queries'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
availableManagerTypeNames
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1137
    ^ AbstractSourceCodeManager availableManagers collect:[:cls | cls managerTypeName].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
managerClass
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
    ^ AbstractSourceCodeManager availableManagers detect:[:cls | cls managerTypeName = manager] ifNone:[nil].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1145
!P4SourceCodeManagementSettingsAppl class methodsFor:'documentation'!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1147
version_CVS
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1148
    ^ '$Header: /cvs/stx/stx/libtool/PerforceSourceCodeManagementSettingsAppl.st,v 1.4 2011-04-19 11:21:57 cg Exp $'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1149
! !