OptionBox.st
author Claus Gittinger <cg@exept.de>
Sat, 20 Jun 2009 10:47:07 +0200
changeset 3901 113dd960ba11
parent 3804 8a4b07e9ee4e
child 3905 9005cad02a02
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     1
"
5
claus
parents: 3
diff changeset
     2
 COPYRIGHT (c) 1991 by Claus Gittinger
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
     3
	      All Rights Reserved
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     4
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    11
"
2212
7475e8be57bb recompute label origin, if the form changes
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
    12
"{ Package: 'stx:libwidg' }"
7475e8be57bb recompute label origin, if the form changes
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
    13
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
    14
DialogBox subclass:#OptionBox
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
    15
	instanceVariableNames:'verticalPanel labelPanel formLabel textLabel buttons actions
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
    16
		defaultButtonIndex'
355
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    17
	classVariableNames:'WarnBitmap'
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    18
	poolDictionaries:''
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    19
	category:'Views-DialogBoxes'
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    20
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    21
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    22
!OptionBox class methodsFor:'documentation'!
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
    23
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    24
copyright
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    25
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    26
 COPYRIGHT (c) 1991 by Claus Gittinger
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
    27
	      All Rights Reserved
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    28
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    29
 This software is furnished under a license and may be used
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    30
 only in accordance with the terms of that license and with the
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    32
 be provided or otherwise made available to, or used by, any
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    33
 other person.  No title to or ownership of the software is
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    34
 hereby transferred.
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    35
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    36
!
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    37
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
    38
documentation
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
    39
"
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    40
   CAVEAT: this is a leftover - functionality has been merged into DialogBox
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    41
   PLEASE use one of the `Dialog chooseXXX' methods nstead of OptionBox.
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    42
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    43
355
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    44
   Historic note:
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    45
      originally, ST/X had separate classes for the various entry methods;
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    46
      there were YesNoBox, EnterBox, InfoBox and so on.
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    47
      In the meantime, the DialogBox class (and therefore its alias: Dialog)
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    48
      is going to duplicate most funcionality found in these classes.
355
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    49
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    50
      In the future, those existing subclasses' functionality is going to
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    51
      be moved fully into Dialog, and the subclasses will be replaced by dummy
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    52
      delegators. (They will be kept for backward compatibility, though).
355
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    53
a55f62047156 commentary
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    54
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    55
    OptionBoxes are like YesNoBoxes but with as many buttons as you like;
91
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
    56
    this will finally be a superclass of WarnBox and YesNoBox - or maybe merged
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
    57
    all into DialogBox..
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    58
    Use them for multiway questions.
91
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
    59
    For a consistent user interface, the rightmost button is the default return
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    60
    button (i.e. pressing return in the box performs this buttons function).
91
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
    61
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    62
    [author:]
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    63
        Claus Gittinger
91
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
    64
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    65
    [see also:]
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    66
        DialogBox
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    67
"
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    68
!
91
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
    69
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    70
examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    71
"
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    72
                                                                        [exBegin]
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    73
    |box|
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    74
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    75
    box := OptionBox title:'hello' numberOfOptions:4.
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    76
    box showAtPointer
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    77
                                                                        [exEnd]
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    78
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    79
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    80
                                                                        [exBegin]
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    81
    |box|
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    82
    box := OptionBox title:'hello' numberOfOptions:3.
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    83
    box buttonTitles:#('one' 'two' 'three').
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    84
    box showAtPointer
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    85
                                                                        [exEnd]
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    86
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    87
 performing an action:
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    88
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    89
                                                                        [exBegin]
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    90
    |box|
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    91
    box := OptionBox title:'hello' numberOfOptions:3.
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    92
    box buttonTitles:#('one' 'two' 'three').
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    93
    box action:[:which | Transcript show:'button ';
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    94
                                    show: which;
655
acad3ef3a46c showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 646
diff changeset
    95
                                    showCR:' was pressed'].
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    96
    box showAtPointer
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    97
                                                                        [exEnd]
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
    98
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    99
 returning a value:
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   100
                                                                        [exBegin]
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   101
    |what|
133
claus
parents: 132
diff changeset
   102
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   103
    what := OptionBox 
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   104
                  request:('text has not been accepted.\\Your modifications will be lost when continuing.') withCRs
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   105
                  label:' Attention'
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   106
                  image:(WarningBox iconBitmap)
3211
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   107
                  buttonLabels:#('Abort' 'Accept' 'Continue')
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   108
                  values:#(#abort #accept #continue).
655
acad3ef3a46c showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 646
diff changeset
   109
    Transcript showCR:what.
646
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   110
                                                                        [exEnd]
3211
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   111
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   112
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   113
 use callBack-hook to intercept creation:
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   114
                                                                        [exBegin]
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   115
    |what|
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   116
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   117
    AboutToOpenBoxNotificationSignal handle:[:ex |
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   118
        |box|
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   119
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   120
        box := ex parameter.
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   121
        box verticalPanel 
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   122
            add:(CheckBox label:'Do no show this Dialog again.'
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   123
                          model:false asValue).
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   124
        ex proceed.
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   125
    ] do:[
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   126
        what := OptionBox 
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   127
                      request:('bla bla bla bla.\\You must bla bla bla!!') withCRs
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   128
                      label:' Attention'
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   129
                      image:(WarningBox iconBitmap)
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   130
                      buttonLabels:#('Abort' 'Accept' 'Continue')
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   131
                      values:#(#abort #accept #continue)
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   132
                      default:#continue.
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   133
    ].
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   134
    Transcript showCR:what.
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   135
                                                                        [exEnd]
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
   136
"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   137
! !
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   138
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   139
!OptionBox class methodsFor:'instance creation'!
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   140
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   141
title:titleString numberOfOptions:nOptions
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   142
    "create a new optionBox with title, aTitleString and nOptions options"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   143
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   144
    |box|
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   145
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   146
    box := (self basicNew) numberOfOptions:nOptions.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   147
    box device:Screen current.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   148
    box initialize.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   149
    box title:titleString.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   150
    ^ box
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
   151
! !
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
   152
2449
b9bf97bf089d category included a space
Claus Gittinger <cg@exept.de>
parents: 2405
diff changeset
   153
!OptionBox class methodsFor:'easy startup'!
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   154
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   155
forRequest:title label:label image:anImage buttonLabels:labels values:values default:defaultValue
2585
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   156
    "create a new optionBox and return it.
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   157
     Does not open the box."
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   158
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   159
    |box|
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   160
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   161
    box := OptionBox title:title numberOfOptions:(labels size).
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   162
    box buttonTitles:labels.
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   163
    box defaultButtonIndex:(values indexOf:defaultValue). 
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   164
    box label:label; image:anImage.
2898
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   165
    values keysAndValuesDo:[:idx :val |
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   166
        val == false ifTrue:[
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   167
            (box buttons at:idx) cursor:(Cursor thumbsDown).
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   168
        ].
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   169
        val == true ifTrue:[
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   170
            (box buttons at:idx) cursor:(Cursor thumbsUp).
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   171
        ].
b7ba089497d6 thumbsUp/down
Claus Gittinger <cg@exept.de>
parents: 2711
diff changeset
   172
    ].
2585
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   173
    ^ box
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   174
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   175
    "Modified: / 23.2.2000 / 11:59:32 / cg"
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   176
!
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   177
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   178
request:title buttonLabels:labels values:values 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   179
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   180
     the corresponding values collection. Return nil if cancelled"
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   181
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   182
    ^ self 
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   183
        request:title label:title buttonLabels:labels values:values
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   184
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   185
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   186
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   187
        request:'please select any'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   188
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   189
        values:#(1 2 3)   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   190
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   191
!
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   192
2669
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   193
request:title buttonLabels:labels values:values default:defaultValue
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   194
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   195
     the corresponding values collection. Return nil if cancelled."
2669
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   196
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   197
    ^ self
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   198
        request:title label:title image:(YesNoBox iconBitmap) buttonLabels:labels values:values 
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   199
        default:defaultValue onCancel:nil
2669
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   200
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   201
    "
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   202
     OptionBox 
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   203
        request:'please select'
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   204
        buttonLabels:#('one' 'two' 'three')
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   205
        values:#(1 2 3)   
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   206
        default:3   
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   207
    "
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   208
!
182aa7a00d83 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2668
diff changeset
   209
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   210
request:title label:label buttonLabels:labels values:values 
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   211
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   212
     the corresponding values collection. Return nil if cancelled"
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   213
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   214
    ^ self 
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   215
        request:title label:label image:(YesNoBox iconBitmap)
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   216
        buttonLabels:labels values:values default:nil onCancel:nil
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   217
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   218
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   219
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   220
        request:'please select'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   221
        label:'select any'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   222
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   223
        values:#(1 2 3)   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   224
    "
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   225
!
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   226
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   227
request:title label:label buttonLabels:labels values:values default:defaultValue
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   228
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   229
     the corresponding values collection. Return nil if cancelled"
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   230
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   231
    ^ self
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   232
        request:title label:label image:(YesNoBox iconBitmap) buttonLabels:labels values:values 
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   233
        default:defaultValue onCancel:nil
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   234
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   235
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   236
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   237
        request:'please select'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   238
        label:'select any'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   239
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   240
        values:#(1 2 3)   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   241
        default:3   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   242
    "
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   243
!
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   244
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   245
request:title label:label buttonLabels:labels values:values default:defaultValue onCancel:cancelValue
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   246
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   247
     the corresponding values collection. Return cancelValue if cancelled."
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   248
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   249
    ^ self
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   250
        request:title label:label image:(YesNoBox iconBitmap) buttonLabels:labels values:values 
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   251
        default:defaultValue onCancel:cancelValue
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   252
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   253
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   254
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   255
        request:'please select'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   256
        label:'select any'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   257
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   258
        values:#(1 2 3)   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   259
        default:3   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   260
        onCancel:2   
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   261
    "
2405
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   262
!
dcdb739b64f8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2390
diff changeset
   263
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   264
request:title label:label image:anImage buttonLabels:labels values:values 
133
claus
parents: 132
diff changeset
   265
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   266
     the corresponding values collection. Return nil, if cancelled."
133
claus
parents: 132
diff changeset
   267
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   268
    ^ self 
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   269
        request:title label:label image:anImage buttonLabels:labels values:values 
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   270
        default:nil onCancel:nil
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   271
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   272
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   273
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   274
        request:'please select'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   275
        label:'select any'
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   276
        image:(WarningBox iconBitmap)
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   277
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   278
        values:#(1 2 3)
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   279
    "
133
claus
parents: 132
diff changeset
   280
!
claus
parents: 132
diff changeset
   281
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   282
request:title label:label image:anImage buttonLabels:labels values:values default:defaultValue
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   283
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   284
     the corresponding values collection. Return nil if cancelled."
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   285
2390
0a72663d8e59 added onCancel: value
Claus Gittinger <cg@exept.de>
parents: 2389
diff changeset
   286
    ^ self
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   287
        request:title label:label image:anImage buttonLabels:labels values:values 
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   288
        default:defaultValue onCancel:nil
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   289
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   290
    "
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   291
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   292
        request:'please select'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   293
        label:'select any'
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   294
        image:(WarningBox iconBitmap)
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   295
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   296
        values:#(1 2 3)
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   297
        default:3
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   298
    "
2390
0a72663d8e59 added onCancel: value
Claus Gittinger <cg@exept.de>
parents: 2389
diff changeset
   299
!
0a72663d8e59 added onCancel: value
Claus Gittinger <cg@exept.de>
parents: 2389
diff changeset
   300
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   301
request:title label:label image:anImage buttonLabels:labels values:values default:defaultValue onCancel:cancelValue
2390
0a72663d8e59 added onCancel: value
Claus Gittinger <cg@exept.de>
parents: 2389
diff changeset
   302
    "create a new optionBox, open it modal and return the value of
2711
e18e9edca978 by default, return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   303
     the corresponding values collection. Return cancelValue if cancelled."
2390
0a72663d8e59 added onCancel: value
Claus Gittinger <cg@exept.de>
parents: 2389
diff changeset
   304
2162
9ef1004f8e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1914
diff changeset
   305
    |box retVal|
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   306
2390
0a72663d8e59 added onCancel: value
Claus Gittinger <cg@exept.de>
parents: 2389
diff changeset
   307
    retVal := cancelValue.
2585
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   308
    box := self
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   309
                forRequest:title 
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   310
                label:label 
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   311
                image:anImage 
2585
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   312
                buttonLabels:labels 
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   313
                values:values 
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   314
                default:defaultValue.
bc342ad3c166 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
   315
2162
9ef1004f8e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1914
diff changeset
   316
    box action:[:n | retVal := values at:n].
3211
54cb5fb7fd2f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3208
diff changeset
   317
    self showAndThenDestroyBox:box.
2389
ca78debb0223 return nil if cancelled
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   318
2162
9ef1004f8e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1914
diff changeset
   319
    ^ retVal
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   320
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   321
    "
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   322
     OptionBox 
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   323
        request:'please select'
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   324
        label:'select any'
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   325
        image:(WarningBox iconBitmap)
2668
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   326
        buttonLabels:#('one' 'two' 'three')
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   327
        values:#(1 2 3)
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   328
        default:3
c8655a5eb411 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
   329
        onCancel:nil
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   330
    "
920
8487cf717bdf destroy the box after use
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   331
2162
9ef1004f8e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1914
diff changeset
   332
    "Modified: / 23.2.2000 / 11:59:32 / cg"
95
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   333
! !
7535cfca9509 *** empty log message ***
claus
parents: 91
diff changeset
   334
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   335
!OptionBox class methodsFor:'obsolete'!
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   336
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   337
forRequest:title label:label form:anImage buttonLabels:labels values:values default:defaultValue
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   338
    "create a new optionBox and return it.
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   339
     Does not open the box."
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   340
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   341
    <resource:#obsolete>
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   342
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   343
    self forRequest:title label:label image:anImage buttonLabels:labels values:values default:defaultValue
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   344
!
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   345
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   346
request:title label:label form:aForm buttonLabels:labels values:values 
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   347
    "create a new optionBox, open it modal and return the value of
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   348
     the corresponding values collection. Return nil, if cancelled."
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   349
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   350
    <resource:#obsolete>
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   351
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   352
    ^ self 
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   353
        request:title label:label image:aForm buttonLabels:labels values:values 
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   354
        default:nil onCancel:nil
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   355
!
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   356
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   357
request:title label:label form:aForm buttonLabels:labels values:values default:defaultValue
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   358
    "create a new optionBox, open it modal and return the value of
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   359
     the corresponding values collection. Return nil if cancelled."
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   360
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   361
    <resource:#obsolete>
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   362
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   363
    ^ self
2991
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   364
        request:title 
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   365
        label:label 
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   366
        image:aForm 
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   367
        buttonLabels:labels 
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   368
        values:values 
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   369
        default:defaultValue 
f8ba5fe56ea6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2969
diff changeset
   370
        onCancel:nil
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   371
!
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   372
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   373
request:title label:label form:aForm buttonLabels:labels values:values default:defaultValue onCancel:cancelValue
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   374
    "create a new optionBox, open it modal and return the value of
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   375
     the corresponding values collection. Return cancelValue if cancelled."
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   376
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   377
    <resource:#obsolete>
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   378
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   379
    ^ self request:title label:label image:aForm buttonLabels:labels values:values default:defaultValue onCancel:cancelValue
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   380
! !
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   381
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   382
!OptionBox methodsFor:'accessing'!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   383
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   384
action:actionBlock
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   385
    "define a single the action for all buttons.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   386
     The action will be evaluated with the button index as argument."
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   387
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   388
    buttons keysAndValuesDo:[:index :button |
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   389
	button action:[
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   390
		       button turnOffWithoutRedraw.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   391
		       self hide.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   392
		       actionBlock value:index
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   393
		      ]
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   394
    ].
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   395
!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   396
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   397
actions:actionBlocks
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   398
    "define the actions"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   399
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   400
    actions := actionBlocks
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   401
!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   402
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   403
buttonTitles:titles actions:actionBlocks
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   404
    "define both button titles and actions"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   405
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   406
    self buttonTitles:titles.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   407
    actions := actionBlocks.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   408
!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   409
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   410
defaultButtonIndex:index
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   411
    "define which button is the default (i.e. return-) button.
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   412
     By default, no returnButton is setup. The argument must be an
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   413
     index 1..nButtons, or nil"
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   414
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   415
    defaultButtonIndex notNil ifTrue:[
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   416
        (buttons at:defaultButtonIndex) isReturnButton:false
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   417
    ].
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   418
    (index notNil and:[index ~~ 0]) ifTrue:[
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   419
        defaultButtonIndex := index.
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   420
        defaultButtonIndex notNil ifTrue:[
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   421
            (buttons at:defaultButtonIndex) isReturnButton:true 
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   422
        ].
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   423
    ]
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   424
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   425
    "Modified: 18.10.1996 / 14:53:36 / cg"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   426
!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   427
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   428
numberOfOptions
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   429
    "return the number of options"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   430
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   431
    ^ buttons size
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   432
!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   433
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   434
numberOfOptions:nOptions
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   435
    "set the number of options - this is a private interface"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   436
3260
274ba11c1789 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3211
diff changeset
   437
    buttons := OrderedCollection withSize:nOptions.
274ba11c1789 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3211
diff changeset
   438
    actions := OrderedCollection withSize:nOptions
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   439
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   440
    "Modified: 18.10.1996 / 14:54:30 / cg"
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   441
! !
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   442
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   443
!OptionBox methodsFor:'accessing-components'!
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   444
3743
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   445
addCheckBox:label on:aValueHolder
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   446
    |box|
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   447
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   448
    box := super addCheckBox:label on:aValueHolder.
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   449
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   450
    box layout:((0.0 @ 1.0 corner:1.0 @ 1.0) asLayout 
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   451
                topOffset:(buttonPanel preferredHeight 
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   452
                          + box preferredHeight
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   453
                          + ViewSpacing ) negated;
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   454
                bottomOffset:(buttonPanel preferredHeight 
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   455
                          + ViewSpacing ) negated).
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   456
    ^ box.
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   457
!
64ed47a0e1d7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3733
diff changeset
   458
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   459
buttons
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   460
    "return the buttons collection"
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   461
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   462
    ^ buttons
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   463
!
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   464
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   465
labelPanel
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   466
    ^ labelPanel
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   467
!
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   468
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   469
verticalPanel
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   470
    ^ verticalPanel
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   471
! !
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   472
2227
58426f7611f2 category changes
Claus Gittinger <cg@exept.de>
parents: 2212
diff changeset
   473
!OptionBox methodsFor:'accessing-look'!
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   474
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   475
buttonTitles:titles
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   476
    "set the button titles"
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   477
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   478
    titles keysAndValuesDo:[:index :aString |
3733
1ff480685a0b button name including button index
fm
parents: 3613
diff changeset
   479
        |b|
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   480
3733
1ff480685a0b button name including button index
fm
parents: 3613
diff changeset
   481
        (b := buttons at:index) label:aString.
1ff480685a0b button name including button index
fm
parents: 3613
diff changeset
   482
        b name: (b name? ''), index printString.
1ff480685a0b button name including button index
fm
parents: 3613
diff changeset
   483
        b resize.
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   484
    ].
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   485
    shown ifTrue:[self resize]
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   486
!
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   487
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   488
form:aFormOrImage
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   489
    "historical leftover - define a form to be displayed left of the title"
2212
7475e8be57bb recompute label origin, if the form changes
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
   490
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   491
    <resource:#obsolete>
2212
7475e8be57bb recompute label origin, if the form changes
Claus Gittinger <cg@exept.de>
parents: 2162
diff changeset
   492
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   493
    self image:aFormOrImage
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   494
!
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   495
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   496
formLabel
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   497
    "return the label-view which displays a bitmap"
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   498
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   499
    ^ formLabel
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   500
!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   501
2476
7fb8b94e650c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2449
diff changeset
   502
image:aFormOrImage
7fb8b94e650c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2449
diff changeset
   503
    "set the image shown in the label-view"
7fb8b94e650c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2449
diff changeset
   504
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   505
    |mm|
2476
7fb8b94e650c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2449
diff changeset
   506
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   507
    mm := ViewSpacing.
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   508
    formLabel label:aFormOrImage.
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   509
    textLabel origin:((mm + formLabel width + mm) @ mm).
2476
7fb8b94e650c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2449
diff changeset
   510
!
7fb8b94e650c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2449
diff changeset
   511
2328
07521b0760e7 access to textLabel
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
   512
textLabel
07521b0760e7 access to textLabel
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
   513
    "return the label-view which displays a message string"
07521b0760e7 access to textLabel
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
   514
07521b0760e7 access to textLabel
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
   515
    ^ textLabel
07521b0760e7 access to textLabel
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
   516
!
07521b0760e7 access to textLabel
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
   517
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   518
title:aString
16
83d4f5c6f76c *** empty log message ***
claus
parents: 7
diff changeset
   519
    "set the boxes title"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   520
16
83d4f5c6f76c *** empty log message ***
claus
parents: 7
diff changeset
   521
    aString ~= textLabel label ifTrue:[
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   522
	textLabel label:aString withoutSeparators.
110
eb59f6e31e84 *** empty log message ***
claus
parents: 97
diff changeset
   523
	textLabel forceResize.
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   524
	shown ifTrue:[self resize]
16
83d4f5c6f76c *** empty log message ***
claus
parents: 7
diff changeset
   525
    ]
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   526
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   527
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   528
title:aString numberOfOptions:nOptions
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   529
    "set the boxes title and number of options"
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   530
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   531
    self title:aString.
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   532
    buttons grow:nOptions.
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   533
    actions grow:nOptions
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   534
! !
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   535
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   536
!OptionBox methodsFor:'events'!
77
565b052f5277 *** empty log message ***
claus
parents: 63
diff changeset
   537
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   538
keyPress:aKey x:x y:y
2700
d6bc43ddc80f Spelling (du Dubl!)
Stefan Vogel <sv@exept.de>
parents: 2669
diff changeset
   539
    "return-key duplicates ok-function if acceptReturnAsOK is true"
77
565b052f5277 *** empty log message ***
claus
parents: 63
diff changeset
   540
490
08e8adfb783c resources
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   541
    <resource: #keyboard (#Return)>
08e8adfb783c resources
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   542
3804
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   543
"/ now done by keyboard processor
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   544
"/    |action|
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   545
"/
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   546
"/    defaultButtonIndex notNil ifTrue:[
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   547
"/        (aKey == #Return) ifTrue:[
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   548
"/            self hide.
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   549
"/            action := actions at:defaultButtonIndex.
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   550
"/            action value
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   551
"/        ]
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   552
"/    ].
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   553
    super keyPress:aKey x:x y:y
490
08e8adfb783c resources
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   554
08e8adfb783c resources
Claus Gittinger <cg@exept.de>
parents: 372
diff changeset
   555
    "Modified: 7.3.1996 / 13:17:36 / cg"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   556
! !
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   557
2523
c10ebb01ab09 category rename
Claus Gittinger <cg@exept.de>
parents: 2476
diff changeset
   558
!OptionBox methodsFor:'initialization'!
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
   559
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   560
initFormBitmap
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   561
    WarnBitmap isNil ifTrue:[
1914
f337a7fd99f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1612
diff changeset
   562
        WarnBitmap := WarningBox iconBitmap.
f337a7fd99f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1612
diff changeset
   563
"/        WarnBitmap := Image fromFile:'bitmaps/Warning.xbm' resolution:100 on:Display 
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   564
    ].
2969
eb87f1aedd6c Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 2898
diff changeset
   565
    formLabel label:WarnBitmap
899
aa84d3d39d94 use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 847
diff changeset
   566
1914
f337a7fd99f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1612
diff changeset
   567
    "Modified: / 25.5.1999 / 16:08:06 / cg"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   568
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   569
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   570
initialize
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   571
    |nButt mm vPanelLayout|
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   572
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   573
    super initialize.
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   574
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   575
    mm := ViewSpacing.
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   576
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   577
    verticalPanel := VerticalPanelView in:self.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   578
    vPanelLayout := LayoutFrame origin:(mm @ mm) corner:(1.0@1.0).
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   579
    vPanelLayout bottomOffset:(font height + (mm * 5)) negated.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   580
    vPanelLayout rightOffset:mm negated.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   581
    verticalPanel geometryLayout:vPanelLayout.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   582
    verticalPanel horizontalLayout:#fit.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   583
    verticalPanel verticalLayout:#bottomFit.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   584
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   585
    labelPanel := HorizontalPanelView in:verticalPanel.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   586
    labelPanel horizontalLayout:#leftSpace.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   587
    labelPanel verticalLayout:#topSpace.
3613
0a1963025199 added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3260
diff changeset
   588
    labelPanel height:(labelPanel preferredHeight + (mm * 4)).
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   589
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   590
    formLabel := Label in:labelPanel.
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
   591
    self initFormBitmap.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   592
    formLabel borderWidth:0.
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   593
"/    formLabel origin:(mm @ mm).
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   594
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   595
    textLabel := Label label:'Select' in:labelPanel.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   596
    textLabel borderWidth:0.
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   597
"/    textLabel origin:((mm + formLabel width + mm) @ mm).
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   598
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   599
    verticalPanel resize.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   600
1612
e7d3bc88a533 oops - two buttonPanels where created (MD's fix).
Claus Gittinger <cg@exept.de>
parents: 953
diff changeset
   601
"/    buttonPanel isNil ifTrue:[
e7d3bc88a533 oops - two buttonPanels where created (MD's fix).
Claus Gittinger <cg@exept.de>
parents: 953
diff changeset
   602
"/        buttonPanel := HorizontalPanelView origin:(0.0 @ 1.0) corner:(1.0 @ 1.0) in:self.
e7d3bc88a533 oops - two buttonPanels where created (MD's fix).
Claus Gittinger <cg@exept.de>
parents: 953
diff changeset
   603
"/    ].
130
claus
parents: 119
diff changeset
   604
    buttonPanel 
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   605
        bottomInset:0 "mm";
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   606
        topInset:(font height + (mm * 4)) negated.
130
claus
parents: 119
diff changeset
   607
    buttonPanel 
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   608
        borderWidth:0; 
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   609
        horizontalLayout:#fitSpace.
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   610
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   611
    nButt := buttons size.
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   612
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
   613
    1 to:nButt do:[:index |
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   614
        |button|
7
15a9291b9bd0 *** empty log message ***
claus
parents: 5
diff changeset
   615
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   616
        button := Button label:'press'.
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   617
        button action:[
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   618
                       (buttons at:index) turnOffWithoutRedraw.
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   619
                       self hide.
3804
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   620
                       (actions at:index) value
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   621
                      ].
133
claus
parents: 132
diff changeset
   622
"/        index == nButt ifTrue:[
claus
parents: 132
diff changeset
   623
"/            button isReturnButton:true
claus
parents: 132
diff changeset
   624
"/        ].
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   625
        buttonPanel addSubView:button.
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   626
        buttons at:index put:button.
91
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   627
    ].
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   628
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   629
    "
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   630
     |box|
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   631
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   632
     box := OptionBox title:'hello' numberOfOptions:4.
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   633
     box open
e8db16616e97 *** empty log message ***
claus
parents: 85
diff changeset
   634
    "
372
2ee5887b00f0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   635
1612
e7d3bc88a533 oops - two buttonPanels where created (MD's fix).
Claus Gittinger <cg@exept.de>
parents: 953
diff changeset
   636
    "Modified: / 27.7.1998 / 19:37:17 / cg"
133
claus
parents: 132
diff changeset
   637
! !
claus
parents: 132
diff changeset
   638
63
f4eaf04d1eaf *** empty log message ***
claus
parents: 59
diff changeset
   639
!OptionBox methodsFor:'queries'!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   640
130
claus
parents: 119
diff changeset
   641
preferredExtent 
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   642
    "return a size to make everything fit into myself"
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   643
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   644
    |w w1 h buttonPanelsPref vPanelsPref mm|
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   645
3757
551f24a728dc changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3743
diff changeset
   646
    "/ If I have an explicit preferredExtent..
551f24a728dc changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3743
diff changeset
   647
    explicitExtent notNil ifTrue:[
551f24a728dc changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3743
diff changeset
   648
        ^ explicitExtent
551f24a728dc changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3743
diff changeset
   649
    ].
799
64f8700489a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   650
3757
551f24a728dc changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3743
diff changeset
   651
    "/ If I have a cached preferredExtent value..
713
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 655
diff changeset
   652
    preferredExtent notNil ifTrue:[
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 655
diff changeset
   653
        ^ preferredExtent
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 655
diff changeset
   654
    ].
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 655
diff changeset
   655
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   656
    mm := ViewSpacing.
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   657
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   658
    vPanelsPref := verticalPanel preferredExtent.
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   659
    w1 := (mm * 3) + formLabel width + textLabel width.
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   660
    buttonPanelsPref := buttonPanel preferredExtent.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   661
    w := w1 max:buttonPanelsPref x.
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   662
    w := w max:vPanelsPref x.
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 21
diff changeset
   663
3208
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   664
    h := mm
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   665
         + vPanelsPref y
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   666
         + mm
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   667
         + buttonPanelsPref y
7b4c5a215af9 use panels, to allow for hooks to add more widgets.
Claus Gittinger <cg@exept.de>
parents: 3201
diff changeset
   668
         + mm.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   669
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   670
    ^ w @ h
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   671
799
64f8700489a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   672
    "Modified: 19.7.1996 / 20:45:11 / cg"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   673
! !
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   674
847
0d760cfc9a8c commentary
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   675
!OptionBox class methodsFor:'documentation'!
243
5c411425097d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 197
diff changeset
   676
5c411425097d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 197
diff changeset
   677
version
3804
8a4b07e9ee4e no need to care for RETURN-keyPress; its already done by the keyboard processor
Claus Gittinger <cg@exept.de>
parents: 3757
diff changeset
   678
    ^ '$Header: /cvs/stx/stx/libwidg/OptionBox.st,v 1.68 2008-12-17 18:56:21 cg Exp $'
243
5c411425097d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 197
diff changeset
   679
! !