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