WinBuilder.st
author Claus Gittinger <cg@exept.de>
Fri, 28 Feb 1997 22:57:25 +0100
changeset 467 8fb5fa11956c
parent 463 75a8e06ef324
child 473 9ef922391c70
permissions -rw-r--r--
better dialog opening
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
463
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    52
addBindings:moreBindings
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    53
    "used with subDialogs, which provide local bindings.
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    54
     All bindings from moreBindings overwrite any local bindings."
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    55
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    56
    moreBindings notNil ifTrue:[
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    57
        moreBindings keysAndValuesDo:[:aKey :aValue |
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    58
            bindings at:aKey put:aValue
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    59
        ]
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    60
    ]
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    61
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    62
    "Created: 28.2.1997 / 14:14:33 / cg"
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    63
!
75a8e06ef324 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 450
diff changeset
    64
100
claus
parents: 99
diff changeset
    65
application
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    66
    "return the application (an ApplicationModel),
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    67
     for which the view is built.
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    68
     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
    69
100
claus
parents: 99
diff changeset
    70
    ^ application
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    71
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    72
    "Modified: 17.1.1997 / 19:04:40 / cg"
66
claus
parents:
diff changeset
    73
!
claus
parents:
diff changeset
    74
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    75
application:anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    76
    "set the application (an ApplicationModel),
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    77
     for which the view is built.
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    78
     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
    79
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
    80
    application := anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    81
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
    82
    "Modified: 17.1.1997 / 19:04:47 / cg"
66
claus
parents:
diff changeset
    83
!
claus
parents:
diff changeset
    84
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    85
applicationClass:something
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    86
    "set the value of the instance variable 'applicationClass' (automatically generated)"
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    87
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    88
    applicationClass := something.!
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
    89
66
claus
parents:
diff changeset
    90
aspectAt:aSymbol
433
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    91
    |b|
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    92
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    93
    bindings notNil ifTrue:[
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    94
        b := bindings at:aSymbol ifAbsent:nil.
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    95
        b notNil ifTrue:[^ b].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    96
    ].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
    97
433
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
    98
    application notNil ifTrue:[
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
    99
        Object messageNotUnderstoodSignal catch:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   100
            ^ application aspectFor:aSymbol
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   101
        ]
433
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
   102
    ].
31b52cc4451a *** empty log message ***
ca
parents: 428
diff changeset
   103
    ^ nil
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   104
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   105
    "Modified: 17.1.1997 / 19:28:32 / cg"
66
claus
parents:
diff changeset
   106
!
claus
parents:
diff changeset
   107
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   108
aspectAt:aSymbol put:aModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   109
    bindings isNil ifTrue:[
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   110
        bindings := IdentityDictionary new
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   111
    ].
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   112
    ^ bindings at:aSymbol put:aModel
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   113
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   114
    "Modified: 17.1.1997 / 19:28:37 / cg"
100
claus
parents: 99
diff changeset
   115
!
claus
parents: 99
diff changeset
   116
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   117
bindingAt:aSymbol
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   118
    bindings notNil ifTrue:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   119
        ^ bindings at:aSymbol ifAbsent:nil.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   120
    ].
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   121
    ^ nil
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   122
!
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   123
100
claus
parents: 99
diff changeset
   124
bindings
claus
parents: 99
diff changeset
   125
    ^ bindings
claus
parents: 99
diff changeset
   126
!
claus
parents: 99
diff changeset
   127
claus
parents: 99
diff changeset
   128
bindings:aDictionary
claus
parents: 99
diff changeset
   129
    bindings := aDictionary
claus
parents: 99
diff changeset
   130
!
claus
parents: 99
diff changeset
   131
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   132
componentAt:name
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   133
    namedComponents isNil ifTrue:[^ nil].
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   134
    ^ namedComponents at:name asSymbol ifAbsent:nil
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   135
!
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   136
100
claus
parents: 99
diff changeset
   137
componentAt:name put:aComponent
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   138
    namedComponents isNil ifTrue:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   139
        namedComponents := IdentityDictionary new.
100
claus
parents: 99
diff changeset
   140
    ].
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   141
    namedComponents at:name asSymbol put:aComponent
100
claus
parents: 99
diff changeset
   142
!
claus
parents: 99
diff changeset
   143
410
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   144
componentCreationHook:something
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   145
    "set the value of the instance variable 'componentCreationHook' (automatically generated)"
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   146
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   147
    componentCreationHook := something.!
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   148
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   149
focusSequence 
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   150
    ^ focusSequence
66
claus
parents:
diff changeset
   151
!
claus
parents:
diff changeset
   152
86
claus
parents: 80
diff changeset
   153
namedComponents
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   154
    ^ namedComponents
86
claus
parents: 80
diff changeset
   155
!
claus
parents: 80
diff changeset
   156
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   157
source
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   158
    "same as #application, for ST-80 compatibility"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   159
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   160
    ^ application
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   161
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   162
    "Created: 17.1.1997 / 19:03:51 / cg"
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
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   165
source:anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   166
    "same as #application:, for ST-80 compatibility"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   167
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   168
    application := anApplicationModel
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   169
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   170
    "Modified: 17.1.1997 / 19:03:57 / cg"
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   171
!
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   172
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   173
window
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   174
    "return the top window (view), for which an interface
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   175
     is (being) built"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   176
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   177
    ^ window
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   178
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   179
    "Modified: 17.1.1997 / 19:30:00 / cg"
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   180
!
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   181
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   182
window:aView
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   183
    "set the top window (view), for which an interface
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   184
     is (being) built"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   185
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   186
    window := aView
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   187
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   188
    "Modified: 17.1.1997 / 19:30:22 / cg"
66
claus
parents:
diff changeset
   189
!
claus
parents:
diff changeset
   190
claus
parents:
diff changeset
   191
windowGroup
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   192
self halt.
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   193
    ^ window windowGroup
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   194
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   195
    "Modified: 17.1.1997 / 19:30:26 / cg"
66
claus
parents:
diff changeset
   196
! !
claus
parents:
diff changeset
   197
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   198
!WindowBuilder methodsFor:'building'!
66
claus
parents:
diff changeset
   199
125
fa5b5e4336bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 114
diff changeset
   200
buildFromSpec:aSpec
176
3890e2b312e0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 132
diff changeset
   201
    ^ self subclassResponsibility
408
93582137e1c7 tabable
ca
parents: 374
diff changeset
   202
!
93582137e1c7 tabable
ca
parents: 374
diff changeset
   203
93582137e1c7 tabable
ca
parents: 374
diff changeset
   204
makeTabable:aComponent
93582137e1c7 tabable
ca
parents: 374
diff changeset
   205
    focusSequence isNil ifTrue:[
93582137e1c7 tabable
ca
parents: 374
diff changeset
   206
        focusSequence := OrderedCollection new.
93582137e1c7 tabable
ca
parents: 374
diff changeset
   207
    ].
93582137e1c7 tabable
ca
parents: 374
diff changeset
   208
    focusSequence add:aComponent
66
claus
parents:
diff changeset
   209
! !
100
claus
parents: 99
diff changeset
   210
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   211
!WindowBuilder methodsFor:'spec creation aspect fetch'!
100
claus
parents: 99
diff changeset
   212
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   213
actionFor:aKey
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   214
    "return an action for aKey. This is invoked during window building
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   215
     (by the builder) to ask for an ActionButtons actionBlock.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   216
     Here, first the local bindings are searched, then the application and
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   217
     finally the applications class is asked for a corresponding action.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   218
     The returned object is typically a block."
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   219
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   220
    |b|
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   221
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   222
    bindings notNil ifTrue:[
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   223
        b := bindings at:aKey ifAbsent:nil.
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   224
        b notNil ifTrue:[^ b].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   225
    ].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   226
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   227
    application notNil ifTrue:[
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   228
        Object messageNotUnderstoodSignal catch:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   229
            ^ application actionFor:aKey
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   230
        ]
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   231
    ].
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   232
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   233
        (applicationClass respondsTo:#actionFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   234
            ^ applicationClass actionFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   235
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   236
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   237
    ^ []
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   238
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   239
    "Created: 17.1.1997 / 21:08:22 / cg"
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   240
!
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   241
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   242
aspectFor:aKey
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   243
    "return a model for aKey. This is invoked during window building
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   244
     (by the builder) to ask for an Editfields, a Toggles etc. model.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   245
     Here, first the local bindings are searched, then the application and
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   246
     finally the applications class is asked for a corresponding action.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   247
     The returned object is typically a valueHolder."
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   248
434
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   249
    |b|
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   250
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   251
    bindings notNil ifTrue:[
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   252
        b := bindings at:aKey ifAbsent:nil.
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   253
        b notNil ifTrue:[^ b].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   254
    ].
eeb7ba6aede3 *** empty log message ***
ca
parents: 433
diff changeset
   255
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   256
    application notNil ifTrue:[
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   257
        Object messageNotUnderstoodSignal catch:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   258
            ^ application aspectFor:aKey
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   259
        ]
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   260
    ].
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   261
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   262
        (applicationClass respondsTo:#aspectFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   263
            ^ applicationClass aspectFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   264
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   265
    ].
374
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   266
    ^ self aspectAt:aKey
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   267
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   268
    "Created: 17.1.1997 / 21:06:16 / cg"
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   269
!
5be095a54715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   270
423
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   271
componentFor:aKey
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   272
    "return a component for aKey. This is invoked during window building
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   273
     (by the builder) to ask for an ArbitraryComponents view.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   274
     Here, first the local bindings are searched, then the application and
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   275
     finally the applications class is asked for a corresponding action.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   276
     The returned object is typically a view."
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   277
423
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   278
    |cls|
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   279
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   280
    application notNil ifTrue:[
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   281
        Object messageNotUnderstoodSignal catch:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   282
            ^ application componentFor:aKey
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   283
        ]
423
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   284
    ].
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   285
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   286
        (applicationClass respondsTo:#componentFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   287
            ^ applicationClass componentFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   288
        ]
423
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   289
    ].
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   290
    ^ self aspectAt:aKey
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   291
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   292
!
64c2d739caf1 *** empty log message ***
ca
parents: 422
diff changeset
   293
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   294
labelFor:aKey
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   295
    "return a label for aKey. This is invoked during window building
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   296
     (by the builder) to ask for a ???'s label.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   297
     Here, first the local bindings are searched, then the application and
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   298
     finally the applications class is asked for a corresponding action.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   299
     The returned object is typically a string."
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   300
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   301
    |cls|
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   302
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   303
    application notNil ifTrue:[
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   304
        Object messageNotUnderstoodSignal catch:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   305
            ^ application labelFor:aKey
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   306
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   307
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   308
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   309
        (applicationClass respondsTo:#labelFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   310
            ^ applicationClass labelFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   311
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   312
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   313
    ^ self aspectAt:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   314
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   315
!
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   316
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   317
listFor:aKey
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   318
    "return a list for aKey. This is invoked during window building
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   319
     (by the builder) to ask for a ???'s label.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   320
     Here, first the local bindings are searched, then the application and
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   321
     finally the applications class is asked for a corresponding action.
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   322
     The returned object is typically a list."
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   323
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   324
    application notNil ifTrue:[
450
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   325
        Object messageNotUnderstoodSignal catch:[
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   326
            ^ application listFor:aKey
2a6e2eb653f0 so far ...
ca
parents: 436
diff changeset
   327
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   328
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   329
    applicationClass notNil ifTrue:[
424
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   330
        (applicationClass respondsTo:#listFor:) ifTrue:[
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   331
            ^ applicationClass listFor:aKey
098447d8c614 checkin from browser
ca
parents: 423
diff changeset
   332
        ]
422
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   333
    ].
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   334
    ^ self aspectAt:aKey
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   335
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   336
    "Created: 17.1.1997 / 21:08:45 / cg"
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   337
! !
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   338
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   339
!WindowBuilder methodsFor:'spec creation callbacks'!
ccffe7647895 changed binding access
ca
parents: 420
diff changeset
   340
100
claus
parents: 99
diff changeset
   341
createdComponent:aView forSpec:spec
410
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   342
    componentCreationHook notNil ifTrue:[
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   343
        componentCreationHook value:aView value:spec value:self
2d21748e0d9c checkin from browser
ca
parents: 408
diff changeset
   344
    ]
100
claus
parents: 99
diff changeset
   345
claus
parents: 99
diff changeset
   346
    "Modified: 5.9.1995 / 21:42:54 / claus"
claus
parents: 99
diff changeset
   347
! !
claus
parents: 99
diff changeset
   348
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   349
!WindowBuilder methodsFor:'startup'!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   350
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   351
closeRequest
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   352
    window destroy
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   353
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   354
    "Modified: 17.1.1997 / 19:30:32 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   355
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   356
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   357
open
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   358
    "open my topView, as previously created"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   359
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   360
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   361
        openWithExtent:nil
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   362
        andType:(application defaultWindowType)
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   363
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   364
    "Modified: 17.1.1997 / 19:59:22 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   365
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   366
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   367
openAt:aPoint
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   368
    "open my topView at some location"
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 
467
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   371
        openAt:aPoint 
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   372
        withExtent:nil  
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   373
        andType:(application defaultWindowType)
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   374
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   375
    "Created: 14.2.1997 / 20:21:57 / cg"
467
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   376
    "Modified: 28.2.1997 / 22:50:29 / cg"
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   377
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   378
436
b5e56e1f367f checkin from browser
ca
parents: 434
diff changeset
   379
openAt:origin withExtent:ext andType:type
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   380
    "open my window, as previously created, optionally defining the
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   381
     windows origin and/or extent. 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   382
     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
   383
     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
   384
     active view, or as a normal view."
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   385
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   386
    origin notNil ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   387
        window origin:origin
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   388
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   389
    ext notNil ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   390
        window extent:ext
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   391
    ].
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
    type == #dialog ifTrue:[
467
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   394
        window fixSize.
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   395
        window fixPosition:(window device pointerPosition - window positionOffset).
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   396
        window openModal.
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   397
        ^ self
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   398
    ].
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
    type == #normal ifTrue:[
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   401
        window open.
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   402
        ^ self
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   403
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   404
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   405
    type == #popUp ifTrue:[
467
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   406
        window fixPosition:(window device pointerPosition).
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   407
        window openAsPopUp.
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   408
        ^ self
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   409
    ].
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   410
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   411
    "
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   412
     if ST-80 supports more types - these may be added later
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   413
    "
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   414
    self halt:'unimplemented'
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   415
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   416
    "Created: 14.2.1997 / 20:22:24 / cg"
467
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   417
    "Modified: 28.2.1997 / 22:56:52 / cg"
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   418
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   419
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   420
openDialog
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   421
    "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
   422
     blocking interaction to the currently active view."
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
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   425
        openWithExtent:nil 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   426
        andType:#dialog
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   427
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   428
    "Modified: 17.1.1997 / 19:59:29 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   429
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   430
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   431
openDialogAt:aPoint withExtent:ext
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   432
    "open my topView, as previously created as a modal view,
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   433
     blocking interaction to the currently active view."
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   434
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   435
    self 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   436
        openAt:aPoint withExtent:ext 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   437
        andType:#dialog
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   438
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   439
    "Modified: 17.1.1997 / 19:59:36 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   440
    "Created: 14.2.1997 / 20:24:19 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   441
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   442
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   443
openDialogWithExtent:ext
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   444
    "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
   445
     blocking interaction to the currently active view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   446
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   447
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   448
        openWithExtent:ext 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   449
        andType:#dialog
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   450
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   451
    "Modified: 17.1.1997 / 19:59:36 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   452
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   453
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   454
openPopUpAt:aPoint
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   455
    "open my topView, as previously created as a popUp view,
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   456
     blocking interaction to the currently active view."
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   457
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   458
    self 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   459
        openAt:aPoint withExtent:nil 
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   460
        andType:#popUp
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   461
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   462
    "Modified: 17.1.1997 / 19:59:29 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   463
    "Created: 14.2.1997 / 20:24:38 / cg"
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   464
!
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   465
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   466
openPopUpIn:aRectangle
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   467
    "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
   468
     blocking interaction to the currently active view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   469
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   470
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   471
        openWithExtent:nil 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   472
        andType:#popUp
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   473
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   474
    "Modified: 17.1.1997 / 19:59:29 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   475
    "Created: 17.1.1997 / 20:01:24 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   476
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   477
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   478
openWithExtent:aPoint
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   479
    "open my topView, as previously created, but override
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   480
     the extent."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   481
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   482
    self 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   483
        openWithExtent:aPoint 
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   484
        andType:(application defaultWindowType)
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   485
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   486
    "Modified: 17.1.1997 / 19:58:48 / cg"
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   487
!
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   488
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   489
openWithExtent:ext andType:type
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   490
    "open my window, as previously created. The type argument
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   491
     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
   492
     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
   493
     active view, or as a normal view."
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   494
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   495
    ^ self openAt:nil withExtent:ext andType:type
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   496
428
25f3b4964f14 more startup variations
Claus Gittinger <cg@exept.de>
parents: 424
diff changeset
   497
    "Modified: 14.2.1997 / 20:22:47 / cg"
372
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   498
! !
6d7718f3d298 more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents: 223
diff changeset
   499
132
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   500
!WindowBuilder class methodsFor:'documentation'!
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   501
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   502
version
467
8fb5fa11956c better dialog opening
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   503
    ^ '$Header: /cvs/stx/stx/libview2/Attic/WinBuilder.st,v 1.28 1997-02-28 21:57:25 cg Exp $'
132
0a8fe342ed91 version method at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   504
! !