WinBuilder.st
author ca
Tue, 18 Feb 1997 11:09:36 +0100
changeset 436 b5e56e1f367f
parent 434 eeb7ba6aede3
child 450 2a6e2eb653f0
permissions -rw-r--r--
checkin from browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
89
claus
parents: 86
diff changeset
     1
"
claus
parents: 86
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
     3
              All Rights Reserved
89
claus
parents: 86
diff changeset
     4
claus
parents: 86
diff changeset
     5
 This software is furnished under a license and may be used
claus
parents: 86
diff changeset
     6
 only in accordance with the terms of that license and with the
claus
parents: 86
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
claus
parents: 86
diff changeset
     8
 be provided or otherwise made available to, or used by, any
claus
parents: 86
diff changeset
     9
 other person.  No title to or ownership of the software is
claus
parents: 86
diff changeset
    10
 hereby transferred.
claus
parents: 86
diff changeset
    11
"
claus
parents: 86
diff changeset
    12
100
claus
parents: 99
diff changeset
    13
Object subclass:#WindowBuilder
436
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
    14
	instanceVariableNames:'window application bindings focusSequence namedComponents
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
    15
		componentCreationHook applicationClass'
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
    16
	classVariableNames:''
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
    17
	poolDictionaries:''
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
    18
	category:'Interface-Support-UI'
66
claus
parents:
diff changeset
    19
!
claus
parents:
diff changeset
    20
claus
parents:
diff changeset
    21
!WindowBuilder class methodsFor:'documentation'!
claus
parents:
diff changeset
    22
89
claus
parents: 86
diff changeset
    23
copyright
claus
parents: 86
diff changeset
    24
"
claus
parents: 86
diff changeset
    25
 COPYRIGHT (c) 1995 by Claus Gittinger
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    26
              All Rights Reserved
89
claus
parents: 86
diff changeset
    27
claus
parents: 86
diff changeset
    28
 This software is furnished under a license and may be used
claus
parents: 86
diff changeset
    29
 only in accordance with the terms of that license and with the
claus
parents: 86
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
claus
parents: 86
diff changeset
    31
 be provided or otherwise made available to, or used by, any
claus
parents: 86
diff changeset
    32
 other person.  No title to or ownership of the software is
claus
parents: 86
diff changeset
    33
 hereby transferred.
claus
parents: 86
diff changeset
    34
"
claus
parents: 86
diff changeset
    35
!
claus
parents: 86
diff changeset
    36
66
claus
parents:
diff changeset
    37
documentation
claus
parents:
diff changeset
    38
"
69
claus
parents: 66
diff changeset
    39
    a no-op class, for systems which do not use the UIBuilder.
66
claus
parents:
diff changeset
    40
    Concrete subclasses know how to create a view (with components) from
claus
parents:
diff changeset
    41
    some interface spec. Currently, an experimantal version of UIBuilder exists,
claus
parents:
diff changeset
    42
    and more may be added in the future (for example, to parse different UI
claus
parents:
diff changeset
    43
    specs - thinking of motifs UIL specs etc).
223
b65dc250db8d documentation
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    44
b65dc250db8d documentation
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    45
    [author:]
b65dc250db8d documentation
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    46
        Claus Gittinger
66
claus
parents:
diff changeset
    47
"
claus
parents:
diff changeset
    48
! !
claus
parents:
diff changeset
    49
claus
parents:
diff changeset
    50
!WindowBuilder methodsFor:'accessing'!
claus
parents:
diff changeset
    51
100
claus
parents: 99
diff changeset
    52
application
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    53
    "return the application (an ApplicationModel),
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    54
     for which the view is built.
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    55
     This one is supposed to provide the aspects, menus etc."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    56
100
claus
parents: 99
diff changeset
    57
    ^ application
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    58
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    59
    "Modified: 17.1.1997 / 19:04:40 / cg"
66
claus
parents:
diff changeset
    60
!
claus
parents:
diff changeset
    61
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    62
application:anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    63
    "set the application (an ApplicationModel),
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    64
     for which the view is built.
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    65
     This one is supposed to provide the aspects, menus etc."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    66
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    67
    application := anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    68
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    69
    "Modified: 17.1.1997 / 19:04:47 / cg"
66
claus
parents:
diff changeset
    70
!
claus
parents:
diff changeset
    71
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    72
applicationClass:something
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    73
    "set the value of the instance variable 'applicationClass' (automatically generated)"
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    74
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    75
    applicationClass := something.!
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    76
66
claus
parents:
diff changeset
    77
aspectAt:aSymbol
433
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    78
    |b|
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    79
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    80
    bindings notNil ifTrue:[
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    81
        b := bindings at:aSymbol ifAbsent:nil.
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    82
        b notNil ifTrue:[^ b].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    83
    ].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    84
433
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    85
    application notNil ifTrue:[
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    86
        ^ application aspectFor:aSymbol
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    87
    ].
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    88
    ^ nil
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    89
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    90
    "Modified: 17.1.1997 / 19:28:32 / cg"
66
claus
parents:
diff changeset
    91
!
claus
parents:
diff changeset
    92
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    93
aspectAt:aSymbol put:aModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    94
    bindings isNil ifTrue:[
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    95
        bindings := IdentityDictionary new
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    96
    ].
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    97
    ^ bindings at:aSymbol put:aModel
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    98
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    99
    "Modified: 17.1.1997 / 19:28:37 / cg"
100
claus
parents: 99
diff changeset
   100
!
claus
parents: 99
diff changeset
   101
claus
parents: 99
diff changeset
   102
bindings
claus
parents: 99
diff changeset
   103
    ^ bindings
claus
parents: 99
diff changeset
   104
!
claus
parents: 99
diff changeset
   105
claus
parents: 99
diff changeset
   106
bindings:aDictionary
claus
parents: 99
diff changeset
   107
    bindings := aDictionary
claus
parents: 99
diff changeset
   108
!
claus
parents: 99
diff changeset
   109
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   110
componentAt:name
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   111
    bindings isNil ifTrue:[^ nil].
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   112
    ^ bindings at:name ifAbsent:nil
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   113
!
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   114
100
claus
parents: 99
diff changeset
   115
componentAt:name put:aComponent
claus
parents: 99
diff changeset
   116
    bindings isNil ifTrue:[
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   117
        bindings := IdentityDictionary new.
100
claus
parents: 99
diff changeset
   118
    ].
claus
parents: 99
diff changeset
   119
    bindings at:name put:aComponent
claus
parents: 99
diff changeset
   120
!
claus
parents: 99
diff changeset
   121
410
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   122
componentCreationHook:something
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   123
    "set the value of the instance variable 'componentCreationHook' (automatically generated)"
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   124
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   125
    componentCreationHook := something.!
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   126
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   127
focusSequence 
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   128
    ^ focusSequence
66
claus
parents:
diff changeset
   129
!
claus
parents:
diff changeset
   130
86
claus
parents: 80
diff changeset
   131
namedComponents
claus
parents: 80
diff changeset
   132
    ^ bindings
claus
parents: 80
diff changeset
   133
!
claus
parents: 80
diff changeset
   134
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   135
source
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   136
    "same as #application, for ST-80 compatibility"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   137
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   138
    ^ application
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   139
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   140
    "Created: 17.1.1997 / 19:03:51 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   141
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   142
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   143
source:anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   144
    "same as #application:, for ST-80 compatibility"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   145
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   146
    application := anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   147
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   148
    "Modified: 17.1.1997 / 19:03:57 / cg"
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   149
!
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   150
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   151
window
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   152
    "return the top window (view), for which an interface
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   153
     is (being) built"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   154
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   155
    ^ window
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   156
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   157
    "Modified: 17.1.1997 / 19:30:00 / cg"
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   158
!
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   159
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   160
window:aView
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   161
    "set the top window (view), for which an interface
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   162
     is (being) built"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   163
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   164
    window := aView
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   165
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   166
    "Modified: 17.1.1997 / 19:30:22 / cg"
66
claus
parents:
diff changeset
   167
!
claus
parents:
diff changeset
   168
claus
parents:
diff changeset
   169
windowGroup
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   170
self halt.
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   171
    ^ window windowGroup
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   172
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   173
    "Modified: 17.1.1997 / 19:30:26 / cg"
66
claus
parents:
diff changeset
   174
! !
claus
parents:
diff changeset
   175
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   176
!WindowBuilder methodsFor:'building'!
66
claus
parents:
diff changeset
   177
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   178
buildFromSpec:aSpec
176
3890e2b312e0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 132
diff changeset
   179
    ^ self subclassResponsibility
408
93582137e1c7 tabable
ca
parents: 374
diff changeset
   180
!
93582137e1c7 tabable
ca
parents: 374
diff changeset
   181
93582137e1c7 tabable
ca
parents: 374
diff changeset
   182
makeTabable:aComponent
93582137e1c7 tabable
ca
parents: 374
diff changeset
   183
    focusSequence isNil ifTrue:[
93582137e1c7 tabable
ca
parents: 374
diff changeset
   184
        focusSequence := OrderedCollection new.
93582137e1c7 tabable
ca
parents: 374
diff changeset
   185
    ].
93582137e1c7 tabable
ca
parents: 374
diff changeset
   186
    focusSequence add:aComponent
66
claus
parents:
diff changeset
   187
! !
100
claus
parents: 99
diff changeset
   188
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   189
!WindowBuilder methodsFor:'spec creation aspect fetch'!
100
claus
parents: 99
diff changeset
   190
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   191
actionFor:aKey
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   192
    |b|
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   193
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   194
    bindings notNil ifTrue:[
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   195
        b := bindings at:aKey ifAbsent:nil.
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   196
        b notNil ifTrue:[^ b].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   197
    ].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   198
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   199
    application notNil ifTrue:[
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   200
        ^ application actionFor:aKey
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   201
    ].
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   202
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   203
        (applicationClass respondsTo:#actionFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   204
            ^ applicationClass actionFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   205
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   206
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   207
    ^ []
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   208
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   209
    "Created: 17.1.1997 / 21:08:22 / cg"
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   210
!
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   211
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   212
aspectFor:aKey
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   213
    |b|
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   214
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   215
    bindings notNil ifTrue:[
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   216
        b := bindings at:aKey ifAbsent:nil.
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   217
        b notNil ifTrue:[^ b].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   218
    ].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   219
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   220
    application notNil ifTrue:[
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   221
        ^ application aspectFor:aKey
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   222
    ].
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   223
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   224
        (applicationClass respondsTo:#aspectFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   225
            ^ applicationClass aspectFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   226
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   227
    ].
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   228
    ^ self aspectAt:aKey
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   229
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   230
    "Created: 17.1.1997 / 21:06:16 / cg"
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   231
!
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   232
423
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   233
componentFor:aKey
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   234
    |cls|
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   235
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   236
    application notNil ifTrue:[
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   237
        ^ application componentFor:aKey
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   238
    ].
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   239
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   240
        (applicationClass respondsTo:#componentFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   241
            ^ applicationClass componentFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   242
        ]
423
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   243
    ].
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   244
    ^ self aspectAt:aKey
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   245
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   246
!
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   247
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   248
labelFor:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   249
    |cls|
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   250
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   251
    application notNil ifTrue:[
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   252
        ^ application labelFor:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   253
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   254
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   255
        (applicationClass respondsTo:#labelFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   256
            ^ applicationClass labelFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   257
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   258
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   259
    ^ self aspectAt:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   260
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   261
!
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   262
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   263
listFor:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   264
    application notNil ifTrue:[
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   265
        ^ application listFor:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   266
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   267
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   268
        (applicationClass respondsTo:#listFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   269
            ^ applicationClass listFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   270
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   271
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   272
    ^ self aspectAt:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   273
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   274
    "Created: 17.1.1997 / 21:08:45 / cg"
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   275
! !
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   276
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   277
!WindowBuilder methodsFor:'spec creation callbacks'!
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   278
100
claus
parents: 99
diff changeset
   279
createdComponent:aView forSpec:spec
410
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   280
    componentCreationHook notNil ifTrue:[
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   281
        componentCreationHook value:aView value:spec value:self
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   282
    ]
100
claus
parents: 99
diff changeset
   283
claus
parents: 99
diff changeset
   284
    "Modified: 5.9.1995 / 21:42:54 / claus"
claus
parents: 99
diff changeset
   285
! !
claus
parents: 99
diff changeset
   286
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   287
!WindowBuilder methodsFor:'startup'!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   288
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   289
closeRequest
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   290
    window destroy
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   291
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   292
    "Modified: 17.1.1997 / 19:30:32 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   293
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   294
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   295
open
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   296
    "open my topView, as previously created"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   297
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   298
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   299
        openWithExtent:nil
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   300
        andType:(application defaultWindowType)
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   301
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   302
    "Modified: 17.1.1997 / 19:59:22 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   303
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   304
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   305
openAt:aPoint
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   306
    "open my topView at some location"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   307
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   308
    self 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   309
        openAt:aPoint withExtent:nil  
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   310
        andType:(application defaultWindowType)
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   311
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   312
    "Created: 14.2.1997 / 20:21:57 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   313
    "Modified: 14.2.1997 / 20:23:23 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   314
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   315
436
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
   316
openAt:origin withExtent:ext andType:type
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   317
    "open my window, as previously created, optionally defining the
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   318
     windows origin and/or extent. 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   319
     The type argument may be #dialog or #normal, and specifies if the view 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   320
     should be opened as a modal view, blocking interaction to the currently 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   321
     active view, or as a normal view."
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   322
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   323
    origin notNil ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   324
        window origin:origin
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   325
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   326
    ext notNil ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   327
        window extent:ext
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   328
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   329
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   330
    type == #dialog ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   331
        window openModal.
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   332
        ^ self
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   333
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   334
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   335
    type == #normal ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   336
        window open.
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   337
        ^ self
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   338
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   339
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   340
    type == #popUp ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   341
"/        window openAsPopUp.  "/ not yet implemented
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   342
        window openModal.
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   343
        ^ self
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   344
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   345
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   346
    "
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   347
     if ST-80 supports more types - these may be added later
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   348
    "
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   349
    self halt:'unimplemented'
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   350
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   351
    "Created: 14.2.1997 / 20:22:24 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   352
    "Modified: 14.2.1997 / 20:23:56 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   353
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   354
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   355
openDialog
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   356
    "open my topView, as previously created as a modal view,
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   357
     blocking interaction to the currently active view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   358
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   359
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   360
        openWithExtent:nil 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   361
        andType:#dialog
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   362
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   363
    "Modified: 17.1.1997 / 19:59:29 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   364
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   365
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   366
openDialogAt:aPoint withExtent:ext
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   367
    "open my topView, as previously created as a modal view,
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   368
     blocking interaction to the currently active view."
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   369
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   370
    self 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   371
        openAt:aPoint withExtent:ext 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   372
        andType:#dialog
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   373
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   374
    "Modified: 17.1.1997 / 19:59:36 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   375
    "Created: 14.2.1997 / 20:24:19 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   376
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   377
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   378
openDialogWithExtent:ext
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   379
    "open my topView, as previously created as a modal view,
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   380
     blocking interaction to the currently active view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   381
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   382
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   383
        openWithExtent:ext 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   384
        andType:#dialog
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   385
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   386
    "Modified: 17.1.1997 / 19:59:36 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   387
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   388
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   389
openPopUpAt:aPoint
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   390
    "open my topView, as previously created as a popUp view,
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   391
     blocking interaction to the currently active view."
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   392
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   393
    self 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   394
        openAt:aPoint withExtent:nil 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   395
        andType:#popUp
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   396
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   397
    "Modified: 17.1.1997 / 19:59:29 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   398
    "Created: 14.2.1997 / 20:24:38 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   399
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   400
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   401
openPopUpIn:aRectangle
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   402
    "open my topView, as previously created as a popUp view,
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   403
     blocking interaction to the currently active view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   404
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   405
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   406
        openWithExtent:nil 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   407
        andType:#popUp
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   408
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   409
    "Modified: 17.1.1997 / 19:59:29 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   410
    "Created: 17.1.1997 / 20:01:24 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   411
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   412
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   413
openWithExtent:aPoint
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   414
    "open my topView, as previously created, but override
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   415
     the extent."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   416
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   417
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   418
        openWithExtent:aPoint 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   419
        andType:(application defaultWindowType)
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   420
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   421
    "Modified: 17.1.1997 / 19:58:48 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   422
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   423
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   424
openWithExtent:ext andType:type
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   425
    "open my window, as previously created. The type argument
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   426
     may be #dialog or #normal, and specifies if the view should
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   427
     be opened as a modal view, blocking interaction to the currently 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   428
     active view, or as a normal view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   429
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   430
    ^ self openAt:nil withExtent:ext andType:type
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   431
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   432
    "Modified: 14.2.1997 / 20:22:47 / cg"
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   433
! !
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   434
132
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   435
!WindowBuilder class methodsFor:'documentation'!
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   436
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   437
version
436
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
   438
    ^ '$Header: /cvs/stx/stx/libview2/Attic/WinBuilder.st,v 1.25 1997-02-18 10:09:36 ca Exp $'
132
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   439
! !