TabListEditor.st
author Stefan Vogel <sv@exept.de>
Fri, 30 Sep 2016 16:48:16 +0200
changeset 3330 76129ae4dadd
parent 3118 d0e78fb8d796
child 3381 5c6ec0d1c89b
child 3630 5e718e0a754e
permissions -rw-r--r--
#OTHER by stefan Use (*WriteStream on:'') instead of (*WriteStream on:String new)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3330
76129ae4dadd #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 3118
diff changeset
     1
"{ Encoding: utf8 }"
76129ae4dadd #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 3118
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
    ^ 
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   425
     #(FullSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   426
        name: canvasSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   427
        window: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   428
       (WindowSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   429
          label: 'Canvas'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   430
          name: 'Canvas'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   431
          min: (Point 10 10)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   432
          max: (Point 1280 1024)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   433
          bounds: (Rectangle 0 0 383 220)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   434
        )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   435
        component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   436
       (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   437
          collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   438
           (LabelSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   439
              label: 'Class Name / Major Key:'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   440
              name: 'majorKeyLabel'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   441
              layout: (AlignmentOrigin 160 0 26 0 1 0.5)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   442
              activeHelpKey: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   443
              translateLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   444
              resizeForLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   445
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   446
           (InputFieldSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   447
              name: 'majorKeyField'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   448
              layout: (LayoutFrame 161 0 15 0 -5 1.0 37 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   449
              activeHelpKey: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   450
              tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   451
              model: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   452
              group: inputGroup
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   453
              type: symbolOrNil
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   454
              immediateAccept: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   455
              acceptOnReturn: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   456
              acceptOnTab: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   457
              acceptOnLostFocus: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   458
              modifiedChannel: modifiedChannel
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   459
              acceptOnPointerLeave: false
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   460
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   461
           (LabelSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   462
              label: 'Selector / Minor Key:'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   463
              name: 'minorKeyLabel'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   464
              layout: (AlignmentOrigin 160 0 55 0 1 0.5)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   465
              translateLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   466
              resizeForLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   467
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   468
           (InputFieldSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   469
              name: 'minorKeyField'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   470
              layout: (LayoutFrame 161 0 44 0 -5 1.0 66 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   471
              activeHelpKey: majorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   472
              tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   473
              model: minorKey
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   474
              group: inputGroup
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   475
              type: symbolOrNil
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   476
              immediateAccept: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   477
              acceptOnReturn: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   478
              acceptOnTab: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   479
              acceptOnLostFocus: false
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   480
              modifiedChannel: modifiedChannel
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   481
              acceptOnPointerLeave: false
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   482
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   483
           (FramedBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   484
              label: 'Scroll Bars'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   485
              name: 'FramedBox'
1860
ec3a07f0b145 *** empty log message ***
ca
parents: 1856
diff changeset
   486
              layout: (LayoutFrame 0 0.0 119 0.0 0 1.0 218 0)
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   487
              labelPosition: topLeft
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   488
              translateLabel: true
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   489
              component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   490
             (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   491
                collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   492
                 (HorizontalPanelViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   493
                    name: 'HorizontalPanel1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   494
                    layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   495
                    horizontalLayout: fitSpace
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   496
                    verticalLayout: fitSpace
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   497
                    horizontalSpace: 3
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   498
                    verticalSpace: 3
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   499
                    component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   500
                   (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   501
                      collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   502
                       (ViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   503
                          name: 'Box1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   504
                          component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   505
                         (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   506
                            collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   507
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   508
                                label: 'Vertical'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   509
                                name: 'verticalScrollBarCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   510
                                layout: (LayoutFrame 0 0.0 3 0 0 1.0 27 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   511
                                activeHelpKey: verticalScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   512
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   513
                                model: hasVerticalScrollBar
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   514
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   515
                              )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   516
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   517
                                label: 'Mini'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   518
                                name: 'miniScrollerVerticalCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   519
                                layout: (LayoutFrame 0 0.0 32 0 0 1.0 56 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   520
                                activeHelpKey: verticalMiniScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   521
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   522
                                model: miniScrollerVertical
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   523
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   524
                              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   525
                             )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   526
                           
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   527
                          )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   528
                          useDefaultExtent: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   529
                        )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   530
                       (ViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   531
                          name: 'Box2'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   532
                          component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   533
                         (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   534
                            collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   535
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   536
                                label: 'Horizontal'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   537
                                name: 'horizontalScrollBarCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   538
                                layout: (LayoutFrame 0 0.0 3 0 0 1.0 27 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   539
                                activeHelpKey: horizontalScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   540
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   541
                                model: hasHorizontalScrollBar
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   542
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   543
                              )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   544
                             (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   545
                                label: 'Mini'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   546
                                name: 'miniScrollerHorizontalCheckBox'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   547
                                layout: (LayoutFrame 0 0.0 32 0 0 1.0 56 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   548
                                activeHelpKey: horizontalMiniScroller
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   549
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   550
                                model: miniScrollerHorizontal
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   551
                                translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   552
                              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   553
                             )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   554
                           
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   555
                          )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   556
                          extent: (Point 113 61)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   557
                        )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   558
                       (ViewSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   559
                          name: 'Box3'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   560
                          component: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   561
                         (SpecCollection
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   562
                            collection: (
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   563
                             (LabelSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   564
                                label: 'Auto Hide:'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   565
                                name: 'Label1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   566
                                layout: (LayoutFrame 0 0.0 6 0 0 1.0 23 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   567
                                translateLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   568
                                resizeForLabel: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   569
                                adjust: left
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   570
                              )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   571
                             (PopUpListSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   572
                                label: 'Default'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   573
                                name: 'PopUpList1'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   574
                                layout: (LayoutFrame 0 0.0 32 0 0 1.0 54 0)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   575
                                activeHelpKey: autoHideScrollBars
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   576
                                tabable: true
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   577
                                model: autoHideScrollBars
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   578
                                menu: 
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   579
                               (Default
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   580
                                  On Off
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   581
                                )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   582
                                useIndex: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   583
                              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   584
                             )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   585
                           
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   586
                          )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   587
                          extent: (Point 113 61)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   588
                        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   589
                       )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   590
                     
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   591
                    )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   592
                  )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   593
                 )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   594
               
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   595
              )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   596
            )
1845
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   597
           (CheckBoxSpec
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   598
              label: 'Create New Builder'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   599
              name: 'createNewBuilder'
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   600
              layout: (Point 161 75)
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   601
              activeHelpKey: createNewBuilder
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   602
              model: createNewBuilder
d6d62913c2cc translate label; major/minorKey mentioned
ca
parents: 1431
diff changeset
   603
              translateLabel: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   604
            )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   605
           )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   606
         
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   607
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   608
      )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   609
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   610
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   611
detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   612
    "This resource specification was automatically generated
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   613
     by the UIPainter of ST/X."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   614
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   615
    "Do not manually edit this!! If it is corrupted,
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   616
     the UIPainter may not be able to read the specification."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   617
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   618
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   619
     UIPainter new openOnClass:TabListEditor andSelector:#detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   620
     TabListEditor new openInterface:#detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   621
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   622
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   623
    <resource: #canvas>
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   624
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   625
    ^ 
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   626
     #(FullSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   627
        name: detailSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   628
        window: 
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   629
       (WindowSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   630
          label: 'Details'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   631
          name: 'Details'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   632
          min: (Point 10 10)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   633
          max: (Point 1280 1024)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   634
          bounds: (Rectangle 0 0 358 107)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   635
        )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   636
        component: 
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   637
       (SpecCollection
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   638
          collection: (
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   639
           (CheckBoxSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   640
              label: 'Can Select'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   641
              name: 'enabled'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   642
              layout: (Point 46 14)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   643
              activeHelpKey: canSelect
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   644
              tabable: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   645
              model: enabled
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   646
              translateLabel: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   647
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   648
           (LabelSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   649
              label: 'Color:'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   650
              name: 'ForegroundLabel'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   651
              layout: (AlignmentOrigin 46 0 62 0 1 0.5)
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   652
              translateLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   653
              resizeForLabel: true
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   654
              adjust: right
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   655
            )
1876
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   656
           (ColorMenuSpec
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   657
              name: 'ForegroundColorMenu'
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   658
              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
   659
              activeHelpKey: color
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   660
              model: labelForegroundColor
1e2a0c548e82 translate labels in specs
Claus Gittinger <cg@exept.de>
parents: 1860
diff changeset
   661
              labelsAreColored: false
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   662
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   663
           )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   664
         
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   665
        )
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   666
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   667
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   668
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   669
windowSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   670
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   671
     by the UIPainter of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   672
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   673
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   674
     the UIPainter may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   675
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   676
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   677
     UIPainter new openOnClass:TabListEditor andSelector:#windowSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   678
     TabListEditor new openInterface:#windowSpec
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   679
     TabListEditor open
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   680
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   681
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   682
    <resource: #canvas>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   683
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   684
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   685
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   686
        #name: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   687
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   688
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   689
          #label: 'Tab List Editor'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   690
          #name: 'Tab List Editor'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   691
          #min: #(#Point 440 280)
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   692
          #bounds: #(#Rectangle 596 292 1132 661)
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   693
          #menu: #menu
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   694
        )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   695
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   696
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   697
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   698
           #(#MenuPanelSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   699
              #name: 'menuToolbarView'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   700
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 34 0)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   701
              #menu: #menuToolbar
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   702
              #showSeparatingLines: true
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   703
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   704
           #(#VariableHorizontalPanelSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   705
              #name: 'VariablePanel'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   706
              #layout: #(#LayoutFrame 0 0.0 36 0.0 0 1.0 -26 1.0)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   707
              #component: 
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   708
             #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   709
                #collection: #(
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   710
                 #(#SelectionInListModelViewSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   711
                    #attributes: 
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   712
                   #(#vpext
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   713
                      
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   714
                     #(#Array
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   715
                        #Array #Array
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   716
                        #Array #Array
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   717
                        #Array #Point
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   718
                        0.264414 1.0
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   719
                      )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   720
                    )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   721
                    #name: 'ListOfLabels'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   722
                    #tabable: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   723
                    #model: #selectionHolder
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   724
                    #menu: #menuEdit
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   725
                    #hasHorizontalScrollBar: true
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   726
                    #hasVerticalScrollBar: true
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   727
                    #miniScrollerHorizontal: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   728
                    #listModel: #listOfTabs
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   729
                    #highlightMode: #line
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   730
                    #selectConditionSelector: #askForItemModification
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   731
                  )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   732
                 #(#ViewSpec
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   733
                    #name: 'SpecView'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   734
                    #level: -1
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   735
                    #component: 
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   736
                   #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   737
                      #collection: #(
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   738
                       #(#NoteBookViewSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   739
                          #name: 'NoteBook'
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   740
                          #layout: #(#LayoutFrame 1 0.0 0 0.0 0 1.0 -30 1.0)
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
   741
                          #enableChannel: #hasSelectionHolder
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   742
                          #tabable: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   743
                          #model: #noteBookModel
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   744
                          #menu: #noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   745
                          #useIndex: true
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   746
                          #keepCanvasAlive: true
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   747
                        )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   748
                       #(#UISubSpecification
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   749
                          #name: 'subSpec'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   750
                          #layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   751
                          #majorKey: #ToolApplicationModel
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   752
                          #minorKey: #windowSpecForCommit
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   753
                        )
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   754
                       #(#NoteBookViewSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   755
                          #name: 'TestNoteBook'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   756
                          #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   757
                          #visibilityChannel: #testMode
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   758
                          #tabable: true
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   759
                          #menu: #testItemList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   760
                          #useIndex: true
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   761
                        )
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   762
                       )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   763
                     
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   764
                    )
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   765
                  )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   766
                 )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   767
               
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   768
              )
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   769
              #handles: #(#Any 0.24053 1.0)
1183
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   770
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   771
           #(#UISubSpecification
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   772
              #name: 'infoBarSubSpec'
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   773
              #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   774
              #majorKey: #ToolApplicationModel
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   775
              #minorKey: #windowSpecForInfoBar
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   776
            )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   777
           )
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   778
         
Claus Gittinger <cg@exept.de>
parents: 1145
diff changeset
   779
        )
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   780
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   781
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   782
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   783
!TabListEditor class methodsFor:'list specs'!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   784
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   785
noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   786
    "This resource specification was automatically generated
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   787
     by the TabListEditor of ST/X."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   788
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   789
    "Do not manually edit this!! If it is corrupted,
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   790
     the TabListEditor may not be able to read the specification."
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   791
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   792
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   793
     TabListEditor new openOnClass:TabListEditor andSelector:#noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   794
    "
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   795
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   796
    <resource: #tabList>
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   797
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   798
    ^     #(
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   799
       #(#TabItem
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   800
          #label: 'Basic'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   801
          #activeHelpKey: #basicTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   802
          #minorKey: #basicSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   803
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   804
       #(#TabItem
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   805
          #label: 'Details'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   806
          #activeHelpKey: #detailTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   807
          #minorKey: #detailSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   808
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   809
       #(#TabItem
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   810
          #label: 'Canvas'
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   811
          #activeHelpKey: #canvasTab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   812
          #minorKey: #canvasSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   813
        )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   814
       )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   815
     
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   816
      collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ]
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   817
! !
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   818
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   819
!TabListEditor class methodsFor:'menu specs'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   820
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   821
menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   822
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   823
     by the MenuEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   824
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   825
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   826
     the MenuEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   827
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   828
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   829
     MenuEditor new openOnClass:TabListEditor andSelector:#menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   830
     (Menu new fromLiteralArrayEncoding:(TabListEditor menu)) startUp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   831
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   832
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   833
    <resource: #menu>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   834
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   835
    ^
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   836
     
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   837
       #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   838
          
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   839
           #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   840
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   841
                #label: 'About'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   842
                #activeHelpKey: #about
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   843
                #labelImage: #(#ResourceRetriever nil #menuIcon)
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   844
                #submenuChannel: #menuAbout
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   845
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   846
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   847
                #label: 'File'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   848
                #activeHelpKey: #file
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   849
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   850
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   851
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   852
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   853
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   854
                          #label: 'New'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   855
                          #value: #doNew
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   856
                          #activeHelpKey: #fileNew
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   857
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   858
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   859
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   860
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   861
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   862
                          #label: 'Load...'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   863
                          #translateLabel: true
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   864
                          #value: #doLoad
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   865
                          #activeHelpKey: #fileLoad
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   866
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   867
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   868
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   869
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   870
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   871
                          #label: 'Save'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   872
                          #value: #doSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   873
                          #activeHelpKey: #fileSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   874
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   875
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   876
                          #label: 'Save As...'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   877
                          #value: #doSaveAs
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   878
                          #activeHelpKey: #fileSave
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   879
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   880
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   881
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   882
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   883
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   884
                          #label: 'Browse Class'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   885
                          #value: #doBrowseClass
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   886
                          #activeHelpKey: #fileBrowseClass
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   887
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   888
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   889
                          #label: '-'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   890
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   891
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   892
                          #label: 'Exit'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   893
                          #value: #closeRequest
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   894
                          #activeHelpKey: #fileExit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   895
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   896
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   897
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   898
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   899
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   900
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   901
                #label: 'Edit'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   902
                #activeHelpKey: #edit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   903
                #submenuChannel: #menuEdit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   904
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   905
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   906
                #label: 'Add'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   907
                #activeHelpKey: #add
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   908
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   909
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   910
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   911
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   912
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   913
                          #label: 'Tab Item'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   914
                          #value: #doCreate
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   915
                          #activeHelpKey: #addTabItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   916
                          #labelImage: #(#ResourceRetriever nil #newTabItemIcon 'Tab Item')
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   917
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   918
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   919
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   920
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   921
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   922
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   923
                #label: 'Generate'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   924
                #activeHelpKey: #add
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   925
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   926
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   927
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   928
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   929
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   930
                          #label: 'Aspect Method'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   931
                          #value: #doGenerateAspectMethod
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   932
                          #activeHelpKey: #fileCreateAspectMethod
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   933
                          #enabled: #hasClassAndSelector
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   934
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   935
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   936
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   937
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   938
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   939
             #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   940
                #label: 'Test'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   941
                #activeHelpKey: #test
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   942
                #submenu: 
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   943
                 #(#Menu
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   944
                    
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   945
                     #(
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   946
                       #(#MenuItem
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   947
                          #label: 'Preview'
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   948
                          #activeHelpKey: #testPreview
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
   949
                          #enabled: #canToggleTestMode
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   950
                          #indication: #testMode
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   951
                      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   952
                    ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   953
                    nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   954
                )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   955
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   956
             #(#MenuItem
749
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   957
                #label: 'History'
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   958
                #activeHelpKey: #history
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   959
                #submenuChannel: #menuHistory
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   960
            )
8f8767c6f32f update other instances if clipboarding
tz
parents: 739
diff changeset
   961
             #(#MenuItem
2667
6cf6c1523e0c changed: #menu
Claus Gittinger <cg@exept.de>
parents: 2432
diff changeset
   962
                label: 'MENU_Help'
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   963
                #startGroup: #right
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   964
                #activeHelpKey: #help
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   965
                #submenuChannel: #menuHelp
2667
6cf6c1523e0c changed: #menu
Claus Gittinger <cg@exept.de>
parents: 2432
diff changeset
   966
                startGroup: conditionalRight
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   967
            )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   968
          ) nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   969
          nil
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   970
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   971
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   972
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   973
menuEdit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   974
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   975
     by the MenuEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   976
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   977
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   978
     the MenuEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   979
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   980
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   981
     MenuEditor new openOnClass:TabListEditor andSelector:#menuEdit
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   982
     (Menu new fromLiteralArrayEncoding:(TabListEditor menuEdit)) startUp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   983
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   984
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   985
    <resource: #menu>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
   986
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   987
    ^ 
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   988
     #(#Menu
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   989
        #(
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   990
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   991
            #label: 'Cut'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   992
            #value: #doCut
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   993
            #activeHelpKey: #editCut
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   994
            #enabled: #hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   995
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   996
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   997
            #label: 'Copy'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   998
            #value: #doCopy
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
   999
            #activeHelpKey: #editCopy
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1000
            #enabled: #hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1001
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1002
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1003
            #label: 'Paste'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1004
            #value: #doPaste
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1005
            #activeHelpKey: #editPaste
2383
e76cc686a293 rename #valueOfCanbPate to #canPasteHolder
Stefan Vogel <sv@exept.de>
parents: 2346
diff changeset
  1006
            #enabled: #canPasteHolder
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1007
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1008
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1009
            #label: 'Delete'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1010
            #value: #doDelete
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1011
            #activeHelpKey: #editPaste
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1012
            #enabled: #hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1013
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1014
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1015
            #label: '-'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1016
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1017
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1018
            #label: 'Move Up'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1019
            #value: #doMoveTabUpOrDown:
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1020
            #activeHelpKey: #editMoveUp
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1021
            #enabled: #canMoveTabItemUpOrDown
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1022
            #argument: #up
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1023
            #labelImage: #(#ResourceRetriever #Icon #upIcon 'Move Up')
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1024
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1025
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1026
            #label: 'Move Down'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1027
            #value: #doMoveTabUpOrDown:
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1028
            #activeHelpKey: #editMoveDown
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1029
            #enabled: #canMoveTabItemUpOrDown
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1030
            #argument: #down
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1031
            #labelImage: #(#ResourceRetriever #Icon #downIcon 'Move Down')
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1032
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1033
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1034
            #label: '-'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1035
            #isVisible: #hiddenAccelerator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1036
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1037
         #(#MenuItem
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1038
            #label: 'Accept'
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1039
            #translateLabel: true
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1040
            #isVisible: #hiddenAccelerator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1041
            #value: #accept
2432
294274f5e342 Obsolete method use
Stefan Vogel <sv@exept.de>
parents: 2383
diff changeset
  1042
            #enabled: #enablingCommitButtonsHolder
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1043
          )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1044
         )
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1045
        nil
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1046
        nil
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1047
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1048
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1049
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1050
menuToolbar
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1051
    "This resource specification was automatically generated
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1052
     by the MenuEditor of ST/X."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1053
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1054
    "Do not manually edit this!! If it is corrupted,
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1055
     the MenuEditor may not be able to read the specification."
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1056
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1057
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1058
     MenuEditor new openOnClass:TabListEditor andSelector:#menuToolbar
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1059
     (Menu new fromLiteralArrayEncoding:(TabListEditor menuToolbar)) startUp
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1060
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1061
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1062
    <resource: #menu>
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1063
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1064
    ^ 
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1065
     #(Menu
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1066
        (
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1067
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1068
            activeHelpKey: fileNew
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1069
            label: 'New'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1070
            itemValue: doNew
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1071
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1072
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1073
            labelImage: (ResourceRetriever ToolbarIconLibrary new22x22Icon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1074
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1075
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1076
            activeHelpKey: fileLoad
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1077
            label: 'Load'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1078
            itemValue: doLoad
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1079
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1080
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1081
            labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethodIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1082
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1083
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1084
            activeHelpKey: fileSave
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1085
            label: 'Save'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1086
            itemValue: doSave
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1087
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1088
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1089
            labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethodIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1090
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1091
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1092
            label: '-'
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1093
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1094
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1095
            activeHelpKey: editCut
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1096
            enabled: hasSelectionHolder
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1097
            label: 'Cut'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1098
            itemValue: doCut
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1099
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1100
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1101
            labelImage: (ResourceRetriever ToolbarIconLibrary cutWidgetIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1102
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1103
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1104
            activeHelpKey: editCopy
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1105
            enabled: hasSelectionHolder
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1106
            label: 'Copy'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1107
            itemValue: doCopy
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1108
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1109
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1110
            labelImage: (ResourceRetriever ToolbarIconLibrary copyWidgetIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1111
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1112
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1113
            activeHelpKey: editPaste
2383
e76cc686a293 rename #valueOfCanbPate to #canPasteHolder
Stefan Vogel <sv@exept.de>
parents: 2346
diff changeset
  1114
            enabled: canPasteHolder
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1115
            label: 'Paste'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1116
            itemValue: doPaste
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1117
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1118
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1119
            labelImage: (ResourceRetriever ToolbarIconLibrary pasteWidgetIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1120
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1121
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1122
            activeHelpKey: editDelete
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1123
            enabled: hasSelectionHolder
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1124
            label: 'Delete'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1125
            itemValue: doDelete
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1126
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1127
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1128
            isVisible: false
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1129
            labelImage: (ResourceRetriever ToolbarIconLibrary delete22x22Icon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1130
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1131
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1132
            label: '-'
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: addTabItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1136
            label: 'Add Tab Item'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1137
            itemValue: doCreate
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1138
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1139
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1140
            labelImage: (ResourceRetriever nil newTabItemIcon)
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1141
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1142
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1143
            label: ''
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1144
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1145
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1146
            activeHelpKey: editMoveUp
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1147
            enabled: canMoveTabItemUpOrDown
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1148
            label: 'Move Tab Up'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1149
            itemValue: doMoveTabUpOrDown:
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1150
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1151
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1152
            startGroup: right
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1153
            labelImage: (ResourceRetriever XPToolbarIconLibrary up22x22Icon)
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1154
            argument: up
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1155
          )
1909
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1156
         (MenuItem
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1157
            activeHelpKey: editMoveDown
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1158
            enabled: canMoveTabItemUpOrDown
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1159
            label: 'Move Tab Down'
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1160
            itemValue: doMoveTabUpOrDown:
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1161
            translateLabel: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1162
            isButton: true
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1163
            startGroup: right
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1164
            labelImage: (ResourceRetriever XPToolbarIconLibrary down22x22Icon)
1ccae0433175 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1876
diff changeset
  1165
            argument: down
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1166
          )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1167
         )
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1168
        nil
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1169
        nil
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1170
      )
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1171
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1172
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1173
!TabListEditor methodsFor:'aspects'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1174
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1175
autoHideScrollBars
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1176
    |holder|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1177
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1178
    (holder := builder bindingAt:#autoHideScrollBars) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1179
        builder aspectAt:#autoHideScrollBars put:(holder := 1 asValue).
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1180
        holder addDependent: self
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1181
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1182
    ^ holder.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1183
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1184
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1185
canMoveTabItemUpOrDown
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1186
    ^ builder booleanValueAspectFor:#canMoveTabItemUpOrDown
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1187
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1188
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1189
hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1190
    ^ builder booleanValueAspectFor:#hasSelectionHolder
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1191
!
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1192
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1193
hiddenAccelerator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1194
    "used to set menu entries with an accelerator not visible to the operator
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1195
    "
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1196
    ^ false
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1197
!
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1198
1326
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1199
inputGroup
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1200
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1201
    |holder|
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1202
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1203
    (holder := builder bindingAt:#inputGroup) isNil ifTrue:[
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1204
        builder aspectAt:#inputGroup put:(holder := EnterFieldGroup new)
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1205
    ].
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1206
    ^ holder.
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1207
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1208
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1209
!
295fe7dc6fbb add inputGroup
ca
parents: 1325
diff changeset
  1210
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1211
listOfTabs
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1212
    ^ listOfTabs
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1213
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1214
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1215
noteBookModel
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1216
    |holder|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1217
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1218
    (holder := builder bindingAt:#noteBookModel) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1219
        holder := 0 asValue.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1220
        builder aspectAt:#noteBookModel put:holder.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1221
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1222
    ^ holder.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1223
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1224
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1225
noteBookTabList
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1226
    "Generated by the TabListEditor"
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
    |list|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1229
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1230
    (list := builder bindingAt:#noteBookTabList) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1231
        builder aspectAt:#noteBookTabList put:(list := self class noteBookTabList).
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1232
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1233
    ^ list
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1234
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1235
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1236
selectionHolder
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1237
    "holder which keeps the current selection
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1238
    "
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1239
    |holder|
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1240
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1241
    (holder := builder bindingAt:#selectionHolder) isNil ifTrue:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1242
        holder := 0 asValue.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1243
        builder aspectAt:#selectionHolder put:holder.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1244
        holder addDependent:self.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1245
    ].
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1246
    ^ holder
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1247
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1248
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1249
testItemList
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1250
    |holder|
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1251
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1252
    (holder := builder bindingAt:#testItemList) isNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1253
        holder := ValueHolder new.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1254
        builder aspectAt:#testItemList put:holder.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1255
    ].
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1256
    ^ holder.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1257
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1258
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1259
testMode
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1260
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1261
    |holder|
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1262
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1263
    (holder := builder bindingAt:#testMode) isNil ifTrue:[
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1264
        builder aspectAt:#testMode put:(holder := false asValue).
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1265
        holder addDependent: self
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1266
    ].
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1267
    ^ holder
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1268
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1269
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1270
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1271
!TabListEditor methodsFor:'building'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1272
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1273
buildFromResourceSpec:aListSpec
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1274
    self buildFromTabList:aListSpec
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1275
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1276
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1277
buildFromTabList: aTabList
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1278
    "build from a aTabList"
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1279
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1280
    self selection:0.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1281
    listOfTabs removeAll.
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1282
2819
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1283
    aTabList do:[:aTabItem| 
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1284
        self assert:(aTabItem isKindOf:TabItem).
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1285
        listOfTabs add: aTabItem 
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1286
    ].
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1287
    self clearModified.
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1288
    listOfTabs notEmpty ifTrue:[ self selection:1 ].
2819
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1289
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1290
    "Modified: / 08-11-2010 / 13:57:27 / cg"
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1291
!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1292
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1293
loadFromClass:aClass andSelector:aSelector
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1294
    "build from class and selector"
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1295
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1296
    |cls spec|
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1297
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1298
    self assert:(aClass isNil or:[aClass isClass]).
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1299
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1300
    self testMode value: false.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1301
    self selection:0.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1302
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1303
    "if opened on a tab list"
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1304
    (aClass isNil and: [aSelector isNil and: [listOfTabs size > 0]]) ifFalse:[
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1305
        listOfTabs removeAll.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1306
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1307
        cls := aClass isBehavior ifTrue:[ aClass ] ifFalse:[ self resolveName:aClass].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1308
        specSelector := aSelector.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1309
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1310
        cls notNil ifTrue:[
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1311
            specSelector notNil ifTrue:[
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
                (cls respondsTo: aSelector) ifTrue:[ 
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1314
                    spec := cls perform: aSelector.
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
                spec size ~~ 0 ifTrue:[
2819
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1317
                    spec do:[:aTabOrArray|
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1318
                        |tab|
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1319
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1320
                        aTabOrArray isArray ifTrue:[  
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1321
                            tab := aTabOrArray decodeAsLiteralArray
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1322
                        ] ifFalse:[
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1323
                            tab := aTabOrArray.
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1324
                        ].
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1325
                        self assert:(tab isKindOf:TabItem).
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1326
                        listOfTabs add:tab.
1972
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1327
                    ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1328
                    self addHistoryEntryForClass:cls selector:specSelector.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1329
                ]
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1330
            ]
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1331
        ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1332
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1333
        self clearModified.
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1334
    ].
c1b9c7d9e8f4 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1909
diff changeset
  1335
    listOfTabs notEmpty ifTrue:[ self selection:1 ].
2819
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1336
89d5ee9bc2d0 changed:
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1337
    "Modified: / 08-11-2010 / 13:59:09 / cg"
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1338
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1339
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1340
!TabListEditor methodsFor:'change & update'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1341
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1342
update:something with:aParameter from:someObject
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1343
    "one of my aspects has changed; update modified channel
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1344
    "
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1345
    |list|
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1346
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1347
    someObject = self selectionHolder ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1348
        ^ self selectionChanged
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1349
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1350
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1351
    someObject = self testMode ifFalse:[              
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1352
        ^ super update:something with:aParameter from:someObject.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1353
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1354
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1355
    someObject value ifTrue:[
1375
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
  1356
        self noteBookModel value:0.
bab043fa81fa *** empty log message ***
ca
parents: 1374
diff changeset
  1357
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1358
        listOfTabs notEmpty ifTrue:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1359
            list := listOfTabs collect:[:aTab| |tab|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1360
                tab := aTab copy.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1361
                tab setAttributesFromClass:specClass.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1362
                tab
1374
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1363
            ]
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1364
        ].
635e878e5c09 checkin from browser
ca
parents: 1373
diff changeset
  1365
        self selection:0.
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1366
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1367
    self testItemList value:list.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1368
    self updateInfoLabel.
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1369
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1370
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1371
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1372
!TabListEditor methodsFor:'queries'!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1373
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1374
canToggleTestMode
2281
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1375
    "checks whether testMode button is enabled"
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1376
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1377
    self testMode value ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1378
        ^ true
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1379
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1380
2281
e6cc565bff35 Do not use obsolete methods
Stefan Vogel <sv@exept.de>
parents: 1972
diff changeset
  1381
    self enablingCommitButtonsHolder value ifFalse:[
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1382
        ^ listOfTabs notEmpty
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1383
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1384
    ^ false
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1385
! !
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1386
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1387
!TabListEditor methodsFor:'selection'!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1388
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1389
selectedElement
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1390
    |idx tab|
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1391
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1392
    idx := self selection.
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1393
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1394
    idx ~~ 0 ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1395
        (tab := listOfTabs at:idx ifAbsent:nil) notNil ifTrue:[
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1396
            ^ tab
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1397
        ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1398
        self selection:0
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1399
    ].
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1400
    ^ nil
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1401
!
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1402
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1403
selection
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1404
    ^ self selectionHolder value ? 0
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1405
!
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1406
1373
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1407
selection:anIndex
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1408
    self selectionHolder value:(anIndex ? 0).
623e692f53fc add more functionality; canvas and help
ca
parents: 1326
diff changeset
  1409
!
739
cc3413fc1afb initial checkin
tz
parents:
diff changeset
  1410