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