MenuEditor.st
author Claus Gittinger <cg@exept.de>
Tue, 14 May 2002 11:20:31 +0200
changeset 1566 852d3060ce0a
parent 1564 0833cfacf787
child 1571 a4f1d7825ae8
permissions -rw-r--r--
left/right startGroup; help text fixed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     1
"
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     3
              All Rights Reserved
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     4
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     5
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
     7
 inclusion of the above copyright notice. This software may not
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    10
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    11
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    12
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    13
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    14
1372
421b2a1f4b31 use #selectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 1365
diff changeset
    15
"{ Package: 'stx:libtool2' }"
421b2a1f4b31 use #selectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 1365
diff changeset
    16
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    17
ResourceSpecEditor subclass:#MenuEditor
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
    18
	instanceVariableNames:'treeView typeOfCanvas listOfCanvas listOfSlices
fd44af858001 optimized
ca
parents: 1200
diff changeset
    19
		lastImageRetriever slices'
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    20
	classVariableNames:'ImageRetrieverClasses'
220
ca
parents: 218
diff changeset
    21
	poolDictionaries:''
ca
parents: 218
diff changeset
    22
	category:'Interface-UIPainter'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    23
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    24
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    25
Object subclass:#Item
220
ca
parents: 218
diff changeset
    26
	instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
    27
		accessCharacterPos retriever icon iconAndLabel submenuChannel
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
    28
		startGroup argument translateLabel isButton isVisible choice
1564
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
    29
		choiceValue auxValue hideMenuOnActivated font horizontalLayout
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
    30
		showBusyCursorWhilePerforming keepLinkedMenu triggerOnDown'
1407
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    31
	classVariableNames:''
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    32
	poolDictionaries:''
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    33
	privateIn:MenuEditor
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    34
!
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    35
1454
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    36
SelectionInTreeView subclass:#TreeView
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    37
	instanceVariableNames:''
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    38
	classVariableNames:''
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    39
	poolDictionaries:''
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    40
	privateIn:MenuEditor
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    41
!
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    42
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    43
!MenuEditor class methodsFor:'documentation'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    44
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    45
copyright
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    46
"
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    47
 COPYRIGHT (c) 1997 by eXept Software AG
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    48
              All Rights Reserved
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    49
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    50
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    51
 only in accordance with the terms of that license and with the
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    52
 inclusion of the above copyright notice. This software may not
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    53
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    54
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    55
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    56
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    57
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    58
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    59
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    60
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    61
documentation
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    62
"
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    63
    The MenuEditor allows you to create, modify or just inspect
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    64
    hierarchical menus of menu bars, popup menu, or tool bar menus.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    65
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    66
    [start with:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    67
        MenuEditor open
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    68
        MenuEditor openOnClass:MenuEditor andSelector:#menu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    69
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    70
    [see also:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    71
        UIPainter
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    72
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    73
    [author:]
541
5dc124df04e2 author line in doc.
Claus Gittinger <cg@exept.de>
parents: 539
diff changeset
    74
        Claus Atzkern, eXept Software AG
5dc124df04e2 author line in doc.
Claus Gittinger <cg@exept.de>
parents: 539
diff changeset
    75
        Thomas Zwick, eXept Software AG
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    76
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    77
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    78
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    79
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    80
!MenuEditor class methodsFor:'initialization'!
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    81
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    82
initialize
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    83
    ImageRetrieverClasses := #( 
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    84
                                Icon
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    85
                                NewLauncher
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    86
                                SystemBrowser 
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    87
                                ToolbarIconLibrary
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    88
                              ) 
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    89
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    90
    "
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    91
     self initialize
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    92
    "
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    93
! !
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    94
508
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
    95
!MenuEditor class methodsFor:'instance creation'!
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
    96
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    97
openModalOnMenu: aMenu
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    98
    "Open a MenuEditor modal on aMenu"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    99
    "self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   100
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   101
    ^self new openModalOnMenu: aMenu
508
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
   102
! !
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
   103
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   104
!MenuEditor class methodsFor:'accessing'!
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   105
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   106
iconUnknown
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   107
    "returns an image used for picked items containing an image
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   108
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   109
    <resource: #fileImage>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   110
1400
891c5c044e33 iconUnknown: use icon derrived from MenuPanelSpec
ca
parents: 1389
diff changeset
   111
    ^ MenuPanelSpec icon
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   112
!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   113
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   114
resourceType
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   115
    "get the type of resource of the method generated by the MenuEditor"
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   116
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   117
    ^#menu
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   118
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   119
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   120
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   121
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   122
! !
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   123
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   124
!MenuEditor class methodsFor:'accessing image retriever'!
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   125
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   126
addNewImageRetriever:aSymbolOrClass
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   127
    "add a class to the imageRetriever list"
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   128
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   129
    |key|
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   130
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   131
    aSymbolOrClass isBehavior ifTrue:[
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   132
        key := aSymbolOrClass nameWithNameSpacePrefix
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   133
    ] ifFalse:[
1463
7dde3777813a show waitCursor while reading images
ca
parents: 1462
diff changeset
   134
        key := aSymbolOrClass
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   135
    ].
1463
7dde3777813a show waitCursor while reading images
ca
parents: 1462
diff changeset
   136
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   137
    key size ~~ 0 ifTrue:[
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   138
        key := key asSymbol.
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   139
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   140
        (ImageRetrieverClasses includes:key) ifFalse:[
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   141
            ImageRetrieverClasses := ImageRetrieverClasses asOrderedCollection.
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   142
            ImageRetrieverClasses add:key.
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   143
            ImageRetrieverClasses sort.
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   144
        ]
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   145
    ].
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   146
!
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   147
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   148
imageRetrieverClasses
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   149
    "returns a collection of image retrievers
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   150
    "
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   151
    ^ ImageRetrieverClasses
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   152
! !
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   153
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   154
!MenuEditor class methodsFor:'aspects'!
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   155
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   156
aspects
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   157
    "get the aspects for the attributes of the menu components"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   158
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   159
    ^#(
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   160
        label
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   161
        accessCharacterPos
1348
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   162
        showBusyCursorWhilePerforming
1564
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   163
        horizontalLayout
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   164
        triggerOnDown
1365
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
   165
        font
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   166
        argument
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   167
        submenuChannel
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   168
        keepLinkedMenu
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   169
        enabled
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   170
        value
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   171
        nameKey
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   172
        indication
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
   173
        choice
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
   174
        choiceValue
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   175
        translateLabel
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   176
        isButton
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   177
        shortcutKey
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   178
        startGroup
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   179
        retriever
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   180
        iconAndLabel
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   181
        icon
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   182
        isVisible
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   183
        hideMenuOnActivated
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   184
        auxValue
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   185
     )
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   186
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
   187
    "Modified: / 14.8.1998 / 14:46:36 / cg"
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   188
! !
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   189
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   190
!MenuEditor class methodsFor:'help specs'!
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   191
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   192
flyByHelpSpec
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   193
    <resource: #help>
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   194
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   195
    ^super flyByHelpSpec addPairsFrom:#(
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   196
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   197
#addMenuItem
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   198
'Add Item'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   199
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   200
#addMenuSeparator
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   201
'Add Separator'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   202
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   203
#addSubMenu
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   204
'Add SubMenu'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   205
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   206
#addSubMenuLink
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   207
'Add linked SubMenu'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   208
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   209
#fileLoad
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   210
'Load Menu'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   211
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   212
#fileNew
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   213
'New Menu'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   214
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   215
#filePickAMenu
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   216
'Pick a menu'
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   217
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   218
#fileSave
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   219
'Save Menu'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   220
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   221
#fileSaveAs
1547
c770276e8001 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1546
diff changeset
   222
'Save Menu'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   223
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   224
)
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   225
!
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   226
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   227
helpSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   228
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   229
     by the UIHelpTool of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   230
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   231
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   232
     the UIHelpTool may not be able to read the specification."
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   233
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   234
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   235
     UIHelpTool openOnClass:MenuEditor    
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   236
    "
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   237
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   238
    <resource: #help>
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   239
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   240
    ^super helpSpec addPairsFrom:#(
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   241
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   242
#addMenuItem
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   243
'Add a new menu item.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   244
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   245
#addMenuSeparator
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   246
'Add a new menu separator.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   247
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   248
#addSubMenu
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   249
'Add a new sub menu.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   250
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   251
#addSubMenuLink
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   252
'Add a new linked sub menu.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   253
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   254
#basicsAction
627
e28ca0319230 checkin from browser
tz
parents: 621
diff changeset
   255
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   256
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   257
#basicsArgument
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   258
'An optional arg passed with above selector, if it is a 1 or 2 arg selector (enter a Smalltalk literal).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   259
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   260
#basicsChoice
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   261
'Aspect for a boolean holder, block or method, specifying the choices state (RadioButton behavior).'
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   262
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   263
#basicsChoiceValue
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   264
'That choices value (typically number or symbol).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   265
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   266
#basicsIndication
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   267
'Aspect for boolean holder, block, or method, specifying the indication state (CheckToggle behavior).'
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   268
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   269
#basicsIsButton
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   270
'Enable/disable button-like behavior.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   271
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   272
#basicsKey
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   273
'Internal key of the item (optional, for programmed accesses).'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   274
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   275
#basicsLabel
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   276
'Label of the item.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   277
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   278
#basicsMenu
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   279
'Aspect providing the sub menu to be opened if item is selected (provide spec or valueHolder).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   280
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   281
#basicsMenuArgument
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   282
'An argument passed with the menu selector.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   283
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   284
#basicsNameKey
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   285
'Unique identifier of the item (optional).'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   286
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   287
#basicsSelector
613
5bdf59b03e8e checkin from browser
tz
parents: 612
diff changeset
   288
'Selector under which the generated menu spec is saved.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   289
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   290
#basicsSeparatorType
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   291
'List of valid separators.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   292
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   293
#basicsTranslateLabel
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   294
'Translate the label via the classes resource file (internationalization).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   295
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   296
#browseResource
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   297
'Search for methods with image resource.'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   298
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   299
#detailsAccelerator
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   300
'Accelerator key to select the menu item from the keyboard (Cmdx or Ctrlx).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   301
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   302
#detailsAccessCharaterPosition
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   303
'Index of the access character position of the textual label (obsolete, VW compatibility).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   304
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   305
#detailsAuxValue
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   306
'Some additional value - for arbitrary use by the program'
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   307
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   308
#detailsEnabled
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   309
'Aspect or binding providing a boolean value holder for the enable-state of the menu item.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   310
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   311
#detailsStartGroup
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   312
'Specify start of a right-aligned item group.'
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   313
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   314
#detailsVisibility
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   315
'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   316
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   317
#fileLoad
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   318
'Open a dialog to select and load a menu spec from a class.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   319
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   320
#fileNew
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   321
'Create a new menu spec.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   322
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   323
#filePickAMenu
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
   324
'Select a menu from an open view and read its specification'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   325
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   326
#fileSave
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   327
'Save the menu spec (and the help spec, if modified).'
455
117dcae8b5e0 no separate save of help keys
tz
parents: 441
diff changeset
   328
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   329
#fileSaveAs
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   330
'Open a dialog to save the menu spec (and the help spec, if modified).'
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   331
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   332
#hideMenuOnActivated
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   333
'If on, the menu hides itself after the item was activated.'
1426
fcf2ecbdde67 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1425
diff changeset
   334
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   335
#imageImageAndLabel
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   336
'Toggle display of both image and textual label.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   337
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   338
#imageImageEditor
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   339
'Open an Image Editor on the resource method defined by retriever and selector.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   340
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   341
#imageImageList
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   342
'Currently existing image resources.'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   343
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   344
#imageRetriever
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   345
'Class implementing the image resource method. If no class is given, the current application class will be taken.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   346
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   347
#imageSelector
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   348
'Selector returning an image (sent to above or the application).'
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   349
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   350
#keepLinkedMenu
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   351
'Keep the linked menu after activation (do not destroy).'
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   352
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   353
#showBusyCursorWhilePerforming
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   354
'If on, a busy cursor is shown while the items action is performing.'
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   355
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   356
#triggerOnDown
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   357
'If on, the items action is performed on mouse-button press (default is on button-release).'
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   358
1564
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   359
#horizontalLayout
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   360
'If on, the submenu organizes its items horizontal insteat of vertical (default).'
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   361
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   362
)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   363
! !
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   364
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   365
!MenuEditor class methodsFor:'image specs'!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   366
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   367
linkSubmenuImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   368
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   369
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   370
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   371
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   372
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   373
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   374
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   375
     ImageEditor openOnClass:self andSelector:#linkSubmenuImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   376
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   377
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   378
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   379
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   380
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   381
        constantNamed:#'MenuEditor linkSubmenuImage'
1425
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   382
        ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@ADQDQDQDQDQDQH@D"H"H"H"H"H"K0@RH"H"H"H"H"H/@A????????????<@D@@@@@@@@@@@C0@PL3L0DQDQDQD_@A@3L3LBH"H"H"<@DCL3L3@"H"H"K0@PL3L3L0??????@A@@@@L3L@@@@@<@DQDQDCL3@PLAG0@RH"H"@3L0@3@/@AH"H"H L3L3L0<@G?????<CL3L3L@@P@@@@@@@3L3LO@ADQDQDQDP@CLA<@D"H"H"H"H LBK0@RH"H"H"H"@BH/@B????????????<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   383
!
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   384
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   385
menuItemImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   386
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   387
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   388
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   389
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   390
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   391
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   392
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   393
     ImageEditor openOnClass:self andSelector:#menuItemImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   394
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   395
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   396
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   397
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   398
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   399
        constantNamed:#'MenuEditor menuItemImage'
1425
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   400
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUQUUUUUUUPUUUUUUU_UUUUUUUPUUUUUUUP@@@@@@@@EUUUUUVAF*****+HF:?+::;@F:.+*?;@F:.+::;@F:.+*:;@F:.+::;@F*****+DK??????A@@@@@@@@UUUUUUUPUUUUUUUXUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUX') ; 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:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   401
!
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   402
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   403
menuSeparatorImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   404
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   405
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   406
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   407
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   408
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   409
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   410
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   411
     ImageEditor openOnClass:self andSelector:#menuSeparatorImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   412
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   413
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   414
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   415
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   416
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   417
        constantNamed:#'MenuEditor menuSeparatorImage'
1425
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   418
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUURUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP@@@@@@@@EUUUUUV@F*****+DF*****+CF?????+@F0@@@@[@F%UUUU[HF*****+@F*****+@K??????N@@@@@@@HUUUUUUUPUUUUUUUPUUUUUUUWUUUUUUUXUUUUUUUPUUUUUUUP') ; 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:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   419
!
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   420
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   421
submenuImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   422
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   423
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   424
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   425
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   426
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   427
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   428
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   429
     ImageEditor openOnClass:self andSelector:#submenuImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   430
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   431
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   432
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   433
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   434
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   435
        constantNamed:#'MenuEditor submenuImage'
1425
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   436
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@EUUUUUV@F*****+@F*****+@G??????GD@@@@@C@EUUUUUWLF*****+@F*****+@G??????HD@@@@@C@EUUUUUW@F*****+@F*****+OG??????@D@@@@@C@EUUUUUW@F*****+@F*****+@K??????@@@@@@@@@@@@@@@@@') ; 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:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   437
! !
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   438
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   439
!MenuEditor class methodsFor:'interface specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   440
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   441
basicsItemSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   442
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   443
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   444
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   445
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   446
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   447
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   448
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   449
     UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   450
     MenuEditor new openInterface:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   451
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   452
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   453
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   454
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   455
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   456
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   457
        #name: #basicsItemSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   458
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   459
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   460
          #label: 'Basics Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   461
          #name: 'Basics Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   462
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   463
          #max: #(#Point 1160 870)
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   464
          #bounds: #(#Rectangle 898 390 1173 751)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   465
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   466
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   467
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   468
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   469
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   470
              #label: 'Name Key:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   471
              #name: 'nameKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   472
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   473
              #activeHelpKey: #basicsKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   474
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   475
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   476
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   477
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   478
              #name: 'nameKeyField'
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   479
              #layout: #(#LayoutFrame 110 0 16 0 -5 1.0 38 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   480
              #activeHelpKey: #basicsKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   481
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   482
              #model: #nameKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   483
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   484
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   485
              #acceptOnLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   486
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   487
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   488
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   489
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   490
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   491
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   492
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   493
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   494
              #label: 'Label:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   495
              #name: 'labelLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   496
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   497
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   498
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   499
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   500
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   501
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   502
              #name: 'labelField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   503
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   504
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   505
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   506
              #model: #label
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   507
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   508
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   509
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   510
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   511
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   512
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   513
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   514
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   515
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   516
              #label: 'Action:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   517
              #name: 'valueLabel'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   518
              #layout: #(#AlignmentOrigin 107 0 85 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   519
              #activeHelpKey: #basicsAction
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   520
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   521
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   522
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   523
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   524
              #name: 'valueField'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   525
              #layout: #(#LayoutFrame 110 0 74 0 -5 1.0 96 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   526
              #activeHelpKey: #basicsAction
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   527
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   528
              #model: #value
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   529
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   530
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   531
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   532
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   533
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   534
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   535
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   536
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   537
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   538
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   539
              #label: 'Argument:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   540
              #name: 'argumentLabel'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   541
              #layout: #(#AlignmentOrigin 107 0 110 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   542
              #activeHelpKey: #basicsArgument
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   543
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   544
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   545
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   546
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   547
              #name: 'argumentField'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   548
              #layout: #(#LayoutFrame 110 0 99 0 -5 1.0 121 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   549
              #activeHelpKey: #basicsArgument
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   550
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   551
              #model: #argument
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   552
              #group: #inputGroup1
1189
0e7e286f864c code cleanup; care for non-string argument
Claus Gittinger <cg@exept.de>
parents: 1155
diff changeset
   553
              #type: #smalltalkObject
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   554
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   555
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   556
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   557
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   558
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   559
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   560
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   561
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   562
              #label: 'Indication:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   563
              #name: 'indicationLabel'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   564
              #layout: #(#AlignmentOrigin 107 0 144 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   565
              #activeHelpKey: #basicsIndication
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   566
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   567
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   568
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   569
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   570
              #name: 'indicationField'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   571
              #layout: #(#LayoutFrame 110 0 133 0 -5 1.0 155 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   572
              #activeHelpKey: #basicsIndication
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   573
              #enableChannel: #indicationEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   574
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   575
              #model: #indication
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   576
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   577
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   578
              #immediateAccept: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   579
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   580
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   581
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   582
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   583
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   584
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   585
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   586
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   587
              #label: 'Choice:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   588
              #name: 'choiceLabel'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   589
              #layout: #(#AlignmentOrigin 107 0 169 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   590
              #activeHelpKey: #basicsChoice
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   591
              #translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   592
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   593
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   594
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   595
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   596
              #name: 'choiceField'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   597
              #layout: #(#LayoutFrame 110 0 158 0 -5 1.0 180 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   598
              #activeHelpKey: #basicsChoice
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   599
              #enableChannel: #choiceEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   600
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   601
              #model: #choice
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   602
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   603
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   604
              #immediateAccept: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   605
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   606
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   607
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   608
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   609
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   610
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   611
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   612
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   613
              #label: 'Value:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   614
              #name: 'choiceValueLabel'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   615
              #layout: #(#AlignmentOrigin 107 0 194 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   616
              #activeHelpKey: #basicsChoiceValue
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   617
              #translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   618
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   619
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   620
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   621
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   622
              #name: 'choiceValueField'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   623
              #layout: #(#LayoutFrame 110 0 183 0 -5 1.0 205 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   624
              #activeHelpKey: #basicsChoiceValue
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   625
              #enableChannel: #choiceValueEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   626
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   627
              #model: #choiceValue
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   628
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   629
              #type: #smalltalkObject
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   630
              #acceptOnLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   631
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   632
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   633
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   634
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   635
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   636
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   637
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   638
           #(#CheckBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   639
              #label: 'Translate Label'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   640
              #name: 'translateLabelCheckBox'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   641
              #layout: #(#Point 20 218)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   642
              #activeHelpKey: #basicsTranslateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   643
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   644
              #model: #translateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   645
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   646
           #(#CheckBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   647
              #label: 'Is Button'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   648
              #name: 'isButtonCheckBox'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   649
              #layout: #(#Point 20 243)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   650
              #activeHelpKey: #basicsIsButton
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   651
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   652
              #model: #isButton
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   653
            )
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   654
           #(#CheckBoxSpec
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   655
              #label: 'Hide Menu after Activation'
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   656
              #name: 'hideMenuOnActivated'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   657
              #layout: #(#Point 20 267)
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   658
              #activeHelpKey: #hideMenuOnActivated
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   659
              #tabable: true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   660
              #model: #hideMenuOnActivated
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   661
            )
1348
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   662
           #(#CheckBoxSpec
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   663
              #label: 'BusyCursor while Active'
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   664
              #name: 'showBusyCursorWhilePerforming'
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   665
              #layout: #(#Point 20 291)
1426
fcf2ecbdde67 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1425
diff changeset
   666
              #activeHelpKey: #showBusyCursorWhilePerforming
1348
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   667
              #tabable: true
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   668
              #model: #showBusyCursorWhilePerforming
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   669
              #translateLabel: true
48e25df6aa34 added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents: 1335
diff changeset
   670
            )
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   671
           #(#CheckBoxSpec
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   672
              #label: 'Trigger On Down'
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   673
              #name: 'triggerOnDown'
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   674
              #layout: #(#Point 20 315)
1426
fcf2ecbdde67 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1425
diff changeset
   675
              #activeHelpKey: #triggerOnDown
1410
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   676
              #tabable: true
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   677
              #model: #triggerOnDown
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   678
              #translateLabel: true
ec3abe12f662 implement: triggerOnDown
ca
parents: 1407
diff changeset
   679
            )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   680
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   681
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   682
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   683
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   684
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   685
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   686
basicsLinkSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   687
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   688
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   689
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   690
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   691
     the UIPainter may not be able to read the specification."
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   692
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   693
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   694
     UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   695
     MenuEditor new openInterface:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   696
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   697
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   698
    <resource: #canvas>
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   699
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   700
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   701
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   702
        #name: #basicsLinkSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   703
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   704
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   705
          #label: 'Basics Link'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   706
          #name: 'Basics Link'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   707
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   708
          #max: #(#Point 1280 1024)
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   709
          #bounds: #(#Rectangle 900 124 1167 443)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   710
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   711
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   712
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   713
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   714
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   715
              #label: 'Name Key:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   716
              #name: 'nameKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   717
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   718
              #activeHelpKey: #nameKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   719
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   720
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   721
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   722
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   723
              #name: 'nameKeyField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   724
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   725
              #activeHelpKey: #basicsNameKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   726
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   727
              #model: #nameKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   728
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   729
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   730
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   731
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   732
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   733
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   734
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   735
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   736
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   737
              #label: 'Label:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   738
              #name: 'labelLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   739
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   740
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   741
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   742
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   743
              #name: 'labelField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   744
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   745
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   746
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   747
              #model: #label
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   748
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   749
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   750
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   751
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   752
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   753
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   754
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   755
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   756
              #label: 'Menu:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   757
              #name: 'menuLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   758
              #layout: #(#AlignmentOrigin 107 0 76 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   759
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   760
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   761
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   762
              #name: 'menuField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   763
              #layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   764
              #activeHelpKey: #basicsMenu
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   765
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   766
              #model: #submenuChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   767
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   768
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   769
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   770
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   771
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   772
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   773
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   774
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   775
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   776
              #label: 'Argument:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   777
              #name: 'ArgumentLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   778
              #layout: #(#AlignmentOrigin 107 0 100 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   779
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   780
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   781
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   782
              #name: 'argumentField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   783
              #layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   784
              #activeHelpKey: #basicsMenuArgument
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   785
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   786
              #model: #argument
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   787
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   788
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   789
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   790
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   791
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   792
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   793
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   794
           #(#CheckBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   795
              #label: 'Translate Label'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   796
              #name: 'translateLabelCheckBox'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   797
              #layout: #(#Point 20 190)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   798
              #activeHelpKey: #basicsTranslateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   799
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   800
              #model: #translateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   801
            )
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   802
           #(#CheckBoxSpec
1564
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   803
              #label: 'Has Horizontal Layout'
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   804
              #name: 'horizontalLayout'
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   805
              #layout: #(#Point 20 217)
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   806
              #activeHelpKey: #horizontalLayout
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   807
              #tabable: true
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   808
              #model: #horizontalLayout
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   809
            )
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   810
           #(#CheckBoxSpec
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   811
              #label: 'Do not destroy linked Menu'
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   812
              #name: 'keepLinkedMenu'
1564
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   813
              #layout: #(#Point 20 244)
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   814
              #tabable: true
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   815
              #activeHelpKey: #keepLinkedMenu
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   816
              #model: #keepLinkedMenu
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   817
              #translateLabel: true
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   818
            )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   819
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   820
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   821
        )
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   822
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   823
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   824
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   825
basicsMenuSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   826
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   827
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   828
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   829
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   830
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   831
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   832
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   833
     UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   834
     MenuEditor new openInterface:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   835
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   836
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   837
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   838
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   839
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   840
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   841
        #name: #basicsMenuSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   842
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   843
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   844
          #label: 'Basics Menu'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   845
          #name: 'Basics Menu'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   846
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   847
          #max: #(#Point 1280 1024)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   848
          #bounds: #(#Rectangle 93 223 360 542)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   849
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   850
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   851
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   852
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   853
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   854
              #label: 'Name Key:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   855
              #name: 'nameKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   856
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   857
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   858
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   859
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   860
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   861
              #name: 'nameKeyField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   862
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   863
              #activeHelpKey: #basicsNameKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   864
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   865
              #model: #nameKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   866
              #group: #inputGroup3
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   867
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   868
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   869
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   870
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   871
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   872
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   873
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   874
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   875
              #label: 'Label:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   876
              #name: 'labelLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   877
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   878
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   879
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   880
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   881
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   882
              #name: 'labelField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   883
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   884
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   885
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   886
              #model: #label
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   887
              #group: #inputGroup3
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   888
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   889
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   890
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   891
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   892
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   893
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   894
           #(#CheckBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   895
              #label: 'Translate Label'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   896
              #name: 'translateLabelCheckBox'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   897
              #layout: #(#Point 20 190)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   898
              #activeHelpKey: #basicsTranslateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   899
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   900
              #model: #translateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   901
            )
1564
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   902
           #(#CheckBoxSpec
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   903
              #label: 'Has Horizontal Orientation'
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   904
              #name: 'horizontalLayout'
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   905
              #layout: #(#Point 20 217)
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   906
              #activeHelpKey: #horizontalLayout
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   907
              #tabable: true
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   908
              #model: #horizontalLayout
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   909
            )
0833cfacf787 menuBuilder: support of horizontal/vertical layout of submenu
ca
parents: 1547
diff changeset
   910
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   911
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   912
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   913
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   914
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   915
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   916
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   917
basicsRootSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   918
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   919
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   920
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   921
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   922
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   923
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   924
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   925
     UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   926
     MenuEditor new openInterface:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   927
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   928
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   929
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   930
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   931
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   932
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   933
        #name: #basicsRootSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   934
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   935
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   936
          #label: 'Basics Root'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   937
          #name: 'Basics Root'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   938
          #layout: #(#LayoutFrame 11 0 100 0 277 0 418 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   939
          #level: 0
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   940
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   941
          #max: #(#Point 1280 1024)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   942
          #bounds: #(#Rectangle 11 100 278 419)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   943
          #usePreferredExtent: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   944
          #returnIsOKInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   945
          #escapeIsCancelInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   946
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   947
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   948
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   949
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   950
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   951
              #label: 'Selector:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   952
              #name: 'selectorLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   953
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   954
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   955
              #adjust: #right
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   956
              #activeHelpKey: #basicsSelector
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   957
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   958
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   959
              #name: 'selectorField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   960
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   961
              #activeHelpKey: #basicsSelector
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   962
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   963
              #model: #label
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   964
              #group: #inputGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   965
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   966
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   967
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   968
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   969
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   970
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   971
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   972
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   973
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   974
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   975
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   976
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   977
basicsSeparatorSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   978
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   979
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   980
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   981
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   982
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   983
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   984
    "
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   985
     UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   986
     MenuEditor new openInterface:#basicsSeparatorSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   987
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   988
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   989
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   990
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   991
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   992
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   993
        #name: #basicsSeparatorSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   994
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   995
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   996
          #label: 'Basics Separator'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   997
          #name: 'Basics Separator'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   998
          #layout: #(#LayoutFrame 9 0 149 0 275 0 467 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   999
          #level: 0
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1000
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1001
          #max: #(#Point 1160 870)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1002
          #bounds: #(#Rectangle 9 149 276 468)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1003
          #usePreferredExtent: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1004
          #returnIsOKInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1005
          #escapeIsCancelInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1006
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1007
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1008
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1009
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1010
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1011
              #label: 'Separator Type:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1012
              #name: 'separatorLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1013
              #layout: #(#AlignmentOrigin 127 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1014
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1015
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1016
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1017
           #(#ComboListSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1018
              #name: 'seperatorList'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1019
              #layout: #(#LayoutFrame 132 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1020
              #activeHelpKey: #basicsSeparatorType
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1021
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1022
              #model: #seperatorSelection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1023
              #useIndex: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1024
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1025
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1026
              #label: 'Visibility:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1027
              #name: 'visibilityLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1028
              #layout: #(#AlignmentOrigin 127 0 76 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1029
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1030
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1031
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1032
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1033
              #name: 'visibilityInputField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1034
              #layout: #(#LayoutFrame 132 0 65 0 -5 1.0 87 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1035
              #activeHelpKey: #detailsVisibility
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1036
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1037
              #model: #isVisible
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1038
              #group: #inputGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1039
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1040
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1041
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1042
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1043
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1044
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1045
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1046
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1047
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1048
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1049
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1050
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1051
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1052
detailsEditSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1053
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1054
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1055
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1056
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1057
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1058
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1059
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1060
     UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1061
     MenuEditor new openInterface:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1062
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1063
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1064
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1065
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1066
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1067
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1068
        #name: #detailsEditSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1069
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1070
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1071
          #label: 'Details Edit'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1072
          #name: 'Details Edit'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1073
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1074
          #max: #(#Point 1280 1024)
1365
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1075
          #bounds: #(#Rectangle 12 22 327 306)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1076
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1077
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1078
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1079
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1080
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1081
              #label: 'Accelerator:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1082
              #name: 'shortcutKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1083
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1084
              #activeHelpKey: #detailsAccelerator
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1085
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1086
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1087
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1088
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1089
              #name: 'shortcutKeyField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1090
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1091
              #activeHelpKey: #detailsAccelerator
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1092
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1093
              #model: #shortcutKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1094
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1095
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1096
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1097
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1098
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1099
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1100
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1101
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1102
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1103
              #label: 'Enabled:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1104
              #name: 'enabledLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1105
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1106
              #activeHelpKey: #detailsEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1107
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1108
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1109
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1110
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1111
              #name: 'enabledField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1112
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1113
              #activeHelpKey: #detailsEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1114
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1115
              #model: #enabled
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1116
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1117
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1118
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1119
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1120
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1121
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1122
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1123
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1124
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1125
              #label: 'Visibility:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1126
              #name: 'visibilityLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1127
              #layout: #(#AlignmentOrigin 107 0 76 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1128
              #activeHelpKey: #detailsVisibility
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1129
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1130
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1131
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1132
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1133
              #name: 'isVisibleInputField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1134
              #layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1135
              #activeHelpKey: #detailsVisibility
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1136
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1137
              #model: #isVisible
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1138
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1139
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1140
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1141
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1142
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1143
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1144
              #acceptOnPointerLeave: false
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1145
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1146
           #(#LabelSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1147
              #label: 'Aux Value'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1148
              #name: 'auxLabel'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1149
              #layout: #(#AlignmentOrigin 107 0 101 0 1 0.5)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1150
              #activeHelpKey: #detailsAuxValue
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1151
              #translateLabel: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1152
              #resizeForLabel: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1153
              #adjust: #right
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1154
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1155
           #(#InputFieldSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1156
              #name: 'auxInputField'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1157
              #layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1158
              #activeHelpKey: #detailsAuxValue
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1159
              #tabable: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1160
              #model: #auxValue
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1161
              #group: #inputGroup4
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1162
              #type: #smalltalkObject
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1163
              #acceptOnReturn: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1164
              #acceptOnTab: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1165
              #acceptChannel: #acceptChannel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1166
              #modifiedChannel: #modifiedChannel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1167
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1168
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1169
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1170
              #label: 'Start Group:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1171
              #name: 'StartGroupLabel'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1172
              #layout: #(#AlignmentOrigin 107 0 139 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1173
              #activeHelpKey: #detailsStartGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1174
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1175
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1176
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1177
           #(#PopUpListSpec
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1178
              #label: 'left'
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1179
              #name: 'StartGroupPopUp'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1180
              #layout: #(#LayoutFrame 110 0 128 0 -5 1.0 150 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1181
              #activeHelpKey: #detailsStartGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1182
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1183
              #model: #startGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1184
              #menu: 
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1185
             #(#left
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1186
                #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1187
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1188
              #useIndex: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1189
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1190
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1191
              #label: 'Access Character Position:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1192
              #name: 'accessCharLabel'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1193
              #layout: #(#AlignmentOrigin 217 0 170 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1194
              #activeHelpKey: #detailsAccessCharaterPosition
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1195
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1196
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1197
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1198
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1199
              #name: 'accessCharField'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1200
              #layout: #(#LayoutFrame 220 0 159 0 -5 1.0 181 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1201
              #activeHelpKey: #detailsAccessCharaterPosition
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1202
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1203
              #model: #accessCharacterPos
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1204
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1205
              #type: #numberOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1206
              #immediateAccept: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1207
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1208
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1209
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1210
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1211
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1212
            )
1365
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1213
           #(#LabelSpec
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1214
              #label: 'Font:'
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1215
              #name: 'fontLabel'
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1216
              #layout: #(#AlignmentOrigin 75 0 231 0 1 0.5)
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1217
              #resizeForLabel: true
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1218
              #adjust: #right
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1219
            )
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1220
           #(#FontMenuSpec
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1221
              #attributes: 
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1222
             #(#tabable
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1223
                true
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1224
              )
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1225
              #name: 'fontMenu'
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1226
              #layout: #(#LayoutFrame 78 0 220 0 -5 1.0 242 0)
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1227
              #activeHelpKey: #fontMenu
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1228
              #model: #font
a54466f79962 support setting font in MenuPanel and Editor
ca
parents: 1355
diff changeset
  1229
            )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1230
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1231
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1232
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1233
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1234
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1235
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1236
imageEditSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1237
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1238
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1239
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1240
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1241
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1242
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1243
    "
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1244
     UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
  1245
     MenuEditor new openInterface:#imageEditSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1246
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1247
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1248
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1249
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1250
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1251
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1252
        #name: #imageEditSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1253
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1254
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1255
          #label: 'Image Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1256
          #name: 'Image Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1257
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1258
          #max: #(#Point 1280 1024)
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
  1259
          #bounds: #(#Rectangle 12 22 300 317)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1260
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1261
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1262
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1263
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1264
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1265
              #label: 'Retriever:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1266
              #name: 'retrieverLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1267
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1268
              #activeHelpKey: #imageRetriever
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1269
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1270
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1271
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1272
           #(#ComboBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1273
              #name: 'retrieverField'
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
  1274
              #layout: #(#LayoutFrame 110 0 15 0 -20 1.0 37 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1275
              #activeHelpKey: #imageRetriever
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1276
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1277
              #model: #retriever
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1278
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1279
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1280
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1281
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1282
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1283
              #comboList: #retrieverClassList
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1284
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1285
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1286
              #label: 'Selector:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1287
              #name: 'iconLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1288
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1289
              #activeHelpKey: #imageSelector
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1290
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1291
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1292
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1293
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1294
              #name: 'iconField'
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
  1295
              #layout: #(#LayoutFrame 110 0 40 0 -42 1.0 62 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1296
              #activeHelpKey: #imageSelector
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1297
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1298
              #model: #icon
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1299
              #group: #inputGroup5
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1300
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1301
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1302
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1303
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1304
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1305
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1306
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1307
           #(#ActionButtonSpec
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1308
              #label: '...'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1309
              #name: 'browseButton'
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
  1310
              #layout: #(#LayoutFrame -40 1 40 0 -20 1 62 0)
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1311
              #activeHelpKey: #browseResource
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1312
              #tabable: true
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1313
              #model: #doBrowseForImageResource
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1314
            )
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
  1315
           #(#SelectionInListModelViewSpec
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
  1316
              #name: 'selectionOfImage'
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff