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