TabListEditor.st
author Stefan Vogel <sv@exept.de>
Mon, 25 Feb 2008 17:47:27 +0100
changeset 2281 e6cc565bff35
parent 1972 c1b9c7d9e8f4
child 2346 d6fdeda319de
permissions -rw-r--r--
Do not use obsolete methods
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     1
"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     3
              All Rights Reserved
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     4
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     5
 This software is furnished under a license and may be used
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     7
 inclusion of the above copyright notice. This software may not
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
cc3413fc1afb initial checkin
tz
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    10
 hereby transferred.
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    11
"
1431
cdcadf6df14d remove accelerators in menu
ca
parents: 1375
diff changeset
    12
"{ Package: 'stx:libtool2' }"
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
    13
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    14
ResourceSpecEditor subclass:#TabListEditor
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
    15
	instanceVariableNames:'listOfTabs'
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    16
	classVariableNames:''
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    17
	poolDictionaries:''
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    18
	category:'Interface-UIPainter'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    19
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    20
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    21
!TabListEditor class methodsFor:'documentation'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    22
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    23
copyright
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    24
"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    25
 COPYRIGHT (c) 1997 by eXept Software AG
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    26
              All Rights Reserved
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    27
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    28
 This software is furnished under a license and may be used
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    30
 inclusion of the above copyright notice. This software may not
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    33
 hereby transferred.
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    34
"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    35
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    36
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    37
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    38
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    39
documentation
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    40
"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    41
    The TabListEditor allows you to create, modify or just inspect
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    42
    tab lists for tab headers or note books.
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    43
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    44
    [start with:]
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    45
        TabItemEditor open
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    46
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    47
    [see also:]
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    48
        TabItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    49
        TabView
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    50
        NoteBookView
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    51
        UIPainter
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    52
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    53
    [author:]
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    54
        Claus Atzkern, eXept Software AG
749
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
    55
        Thomas Zwick, eXept Software AG
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    56
"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    57
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    58
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    59
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    60
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    61
!TabListEditor class methodsFor:'instance creation'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    62
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    63
openModalOnTabList: aTabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    64
    "Open a TabListEditor modal on aTabList"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    65
    "self openModalOnTabList: (Array with: (TabItem label: 'Tab Item 1'))"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    66
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    67
    ^self new openModalOnTabList: aTabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    68
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    69
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    70
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    71
!TabListEditor class methodsFor:'accessing'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    72
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    73
resourceType
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    74
    "get the type of resource of the method generated by the TabListEditor"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    75
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    76
    ^#tabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    77
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    78
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    79
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    80
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    81
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    82
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    83
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    84
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    85
!TabListEditor class methodsFor:'aspects'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    86
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    87
aspects
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    88
    "get the aspects for the attributes of the tab list components"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    89
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    90
    ^#(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    91
        label
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    92
        translateLabel
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    93
        labelForegroundColor
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    94
        enabled
cc3413fc1afb initial checkin
tz
parents:
diff changeset
    95
        editAgument
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
    96
        accessCharacterPosition
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
    97
        shortcutKey
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
    98
        activeHelpKey
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
    99
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   100
        majorKey
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   101
        minorKey
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   102
        createNewBuilder
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   103
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   104
        hasHorizontalScrollBar
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   105
        hasVerticalScrollBar
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   106
        miniScrollerHorizontal
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   107
        miniScrollerVertical
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   108
    )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   109
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   110
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   111
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   112
!TabListEditor class methodsFor:'help specs'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   113
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   114
helpSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   115
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   116
     by the UIHelpTool of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   117
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   118
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   119
     the UIHelpTool may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   120
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   121
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   122
     UIHelpTool openOnClass:TabListEditor    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   123
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   124
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   125
    <resource: #help>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   126
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   127
    ^ super helpSpec addPairsFrom:#(
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   128
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   129
#addTabItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   130
'Adds a new tab item.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   131
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   132
#autoHideScrollBars
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   133
'ScrollBars should be made invisible dynamically, if there is nothing to scroll.'
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   134
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   135
#basicTab
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   136
'Define the basic attributes.'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   137
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   138
#canSelect
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   139
'Turns on/off whether the tab item is selectable.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   140
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   141
#canvasTab
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   142
'Define an application, which is started if the tab is pressed the first time.'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   143
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   144
#color
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   145
'Defines the foreground color of the label. The default color derives from the style sheet.'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   146
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   147
#createNewBuilder
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   148
'Create a new builder for the application; the application use its own aspects.'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   149
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   150
#detailTab
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   151
'Define the optional/specific attributes.'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   152
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   153
#detailsAccelerator
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   154
'Key to be pressed to select the tab item from the keyboard (accelerator key).'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   155
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   156
#detailsAccessCharaterPosition
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   157
'Index of the access character position of the textual label (optional).'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   158
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   159
#detailsArgument
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   160
'An optional argument stored with the tab item.'
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   161
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   162
#fileCreateAspectMethod
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   163
'Creates the aspect method for the tab list.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   164
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   165
#fileLoad
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   166
'Opens a dialog for selecting and loading a tab list spec from a class.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   167
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   168
#fileNew
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   169
'Creates a new tab list.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   170
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   171
#fileSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   172
'Saves current tab list.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   173
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   174
#horizontalMiniScroller
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   175
'Use a mini-scroller as horizontal scrollbar.'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   176
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   177
#horizontalScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   178
'Enable horizontal scrollability.'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   179
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   180
#label
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   181
'Label of the tab item.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   182
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   183
#labelDerivesFromApplication
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   184
'If turned on, the label''s string is a selector returning a string or bitmap image, which is used as logo in the tab item.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   185
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   186
#majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   187
'Name of the class to be started (application if empty); or app-selector returning application instance.'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   188
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   189
#minorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   190
'Message sent to the class which returns the window specification (default: #windowSpec).'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   191
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   192
#testPreview
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   193
'Turns on/off preview of the tab list.'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   194
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   195
#verticalMiniScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   196
'Use a mini-scroller as vertical scrollbar.'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   197
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   198
#verticalScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   199
'Enable vertical scrollability.'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   200
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   201
)
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   202
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   203
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   204
!TabListEditor class methodsFor:'image specs'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   205
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   206
newTabItemIcon
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   207
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   208
     by the ImageEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   209
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   210
    "Do not manually edit this!!!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   211
     the ImageEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   212
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   213
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   214
     ImageEditor openOnClass:self andSelector:#newTabItemIcon
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   215
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   216
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   217
    <resource: #image>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   218
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   219
    ^Icon
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   220
        constantNamed:#'TabListEditor newTabItemIcon'
1431
cdcadf6df14d remove accelerators in menu
ca
parents: 1375
diff changeset
   221
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'U@@@@EUPUEUUVEUPUF**+EUPUF**+EUPUF**+EUP@F**+@@@EV***UV@F*****+@F KNC*+NF(("H*+@F((BC +EF(("H*+@F(("C*+MF*****+@F"@ H*K@F"""(LK@F"" ("K@F"""(*K@F"" H*K@F*****+HK??????@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G?<@G?<@G?<@G?<@G?<@???<???<???<???????<???<???<???<???????=???<???????<???????<???<???=') ; yourself); yourself]
cdcadf6df14d remove accelerators in menu
ca
parents: 1375
diff changeset
   222
! !
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   223
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   224
!TabListEditor class methodsFor:'interface specs'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   225
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   226
basicSpec
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   227
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   228
     by the UIPainter of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   229
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   230
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   231
     the UIPainter may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   232
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   233
    "
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   234
     UIPainter new openOnClass:TabListEditor andSelector:#basicSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   235
     TabListEditor new openInterface:#basicSpec
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   236
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   237
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   238
    <resource: #canvas>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   239
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   240
    ^ 
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   241
     #(FullSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   242
        name: basicSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   243
        window: 
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   244
       (WindowSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   245
          label: 'Basic'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   246
          name: 'Basic'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   247
          min: (Point 10 10)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   248
          max: (Point 1280 1024)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   249
          bounds: (Rectangle 0 0 429 210)
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   250
        )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   251
        component: 
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   252
       (SpecCollection
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   253
          collection: (
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   254
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   255
              label: 'Label:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   256
              name: 'labelLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   257
              layout: (AlignmentOrigin 98 0 26 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   258
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   259
              resizeForLabel: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   260
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   261
           (InputFieldSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   262
              name: 'label'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   263
              layout: (LayoutFrame 100 0 15 0 -5 1.0 37 0)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   264
              activeHelpKey: label
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   265
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   266
              model: label
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   267
              group: inputGroup
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   268
              immediateAccept: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   269
              acceptOnReturn: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   270
              acceptOnTab: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   271
              acceptOnLostFocus: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   272
              acceptChannel: acceptChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   273
              modifiedChannel: modifiedChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   274
              acceptOnPointerLeave: false
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
   275
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   276
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   277
              label: 'Accelerator:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   278
              name: 'shortcutKeyLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   279
              layout: (AlignmentOrigin 98 0 55 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   280
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   281
              resizeForLabel: true
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
   282
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   283
           (InputFieldSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   284
              name: 'shortcutKey'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   285
              layout: (LayoutFrame 100 0 44 0 -5 1.0 66 0)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   286
              activeHelpKey: detailsAccelerator
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   287
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   288
              model: shortcutKey
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   289
              group: inputGroup
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   290
              type: symbolOrNil
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   291
              immediateAccept: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   292
              acceptOnReturn: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   293
              acceptOnTab: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   294
              acceptOnLostFocus: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   295
              acceptChannel: acceptChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   296
              modifiedChannel: modifiedChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   297
              acceptOnPointerLeave: false
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
   298
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   299
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   300
              label: 'Argument:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   301
              name: 'editAgumentLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   302
              layout: (AlignmentOrigin 98 0 84 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   303
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   304
              resizeForLabel: true
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
   305
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   306
           (InputFieldSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   307
              name: 'editAgument'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   308
              layout: (LayoutFrame 100 0 73 0 -5 1.0 95 0)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   309
              activeHelpKey: detailsArgument
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   310
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   311
              model: editAgument
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   312
              group: inputGroup
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   313
              immediateAccept: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   314
              acceptOnReturn: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   315
              acceptOnTab: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   316
              acceptOnLostFocus: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   317
              acceptChannel: acceptChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   318
              modifiedChannel: modifiedChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   319
              acceptOnPointerLeave: false
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
   320
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   321
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   322
              label: 'Access Character Position:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   323
              name: 'accessCharacterPositionLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   324
              layout: (AlignmentOrigin 275 0 113 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   325
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   326
              resizeForLabel: true
1325
a7c38b60f2fb support accelerator and accessCharacter
ca
parents: 1245
diff changeset
   327
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   328
           (InputFieldSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   329
              name: 'accessCharacterPosition'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   330
              layout: (LayoutFrame 278 0 103 0 -5 1.0 125 0)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   331
              activeHelpKey: detailsAccessCharaterPosition
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   332
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   333
              model: accessCharacterPosition
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   334
              group: inputGroup
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   335
              type: number
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   336
              immediateAccept: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   337
              acceptOnReturn: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   338
              acceptOnTab: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   339
              acceptOnLostFocus: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   340
              acceptChannel: acceptChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   341
              modifiedChannel: modifiedChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   342
              acceptOnPointerLeave: false
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   343
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   344
           (CheckBoxSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   345
              label: 'Application Provides Translation '
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   346
              name: 'translateLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   347
              layout: (Point 96 135)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   348
              activeHelpKey: labelDerivesFromApplication
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   349
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   350
              model: translateLabel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   351
              translateLabel: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   352
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   353
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   354
              label: 'Help Key:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   355
              name: 'activeHelp'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   356
              layout: (AlignmentOrigin 98 0 190 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   357
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   358
              resizeForLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   359
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   360
           (InputFieldSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   361
              name: 'activeHelpKey'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   362
              layout: (LayoutFrame 100 0 179 0 -5 1.0 201 0)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   363
              activeHelpKey: label
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   364
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   365
              model: activeHelpKey
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   366
              group: inputGroup
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   367
              type: symbolOrNil
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   368
              immediateAccept: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   369
              acceptOnReturn: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   370
              acceptOnTab: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   371
              acceptOnLostFocus: false
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   372
              acceptChannel: acceptChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   373
              modifiedChannel: modifiedChannel
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   374
              acceptOnPointerLeave: false
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   375
            )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   376
           )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   377
         
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   378
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   379
      )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   380
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   381
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   382
canvasSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   383
    "This resource specification was automatically generated
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   384
     by the UIPainter of ST/X."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   385
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   386
    "Do not manually edit this!! If it is corrupted,
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   387
     the UIPainter may not be able to read the specification."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   388
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   389
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   390
     UIPainter new openOnClass:TabListEditor andSelector:#canvasSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   391
     TabListEditor new openInterface:#canvasSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   392
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   393
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   394
    <resource: #canvas>
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   395
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   396
    ^ 
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   397
     #(FullSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   398
        name: canvasSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   399
        window: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   400
       (WindowSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   401
          label: 'Canvas'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   402
          name: 'Canvas'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   403
          min: (Point 10 10)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   404
          max: (Point 1280 1024)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   405
          bounds: (Rectangle 0 0 383 220)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   406
        )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   407
        component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   408
       (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   409
          collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   410
           (LabelSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   411
              label: 'Class Name / Major Key:'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   412
              name: 'majorKeyLabel'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   413
              layout: (AlignmentOrigin 160 0 26 0 1 0.5)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   414
              activeHelpKey: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   415
              translateLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   416
              resizeForLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   417
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   418
           (InputFieldSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   419
              name: 'majorKeyField'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   420
              layout: (LayoutFrame 161 0 15 0 -5 1.0 37 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   421
              activeHelpKey: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   422
              tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   423
              model: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   424
              group: inputGroup
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   425
              type: symbolOrNil
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   426
              immediateAccept: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   427
              acceptOnReturn: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   428
              acceptOnTab: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   429
              acceptOnLostFocus: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   430
              modifiedChannel: modifiedChannel
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   431
              acceptOnPointerLeave: false
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   432
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   433
           (LabelSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   434
              label: 'Selector / Minor Key:'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   435
              name: 'minorKeyLabel'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   436
              layout: (AlignmentOrigin 160 0 55 0 1 0.5)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   437
              translateLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   438
              resizeForLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   439
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   440
           (InputFieldSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   441
              name: 'minorKeyField'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   442
              layout: (LayoutFrame 161 0 44 0 -5 1.0 66 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   443
              activeHelpKey: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   444
              tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   445
              model: minorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   446
              group: inputGroup
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   447
              type: symbolOrNil
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   448
              immediateAccept: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   449
              acceptOnReturn: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   450
              acceptOnTab: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   451
              acceptOnLostFocus: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   452
              modifiedChannel: modifiedChannel
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   453
              acceptOnPointerLeave: false
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   454
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   455
           (FramedBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   456
              label: 'Scroll Bars'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   457
              name: 'FramedBox'
1860
ec3a07f0b145 *** empty log message ***
ca
parents: 1856
diff changeset
   458
              layout: (LayoutFrame 0 0.0 119 0.0 0 1.0 218 0)
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   459
              labelPosition: topLeft
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   460
              translateLabel: true
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   461
              component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   462
             (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   463
                collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   464
                 (HorizontalPanelViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   465
                    name: 'HorizontalPanel1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   466
                    layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   467
                    horizontalLayout: fitSpace
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   468
                    verticalLayout: fitSpace
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   469
                    horizontalSpace: 3
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   470
                    verticalSpace: 3
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   471
                    component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   472
                   (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   473
                      collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   474
                       (ViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   475
                          name: 'Box1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   476
                          component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   477
                         (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   478
                            collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   479
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   480
                                label: 'Vertical'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   481
                                name: 'verticalScrollBarCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   482
                                layout: (LayoutFrame 0 0.0 3 0 0 1.0 27 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   483
                                activeHelpKey: verticalScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   484
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   485
                                model: hasVerticalScrollBar
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   486
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   487
                              )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   488
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   489
                                label: 'Mini'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   490
                                name: 'miniScrollerVerticalCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   491
                                layout: (LayoutFrame 0 0.0 32 0 0 1.0 56 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   492
                                activeHelpKey: verticalMiniScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   493
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   494
                                model: miniScrollerVertical
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   495
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   496
                              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   497
                             )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   498
                           
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   499
                          )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   500
                          useDefaultExtent: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   501
                        )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   502
                       (ViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   503
                          name: 'Box2'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   504
                          component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   505
                         (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   506
                            collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   507
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   508
                                label: 'Horizontal'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   509
                                name: 'horizontalScrollBarCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   510
                                layout: (LayoutFrame 0 0.0 3 0 0 1.0 27 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   511
                                activeHelpKey: horizontalScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   512
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   513
                                model: hasHorizontalScrollBar
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   514
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   515
                              )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   516
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   517
                                label: 'Mini'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   518
                                name: 'miniScrollerHorizontalCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   519
                                layout: (LayoutFrame 0 0.0 32 0 0 1.0 56 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   520
                                activeHelpKey: horizontalMiniScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   521
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   522
                                model: miniScrollerHorizontal
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   523
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   524
                              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   525
                             )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   526
                           
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   527
                          )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   528
                          extent: (Point 113 61)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   529
                        )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   530
                       (ViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   531
                          name: 'Box3'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   532
                          component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   533
                         (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   534
                            collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   535
                             (LabelSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   536
                                label: 'Auto Hide:'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   537
                                name: 'Label1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   538
                                layout: (LayoutFrame 0 0.0 6 0 0 1.0 23 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   539
                                translateLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   540
                                resizeForLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   541
                                adjust: left
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   542
                              )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   543
                             (PopUpListSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   544
                                label: 'Default'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   545
                                name: 'PopUpList1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   546
                                layout: (LayoutFrame 0 0.0 32 0 0 1.0 54 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   547
                                activeHelpKey: autoHideScrollBars
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   548
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   549
                                model: autoHideScrollBars
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   550
                                menu: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   551
                               (Default
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   552
                                  On Off
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   553
                                )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   554
                                useIndex: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   555
                              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   556
                             )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   557
                           
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   558
                          )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   559
                          extent: (Point 113 61)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   560
                        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   561
                       )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   562
                     
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   563
                    )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   564
                  )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   565
                 )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   566
               
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   567
              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   568
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   569
           (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   570
              label: 'Create New Builder'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   571
              name: 'createNewBuilder'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   572
              layout: (Point 161 75)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   573
              activeHelpKey: createNewBuilder
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   574
              model: createNewBuilder
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   575
              translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   576
            )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   577
           )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   578
         
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   579
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   580
      )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   581
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   582
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   583
detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   584
    "This resource specification was automatically generated
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   585
     by the UIPainter of ST/X."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   586
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   587
    "Do not manually edit this!! If it is corrupted,
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   588
     the UIPainter may not be able to read the specification."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   589
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   590
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   591
     UIPainter new openOnClass:TabListEditor andSelector:#detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   592
     TabListEditor new openInterface:#detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   593
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   594
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   595
    <resource: #canvas>
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   596
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   597
    ^ 
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   598
     #(FullSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   599
        name: detailSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   600
        window: 
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   601
       (WindowSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   602
          label: 'Details'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   603
          name: 'Details'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   604
          min: (Point 10 10)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   605
          max: (Point 1280 1024)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   606
          bounds: (Rectangle 0 0 358 107)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   607
        )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   608
        component: 
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   609
       (SpecCollection
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   610
          collection: (
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   611
           (CheckBoxSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   612
              label: 'Can Select'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   613
              name: 'enabled'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   614
              layout: (Point 46 14)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   615
              activeHelpKey: canSelect
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   616
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   617
              model: enabled
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   618
              translateLabel: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   619
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   620
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   621
              label: 'Color:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   622
              name: 'ForegroundLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   623
              layout: (AlignmentOrigin 46 0 62 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   624
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   625
              resizeForLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   626
              adjust: right
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   627
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   628
           (ColorMenuSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   629
              name: 'ForegroundColorMenu'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   630
              layout: (LayoutFrame 48 0 50 0 -10 1.0 72 0)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   631
              activeHelpKey: color
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   632
              model: labelForegroundColor
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   633
              labelsAreColored: false
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   634
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   635
           )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   636
         
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   637
        )
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   638
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   639
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   640
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   641
windowSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   642
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   643
     by the UIPainter of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   644
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   645
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   646
     the UIPainter may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   647
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   648
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   649
     UIPainter new openOnClass:TabListEditor andSelector:#windowSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   650
     TabListEditor new openInterface:#windowSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   651
     TabListEditor open
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   652
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   653
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   654
    <resource: #canvas>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   655
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   656
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   657
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   658
        #name: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   659
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   660
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   661
          #label: 'Tab List Editor'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   662
          #name: 'Tab List Editor'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   663
          #min: #(#Point 440 280)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   664
          #max: #(#Point 1152 900)
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   665
          #bounds: #(#Rectangle 596 292 1132 661)
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   666
          #menu: #menu
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   667
        )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   668
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   669
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   670
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   671
           #(#MenuPanelSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   672
              #name: 'menuToolbarView'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   673
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 34 0)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   674
              #menu: #menuToolbar
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   675
              #showSeparatingLines: true
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   676
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   677
           #(#VariableHorizontalPanelSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   678
              #name: 'VariablePanel'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   679
              #layout: #(#LayoutFrame 0 0.0 36 0.0 0 1.0 -26 1.0)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   680
              #component: 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   681
             #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   682
                #collection: #(
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   683
                 #(#SelectionInListModelViewSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   684
                    #attributes: 
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   685
                   #(#vpext
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   686
                      
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   687
                     #(#Array
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   688
                        #Array #Array
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   689
                        #Array #Array
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   690
                        #Array #Point
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   691
                        0.264414 1.0
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   692
                      )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   693
                    )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   694
                    #name: 'ListOfLabels'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   695
                    #tabable: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   696
                    #model: #selectionHolder
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   697
                    #menu: #menuEdit
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   698
                    #hasHorizontalScrollBar: true
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   699
                    #hasVerticalScrollBar: true
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   700
                    #miniScrollerHorizontal: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   701
                    #listModel: #listOfTabs
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   702
                    #highlightMode: #line
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   703
                    #selectConditionSelector: #askForItemModification
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   704
                  )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   705
                 #(#ViewSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   706
                    #name: 'SpecView'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   707
                    #level: -1
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   708
                    #component: 
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   709
                   #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   710
                      #collection: #(
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   711
                       #(#NoteBookViewSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   712
                          #name: 'NoteBook'
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   713
                          #layout: #(#LayoutFrame 1 0.0 0 0.0 0 1.0 -30 1.0)
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   714
                          #enableChannel: #hasSelectionHolder
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   715
                          #tabable: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   716
                          #model: #noteBookModel
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   717
                          #menu: #noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   718
                          #useIndex: true
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   719
                          #keepCanvasAlive: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   720
                        )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   721
                       #(#UISubSpecification
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   722
                          #name: 'subSpec'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   723
                          #layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   724
                          #majorKey: #ToolApplicationModel
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   725
                          #minorKey: #windowSpecForCommit
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   726
                        )
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   727
                       #(#NoteBookViewSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   728
                          #name: 'TestNoteBook'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   729
                          #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   730
                          #visibilityChannel: #testMode
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   731
                          #tabable: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   732
                          #menu: #testItemList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   733
                          #useIndex: true
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   734
                        )
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   735
                       )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   736
                     
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   737
                    )
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   738
                  )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   739
                 )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   740
               
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   741
              )
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   742
              #handles: #(#Any 0.24053 1.0)
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   743
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   744
           #(#UISubSpecification
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   745
              #name: 'infoBarSubSpec'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   746
              #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   747
              #majorKey: #ToolApplicationModel
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   748
              #minorKey: #windowSpecForInfoBar
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   749
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   750
           )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   751
         
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   752
        )
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   753
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   754
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   755
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   756
!TabListEditor class methodsFor:'list specs'!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   757
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   758
noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   759
    "This resource specification was automatically generated
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   760
     by the TabListEditor of ST/X."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   761
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   762
    "Do not manually edit this!! If it is corrupted,
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   763
     the TabListEditor may not be able to read the specification."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   764
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   765
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   766
     TabListEditor new openOnClass:TabListEditor andSelector:#noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   767
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   768
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   769
    <resource: #tabList>
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   770
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   771
    ^     #(
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   772
       #(#TabItem
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   773
          #label: 'Basic'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   774
          #activeHelpKey: #basicTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   775
          #minorKey: #basicSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   776
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   777
       #(#TabItem
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   778
          #label: 'Details'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   779
          #activeHelpKey: #detailTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   780
          #minorKey: #detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   781
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   782
       #(#TabItem
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   783
          #label: 'Canvas'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   784
          #activeHelpKey: #canvasTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   785
          #minorKey: #canvasSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   786
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   787
       )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   788
     
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   789
      collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ]
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   790
! !
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   791
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   792
!TabListEditor class methodsFor:'menu specs'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   793
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   794
menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   795
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   796
     by the MenuEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   797
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   798
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   799
     the MenuEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   800
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   801
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   802
     MenuEditor new openOnClass:TabListEditor andSelector:#menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   803
     (Menu new fromLiteralArrayEncoding:(TabListEditor menu)) startUp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   804
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   805
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   806
    <resource: #menu>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   807
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   808
    ^
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   809
     
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   810
       #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   811
          
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   812
           #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   813
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   814
                #label: 'About'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   815
                #activeHelpKey: #about
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   816
                #labelImage: #(#ResourceRetriever nil #menuIcon)
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   817
                #submenuChannel: #menuAbout
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   818
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   819
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   820
                #label: 'File'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   821
                #activeHelpKey: #file
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   822
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   823
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   824
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   825
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   826
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   827
                          #label: 'New'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   828
                          #value: #doNew
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   829
                          #activeHelpKey: #fileNew
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   830
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   831
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   832
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   833
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   834
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   835
                          #label: 'Load...'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   836
                          #translateLabel: true
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   837
                          #value: #doLoad
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   838
                          #activeHelpKey: #fileLoad
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   839
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   840
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   841
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   842
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   843
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   844
                          #label: 'Save'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   845
                          #value: #doSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   846
                          #activeHelpKey: #fileSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   847
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   848
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   849
                          #label: 'Save As...'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   850
                          #value: #doSaveAs
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   851
                          #activeHelpKey: #fileSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   852
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   853
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   854
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   855
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   856
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   857
                          #label: 'Browse Class'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   858
                          #value: #doBrowseClass
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   859
                          #activeHelpKey: #fileBrowseClass
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   860
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   861
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   862
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   863
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   864
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   865
                          #label: 'Exit'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   866
                          #value: #closeRequest
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   867
                          #activeHelpKey: #fileExit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   868
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   869
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   870
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   871
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   872
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   873
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   874
                #label: 'Edit'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   875
                #activeHelpKey: #edit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   876
                #submenuChannel: #menuEdit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   877
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   878
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   879
                #label: 'Add'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   880
                #activeHelpKey: #add
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   881
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   882
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   883
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   884
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   885
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   886
                          #label: 'Tab Item'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   887
                          #value: #doCreate
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   888
                          #activeHelpKey: #addTabItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   889
                          #labelImage: #(#ResourceRetriever nil #newTabItemIcon 'Tab Item')
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   890
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   891
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   892
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   893
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   894
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   895
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   896
                #label: 'Generate'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   897
                #activeHelpKey: #add
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   898
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   899
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   900
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   901
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   902
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   903
                          #label: 'Aspect Method'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   904
                          #value: #doGenerateAspectMethod
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   905
                          #activeHelpKey: #fileCreateAspectMethod
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   906
                          #enabled: #hasClassAndSelector
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   907
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   908
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   909
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   910
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   911
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   912
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   913
                #label: 'Test'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   914
                #activeHelpKey: #test
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   915
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   916
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   917
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   918
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   919
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   920
                          #label: 'Preview'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   921
                          #activeHelpKey: #testPreview
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   922
                          #enabled: #canToggleTestMode
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   923
                          #indication: #testMode
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   924
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   925
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   926
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   927
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   928
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   929
             #(#MenuItem
749
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   930
                #label: 'History'
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   931
                #activeHelpKey: #history
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   932
                #submenuChannel: #menuHistory
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   933
            )
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   934
             #(#MenuItem
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   935
                #label: 'Help'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   936
                #startGroup: #right
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   937
                #activeHelpKey: #help
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   938
                #submenuChannel: #menuHelp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   939
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   940
          ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   941
          nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   942
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   943
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   944
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   945
menuEdit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   946
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   947
     by the MenuEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   948
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   949
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   950
     the MenuEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   951
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   952
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   953
     MenuEditor new openOnClass:TabListEditor andSelector:#menuEdit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   954
     (Menu new fromLiteralArrayEncoding:(TabListEditor menuEdit)) startUp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   955
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   956
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   957
    <resource: #menu>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   958
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   959
    ^ 
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   960
     #(#Menu
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   961
        #(
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   962
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   963
            #label: 'Cut'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   964
            #value: #doCut
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   965
            #activeHelpKey: #editCut
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   966
            #enabled: #hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   967
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   968
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   969
            #label: 'Copy'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   970
            #value: #doCopy
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   971
            #activeHelpKey: #editCopy
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   972
            #enabled: #hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   973
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   974
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   975
            #label: 'Paste'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   976
            #value: #doPaste
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   977
            #activeHelpKey: #editPaste
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   978
            #enabled: #valueOfCanPaste
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   979
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   980
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   981
            #label: 'Delete'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   982
            #value: #doDelete
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   983
            #activeHelpKey: #editPaste
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   984
            #enabled: #hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   985
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   986
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   987
            #label: '-'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   988
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   989
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   990
            #label: 'Move Up'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   991
            #value: #doMoveTabUpOrDown:
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   992
            #activeHelpKey: #editMoveUp
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   993
            #enabled: #canMoveTabItemUpOrDown
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   994
            #argument: #up
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   995
            #labelImage: #(#ResourceRetriever #Icon #upIcon 'Move Up')
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   996
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   997
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   998
            #label: 'Move Down'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   999
            #value: #doMoveTabUpOrDown:
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1000
            #activeHelpKey: #editMoveDown
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1001
            #enabled: #canMoveTabItemUpOrDown
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1002
            #argument: #down
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1003
            #labelImage: #(#ResourceRetriever #Icon #downIcon 'Move Down')
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1004
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1005
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1006
            #label: '-'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1007
            #isVisible: #hiddenAccelerator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1008
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1009
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1010
            #label: 'Accept'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1011
            #translateLabel: true
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1012
            #isVisible: #hiddenAccelerator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1013
            #value: #accept
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1014
            #enabled: #valueOfEnablingCommitButtons
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1015
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1016
         )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1017
        nil
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1018
        nil
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1019
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1020
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1021
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1022
menuToolbar
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1023
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1024
     by the MenuEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1025
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1026
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1027
     the MenuEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1028
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1029
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1030
     MenuEditor new openOnClass:TabListEditor andSelector:#menuToolbar
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1031
     (Menu new fromLiteralArrayEncoding:(TabListEditor menuToolbar)) startUp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1032
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1033
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1034
    <resource: #menu>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1035
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1036
    ^ 
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1037
     #(Menu
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1038
        (
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1039
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1040
            activeHelpKey: fileNew
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1041
            label: 'New'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1042
            itemValue: doNew
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1043
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1044
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1045
            labelImage: (ResourceRetriever ToolbarIconLibrary new22x22Icon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1046
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1047
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1048
            activeHelpKey: fileLoad
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1049
            label: 'Load'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1050
            itemValue: doLoad
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1051
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1052
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1053
            labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethodIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1054
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1055
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1056
            activeHelpKey: fileSave
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1057
            label: 'Save'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1058
            itemValue: doSave
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1059
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1060
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1061
            labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethodIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1062
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1063
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1064
            label: '-'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1065
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1066
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1067
            activeHelpKey: editCut
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1068
            enabled: hasSelectionHolder
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1069
            label: 'Cut'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1070
            itemValue: doCut
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1071
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1072
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1073
            labelImage: (ResourceRetriever ToolbarIconLibrary cutWidgetIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1074
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1075
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1076
            activeHelpKey: editCopy
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1077
            enabled: hasSelectionHolder
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1078
            label: 'Copy'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1079
            itemValue: doCopy
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1080
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1081
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1082
            labelImage: (ResourceRetriever ToolbarIconLibrary copyWidgetIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1083
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1084
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1085
            activeHelpKey: editPaste
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1086
            enabled: valueOfCanPaste
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1087
            label: 'Paste'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1088
            itemValue: doPaste
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1089
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1090
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1091
            labelImage: (ResourceRetriever ToolbarIconLibrary pasteWidgetIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1092
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1093
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1094
            activeHelpKey: editDelete
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1095
            enabled: hasSelectionHolder
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1096
            label: 'Delete'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1097
            itemValue: doDelete
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1098
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1099
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1100
            isVisible: false
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1101
            labelImage: (ResourceRetriever ToolbarIconLibrary delete22x22Icon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1102
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1103
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1104
            label: '-'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1105
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1106
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1107
            activeHelpKey: addTabItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1108
            label: 'Add Tab Item'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1109
            itemValue: doCreate
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1110
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1111
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1112
            labelImage: (ResourceRetriever nil newTabItemIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1113
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1114
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1115
            label: ''
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1116
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1117
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1118
            activeHelpKey: editMoveUp
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1119
            enabled: canMoveTabItemUpOrDown
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1120
            label: 'Move Tab Up'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1121
            itemValue: doMoveTabUpOrDown:
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1122
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1123
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1124
            startGroup: right
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1125
            labelImage: (ResourceRetriever XPToolbarIconLibrary up22x22Icon)
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1126
            argument: up
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1127
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1128
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1129
            activeHelpKey: editMoveDown
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1130
            enabled: canMoveTabItemUpOrDown
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1131
            label: 'Move Tab Down'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1132
            itemValue: doMoveTabUpOrDown:
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1133
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1134
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1135
            startGroup: right
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1136
            labelImage: (ResourceRetriever XPToolbarIconLibrary down22x22Icon)
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1137
            argument: down
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1138
          )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1139
         )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1140
        nil
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1141
        nil
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1142
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1143
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1144
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1145
!TabListEditor methodsFor:'aspects'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1146
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1147
autoHideScrollBars
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1148
    |holder|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1149
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1150
    (holder := builder bindingAt:#autoHideScrollBars) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1151
        builder aspectAt:#autoHideScrollBars put:(holder := 1 asValue).
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1152
        holder addDependent: self
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1153
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1154
    ^ holder.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1155
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1156
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1157
canMoveTabItemUpOrDown
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1158
    ^ builder booleanValueAspectFor:#canMoveTabItemUpOrDown
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1159
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1160
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1161
hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1162
    ^ builder booleanValueAspectFor:#hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1163
!
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1164
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1165
hiddenAccelerator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1166
    "used to set menu entries with an accelerator not visible to the operator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1167
    "
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1168
    ^ false
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1169
!
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1170
1326
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1171
inputGroup
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1172
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1173
    |holder|
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1174
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1175
    (holder := builder bindingAt:#inputGroup) isNil ifTrue:[
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1176
        builder aspectAt:#inputGroup put:(holder := EnterFieldGroup new)
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1177
    ].
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1178
    ^ holder.
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1179
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1180
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1181
!
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1182
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1183
listOfTabs
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1184
    ^ listOfTabs
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1185
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1186
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1187
noteBookModel
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1188
    |holder|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1189
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1190
    (holder := builder bindingAt:#noteBookModel) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1191
        holder := 0 asValue.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1192
        builder aspectAt:#noteBookModel put:holder.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1193
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1194
    ^ holder.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1195
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1196
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1197
noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1198
    "Generated by the TabListEditor"
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1199
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1200
    |list|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1201
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1202
    (list := builder bindingAt:#noteBookTabList) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1203
        builder aspectAt:#noteBookTabList put:(list := self class noteBookTabList).
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1204
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1205
    ^ list
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1206
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1207
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1208
selectionHolder
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1209
    "holder which keeps the current selection
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1210
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1211
    |holder|
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1212
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1213
    (holder := builder bindingAt:#selectionHolder) isNil ifTrue:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1214
        holder := 0 asValue.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1215
        builder aspectAt:#selectionHolder put:holder.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1216
        holder addDependent:self.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1217
    ].
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1218
    ^ holder
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1219
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1220
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1221
testItemList
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1222
    |holder|
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1223
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1224
    (holder := builder bindingAt:#testItemList) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1225
        holder := ValueHolder new.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1226
        builder aspectAt:#testItemList put:holder.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1227
    ].
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1228
    ^ holder.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1229
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1230
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1231
testMode
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1232
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1233
    |holder|
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1234
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1235
    (holder := builder bindingAt:#testMode) isNil ifTrue:[
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1236
        builder aspectAt:#testMode put:(holder := false asValue).
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1237
        holder addDependent: self
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1238
    ].
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1239
    ^ holder
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1240
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1241
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1242
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1243
!TabListEditor methodsFor:'building'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1244
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1245
buildFromResourceSpec:aListSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1246
    self buildFromTabList:aListSpec
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1247
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1248
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1249
buildFromTabList: aTabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1250
    "build from a aTabList"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1251
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1252
    self selection:0.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1253
    listOfTabs removeAll.
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1254
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1255
    aTabList do:[:aTabItem| listOfTabs add: aTabItem ].
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1256
    self clearModified.
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1257
    listOfTabs notEmpty ifTrue:[ self selection:1 ].
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1258
!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1259
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1260
loadFromClass:aClass andSelector:aSelector
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1261
    "build from class and selector"
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1262
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1263
    |cls spec|
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1264
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1265
    self assert:(aClass isNil or:[aClass isClass]).
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1266
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1267
    self testMode value: false.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1268
    self selection:0.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1269
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1270
    "if opened on a tab list"
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1271
    (aClass isNil and: [aSelector isNil and: [listOfTabs size > 0]]) ifFalse:[
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1272
        listOfTabs removeAll.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1273
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1274
        cls := aClass isBehavior ifTrue:[ aClass ] ifFalse:[ self resolveName:aClass].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1275
        specSelector := aSelector.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1276
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1277
        cls notNil ifTrue:[
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1278
            specSelector notNil ifTrue:[
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1279
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1280
                (cls respondsTo: aSelector) ifTrue:[ 
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1281
                    spec := cls perform: aSelector.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1282
                ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1283
                spec size ~~ 0 ifTrue:[
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1284
                    spec do:[:aTab|
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1285
                        listOfTabs add:aTab.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1286
                    ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1287
                    self addHistoryEntryForClass:cls selector:specSelector.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1288
                ]
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1289
            ]
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1290
        ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1291
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1292
        self clearModified.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1293
    ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1294
    listOfTabs notEmpty ifTrue:[ self selection:1 ].
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1295
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1296
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1297
!TabListEditor methodsFor:'change & update'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1298
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1299
update:something with:aParameter from:someObject
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1300
    "one of my aspects has changed; update modified channel
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1301
    "
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1302
    |list|
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1303
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1304
    someObject = self selectionHolder ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1305
        ^ self selectionChanged
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1306
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1307
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1308
    someObject = self testMode ifFalse:[              
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1309
        ^ super update:something with:aParameter from:someObject.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1310
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1311
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1312
    someObject value ifTrue:[
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
  1313
        self noteBookModel value:0.
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
  1314
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1315
        listOfTabs notEmpty ifTrue:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1316
            list := listOfTabs collect:[:aTab| |tab|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1317
                tab := aTab copy.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1318
                tab setAttributesFromClass:specClass.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1319
                tab
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1320
            ]
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1321
        ].
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1322
        self selection:0.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1323
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1324
    self testItemList value:list.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1325
    self updateInfoLabel.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1326
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1327
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1328
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1329
!TabListEditor methodsFor:'queries'!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1330
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1331
canToggleTestMode
2281
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1332
    "checks whether testMode button is enabled"
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1333
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1334
    self testMode value ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1335
        ^ true
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1336
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1337
2281
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1338
    self enablingCommitButtonsHolder value ifFalse:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1339
        ^ listOfTabs notEmpty
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1340
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1341
    ^ false
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1342
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1343
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1344
!TabListEditor methodsFor:'selection'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1345
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1346
selectedElement
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1347
    |idx tab|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1348
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1349
    idx := self selection.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1350
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1351
    idx ~~ 0 ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1352
        (tab := listOfTabs at:idx ifAbsent:nil) notNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1353
            ^ tab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1354
        ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1355
        self selection:0
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1356
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1357
    ^ nil
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1358
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1359
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1360
selection
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1361
    ^ self selectionHolder value ? 0
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1362
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1363
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1364
selection:anIndex
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1365
    self selectionHolder value:(anIndex ? 0).
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1366
!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1367
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1368
selectionChanged
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1369
    |noteBookModel hasSelection|
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1370
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1371
    hasSelection  := self selection ~~ 0.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1372
    noteBookModel := self noteBookModel.
1145
8d3ca8f7bb71 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1066
diff changeset
  1373
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1374
    hasSelection ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1375
        self testMode value:false.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1376
        noteBookModel value == 0 ifTrue:[noteBookModel value:1]
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1377
    ] ifFalse:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1378
        noteBookModel value:0
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1379
    ].
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1380
    self cancel.
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1381
    self hasSelectionHolder value:hasSelection.
2281
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1382
    self canPasteHolder.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1383
!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1384
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1385
setSelection:anIndex
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1386
    |index|
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1387
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1388
    index := anIndex ? 0.
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1389
    self selectionHolder value:index withoutNotifying:self
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1390
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1391
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1392
!TabListEditor methodsFor:'startup / release'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1393
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1394
initialize
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1395
    "setup aspects used by column description specifications
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1396
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1397
    super initialize.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1398
    listOfTabs := List new.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1399
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1400
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1401
openModalOnTabList: aTabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1402
    "build a tab list from aTabList and open it modal"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1403
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1404
    super openModalOnResourceSpec: aTabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1405
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1406
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1407
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1408
!TabListEditor methodsFor:'user actions'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1409
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1410
accept
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1411
    "accept changes
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1412
    "
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1413
    |tab idx asb|
1066
5096f66ba82d new inputField accept/modified behavior
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
  1414
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1415
    (tab := self selectedElement) notNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1416
        super accept.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1417
        aspects keysAndValuesDo:[:k :m| tab perform:(k , ':') asSymbol with:(m value) ].
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1418
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1419
        asb := self autoHideScrollBars value.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1420
        asb := asb ~~ 1 ifTrue:[asb == 2] ifFalse:[nil].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1421
        tab autoHideScrollBars:asb.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1422
    ].
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1423
    self cancel.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1424
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1425
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1426
addTab:aTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1427
    |idx|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1428
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1429
    aTab notNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff