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