UIPainter.st
author Claus Gittinger <cg@exept.de>
Wed, 12 Apr 2017 09:24:04 +0200
changeset 3440 4e18ffc36717
parent 3428 2159fce56364
child 3444 4d705dd47c2d
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: ImageEditor class changed: #floodFillToleranceSpec #windowSpec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     1
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
     2
 COPYRIGHT (c) 1995-1998 by eXept Software AG
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
     3
              All Rights Reserved
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     4
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     5
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     6
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     8
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     9
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    10
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    11
"
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
    12
"{ Package: 'stx:libtool2' }"
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
    13
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
    14
"{ NameSpace: Smalltalk }"
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
    15
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
    16
ResourceSpecEditor subclass:#UIPainter
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    17
	instanceVariableNames:'specSuperclassName treeView selectionPanel specTool layoutTool
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
    18
		helpTool painterView painter lastPort lastPage'
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
    19
	classVariableNames:'SelectionPanelClass UseViewScroller LastPort LastPage
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
    20
		DefaultEditToolBarVisible DefaultToolBarVisible'
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    21
	poolDictionaries:''
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    22
	category:'Interface-UIPainter'
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    23
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    24
3111
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    25
Query subclass:#ApplicationClassQuery
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    26
	instanceVariableNames:''
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    27
	classVariableNames:''
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    28
	poolDictionaries:''
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    29
	privateIn:UIPainter
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    30
!
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
    31
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    32
SelectionInTreeView subclass:#TreeView
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
    33
	instanceVariableNames:'lastDrawnMaster canvasEventsDisabled windowSpec windowSpecClass
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
    34
		painter'
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    35
	classVariableNames:''
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    36
	poolDictionaries:''
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    37
	privateIn:UIPainter
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    38
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    39
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    40
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    41
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    42
copyright
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    43
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    44
 COPYRIGHT (c) 1995-1998 by eXept Software AG
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    45
              All Rights Reserved
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    46
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    47
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    48
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    49
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    50
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    51
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    52
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    53
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    54
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    55
!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    56
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    57
documentation
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    58
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    59
    The GUI Painter provides the user with a graphical user interface for building own 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    60
    interfaces by interactively assembling widgets and defining the behavior of the widgets.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    61
    The resulting interface specifications can be saved as methods on the application
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    62
    classes, typically subclasses of the class ApplicationModel. These specifications
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    63
    are used by the UIBuilder to generate the application window and its widgets when 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    64
    opening the application.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    65
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    66
    [start with:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    67
        UIPainter open
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    68
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    69
    [author:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    70
        Claus Gittinger, eXept Software AG
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    71
        Claus Atzkern, eXept Software AG
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    72
        Thomas Zwick, eXept Software AG
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    73
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    74
    [see also:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    75
        UIBuilder
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    76
        ApplicationModel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    77
        UISpecification
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    78
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    79
    [instance variables:]                                                  
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    80
        isSpecOnlyPainter       true if this painter is for a spec only (as used by expecco),
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    81
                                as opposed to a regular painter, which stores the spec in a class.
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    82
                                A spec-only painter has no class to store additional specs (esp.
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    83
                                menu- and tabSpecs) and should not offer postBuild and other
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    84
                                callback functions.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    85
"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    86
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    87
2399
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    88
!UIPainter class methodsFor:'initialization'!
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    89
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    90
initialize
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    91
    SelectionPanelClass isNil ifTrue:[
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    92
        SelectionPanelClass := UISelectionPanel
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    93
    ].
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    94
! !
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    95
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    96
!UIPainter class methodsFor:'instance creation'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    97
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    98
openOnClass:aClass andSelector:aSelector
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
    99
    "open a GUI Painter on aClass and (windowSpec) aSelector"
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
   100
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
   101
    ^ self new openOnClass:aClass theNonMetaclass andSelector:aSelector
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   102
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   103
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
   104
!UIPainter class methodsFor:'ST-80 queries'!
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
   105
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
   106
preferenceFor:aSymbol
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   107
    "ST-80 compatible; always returns false
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   108
    "
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
   109
    ^ false
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   110
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   111
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   112
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   113
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   114
!UIPainter class methodsFor:'defaults'!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   115
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   116
defaultEditToolbarVisible
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   117
    ^ DefaultEditToolBarVisible ? true
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   118
!
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   119
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   120
defaultNameOfCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
   121
    "returns the default name of the application"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
   122
2208
4e1c31df6014 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
   123
    ^ 'NewApplication'
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   124
!
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   125
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   126
defaultToolbarVisible
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   127
    ^ DefaultToolBarVisible ? true
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   128
!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   129
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   130
selectionPanelClass
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   131
    ^ SelectionPanelClass
2225
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   132
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   133
    "
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   134
     UIPainter selectionPanelClass.
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   135
     UIPainter selectionPanelClass:UISelectionPanel
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   136
    "
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   137
!
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   138
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   139
selectionPanelClass:something
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   140
    "set the class used as selection panel.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   141
     this is UISelectionPanel as default"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   142
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   143
    SelectionPanelClass := something.
2225
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   144
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   145
    "
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   146
     UIPainter selectionPanelClass:UISelectionPanel
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   147
    "
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   148
! !
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   149
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   150
!UIPainter class methodsFor:'help specs'!
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   151
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   152
flyByHelpSpec
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   153
    <resource: #help>
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   154
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   155
    ^super flyByHelpSpec 
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   156
        addPairsFrom:#(
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   157
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   158
#fileSave
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
   159
'Save Spec'
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
   160
2336
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   161
shadesOfRed
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   162
'Red color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   163
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   164
shadesOfGreen
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   165
'Green color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   166
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   167
shadesOfBlue
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   168
'Blue color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   169
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   170
shadesOfCyan
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   171
'Cyan color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   172
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   173
shadesOfMagenta
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   174
'Magenta color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   175
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   176
shadesOfYellow
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   177
'Yellow color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   178
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   179
shadesOfGray
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   180
'Gray color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   181
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   182
openColorEditor
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   183
'Open a color editor'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   184
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   185
pickColorFromScreen
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   186
'Pick a color from the screen'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   187
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   188
recentlyUsedColors
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   189
'Pick a recently used color'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   190
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   191
useDefaultColorToggle
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   192
'Toggle between default and explicit color'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   193
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   194
);
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   195
    declareAllFrom:self helpSpec
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   196
!
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   197
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   198
helpSpec
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   199
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   200
     by the UIHelpTool of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   201
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   202
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   203
     the UIHelpTool may not be able to read the specification."
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   204
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   205
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   206
     UIHelpTool openOnClass:UIPainter    
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   207
    "
114befd1c369 add some help text
ca
parents: 287
diff changeset
   208
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   209
    <resource: #help>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   210
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   211
    ^ super helpSpec addPairsFrom:#(
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   212
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   213
#align
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   214
'Widget alignment functions'
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   215
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   216
#alignResizeSelectionBottom
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   217
'Resize the selected widgets'' bottom edges to align them with the bottom of the dominant widget'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   218
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   219
#alignResizeSelectionLeft
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   220
'Resize the selected widgets'' left edges to align them with the left edge of the dominant widget'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   221
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   222
#alignResizeSelectionRight
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   223
'Resize the selected widgets'' right edges to align them with the right edge of the dominant widget'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   224
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   225
#alignResizeSelectionTop
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   226
'Resize the selected widgets'' top edges to align them with the top edge of the dominant widget'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   227
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   228
#alignSelectionBottom
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   229
'Aligns the selected widgets'' bottom edges with the bottom of the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   230
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   231
#alignSelectionCenterHor
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   232
'Aligns the selected widgets'' centers vertically with the center of the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   233
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   234
#alignSelectionCenterVer
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   235
'Aligns the selected widgets'' centers horizontally with the center of the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   236
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   237
#alignSelectionLeft
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   238
'Aligns the selected widgets'' left edges with the left edge of the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   239
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   240
#alignSelectionLeftAndRight
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   241
'Aligns the selected widgets'' left & right edges with the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   242
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   243
#alignSelectionRight
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   244
'Aligns the selected widgets'' right edges with the right edge of the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   245
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   246
#alignSelectionTop
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   247
'Aligns the selected widgets'' top edges with the top edge of the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   248
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   249
#alignSelectionTopAndBottom
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   250
'Aligns the selected widgets'' top and bottom edges with the dominant widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   251
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   252
#alignToGrid
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   253
'Am Raster ausrichten'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   254
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   255
#centerSelectionHor
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   256
'Centers the selected widgets horizontally within their containing widget'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   257
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   258
#centerSelectionVer
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   259
'Centers the selected widgets vertically within their containing widget'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   260
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   261
#changePositionDown
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   262
'Moves the selected widget(s) towards the bottom (by %1 pixels)'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   263
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   264
#changePositionLeft
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   265
'Moves the selected widget(s) towards the left (by %1 pixels)'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   266
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   267
#changePositionRight
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   268
'Moves the selected widget(s) towards the right (by %1 pixels)'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   269
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   270
#changePositionUp
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   271
'Moves the selected widget(s) towards the top (by %1 pixels)'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   272
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   273
#'changeMoveDelta'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   274
'Click to change the delta by which the buttons to the left move the selected widget(s)'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   275
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   276
#drawEdit
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   277
''
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   278
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   279
#editBrowseViewClass
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   280
'Opens a browser on the class of the selected widget'
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   281
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   282
#editDimensionCopyExtent
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   283
'Copies the extent of the selected widget'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   284
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   285
#editDimensionCopyLayout
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   286
'Copies the layout of the selected widget'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   287
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   288
#editDimensionDefaultExtent
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   289
'Sets the selected widget(s) extent to their default'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   290
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   291
#editDimensionDefaultHeight
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   292
'Sets the selected widget(s) height to their default'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   293
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   294
#editDimensionDefaultWidth
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   295
'Sets the selected widget(s) width to their default'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   296
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   297
#editDimensionPasteExtent
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   298
'Sets the extent of the selected widget(s) to the last copied extent'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   299
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   300
#editDimensionPasteHeight
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   301
'Sets the height of the selected widget(s) to the height of the last copied layout/extent'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   302
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   303
#editDimensionPasteLayout
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   304
'Sets the layout of the selected widget(s) to the last copied layout'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   305
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   306
#editDimensionPasteWidth
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   307
'Sets the width of the selected widget(s) to the width of the last copied layout/extent'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   308
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   309
#editInspectSpec
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   310
'Opens an inspector on the spec of the selected widget'
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   311
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   312
#editInspectView
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   313
'Opens an inspector on the selected widget'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   314
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   315
#editOpenSpecDocumentation
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   316
'Opens the documentation of the selected widget'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   317
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   318
#editSaveSpecForSelection
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   319
'Generate a sub-spec method for the selected element only.\Useful when refactoring an existing spec into sub specifications.'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   320
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   321
#fileBrowseAspectMethods
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   322
'Opens a System Browser on the application''s aspect methods'
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   323
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
   324
#fileBrowseClass
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   325
'Open a System Browser on the application''s class'
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
   326
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   327
#fileLoad
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   328
'Opens a dialog to load a window specification from a classes spec method'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   329
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   330
#fileLoadSubspec
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   331
'Opens a dialog to load a sub specification from a classes windowSpec method'
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   332
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   333
#fileNew
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   334
'Creates a new window spec'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   335
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   336
#filePickAnInterface
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   337
'Select a view on the screen, generate a window spec for it and edit this spec'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   338
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   339
#fileSave
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   340
'Saves the window spec in the current class (as spec method)'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   341
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   342
#fileSaveAs
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   343
'Opens a dialog to select class and selector for saving the window spec'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   344
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   345
#fileShowWindowSpec
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   346
'Opens a Workspace showing the current window spec'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   347
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   348
#generateAspectMethods
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   349
'Generates aspect methods for defined aspect selectors of the widgets'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   350
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   351
#generateHookMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   352
'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   353
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   354
#helpExamples
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   355
'Show some examples uses of the GUI Painter'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   356
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   357
#helpFunctions
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   358
'Show the documentation on the GUI Painters menu and button functions'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   359
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   360
#helpLayoutTool
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   361
'Show the Layout Tools documentation'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   362
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   363
#helpSelectedWidget
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   364
'Show the documentation of the selected widget'
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   365
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   366
#helpTutorial
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   367
'Show the GUI Painters documentation'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   368
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   369
#historyMenuItem
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   370
'Edit this windowSpec'
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   371
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   372
#moveWidgetDown
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   373
'Moves the selected widget down in the list (brings it to the front)'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   374
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   375
#moveWidgetInto
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   376
'Moves the selected widget into next widget as child widget'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   377
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   378
#moveWidgetOut
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   379
'Moves the selected widget out of its parent widget'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   380
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   381
#moveWidgetUp
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   382
'Moves the selected widget up in the list (brings it to the back)'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   383
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   384
#openColorEditor
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   385
'Open a color editor'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   386
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   387
#pasteBuffer
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   388
'Pastes the widgets of the clipboard at the current mouse position'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   389
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   390
#pasteWithLayout
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   391
'Pastes the widgets of the clipboard without changing their layouts'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   392
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   393
#pickColorFromScreen
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   394
'Pick a color from the screen'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   395
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   396
#recentlyUsedColors
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   397
'Pick a recently used color'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   398
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   399
#referToConfigDatabase
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   400
''
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   401
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   402
#settingsAspectsAsInstances
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   403
'Generate aspects as instance variables (or bindings, if off)'
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   404
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   405
#settingsCanvas
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   406
'Shows or hides the canvas window'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   407
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   408
#settingsGallery
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   409
'Shows or hides the gallery window'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   410
2294
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
   411
#settingsGenerateCommentedCode
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   412
'Enables/disables comments in the generated code, especially in aspect and hook methods'
2294
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
   413
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   414
#settingsGridManager
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   415
'Opens a dialog to toggle grid display or to change the grids spacing'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   416
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   417
#settingsRedefineAspectMethods
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   418
'Toggles the permission to overwrite existing aspect methods'
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   419
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   420
#settingsTranscriptHelp
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   421
'Toggles display of help texts (after opening a new GUI Painter)'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   422
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   423
#settingsUndoManager
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   424
'Opens a dialog to undo modifications'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   425
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   426
#shadesOfBlue
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   427
'Blue color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   428
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   429
#shadesOfCyan
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   430
'Cyan color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   431
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   432
#shadesOfGray
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   433
'Gray color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   434
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   435
#shadesOfGreen
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   436
'Green color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   437
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   438
#shadesOfMagenta
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   439
'Magenta color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   440
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   441
#shadesOfRed
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   442
'Red color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   443
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   444
#shadesOfYellow
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   445
'Yellow color tones'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   446
2690
fc931f748fb4 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2662
diff changeset
   447
#showGrid
fc931f748fb4 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2662
diff changeset
   448
'Raster zeigen'
fc931f748fb4 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2662
diff changeset
   449
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   450
#sortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   451
'Sort the selected items by position (left to right, top to bottom)'
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   452
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   453
#spreadSelectionHor
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   454
'Sets the horizontal spaces between the selected widgets to the same value'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   455
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   456
#spreadSelectionVer
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   457
'Sets the vertical spaces between the selected widgets to the same value'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   458
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   459
#testGeometryTestMode
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   460
'Toggles geometry test mode (to define ratios of variable panels and top-window dimension)'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   461
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   462
#testStartApplication
2901
4c010c4a4166 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2883
diff changeset
   463
'Starts the application with the current window spec'
194
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   464
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
   465
#useDefaultColorToggle
2336
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   466
'Toggle between default and explicit color'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   467
3229
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   468
#useDefaultFontToggle
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   469
'Toggle between default and explicit font'
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   470
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   471
#concreteFontsFamily
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   472
'Choose a font family'
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   473
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   474
#concreteFontsFace
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   475
'Choose a font face'
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   476
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   477
#concreteFontsStyle
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   478
'Choose a font style'
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   479
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   480
#concreteFontsSize
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   481
'Choose a font size (in points, not pixels)'
ba4c463b66ad #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3228
diff changeset
   482
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
   483
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   484
)
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   485
! !
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   486
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   487
!UIPainter class methodsFor:'helpers'!
14db1276218c change the spec;
ca
parents: 295
diff changeset
   488
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   489
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   490
    "converts a string to a string collection with maximum characters
14db1276218c change the spec;
ca
parents: 295
diff changeset
   491
     per line
14db1276218c change the spec;
ca
parents: 295
diff changeset
   492
    "
14db1276218c change the spec;
ca
parents: 295
diff changeset
   493
    |stream
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   494
        max     "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   495
        size    "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   496
        start   "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   497
        stop    "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   498
        cpySz   "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   499
        lnSz    "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   500
        atBeginOfLine|
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   501
14db1276218c change the spec;
ca
parents: 295
diff changeset
   502
    maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   503
                               ifTrue:[max := 20].
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   504
14db1276218c change the spec;
ca
parents: 295
diff changeset
   505
    (size := aString size) <= max ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   506
        ^ aString
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   507
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   508
    start  := 1.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   509
    lnSz   := 0.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   510
    stream := (String new:size) writeStream.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   511
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   512
    atBeginOfLine := true.
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   513
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   514
    [start <= size] whileTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   515
        (start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   516
            ^ stream contents
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   517
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   518
        (aString at:start) == $\ ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   519
            skipLineFeed ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   520
                stream nextPut:$\
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   521
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   522
            start := start + 1.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   523
            stream cr.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   524
            start := start + 1.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   525
            lnSz := 0.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   526
        ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   527
            (stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   528
                stop := size + 1
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   529
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   530
            (aString at:(stop - 1)) == $\ ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   531
                stop := stop - 1
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   532
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   533
            cpySz := stop - start.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   534
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   535
            lnSz == 0 ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   536
                (lnSz := lnSz + cpySz) >= max ifTrue:[stream cr.    lnSz := cpySz. atBeginOfLine := true. ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   537
                                             ifFalse:[stream space. lnSz := lnSz + 1]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   538
            ] ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   539
                lnSz := cpySz
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   540
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   541
            stream nextPutAll:aString startingAt:start to:(stop - 1).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   542
            start := stop.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   543
        ]
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   544
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   545
    ^ stream contents
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   546
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   547
    "Modified: / 1.2.1998 / 14:42:56 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   548
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
   549
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   550
!UIPainter class methodsFor:'image specs'!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   551
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   552
arrowDown
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   553
    <resource: #image>
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   554
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   555
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   556
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   557
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   558
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   559
     self arrowDown inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   560
     ImageEditor openOnClass:self andSelector:#arrowDown
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   561
     Icon flushCachedIcons"
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   562
    
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   563
    ^ Icon constantNamed:'UIPainter class arrowDown'
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   564
        ifAbsentPut:[
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   565
            (Depth1Image new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   566
                width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   567
                height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   568
                photometric:(#palette);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   569
                bitsPerSample:(#[ 1 ]);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   570
                samplesPerPixel:(1);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   571
                bits:(ByteArray fromPackedString:'?>C?8O? ?>C@XNC <^C;8O? ?>C?8@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   572
                colorMapFromArray:#[ 0 0 0 255 255 255 ];
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   573
                mask:((ImageMask new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   574
                            width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   575
                            height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   576
                            bits:(ByteArray 
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   577
                                        fromPackedString:'
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   578
@@@@@@@@@@@? A<@C @D@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   579
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   580
                            yourself);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   581
                yourself
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   582
        ]
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   583
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   584
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   585
arrowLeft
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   586
    <resource: #image>
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   587
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   588
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   589
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   590
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   591
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   592
     self arrowLeft inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   593
     ImageEditor openOnClass:self andSelector:#arrowLeft
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   594
     Icon flushCachedIcons"
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   595
    
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   596
    ^ Icon constantNamed:'UIPainter class arrowLeft'
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   597
        ifAbsentPut:[
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   598
            (Depth1Image new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   599
                width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   600
                height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   601
                photometric:(#palette);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   602
                bitsPerSample:(#[ 1 ]);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   603
                samplesPerPixel:(1);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   604
                bits:(ByteArray fromPackedString:'?>C?8O7 >^C18NG <^C98O7 ?>C?8@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   605
                colorMapFromArray:#[ 0 0 0 255 255 255 ];
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   606
                mask:((ImageMask new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   607
                            width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   608
                            height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   609
                            bits:(ByteArray fromPackedString:'@@@@@@H@A @N@A8@C PF@@H@@@@@@@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   610
                            yourself);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   611
                yourself
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   612
        ]
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   613
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   614
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   615
arrowRight
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   616
    <resource: #image>
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   617
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   618
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   619
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   620
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   621
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   622
     self arrowRight inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   623
     ImageEditor openOnClass:self andSelector:#arrowRight
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   624
     Icon flushCachedIcons"
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   625
    
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   626
    ^ Icon constantNamed:'UIPainter class arrowRight'
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   627
        ifAbsentPut:[
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   628
            (Depth1Image new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   629
                width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   630
                height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   631
                photometric:(#palette);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   632
                bitsPerSample:(#[ 1 ]);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   633
                samplesPerPixel:(1);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   634
                bits:(ByteArray fromPackedString:'?>C?8O_ <>C18OC <^C38O_ ?>C?8@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   635
                colorMapFromArray:#[ 0 0 0 255 255 255 ];
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   636
                mask:((ImageMask new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   637
                            width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   638
                            height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   639
                            bits:(ByteArray fromPackedString:'@@@@@@ @C@@NA@<@C @L@@ @@@@@@@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   640
                            yourself);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   641
                yourself
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   642
        ]
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   643
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   644
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   645
arrowUp
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   646
    <resource: #image>
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   647
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   648
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   649
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   650
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   651
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   652
     self arrowUp inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   653
     ImageEditor openOnClass:self andSelector:#arrowUp
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   654
     Icon flushCachedIcons"
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   655
    
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   656
    ^ Icon constantNamed:'UIPainter class arrowUp'
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   657
        ifAbsentPut:[
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   658
            (Depth1Image new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   659
                width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   660
                height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   661
                photometric:(#palette);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   662
                bitsPerSample:(#[ 1 ]);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   663
                samplesPerPixel:(1);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   664
                bits:(ByteArray fromPackedString:'?>C?8O? >>C18NC 0FC?8O? ?>C?8@@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   665
                colorMapFromArray:#[ 0 0 0 255 255 255 ];
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   666
                mask:((ImageMask new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   667
                            width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   668
                            height:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   669
                            bits:(ByteArray fromPackedString:'@@@@@@@@A@@NG1<@O8@@@@@@@@@@AP@a');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   670
                            yourself);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   671
                yourself
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   672
        ]
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   673
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   674
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   675
browseActionImage
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   676
    <resource: #image>
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   677
    "This resource specification was automatically generated
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   678
     by the ImageEditor of ST/X."
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   679
    "Do not manually edit this!! If it is corrupted,
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   680
     the ImageEditor may not be able to read the specification."
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   681
    "
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   682
     self browseActionImage inspect
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   683
     ImageEditor openOnClass:self andSelector:#browseActionImage
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   684
     Icon flushCachedIcons"
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   685
    
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   686
    ^ Icon constantNamed:'UIPainter class browseActionImage'
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   687
        ifAbsentPut:[
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   688
            (Depth8Image new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   689
                width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   690
                height:12;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   691
                photometric:(#palette);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   692
                bitsPerSample:(#[ 8 ]);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   693
                samplesPerPixel:(1);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   694
                bits:(ByteArray 
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   695
                            fromPackedString:'
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   696
R@@@RT%RST1LTD9H@D%IT%MRSD1PS$!!RT$5RUEILT%INT%UVT%YWU%IVUUIHT%!!YV%-ZVU!!RWD!!MT%Y[@E-VT%5\RD1RU%,@V5YRWU1HT%!!YV%-ZVU!!RWEIU
3113
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   697
U%IVU5YRU%URZ%IR@EITT ART&,@@@@@T%MR@@@@@@@@@@@@T @@@@@@');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   698
                colorMapFromArray:#[ 255 248 248 63 144 224 64 152 232 79 160 232 64 152 224 64 144 224 63 136 224 48 128 216 48 120 216 47 112 216 47 112 208 32 104 208 32 96 208 31 88 200 16 88 200 16 80 200 15 72 192 15 64 192 0 64 192 0 56 184 0 56 176 0 48 160 143 200 248 128 200 248 127 192 248 112 184 248 111 176 248 96 168 248 95 160 248 80 152 248 79 144 248 64 128 248 63 120 248 48 112 248 32 104 248 31 96 248 16 88 248 15 80 248 0 72 248 0 64 240 0 48 168 112 176 248 111 168 248 96 160 248 95 152 248 80 144 248 79 136 248 63 128 248 48 120 248 47 112 248 15 72 248 0 48 176 95 168 232 191 224 248 191 216 248 176 208 248 175 208 248 175 200 248 160 200 248 160 192 248 159 192 248 159 184 248 144 184 248 144 176 248 143 168 248 128 168 248 128 160 248 127 160 248 127 152 240 31 72 176 111 168 232 127 160 216 207 216 240 240 240 248 240 232 240 63 88 176 239 232 240 240 240 240 48 88 176 96 168 224 224 224 232 96 160 224 240 144 24 255 248 48 255 248 96 255 248 24 240 208 24 255 248 152 255 248 88 255 248 136 255 248 176 255 248 200 48 80 176 223 216 224 96 152 224 96 152 216 95 152 216 48 120 208 80 144 208 80 136 208 79 128 200 79 120 200 79 120 192 64 112 192 64 104 184 63 104 184 63 96 184 15 56 160 ];
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   699
                mask:((ImageMask new)
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   700
                            width:11;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   701
                            height:12;
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   702
                            bits:(ByteArray fromPackedString:'A@@N@F;@?>A?0G>@O8A?0O? [,@N@@P@');
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   703
                            yourself);
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   704
                yourself
7b82f9dd4e1b Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 3111
diff changeset
   705
        ]
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   706
!
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   707
3296
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   708
builderIcon
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   709
    "This resource specification was automatically generated
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   710
     by the ImageEditor of ST/X."
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   711
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   712
    "Do not manually edit this!! If it is corrupted,
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   713
     the ImageEditor may not be able to read the specification."
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   714
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   715
    "
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   716
     self builderIcon inspect
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   717
     ImageEditor openOnClass:self andSelector:#builderIcon
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   718
     Icon flushCachedIcons
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   719
    "
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   720
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   721
    <resource: #image>
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   722
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   723
    ^Icon
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   724
        constantNamed:'UIPainter builderIcon'
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   725
        ifAbsentPut:[(Depth1Image width:48 height:48 photometric:#whiteIs0) bits:(ByteArray fromPackedString:'
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   726
@@@@@@@@O??????<H@@@@@@DH_@@@@@DH_@OC?>DH_@IC??$H_@IC??4H_@IC??$H_@IC?>DH_@F@J DH_@F@M DH_@F@J DH_@F@M DH_@F@J DH_@F@M D
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   727
H_@F@J DH_@F@M DH_@F@J DH_@F@M DH_@F@J DH_@_ M DH_@ PJ DH_@)PM DH_@)PJ DH_@)PM DH? )PJ DI?0)PM DK?8)PJ DK18)PM DK 8)PJ D
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   728
K@X)PM DK@X PG@DK@X_ @@DH@@@@@@DH@@@@@@DO??????<@@@@@@@@NDIHNG''@IDIHIDD H$IHH$DPIDIHH$DPNDIHH$D IDIHH''G@H$IHH$E@H$IHH$D 
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   729
IBQHIDDPNA!!ONG$P@@@@@@@@'); yourself]
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   730
!
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
   731
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   732
defaultIcon
2175
f8dd64f73dfc icon resource
Claus Gittinger <cg@exept.de>
parents: 2159
diff changeset
   733
    <resource: #programImage>
f8dd64f73dfc icon resource
Claus Gittinger <cg@exept.de>
parents: 2159
diff changeset
   734
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   735
    ^ ToolbarIconLibrary startUIPainterIcon
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   736
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   737
    "Created: / 10-02-2007 / 14:45:56 / cg"
2175
f8dd64f73dfc icon resource
Claus Gittinger <cg@exept.de>
parents: 2159
diff changeset
   738
    "Modified: / 17-09-2007 / 11:36:33 / cg"
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   739
!
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   740
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   741
delta
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   742
    "This resource specification was automatically generated
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   743
     by the ImageEditor of ST/X."
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   744
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   745
    "Do not manually edit this!! If it is corrupted,
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   746
     the ImageEditor may not be able to read the specification."
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   747
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   748
    "
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   749
     self delta inspect
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   750
     ImageEditor openOnClass:self andSelector:#delta
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   751
     Icon flushCachedIcons
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   752
    "
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   753
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   754
    <resource: #image>
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   755
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   756
    ^Icon
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   757
        constantNamed:'UIPainter delta'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   758
        ifAbsentPut:[(Depth1Image new) width:11; height:11; bits:(ByteArray fromPackedString:'?>C?8O? >>C@XLA 0VB;(H@ ?"C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((ImageMask new) width:11; height:11; bits:(ByteArray fromPackedString:'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   759
@@@@@@@@A@@J@AD@HHA@PG?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   760
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   761
!
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
   762
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   763
editTableIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   764
    <resource: #programImage>
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   765
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   766
    ^ SystemBrowser tableColumnsIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   767
!
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   768
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   769
helpIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   770
    <resource: #programImage>
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   771
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   772
    ^ Icon helpIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   773
!
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   774
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   775
hideToolBarIcon
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   776
    <resource: #programImage>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   777
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   778
    ^ ToolbarIconLibrary hideToolBarIcon
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   779
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   780
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   781
iconAlignB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   782
    <resource: #image>
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   783
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   784
     by the ImageEditor of ST/X."
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   785
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   786
     the ImageEditor may not be able to read the specification."
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   787
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   788
     self iconAlignB inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   789
     ImageEditor openOnClass:self andSelector:#iconAlignB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   790
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   791
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   792
    ^ Icon constantNamed:'UIPainter class iconAlignB'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   793
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   794
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   795
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   796
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   797
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   798
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   799
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   800
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   801
                            fromPackedString:'
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   802
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@G@@@@@@@G@E@@@@@G@G@@@@@G@G@@@@@G@G@@@E@G@G@@@G@G@G@K@G@G@G@@@G@G@G@A@G@G@G@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   803
@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   804
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   805
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   806
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   807
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   808
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   809
                                        fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   810
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   811
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   812
        ]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   813
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   814
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   815
iconAlignL
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   816
    <resource: #image>
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   817
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   818
     by the ImageEditor of ST/X."
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   819
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   820
     the ImageEditor may not be able to read the specification."
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   821
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   822
     self iconAlignL inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   823
     ImageEditor openOnClass:self andSelector:#iconAlignL
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   824
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   825
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   826
    ^ Icon constantNamed:'UIPainter class iconAlignL'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   827
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   828
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   829
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   830
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   831
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   832
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   833
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   834
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   835
                            fromPackedString:'
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   836
@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   837
@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   838
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   839
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   840
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   841
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   842
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   843
                                        fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   844
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   845
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   846
        ]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   847
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   848
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   849
iconAlignLR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   850
    <resource: #image>
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   851
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   852
     by the ImageEditor of ST/X."
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
   853
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   854
     the ImageEditor may not be able to read the specification."
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   855
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   856
     self iconAlignLR inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   857
     ImageEditor openOnClass:self andSelector:#iconAlignLR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   858
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   859
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   860
    ^ Icon constantNamed:'UIPainter class iconAlignLR'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   861
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   862
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   863
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   864
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   865
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   866
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   867
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   868
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   869
                            fromPackedString:'
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   870
@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   871
@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   872
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   873
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   874
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   875
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   876
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   877
                                        fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A F@A G?? G?? G?? G?? F@A F@A G?? G?? G?; G?? F@A @@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   878
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   879
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   880
        ]
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
   881
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   882
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   883
iconAlignR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   884
    <resource: #image>
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   885
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   886
     by the ImageEditor of ST/X."
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   887
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   888
     the ImageEditor may not be able to read the specification."
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   889
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   890
     self iconAlignR inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   891
     ImageEditor openOnClass:self andSelector:#iconAlignR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   892
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   893
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   894
    ^ Icon constantNamed:'UIPainter class iconAlignR'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   895
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   896
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   897
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   898
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   899
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   900
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   901
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   902
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   903
                            fromPackedString:'
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   904
@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   905
@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   906
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   907
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   908
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   909
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   910
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   911
                                        fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   912
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   913
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   914
        ]
1432
c032f34cd7bb remove shortcutKeyCharacter's from menu
ca
parents: 1397
diff changeset
   915
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   916
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   917
iconAlignT
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   918
    <resource: #image>
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   919
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   920
     by the ImageEditor of ST/X."
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   921
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   922
     the ImageEditor may not be able to read the specification."
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   923
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   924
     self iconAlignT inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   925
     ImageEditor openOnClass:self andSelector:#iconAlignT
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   926
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   927
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   928
    ^ Icon constantNamed:'UIPainter class iconAlignT'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   929
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   930
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   931
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   932
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   933
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   934
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   935
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   936
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   937
                            fromPackedString:'
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   938
@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@G@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   939
@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   940
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   941
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   942
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   943
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   944
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   945
                                        fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   946
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   947
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   948
        ]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   949
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   950
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   951
iconAlignTB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   952
    <resource: #image>
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   953
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   954
     by the ImageEditor of ST/X."
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   955
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   956
     the ImageEditor may not be able to read the specification."
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   957
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   958
     self iconAlignTB inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   959
     ImageEditor openOnClass:self andSelector:#iconAlignTB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   960
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   961
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   962
    ^ Icon constantNamed:'UIPainter class iconAlignTB'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   963
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   964
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   965
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   966
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   967
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   968
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   969
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   970
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   971
                            fromPackedString:'
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   972
@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   973
@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   974
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   975
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   976
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   977
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   978
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   979
                                        fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   980
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   981
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   982
        ]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   983
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   984
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   985
iconCenterH
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   986
    <resource: #image>
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   987
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   988
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   989
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   990
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   991
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   992
     self iconCenterH inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   993
     ImageEditor openOnClass:self andSelector:#iconCenterH
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   994
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   995
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   996
    ^ Icon constantNamed:'UIPainter class iconCenterH'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   997
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   998
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
   999
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1000
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1001
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1002
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1003
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1004
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1005
                            fromPackedString:'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1006
@@@@@@@@@@@@@@@@@(@J@B @@(@J@B @@(UZUR @@(?:?R @@(@J@B @@(@J@B @@(@J@B @@@@J@@@@@EUZUU@@@O?:?=@@@@@J@@@@@(@J@B @@(@J@B @
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1007
@(@J@B @@(EZUB@@@(O:=B @@(@J@B @@(@J@B @@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1008
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1009
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1010
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1011
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1012
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1013
                                        fromPackedString:'@@@@@@@@@C@@A?>@A?>@A?>@A?>@@C@@@C@@G?? G?? G?? G??#@C@@@C@C@?<@@?<A@?<@@?<@@C@@@@@A@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1014
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1015
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1016
        ]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1017
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1018
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1019
iconCenterHInFrame
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1020
    <resource: #image>
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1021
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1022
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1023
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1024
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1025
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1026
     self iconCenterHInFrame inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1027
     ImageEditor openOnClass:self andSelector:#iconCenterHInFrame
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1028
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1029
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1030
    ^ Icon constantNamed:'UIPainter class iconCenterHInFrame'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1031
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1032
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1033
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1034
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1035
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1036
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1037
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1038
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1039
                            fromPackedString:'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1040
@@@@@@@@J******@H@@@@@B@HL@@@CB@H8UUUR2@HH???RB@H8@@@B2@HH@@@BB@H8@@@B2@H@@@@@B@HEUUUUB@HO???=B@H@@@@@B@H8@@@@2@HH@@@@B@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1041
H8@@@@2@HHEUUBB@H8O?=B2@HL@@@CB@H@@@@@B@J******@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1042
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1043
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1044
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1045
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1046
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1047
                                        fromPackedString:'@@@@_??8P@@HW??(U?>(U?>(U?>(T@@(T@@(W??(W??(W??(W??+T@@(T@@+T?<(T?<)T?<(W??(P@@H_??9@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1048
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1049
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1050
        ]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1051
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1052
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1053
iconCenterV
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1054
    <resource: #image>
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1055
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1056
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1057
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1058
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1059
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1060
     self iconCenterV inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1061
     ImageEditor openOnClass:self andSelector:#iconCenterV
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1062
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1063
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1064
    ^ Icon constantNamed:'UIPainter class iconCenterV'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1065
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1066
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1067
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1068
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1069
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1070
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1071
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1072
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1073
                            fromPackedString:'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1074
@@@@@@@@@@@@@@@@@@@@@@@@B**@J*(@B**MJ*(@@@@M@@@@@@@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@B*****(@B*****(@@M@M@M@@@M@M@M@@@E@M@M@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1075
@@@M@E@@@@@M@@@@B**EJ*(@B(*@J*(@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1076
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1077
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1078
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1079
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1080
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1081
                                        fromPackedString:'@@@@@@@@@@@@@G @@G @@G'' G''''!!G'''' G'''' G'''' O??0O??0G'''' G'''' G'''' G'''' @G''#@G @@G C@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1082
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1083
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1084
        ]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1085
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1086
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1087
iconCenterVInFrame
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1088
    <resource: #image>
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1089
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1090
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1091
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1092
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1093
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1094
     self iconCenterVInFrame inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1095
     ImageEditor openOnClass:self andSelector:#iconCenterVInFrame
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1096
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1097
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1098
    ^ Icon constantNamed:'UIPainter class iconCenterVInFrame'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1099
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1100
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1101
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1102
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1103
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1104
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1105
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1106
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1107
                            fromPackedString:'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1108
@@@@@@@@J******@H@@@@@B@HL3@L3B@H:*GJ*2@H@@G@@B@HG@G@@B@HG@G@GB@HG@G@GB@HG@G@GB@HG@G@GB@HG@G@GB@HG@G@GB@HG@G@GB@HG@G@EB@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1109
HE@G@@B@H@@G@@B@H:*E@J2@HL3@L3B@H@@@@@B@J******@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1110
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1111
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1112
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1113
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1114
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1115
                                        fromPackedString:'@@@B_??9P@@HW??(TG (W'' (W''''*W''''(W''''*W'''')W''''(W'''')W''''+W''''*W''''*W''''(W'' )TG (W??(P@@H_??8@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1116
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1117
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1118
        ]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1119
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1120
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1121
iconDistributeH
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1122
    <resource: #image>
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1123
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1124
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1125
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1126
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1127
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1128
     self iconDistributeH inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1129
     ImageEditor openOnClass:self andSelector:#iconDistributeH
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1130
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1131
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1132
    ^ Icon constantNamed:'UIPainter class iconDistributeH'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1133
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1134
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1135
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1136
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1137
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1138
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1139
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1140
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1141
                            fromPackedString:'
1863
f9a8e3c20143 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1862
diff changeset
  1142
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@E@@E@G@@G@@G@G@@G@@G@GHBGHBG@GHBGHBG@GJ*GJ*G@GHBGHBG@GHBGHBG@GB*GJ G@GB*GJ G@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1143
G@@G@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1144
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1145
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1146
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1147
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1148
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1149
                                        fromPackedString:'@@@@@@@@@@@@@@@@<G <<G <<G ?<G =>O1?>O1????<>O1<>O1><G <<G ><G <<G ?@@@A@@@@@@@@@@@@@@@A');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1150
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1151
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1152
        ]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1153
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1154
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1155
iconDistributeV
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1156
    <resource: #image>
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1157
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1158
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1159
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1160
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1161
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1162
     self iconDistributeV inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1163
     ImageEditor openOnClass:self andSelector:#iconDistributeV
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1164
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1165
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1166
    ^ Icon constantNamed:'UIPainter class iconDistributeV'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1167
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1168
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1169
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1170
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1171
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1172
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1173
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1174
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1175
                            fromPackedString:'
1863
f9a8e3c20143 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1862
diff changeset
  1176
@@@@@@@@@@UUUT@@@@???4@@@@@@@@@@@@@*(@@@@@JB@@@@@@JB@@@@@@JB@@@@@@J*(@@@@@@@@@@@@@UUUT@@@@???4@@@@@@@@@@@@J*(@@@@@JB@@@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1177
@@JB@@@@@@@B@@@@@@@*(@@@@@@@@@@@@@UUUT@@@@???4@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1178
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1179
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1180
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1181
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1182
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1183
                                        fromPackedString:'A??@A??@A??CA??@@G0@@A@@@A@@@A@@@G0CA??@A??@A??@A??@@G0C@A@@@A@@@A@@@G0AA??AA??@A??@A??B');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1184
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1185
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1186
        ]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1187
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1188
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1189
iconResizeB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1190
    <resource: #image>
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1191
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1192
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1193
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1194
     the ImageEditor may not be able to read the specification."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1195
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1196
     self iconResizeB inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1197
     ImageEditor openOnClass:self andSelector:#iconResizeB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1198
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1199
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1200
    ^ Icon constantNamed:'UIPainter class iconResizeB'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1201
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1202
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1203
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1204
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1205
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1206
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1207
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1208
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1209
                            fromPackedString:'
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1210
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@M@@@@@@@M@@@@@@@M@M@@@@@M@M@@@@@M@M@@@@@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@@@@@@M@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1211
@@@@@E@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1212
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1213
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1214
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1215
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1216
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1217
                                        fromPackedString:'@@@@@@@@@@@@@G A@G @@G'' @G'' @G''#@G'' G''''"G'''' G''''!!G'''' G'''' O?7 G'''' CCG O??0O??0@@@A@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1218
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1219
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1220
        ]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1221
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1222
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1223
iconResizeL
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1224
    <resource: #image>
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1225
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1226
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1227
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1228
     the ImageEditor may not be able to read the specification."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1229
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1230
     self iconResizeL inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1231
     ImageEditor openOnClass:self andSelector:#iconResizeL
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1232
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1233
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1234
    ^ Icon constantNamed:'UIPainter class iconResizeL'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1235
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1236
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1237
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1238
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1239
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1240
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1241
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1242
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1243
                            fromPackedString:'
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1244
@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(AUUU@@@(C???@@@(@@@@@E@(@@@@@@@(@@@@@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1245
@(@@@@@@@(AU@@@@@(C?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1246
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1247
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1248
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1249
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1250
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1251
                                        fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@FP@@F?? G?? G?? F?? FP@@FP@@F? @G? @G? @F? @FP@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1252
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1253
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1254
        ]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1255
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1256
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1257
iconResizeLR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1258
    <resource: #image>
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1259
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1260
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1261
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1262
     the ImageEditor may not be able to read the specification."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1263
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1264
     self iconResizeLR inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1265
     ImageEditor openOnClass:self andSelector:#iconResizeLR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1266
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1267
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1268
    ^ Icon constantNamed:'UIPainter class iconResizeLR'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1269
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1270
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1271
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1272
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1273
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1274
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1275
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1276
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1277
                            fromPackedString:'
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1278
@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(???2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(AUTB @@(C?<B @@(@@@B E@(@@@B @@(@@@B @
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1279
@(@@@B @@(AUTB @@(C?<B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1280
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1281
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1282
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1283
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1284
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1285
                                        fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A FPI F?= G?? G?? F?= FPI FPI F?= G?? G?? F?= FPI @@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1286
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1287
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1288
        ]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1289
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1290
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1291
iconResizeR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1292
    <resource: #image>
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1293
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1294
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1295
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1296
     the ImageEditor may not be able to read the specification."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1297
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1298
     self iconResizeR inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1299
     ImageEditor openOnClass:self andSelector:#iconResizeR
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1300
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1301
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1302
    ^ Icon constantNamed:'UIPainter class iconResizeR'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1303
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1304
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1305
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1306
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1307
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1308
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1309
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1310
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1311
                            fromPackedString:'
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1312
@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@???R @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUTB @@O??<B @@@@@@B E@@@@@B @@@@@@B @
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1313
@@@@@B @@@@ETB @@@@O<B @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1314
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1315
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1316
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1317
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1318
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1319
                                        fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@I G?= G?? G?? G?= @@I @@I @G= @G? @G? @G= @@I @@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1320
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1321
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1322
        ]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1323
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1324
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1325
iconResizeT
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1326
    <resource: #image>
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1327
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1328
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1329
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1330
     the ImageEditor may not be able to read the specification."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1331
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1332
     self iconResizeT inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1333
     ImageEditor openOnClass:self andSelector:#iconResizeT
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1334
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1335
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1336
    ^ Icon constantNamed:'UIPainter class iconResizeT'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1337
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1338
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1339
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1340
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1341
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1342
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1343
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1344
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1345
                            fromPackedString:'
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1346
@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@E@@@@@@@M@@@M@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@@@@M@M@@@@@M@M@@@@@M@M@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1347
@@@M@M@@@@@M@@@@@@@M@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1348
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1349
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1350
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1351
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1352
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1353
                                        fromPackedString:'@@@@@@@@@@@AO??0O??0CCG G'''' O?7 G'''' G'''' G''''!!G'''' G''''"@G'' @G''#@G'' @G'' @G @@G A@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1354
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1355
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1356
        ]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1357
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1358
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1359
iconResizeTB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1360
    <resource: #image>
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1361
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1362
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1363
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1364
     the ImageEditor may not be able to read the specification."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1365
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1366
     self iconResizeTB inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1367
     ImageEditor openOnClass:self andSelector:#iconResizeTB
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1368
     Icon flushCachedIcons"
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1369
    
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1370
    ^ Icon constantNamed:'UIPainter class iconResizeTB'
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1371
        ifAbsentPut:[
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1372
            (Depth2Image new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1373
                width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1374
                height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1375
                photometric:(#palette);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1376
                bitsPerSample:(#( 2 ));
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1377
                samplesPerPixel:(1);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1378
                bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1379
                            fromPackedString:'
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1380
@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@G@@@@@@@G@@@@@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@@@@@@
3119
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1381
@G@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1382
                colorMapFromArray:#[ 0 0 0 255 255 255 0 0 127 170 170 170 ];
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1383
                mask:((ImageMask new)
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1384
                            width:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1385
                            height:22;
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1386
                            bits:(ByteArray 
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1387
                                        fromPackedString:'@@@B@@@@@@@BO??0O??2G#C@G'''' G/?0G''''#G'''' G'''' G'''' G'''' G''''"G/?0G'''' G#C@O??1O??0@@@A@@@B@@@@');
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1388
                            yourself);
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1389
                yourself
0a80c1bf3dde Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 3113
diff changeset
  1390
        ]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  1391
! !
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  1392
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1393
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1394
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1395
dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1396
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1397
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1398
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1399
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1400
     the UIPainter may not be able to read the specification."
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1401
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1402
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1403
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1404
     UIPainter new openInterface:#dialogSpecForDefiningClassAndSelector
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1405
    "
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1406
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1407
    <resource: #canvas>
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1408
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1409
    ^
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1410
     
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1411
       #(#FullSpec
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1412
          #window: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1413
           #(#WindowSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1414
              #name: 'GUI Painter'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1415
              #layout: #(#LayoutFrame 291 0 130 0 637 0 289 0)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1416
              #label: 'GUI Painter'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1417
              #min: #(#Point 350 160)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1418
              #bounds: #(#Rectangle 291 130 638 290)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1419
              #usePreferredExtent: false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1420
          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1421
          #component: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1422
           #(#SpecCollection
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1423
              #collection: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1424
               #(
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1425
                 #(#FramedBoxSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1426
                    #name: 'FramedBox'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1427
                    #layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1428
                    #component: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1429
                     #(#SpecCollection
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1430
                        #collection: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1431
                         #(
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1432
                           #(#LabelSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1433
                              #name: 'selectorLabel'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1434
                              #layout: #(#AlignmentOrigin 67 0.11 29 0 1 0.5)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1435
                              #label: 'Selector:'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1436
                              #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1437
                              #adjust: #right
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1438
                              #resizeForLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1439
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1440
                           #(#InputFieldSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1441
                              #name: 'methodNameField'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1442
                              #layout: #(#LayoutFrame 70 0.11 18 0 4 1.0 40 0)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1443
                              #tabable: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1444
                              #model: #methodNameChannel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1445
                              #group: #inputGroup
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1446
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1447
                           #(#LabelSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1448
                              #name: 'classLabel'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1449
                              #layout: #(#AlignmentOrigin 67 0.11 54 0 1 0.5)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1450
                              #label: 'Class:'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1451
                              #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1452
                              #adjust: #right
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1453
                              #resizeForLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1454
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1455
                           #(#InputFieldSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1456
                              #name: 'classNameField'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1457
                              #layout: #(#LayoutFrame 70 0.11 43 0 4 1.0 65 0)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1458
                              #tabable: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1459
                              #model: #classNameChannel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1460
                              #group: #inputGroup
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1461
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1462
                           #(#LabelSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1463
                              #name: 'superClassLabel'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1464
                              #layout: #(#AlignmentOrigin 67 0.11 79 0 1 0.5)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1465
                              #label: 'Superclass:'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1466
                              #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1467
                              #adjust: #right
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1468
                              #resizeForLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1469
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1470
                           #(#ComboBoxSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1471
                              #name: 'superclassNameComboBox'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1472
                              #layout: #(#LayoutFrame 70 0.11 68 0 4 1.0 90 0)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1473
                              #tabable: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1474
                              #model: #superclassNameChannel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1475
                              #comboList: #superclassNameDefaults
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1476
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1477
                        )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1478
                    )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1479
                    #label: 'Define Class And Selector'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1480
                    #labelPosition: #topLeft
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1481
                    #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1482
                )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1483
                 #(#UISubSpecification
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1484
                    #name: 'subSpec'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1485
                    #layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1486
                    #majorKey: #ToolApplicationModel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1487
                    #minorKey: #windowSpecForCommitWithoutChannels
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1488
                )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1489
              )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1490
          )
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1491
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1492
950
3e227dc788be fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
  1493
    "Modified: / 13.8.1998 / 19:59:44 / cg"
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1494
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1495
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1496
dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1497
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1498
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1499
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1500
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1501
     the UIPainter may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1502
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1503
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1504
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1505
     UIPainter new openInterface:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1506
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1507
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1508
    <resource: #canvas>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1509
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1510
    ^ 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1511
     #(FullSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1512
        name: dialogSpecForDefiningGridParameters
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1513
        window: 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1514
       (WindowSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1515
          label: 'GUI Painter'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1516
          name: 'GUI Painter'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1517
          min: (Point 300 200)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1518
          max: (Point 300 200)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1519
          bounds: (Rectangle 16 46 298 244)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1520
        )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1521
        component: 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1522
       (SpecCollection
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1523
          collection: (
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1524
           (FramedBoxSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1525
              label: 'Grid Parameter'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1526
              name: 'FramedBox'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1527
              layout: (LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1528
              labelPosition: topLeft
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1529
              translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1530
              component: 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1531
             (SpecCollection
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1532
                collection: (
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1533
                 (CheckBoxSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1534
                    label: 'Show Grid'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1535
                    name: 'ShowGridCheckBox'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1536
                    layout: (Point 13 14)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1537
                    model: showGrid
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1538
                    translateLabel: true
2692
fe9fe2fa192c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  1539
            activeHelpKey: showGrid
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1540
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1541
                 (CheckBoxSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1542
                    label: 'Align To Grid'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1543
                    name: 'AlignCheckBox'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1544
                    layout: (Point 13 42)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1545
                    model: alignToGrid
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1546
                    translateLabel: true
2692
fe9fe2fa192c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  1547
            activeHelpKey: alignToGrid
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1548
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1549
                 (LabelSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1550
                    label: 'Horizontal Pixels:'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1551
                    name: 'HorizontalPixelsLabel'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1552
                    layout: (AlignmentOrigin 138 0 89 0 1 0.5)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1553
                    translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1554
                    resizeForLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1555
                    adjust: right
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1556
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1557
                 (InputFieldSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1558
                    name: 'HorizontalPixelsField'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1559
                    layout: (LayoutFrame 144 0 77 0 197 0 99 0)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1560
                    model: hspace
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1561
                    group: inputGroup
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1562
                    type: numberOrNil
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1563
                    acceptOnPointerLeave: false
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1564
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1565
                 (LabelSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1566
                    label: 'Vertical Pixels:'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1567
                    name: 'VerticalPixelsLabel'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1568
                    layout: (AlignmentOrigin 139 0 114 0 1 0.5)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1569
                    translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1570
                    resizeForLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1571
                    adjust: right
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1572
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1573
                 (InputFieldSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1574
                    name: 'VerticalPixelsField'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1575
                    layout: (LayoutFrame 144 0 102 0 197 0 124 0)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1576
                    model: vspace
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1577
                    group: inputGroup
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1578
                    type: numberOrNil
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1579
                    acceptOnPointerLeave: false
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1580
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1581
                 )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1582
               
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1583
              )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1584
            )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1585
           (UISubSpecification
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1586
              name: 'subSpec'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1587
              layout: (LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1588
              majorKey: ToolApplicationModel
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1589
              minorKey: windowSpecForCommitWithoutChannels
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1590
            )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1591
           )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1592
         
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1593
        )
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1594
      )
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1595
!
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1596
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1597
dialogSpecForDefiningPortAndPageName
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1598
    "This resource specification was automatically generated
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1599
     by the UIPainter of ST/X."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1600
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1601
    "Do not manually edit this!! If it is corrupted,
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1602
     the UIPainter may not be able to read the specification."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1603
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1604
    "
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1605
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningPortAndPageName
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1606
     UIPainter new openInterface:#dialogSpecForDefiningPortAndPageName
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1607
    "
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1608
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1609
    <resource: #canvas>
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1610
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1611
    ^ 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1612
     #(FullSpec
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1613
        name: dialogSpecForDefiningPortAndPageName
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1614
        window: 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1615
       (WindowSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1616
          label: 'GUI Painter'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1617
          name: 'GUI Painter'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1618
          min: (Point 350 140)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1619
          max: (Point 500 140)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1620
          bounds: (Rectangle 0 0 346 138)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1621
        )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1622
        component: 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1623
       (SpecCollection
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1624
          collection: (
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1625
           (FramedBoxSpec
2261
60725fccd12d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2258
diff changeset
  1626
              label: 'Define Service and Pagename'
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1627
              name: 'FramedBox'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1628
              layout: (LayoutFrame 0 0.0 3 0.0 0 1.0 -34 1.0)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1629
              labelPosition: topLeft
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1630
              translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1631
              component: 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1632
             (SpecCollection
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1633
                collection: (
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1634
                 (LabelSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1635
                    label: 'Service (or Port):'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1636
                    name: 'portLabel'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1637
                    layout: (AlignmentOrigin 67 0.11 29 0 1 0.5)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1638
                    translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1639
                    resizeForLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1640
                    adjust: right
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1641
                  )
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1642
                 (ComboBoxSpec
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1643
                    name: 'ComboBox1'
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1644
                    layout: (LayoutFrame 70 0.11 18 0 4 1.0 40 0)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1645
                    model: serviceOrPortNameChannel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1646
                    acceptOnPointerLeave: false
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1647
                    comboList: runningServerPorts
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1648
                  )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1649
                 (LabelSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1650
                    label: 'Pagename:'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1651
                    name: 'pageNameLabel'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1652
                    layout: (AlignmentOrigin 67 0.11 54 0 1 0.5)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1653
                    translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1654
                    resizeForLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1655
                    adjust: right
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1656
                  )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1657
                 (InputFieldSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1658
                    name: 'pageNameNameField'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1659
                    layout: (LayoutFrame 70 0.11 43 0 4 1.0 65 0)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1660
                    tabable: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1661
                    model: pageNameNameChannel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1662
                    group: inputGroup
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1663
                    acceptOnPointerLeave: false
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1664
                  )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1665
                 )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1666
               
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1667
              )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1668
            )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1669
           (UISubSpecification
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1670
              name: 'subSpec'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1671
              layout: (LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1672
              majorKey: ToolApplicationModel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1673
              minorKey: windowSpecForCommitWithoutChannels
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1674
            )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1675
           )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1676
         
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1677
        )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1678
      )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1679
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1680
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1681
windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1682
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1683
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1684
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1685
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1686
     the UIPainter may not be able to read the specification."
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1687
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1688
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1689
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1690
     UIPainter new openInterface:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1691
     UIPainter open
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1692
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1693
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1694
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1695
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1696
    ^ 
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1697
     #(FullSpec
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1698
        name: windowSpec
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1699
        window: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1700
       (WindowSpec
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1701
          label: 'GUI Painter'
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1702
          name: 'GUI Painter'
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1703
          min: (Point 560 460)
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1704
          bounds: (Rectangle 0 0 834 575)
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1705
          menu: menu
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
  1706
          icon: defaultIcon
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1707
        )
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1708
        component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1709
       (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1710
          collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1711
           (ViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1712
              name: 'mainPanel'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1713
              layout: (LayoutFrame 0 0 0 0 0 1 -24 1)
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1714
              component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1715
             (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1716
                collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1717
                 (ViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1718
                    name: 'ToolBar'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1719
                    layout: (LayoutFrame 0 0 0 0 0 1 32 0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1720
                    visibilityChannel: toolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1721
                    component: 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1722
                   (SpecCollection
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1723
                      collection: (
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1724
                       (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1725
                          label: 'hideToolBarIcon'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1726
                          name: 'HideToolBarButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1727
                          layout: (LayoutFrame 0 0 0 0 13 0 0 1)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1728
                          activeHelpKey: hideToolBar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1729
                          hasCharacterOrientedLabel: false
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1730
                          translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1731
                          model: hideToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1732
                          postBuildCallback: hideToolBarButtonCreated:
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1733
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1734
                       (MenuPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1735
                          name: 'menuToolbarView'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1736
                          layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1737
                          visibilityChannel: toolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1738
                          menu: menuToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1739
                          textDefault: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1740
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1741
                       )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1742
                     
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1743
                    )
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1744
                  )
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1745
                 (ViewSpec
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1746
                    name: 'EditToolBar'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1747
                    layout: (LayoutFrame 0 0 30 0 0 1 62 0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1748
                    visibilityChannel: editToolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1749
                    component: 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1750
                   (SpecCollection
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1751
                      collection: (
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1752
                       (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1753
                          label: 'hideToolBarIcon'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1754
                          name: 'HideEditToolBarButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1755
                          layout: (LayoutFrame 0 0 0 0 13 0 0 1)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1756
                          activeHelpKey: hideToolBar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1757
                          hasCharacterOrientedLabel: false
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1758
                          translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1759
                          model: hideEditToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1760
                          postBuildCallback: hideToolBarButtonCreated:
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1761
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1762
                       (MenuPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1763
                          name: 'EditToolBar1'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1764
                          layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1765
                          visibilityChannel: editToolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1766
                          menu: editToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1767
                          textDefault: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1768
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1769
                       )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1770
                     
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1771
                    )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1772
                  )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1773
                 (VariableHorizontalPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1774
                    name: 'Painter'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1775
                    layout: (LayoutFrame 0 0.0 60 0.0 0 1.0 0 1.0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1776
                    level: 1
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1777
                    component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1778
                   (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1779
                      collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1780
                       (ArbitraryComponentSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1781
                          name: 'treeView'
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1782
                          tabable: true
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1783
                          menu: menuEdit
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1784
                          hasHorizontalScrollBar: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1785
                          hasVerticalScrollBar: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1786
                          miniScrollerHorizontal: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1787
                          miniScrollerVertical: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1788
                          hasBorder: false
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1789
                          component: treeView
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1790
                        )
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1791
                       (ViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1792
                          name: 'specHolderView'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1793
                          level: 0
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1794
                          component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1795
                         (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1796
                            collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1797
                             (MenuPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1798
                                name: 'menuToolbar2View'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1799
                                layout: (LayoutFrame 2 0.0 2 0 -2 1.0 32 0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1800
                                level: 0
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1801
                                tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1802
                                menu: menuToolbar2
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1803
                              )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1804
                             (NoteBookViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1805
                                name: 'noteBook'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1806
                                layout: (LayoutFrame 2 0.0 32 0.0 -2 1.0 -28 1.0)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1807
                                level: 0
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1808
                                enableChannel: enableChannel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1809
                                tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1810
                                model: tabModel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1811
                                menu: tabList
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1812
                                translateLabel: true
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1813
                                canvas: noteBookView
1457
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1814
                              )
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1815
                             (HorizontalPanelViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1816
                                name: 'HorizontalPanel1'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1817
                                layout: (LayoutFrame 2 0 -26 1 -2 1 -2 1)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1818
                                horizontalLayout: fit
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1819
                                verticalLayout: fit
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1820
                                horizontalSpace: 3
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1821
                                verticalSpace: 3
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1822
                                reverseOrderIfOKAtLeft: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1823
                                component: 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1824
                               (SpecCollection
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1825
                                  collection: (
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1826
                                   (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1827
                                      label: 'Cancel'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1828
                                      name: 'cancelButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1829
                                      activeHelpKey: commitCancel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1830
                                      translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1831
                                      tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1832
                                      model: cancel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1833
                                      enableChannel: modifiedChannel
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1834
                                      extent: (Point 274 24)
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1835
                                    )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1836
                                   (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1837
                                      label: 'OK'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1838
                                      name: 'acceptButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1839
                                      activeHelpKey: commitOK
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1840
                                      translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1841
                                      tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1842
                                      model: accept
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1843
                                      enableChannel: modifiedChannel
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1844
                                      extent: (Point 274 24)
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1845
                                    )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1846
                                   )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1847
                                 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1848
                                )
1457
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1849
                              )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1850
                             )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1851
                           
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1852
                          )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1853
                        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1854
                       )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1855
                     
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1856
                    )
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1857
                    handles: (Any 0.3 1.0)
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1858
                  )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1859
                 )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1860
               
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1861
              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1862
            )
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1863
           (UISubSpecification
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1864
              name: 'infoBarSubSpec'
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1865
              layout: (LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1866
              level: 1
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1867
              majorKey: ToolApplicationModel
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1868
              minorKey: windowSpecForInfoBar
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1869
            )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1870
           )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1871
         
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1872
        )
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1873
      )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1874
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1875
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1876
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1877
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1878
cutCopyPasteMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1879
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1880
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1881
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1882
    "Do not manually edit this!! If it is corrupted,
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1883
     the MenuEditor may not be able to read the specification."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1884
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1885
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1886
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1887
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1888
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1889
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1890
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1891
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1892
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1893
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1894
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1895
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1896
            activeHelpKey: editCut
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1897
            enabled: canCutHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1898
            label: 'Cut'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1899
            itemValue: deleteSelection
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1900
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1901
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1902
            labelImage: (ResourceRetriever ToolbarIconLibrary cutWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1903
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1904
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1905
            activeHelpKey: editCopy
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1906
            enabled: canCopyHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1907
            label: 'Copy'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1908
            itemValue: copySelection
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1909
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1910
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1911
            labelImage: (ResourceRetriever ToolbarIconLibrary copyWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1912
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1913
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1914
            activeHelpKey: editPaste
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1915
            enabled: canPasteKeepingLayoutHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1916
            label: 'Paste with Layout'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1917
            itemValue: pasteWithLayout
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1918
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1919
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1920
            labelImage: (ResourceRetriever ToolbarIconLibrary pasteWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1921
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1922
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1923
            activeHelpKey: editDelete
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1924
            enabled: canCutHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1925
            label: 'Delete'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1926
            itemValue: deleteTotalSelection
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1927
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1928
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1929
            isVisible: false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1930
            labelImage: (ResourceRetriever ToolbarIconLibrary deleteWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1931
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1932
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1933
            label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1934
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1935
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1936
            activeHelpKey: editUndo
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1937
            enabled: hasUndoHistoryHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1938
            label: 'Undo'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1939
            itemValue: undoLast
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1940
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1941
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1942
            labelImage: (ResourceRetriever ToolbarIconLibrary undoIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1943
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1944
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1945
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1946
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1947
      )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1948
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1949
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1950
editToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1951
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1952
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1953
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1954
    "Do not manually edit this!! If it is corrupted,
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1955
     the MenuEditor may not be able to read the specification."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1956
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1957
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1958
     MenuEditor new openOnClass:UIPainter andSelector:#editToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1959
     (Menu new fromLiteralArrayEncoding:(UIPainter editToolbar)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1960
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1961
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1962
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1963
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1964
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1965
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1966
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1967
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1968
            label: 'moveItems'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1969
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1970
            submenuChannel: moveInListMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1971
            isMenuSlice: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1972
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1973
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1974
            label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1975
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1976
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1977
            label: 'gridItems'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1978
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1979
            submenuChannel: gridMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1980
            isMenuSlice: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1981
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1982
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1983
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1984
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1985
      )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1986
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1987
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1988
gridMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1989
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1990
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1991
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1992
    "Do not manually edit this!! If it is corrupted,
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1993
     the MenuEditor may not be able to read the specification."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1994
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1995
    "
3428
2159fce56364 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3386
diff changeset
  1996
     MenuEditor new openOnClass:Workflow::WorksheetEditor andSelector:#gridMenuSlice
2159fce56364 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3386
diff changeset
  1997
     (Menu new fromLiteralArrayEncoding:(Workflow::WorksheetEditor gridMenuSlice)) startUp
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1998
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1999
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2000
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2001
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2002
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2003
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2004
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2005
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2006
            label: 'ShowGrid'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2007
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2008
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2009
            indication: gridShownHolder
2522
45f29cf0cc5e grid icons
Claus Gittinger <cg@exept.de>
parents: 2512
diff changeset
  2010
            labelImage: (ResourceRetriever ToolbarIconLibrary gridIcon)
2692
fe9fe2fa192c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  2011
            activeHelpKey: showGrid
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2012
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2013
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2014
            label: 'AlignToGrid'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2015
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2016
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2017
            indication: alignToGridHolder
2522
45f29cf0cc5e grid icons
Claus Gittinger <cg@exept.de>
parents: 2512
diff changeset
  2018
            labelImage: (ResourceRetriever ToolbarIconLibrary gridAlignIcon)
2692
fe9fe2fa192c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  2019
            activeHelpKey: alignToGrid
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2020
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2021
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2022
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2023
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2024
      )
3428
2159fce56364 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3386
diff changeset
  2025
2159fce56364 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3386
diff changeset
  2026
    "Modified (comment): / 15-03-2017 / 11:30:06 / cg"
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2027
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2028
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2029
menu
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2030
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2031
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2032
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2033
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2034
     the MenuEditor may not be able to read the specification."
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2035
2883
bee1a24df6e4 changed: #menu
Claus Gittinger <cg@exept.de>
parents: 2854
diff changeset
  2036
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2037
    "
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2038
     MenuEditor new openOnClass:UIPainter andSelector:#menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2039
     (Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2040
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2041
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2042
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2043
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2044
    ^ 
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2045
     #(Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2046
        (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2047
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2048
            label: '&File'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2049
            translateLabel: true
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2050
            submenuChannel: menuFile
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2051
            keepLinkedMenu: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2052
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2053
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2054
            label: 'Edit'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2055
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2056
            submenuChannel: menuEdit
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2057
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2058
         (MenuItem
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2059
            label: 'View'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2060
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2061
            submenu: 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2062
           (Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2063
              (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2064
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2065
                  activeHelpKey: settingsCanvas
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2066
                  label: 'Canvas'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2067
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2068
                  indication: painterShown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2069
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2070
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2071
                  activeHelpKey: settingsGallery
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2072
                  label: 'Gallery'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2073
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2074
                  indication: galleryShown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2075
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2076
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2077
                  label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2078
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2079
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2080
                  label: 'Toolbar'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2081
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2082
                  hideMenuOnActivated: false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2083
                  indication: toolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2084
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2085
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2086
                  label: 'Editor Toolbar'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2087
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2088
                  hideMenuOnActivated: false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2089
                  indication: editToolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2090
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2091
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2092
                  label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2093
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2094
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2095
                  label: 'Load Sketch as Background...'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2096
                  itemValue: useSketch
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2097
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2098
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2099
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2100
                  label: 'Load Image as Background...'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2101
                  itemValue: useBackgroundImage
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2102
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2103
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2104
               )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2105
              nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2106
              nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2107
            )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2108
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2109
         (MenuItem
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2110
            label: 'Align'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2111
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2112
            submenuChannel: menuAlign
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2113
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2114
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2115
            label: 'Generate'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2116
            translateLabel: true
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  2117
            isVisible: isNotEditingSpecOnly
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2118
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2119
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2120
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2121
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2122
                  activeHelpKey: generateAspectMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2123
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2124
                  label: 'Aspect Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2125
                  itemValue: doGenerateAspectMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2126
                  translateLabel: true
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2127
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2128
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2129
                  activeHelpKey: generateAspectMethodFor
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2130
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2131
                  label: 'Aspect Method For...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2132
                  itemValue: doGenerateAspectMethodFor
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2133
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2134
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2135
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2136
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2137
                  label: 'Menu Stub Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2138
                  itemValue: doGenerateMenuMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2139
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2140
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2141
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2142
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2143
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2144
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2145
                  activeHelpKey: generateHookMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2146
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2147
                  label: 'Hook Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2148
                  itemValue: doGenerateHookMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2149
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2150
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2151
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2152
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2153
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2154
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2155
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2156
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2157
            label: 'Test'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2158
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2159
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2160
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2161
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2162
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2163
                  activeHelpKey: testStartApplication
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2164
                  label: 'Start Application'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2165
                  itemValue: doStartApplication
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2166
                  translateLabel: true
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  2167
                  isVisible: isNotEditingSpecOnly
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2168
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2169
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2170
                  label: '-'
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  2171
                  isVisible: isNotEditingSpecOnly
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2172
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2173
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2174
                  activeHelpKey: testGeometryTestMode
2883
bee1a24df6e4 changed: #menu
Claus Gittinger <cg@exept.de>
parents: 2854
diff changeset
  2175
                  label: 'Geometry Test/Set Mode'
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2176
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2177
                  indication: testMode:
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2178
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2179
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2180
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2181
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2182
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2183
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2184
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2185
            label: 'Settings'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2186
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2187
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2188
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2189
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2190
               (MenuItem
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2191
                  activeHelpKey: settingsAspectsAsInstances
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2192
                  label: 'Aspects as InstanceVariables'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2193
                  translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2194
                  isVisible: isNotEditingSpecOnly
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2195
                  indication: generateAspectsAsInstanceVariables:
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2196
                )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2197
               (MenuItem
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2198
                  activeHelpKey: settingsRedefineAspectMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2199
                  label: 'Redefine Aspect Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2200
                  translateLabel: true
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2201
                  isVisible: isNotEditingSpecOnly
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2202
                  indication: redefineAspectMethods:
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2203
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2204
               (MenuItem
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2205
                  activeHelpKey: settingsGenerateCommentedCode
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2206
                  label: 'Generate Commented Code'
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2207
                  translateLabel: true
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  2208
                  isVisible: isNotEditingSpecOnly
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2209
                  indication: generateCommentedCode:
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2210
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2211
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2212
                  label: 'AutoAccept on Selection-Change '
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2213
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2214
                  indication: autoAcceptOnSelectionChange
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2215
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2216
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2217
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2218
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2219
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2220
                  activeHelpKey: settingsUndoManager
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2221
                  enabled: hasUndoHistory
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2222
                  label: 'Undo Manager...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2223
                  itemValue: openUndoMenu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2224
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2225
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2226
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2227
                  activeHelpKey: settingsGridManager
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2228
                  label: 'Grid Manager...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2229
                  itemValue: doDefineGrid
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2230
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2231
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2232
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2233
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2234
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2235
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2236
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2237
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2238
            label: 'History'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2239
            translateLabel: true
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2240
            isVisible: isStandAlone
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2241
            submenuChannel: menuHistory
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2242
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2243
         (MenuItem
2138
55f338a77eb0 support '?' as help (for now: controlled by resources)
Claus Gittinger <cg@exept.de>
parents: 2124
diff changeset
  2244
            label: 'MENU_Help'
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2245
            translateLabel: true
2124
214c0d1d3c5a #conditionalRight
Claus Gittinger <cg@exept.de>
parents: 2117
diff changeset
  2246
            startGroup: conditionalRight
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2247
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2248
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2249
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2250
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2251
                  activeHelpKey: helpTutorial
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2252
                  label: 'Tutorial'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2253
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2254
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2255
                  argument: 'tools/uipainter/TOP.html'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2256
                )
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2257
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2258
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2259
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2260
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2261
                  activeHelpKey: helpFunctions
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2262
                  label: 'Functions'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2263
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2264
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2265
                  argument: 'tools/uipainter/Functions.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2266
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2267
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2268
                  activeHelpKey: helpExamples
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2269
                  label: 'Examples'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2270
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2271
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2272
                  argument: 'tools/uipainter/Examples.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2273
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2274
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2275
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2276
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2277
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2278
                  activeHelpKey: helpHelpTool
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2279
                  label: 'Help Tool'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2280
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2281
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2282
                  argument: 'tools/uipainter/HelpTool.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2283
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2284
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2285
                  activeHelpKey: helpLayoutTool
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2286
                  label: 'Layout Tool'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2287
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2288
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2289
                  argument: 'tools/uipainter/LayoutTool.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2290
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2291
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2292
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2293
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2294
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2295
                  activeHelpKey: helpSelectedWidget
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2296
                  label: 'Selected Widget'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2297
                  itemValue: doOpenWidgetDocumentation
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2298
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2299
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2300
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2301
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2302
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2303
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2304
                  activeHelpKey: helpShowHelp
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2305
                  label: 'Show Help Texts'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2306
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2307
                  indication: showingHelp:
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2308
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2309
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2310
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2311
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2312
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2313
                  activeHelpKey: aboutThisAppliaction
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2314
                  label: 'About this Application...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2315
                  itemValue: openAboutThisApplication
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  2316
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2317
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2318
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2319
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2320
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  2321
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2322
          )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2323
         )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2324
        nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  2325
        nil
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  2326
      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  2327
!
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  2328
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2329
menuAlign
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2330
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2331
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2332
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  2333
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2334
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2335
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2336
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2337
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlign
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2338
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2339
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2340
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2341
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2342
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2343
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2344
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2345
        (
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2346
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2347
            activeHelpKey: alignSelectionLeft
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2348
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2349
            label: 'Left'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2350
            itemValue: alignSelectionLeft
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2351
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2352
            labelImage: (ResourceRetriever UIPainter iconAlignL 'Left')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2353
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2354
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2355
            activeHelpKey: alignSelectionRight
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2356
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2357
            label: 'Right'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2358
            itemValue: alignSelectionRight
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2359
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2360
            labelImage: (ResourceRetriever UIPainter iconAlignR 'Right')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2361
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2362
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2363
            activeHelpKey: alignSelectionTop
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2364
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2365
            label: 'Top'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2366
            itemValue: alignSelectionTop
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2367
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2368
            labelImage: (ResourceRetriever UIPainter iconAlignT 'Top')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2369
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2370
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2371
            activeHelpKey: alignSelectionBottom
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2372
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2373
            label: 'Bottom'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2374
            itemValue: alignSelectionBottom
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2375
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2376
            labelImage: (ResourceRetriever UIPainter iconAlignB 'Bottom')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2377
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2378
         (MenuItem
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2379
            label: '-'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2380
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2381
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2382
            activeHelpKey: alignResizeSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2383
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2384
            label: 'Resize Left'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2385
            itemValue: alignResizeSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2386
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2387
            labelImage: (ResourceRetriever UIPainter iconResizeL 'Resize Left')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2388
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2389
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2390
            activeHelpKey: alignResizeSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2391
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2392
            label: 'Resize Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2393
            itemValue: alignResizeSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2394
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2395
            labelImage: (ResourceRetriever UIPainter iconResizeR 'Resize Right')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2396
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2397
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2398
            activeHelpKey: alignResizeSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2399
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2400
            label: 'Resize Top'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2401
            itemValue: alignResizeSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2402
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2403
            labelImage: (ResourceRetriever UIPainter iconResizeT 'Resize Top')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2404
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2405
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2406
            activeHelpKey: alignResizeSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2407
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2408
            label: 'Resize Bottom'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2409
            itemValue: alignResizeSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2410
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2411
            labelImage: (ResourceRetriever UIPainter iconResizeB 'Resize Bottom')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2412
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2413
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2414
            activeHelpKey: alignSelectionLeftAndRight
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  2415
            enabled: canResizeSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2416
            label: 'Left && Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2417
            itemValue: alignSelectionLeftAndRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2418
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2419
            labelImage: (ResourceRetriever UIPainter iconResizeLR 'Left && Right')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2420
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2421
         (MenuItem
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2422
            activeHelpKey: alignSelectionTopAndBottom
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  2423
            enabled: canResizeSelection
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2424
            label: 'Top && Bottom'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2425
            itemValue: alignSelectionTopAndBottom
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2426
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2427
            labelImage: (ResourceRetriever UIPainter iconResizeTB 'Top && Bottom')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2428
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2429
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2430
            label: '-'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2431
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2432
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2433
            activeHelpKey: alignSelectionCenterHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2434
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2435
            label: 'Center Horizontal'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2436
            itemValue: alignSelectionCenterHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2437
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2438
            labelImage: (ResourceRetriever UIPainter iconCenterH 'Center Horizontal')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2439
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2440
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2441
            activeHelpKey: centerSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2442
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2443
            label: 'Center Horizontal in Frame'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2444
            itemValue: centerSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2445
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2446
            labelImage: (ResourceRetriever UIPainter iconCenterHInFrame 'Center Horizontal in Frame')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2447
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2448
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2449
            activeHelpKey: alignSelectionCenterVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2450
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2451
            label: 'Center Vertical'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2452
            itemValue: alignSelectionCenterVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2453
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2454
            labelImage: (ResourceRetriever UIPainter iconCenterV 'Center Vertical')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2455
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2456
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2457
            activeHelpKey: centerSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2458
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2459
            label: 'Center Vertical in Frame'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2460
            itemValue: centerSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2461
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2462
            labelImage: (ResourceRetriever UIPainter iconCenterVInFrame 'Center Vertical in Frame')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2463
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2464
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2465
            label: '-'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2466
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2467
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2468
            activeHelpKey: spreadSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2469
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2470
            label: 'Distribute Horizontal'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2471
            itemValue: spreadSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2472
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2473
            labelImage: (ResourceRetriever UIPainter iconDistributeH 'Distribute Horizontal')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2474
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2475
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2476
            activeHelpKey: spreadSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2477
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2478
            label: 'Distribute Vertical'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2479
            itemValue: spreadSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2480
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2481
            labelImage: (ResourceRetriever UIPainter iconDistributeV 'Distribute Vertical')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2482
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2483
         )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2484
        nil
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2485
        nil
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2486
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2487
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2488
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2489
menuEdit
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2490
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2491
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2492
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2493
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2494
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2495
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2496
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2497
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2498
     MenuEditor new openOnClass:UIPainter andSelector:#menuEdit
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2499
     (Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2500
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2501
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2502
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2503
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2504
    ^ 
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2505
     #(Menu
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2506
        (
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2507
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2508
            activeHelpKey: editUndo
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2509
            enabled: hasUndoHistory
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2510
            label: 'Undo'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2511
            itemValue: undoLast
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2512
            nameKey: undo
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2513
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2514
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2515
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2516
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2517
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2518
            activeHelpKey: editCut
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2519
            enabled: canCutHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2520
            label: 'Cut'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2521
            itemValue: deleteSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2522
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2523
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2524
            activeHelpKey: editCopy
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2525
            enabled: canCopyHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2526
            label: 'Copy'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2527
            itemValue: copySelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2528
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2529
         (MenuItem
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2530
            activeHelpKey: editPaste
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2531
            enabled: canPasteHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2532
            label: 'Paste'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2533
            itemValue: pasteBuffer
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2534
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2535
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2536
            activeHelpKey: pasteWithLayout
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2537
            enabled: canPasteKeepingLayoutHolder
2425
22db8982a5c9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2411
diff changeset
  2538
            label: 'Paste with Layout'
2370
ce1233002cf8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2361
diff changeset
  2539
            itemValue: pasteWithLayout
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2540
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2541
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2542
            activeHelpKey: editPaste
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2543
            enabled: canPasteKeepingLayoutHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2544
            label: 'Paste Keeping Absolute Position'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2545
            itemValue: pasteKeepingPosition
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2546
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2547
         (MenuItem
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2548
            activeHelpKey: editDelete
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2549
            enabled: canCutHolder
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2550
            label: 'Delete'
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2551
            itemValue: deleteTotalSelection
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2552
          )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2553
         (MenuItem
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2554
            activeHelpKey: replaceBy
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2555
            enabled: canReplaceSelection
2426
51e741037ce6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2425
diff changeset
  2556
            label: 'Replace By...'
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2557
            itemValue: doAskAndReplaceWidgetBy
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2558
          )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2559
         (MenuItem
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  2560
            activeHelpKey: wrapInto
3063
bfe0755a11c3 class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3062
diff changeset
  2561
            enabled: canWrapSelection
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  2562
            label: 'Wrap Into...'
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  2563
            itemValue: doAskAndWrapWidgetInto
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  2564
          )
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  2565
         (MenuItem
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2566
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2567
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2568
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2569
            enabled: canMoveSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2570
            label: 'Move'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2571
            submenuChannel: menuMove
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2572
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2573
         (MenuItem
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2574
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2575
            label: 'Align'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2576
            submenuChannel: menuAlign
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2577
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2578
         (MenuItem
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2579
            enabled: hasSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2580
            label: 'Dimension'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2581
            submenu: 
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2582
           (Menu
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2583
              (
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2584
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2585
                  activeHelpKey: editDimensionCopyLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2586
                  enabled: hasSingleSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2587
                  label: 'Copy Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2588
                  itemValue: copyLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2589
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2590
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2591
                  activeHelpKey: editDimensionPasteLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2592
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2593
                  label: 'Paste Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2594
                  itemValue: pasteLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2595
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2596
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2597
                  activeHelpKey: editDimensionExchangeLayouts
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2598
                  enabled: canExchangeSelectionLayouts
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2599
                  label: 'Exchange Layouts'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2600
                  itemValue: exchangeLayouts
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2601
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2602
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2603
                  label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2604
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2605
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2606
                  activeHelpKey: editDimensionCopyExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2607
                  enabled: hasSingleSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2608
                  label: 'Copy Extent'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2609
                  itemValue: copyExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2610
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2611
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2612
                  activeHelpKey: editDimensionPasteExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2613
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2614
                  label: 'Paste Extent'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2615
                  itemValue: pasteExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2616
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2617
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2618
                  activeHelpKey: editDimensionPasteWidth
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2619
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2620
                  label: 'Paste Width'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2621
                  itemValue: pasteWidth
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2622
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2623
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2624
                  activeHelpKey: editDimensionPasteHeight
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2625
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2626
                  label: 'Paste Height'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2627
                  itemValue: pasteHeight
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2628
                )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2629
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2630
                  label: '-'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2631
                )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2632
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2633
                  activeHelpKey: editDimensionDefaultExtent
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2634
                  enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2635
                  label: 'Set Default Extent'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2636
                  itemValue: setToDefaultExtent
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2637
                )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2638
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2639
                  activeHelpKey: editDimensionDefaultWidth
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2640
                  enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2641
                  label: 'Set Default Width'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2642
                  itemValue: setToDefaultWidth
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2643
                )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2644
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2645
                  activeHelpKey: editDimensionDefaultHeight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2646
                  enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2647
                  label: 'Set Default Height'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2648
                  itemValue: setToDefaultHeight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2649
                )
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2650
               )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2651
              nil
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2652
              nil
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2653
            )
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2654
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2655
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2656
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2657
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2658
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2659
            activeHelpKey: editOpenSpecDocumentation
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2660
            label: 'Open Widget Documentation'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2661
            itemValue: doOpenWidgetDocumentation
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  2662
            enabled: hasOneSelectionOtherThanCanvas
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2663
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2664
         (MenuItem
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2665
            activeHelpKey: referToConfigDatabase
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2666
            label: 'Refer to Config Database'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2667
            itemValue: configSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2668
            isVisible: false
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2669
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2670
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2671
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2672
            isVisible: false
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2673
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2674
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2675
            activeHelpKey: drawEdit
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2676
            label: 'Draw Edit'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2677
            itemValue: shapeEdit
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2678
            isVisible: false
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2679
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2680
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2681
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2682
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2683
         (MenuItem
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2684
            activeHelpKey: sortItems
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2685
            label: 'Sort Selected Items by Position'
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2686
            itemValue: doSortItems
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  2687
            enabled: hasMultipleSelectionOtherThanCanvas
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2688
          )
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2689
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2690
            activeHelpKey: groupWithLayout
2393
ca
parents: 2389
diff changeset
  2691
            enabled: canGroup
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2692
            label: 'Group with Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2693
            itemValue: groupWithLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2694
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2695
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2696
            activeHelpKey: ungroup
2393
ca
parents: 2389
diff changeset
  2697
            enabled: canUngroup
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2698
            label: 'Ungroup'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2699
            itemValue: ungroup
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2700
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2701
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2702
            activeHelpKey: ungroupWithLayout
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  2703
            enabled: canUngroup
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2704
            label: 'Ungroup with Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2705
            itemValue: ungroupWithLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2706
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2707
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2708
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2709
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2710
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2711
            activeHelpKey: editBrowseViewClass
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2712
            enabled: hasOneSelectionOtherThanCanvas
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2713
            label: 'Browse Widget Class'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2714
            itemValue: doBrowseViewClass
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2715
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2716
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2717
            activeHelpKey: editInspectView
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2718
            enabled: hasOneSelectionOtherThanCanvas
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2719
            label: 'Inspect Widget'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2720
            itemValue: doInspectView
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2721
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2722
         (MenuItem
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2723
            activeHelpKey: editBrowseViewClass
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2724
            label: 'Browse Specification Class'
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2725
            itemValue: doBrowseSpecificationClass
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  2726
            enabled: hasOneSelectionOtherThanCanvas
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2727
          )
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2728
         (MenuItem
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2729
            activeHelpKey: editInspectSpec
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2730
            label: 'Inspect Spec'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2731
            itemValue: doInspectSpec
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  2732
            enabled: hasOneSelectionOtherThanCanvas
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2733
          )
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2734
         (MenuItem
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2735
            label: '-'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2736
          )
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2737
         (MenuItem
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2738
            activeHelpKey: editSaveSpecForSelection
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2739
            enabled: hasOneSelectionOtherThanCanvas
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2740
            label: 'Save Spec of Selection...'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  2741
            itemValue: doSaveElementSpecAs
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2742
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2743
         )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2744
        nil
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2745
        nil
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2746
      )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2747
!
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2748
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2749
menuFile
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2750
    "This resource specification was automatically generated
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2751
     by the MenuEditor of ST/X."
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2752
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2753
    "Do not manually edit this!! If it is corrupted,
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2754
     the MenuEditor may not be able to read the specification."
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2755
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2756
    "
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2757
     MenuEditor new openOnClass:UIPainter andSelector:#menuFile
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2758
     (Menu new fromLiteralArrayEncoding:(UIPainter menuFile)) startUp
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2759
    "
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2760
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2761
    <resource: #menu>
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2762
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2763
    ^ 
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2764
     #(Menu
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2765
              (
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2766
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2767
                  activeHelpKey: fileNew
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2768
                  label: 'New'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2769
                  itemValue: doNew
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2770
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2771
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2772
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2773
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2774
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2775
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2776
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2777
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2778
                  activeHelpKey: fileLoad
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2779
                  label: 'Load...'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2780
                  itemValue: doLoad
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2781
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2782
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2783
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2784
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2785
                  activeHelpKey: fileLoadSubspec
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2786
                  label: 'Load Subspec...'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2787
                  itemValue: doLoadSubspec
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2788
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2789
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2790
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2791
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2792
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2793
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2794
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2795
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2796
                  activeHelpKey: fileSave
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2797
                  label: 'Save'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2798
                  itemValue: doSave
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2799
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2800
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2801
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2802
                  activeHelpKey: fileSaveAs
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2803
                  label: 'Save As...'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2804
                  itemValue: doSaveAs
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2805
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2806
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2807
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2808
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2809
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2810
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2811
                  activeHelpKey: fileSaveAs
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2812
                  label: 'Define Class and Selector...'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2813
                  itemValue: doDefineClassAndSelector
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2814
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2815
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2816
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2817
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2818
                  activeHelpKey: filePickAnInterface
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2819
                  label: 'Pick a Window Spec...'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2820
                  itemValue: doPickAView
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2821
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2822
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2823
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2824
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2825
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2826
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2827
                  label: 'Launch'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2828
                  itemValue: doStartApplication
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2829
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2830
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2831
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2832
                  enabled: canInstallAsWebPageHolder
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2833
                  label: 'Install as WebPage'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2834
                  itemValue: doInstallAsWebPage
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2835
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2836
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2837
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2838
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2839
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2840
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2841
                  activeHelpKey: fileShowWindowSpec
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2842
                  label: 'Show Window Spec'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2843
                  itemValue: doWindowSpec
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2844
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2845
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2846
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2847
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2848
                  activeHelpKey: fileBrowseClass
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2849
                  enabled: hasSpecClass
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2850
                  label: 'Browse Applications Class'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2851
                  itemValue: doBrowseClass
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2852
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2853
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2854
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2855
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2856
                  activeHelpKey: fileBrowseAspectMethods
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2857
                  enabled: hasSpecClass
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2858
                  label: 'Browse Applications Aspect Methods'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2859
                  itemValue: doBrowseAspectMethods
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2860
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2861
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2862
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2863
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2864
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2865
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2866
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2867
                  activeHelpKey: fileExit
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2868
                  label: 'Exit'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2869
                  itemValue: closeRequest
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2870
                  translateLabel: true
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2871
                  isVisible: isStandAlone
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2872
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2873
               )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2874
              nil
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2875
              nil
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2876
            )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2877
!
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2878
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2879
menuMove
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2880
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2881
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2882
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2883
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2884
     the MenuEditor may not be able to read the specification."
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2885
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2886
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2887
     MenuEditor new openOnClass:UIPainter andSelector:#menuMove
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2888
     (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2889
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2890
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2891
    <resource: #menu>
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2892
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2893
    ^
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2894
     
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2895
       #(#Menu
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2896
          
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2897
           #(
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2898
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2899
                #label: 'Up'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2900
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2901
                #value: #doStepUp
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2902
                #activeHelpKey: #moveWidgetUp
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2903
                #enabled: #canChangeOrderInContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2904
                #labelImage: #(#ResourceRetriever #Icon #upIcon 'Up')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2905
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2906
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2907
                #label: 'Down'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2908
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2909
                #value: #doStepDown
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2910
                #activeHelpKey: #moveWidgetDown
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2911
                #enabled: #canChangeOrderInContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2912
                #labelImage: #(#ResourceRetriever #Icon #downIcon 'Down')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2913
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2914
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2915
                #label: 'Into'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2916
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2917
                #value: #doStepIn
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2918
                #activeHelpKey: #moveWidgetInto
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2919
                #enabled: #canMoveSelectionIntoContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2920
                #labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Into')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2921
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2922
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2923
                #label: 'Out'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2924
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2925
                #value: #doStepOut
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2926
                #activeHelpKey: #moveWidgetOut
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2927
                #enabled: #canMoveSelectionOutOfContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2928
                #labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Out')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2929
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2930
          ) nil
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2931
          nil
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2932
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2933
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2934
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2935
menuReplaceWidget
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2936
    "This resource specification was automatically generated
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2937
     by the MenuEditor of ST/X."
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2938
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2939
    "Do not manually edit this!! If it is corrupted,
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2940
     the MenuEditor may not be able to read the specification."
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2941
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2942
    "
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2943
     MenuEditor new openOnClass:UIPainter andSelector:#menuReplaceWidget
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2944
     (Menu new fromLiteralArrayEncoding:(UIPainter menuReplaceWidget)) startUp
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2945
    "
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2946
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2947
    <resource: #menu>
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2948
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2949
    ^ 
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2950
     #(Menu
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2951
        (
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2952
         (MenuItem
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2953
            activeHelpKey: replaceBy
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2954
            enabled: canChangeOrderInContainer
2426
51e741037ce6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2425
diff changeset
  2955
            label: 'Replace By...'
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2956
            itemValue: doAskAndReplaceWidgetBy
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2957
            translateLabel: true
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2958
          )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2959
         )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2960
        nil
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2961
        nil
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2962
      )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2963
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2964
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2965
menuToolbar
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2966
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2967
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2968
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  2969
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2970
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2971
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2972
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2973
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2974
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2975
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2976
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2977
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2978
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2979
    ^ 
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2980
     #(Menu
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2981
        (
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2982
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2983
            activeHelpKey: testStartApplication
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2984
            label: 'Start'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2985
            itemValue: doStartApplication
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2986
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2987
            isButton: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2988
            labelImage: (ResourceRetriever ToolbarIconLibrary start22x22Icon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2989
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2990
         (MenuItem
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2991
            enabled: canInstallAsWebPageHolder
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2992
            label: 'Install as WebPage'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2993
            itemValue: doInstallAsWebPage
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2994
            translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2995
            isButton: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2996
            isVisible: installAsWebPageVisible
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2997
            labelImage: (ResourceRetriever XPToolbarIconLibrary installAsWebPage24x24Icon)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2998
          )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2999
         (MenuItem
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3000
            label: '-'
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3001
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3002
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3003
            activeHelpKey: fileNew
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3004
            label: 'New'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3005
            itemValue: doNew
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3006
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3007
            isButton: true
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3008
            isVisible: isStandAlone
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  3009
            labelImage: (ResourceRetriever ToolbarIconLibrary newWindowSpecIcon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3010
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3011
         (MenuItem
1950
aaf6499564ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3012
            label: '-'
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3013
            isVisible: isStandAlone
1950
aaf6499564ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3014
          )
aaf6499564ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3015
         (MenuItem
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3016
            activeHelpKey: fileLoad
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3017
            label: 'Load'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3018
            itemValue: doLoad
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3019
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3020
            isButton: true
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3021
            isVisible: isStandAlone
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  3022
            labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethodIcon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3023
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3024
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3025
            activeHelpKey: fileSave
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3026
            label: 'Save'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3027
            itemValue: doSave
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3028
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3029
            isButton: true
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
  3030
            labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethodIcon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3031
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3032
         (MenuItem
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3033
            label: '-'
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3034
          )
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3035
         (MenuItem
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3036
            label: 'CutCopyPaste'
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3037
            translateLabel: true
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3038
            submenuChannel: cutCopyPasteMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3039
            isMenuSlice: true
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3040
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3041
         (MenuItem
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3042
            label: '-'
1820
3d834d5e5bb4 toolbar icons & help texts
Claus Gittinger <cg@exept.de>
parents: 1819
diff changeset
  3043
            startGroup: right
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3044
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3045
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3046
            activeHelpKey: settingsCanvas
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3047
            label: 'Canvas'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3048
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3049
            indication: painterShown
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3050
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3051
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3052
            activeHelpKey: settingsGallery
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3053
            label: 'Gallery'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3054
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  3055
            indication: galleryShown
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3056
          )
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3057
         )
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3058
        nil
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3059
        nil
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3060
      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3061
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3062
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3063
menuToolbar2
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3064
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3065
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3066
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  3067
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3068
     the MenuEditor may not be able to read the specification."
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3069
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3070
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3071
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3072
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar2
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3073
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar2)) startUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3074
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3075
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3076
    <resource: #menu>
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3077
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3078
    ^ 
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3079
     #(Menu
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3080
        (
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3081
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3082
            activeHelpKey: alignSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3083
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3084
            label: 'Align Left'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3085
            itemValue: alignSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3086
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3087
            labelImage: (ResourceRetriever nil iconAlignL)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3088
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3089
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3090
            activeHelpKey: alignSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3091
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3092
            label: 'Align Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3093
            itemValue: alignSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3094
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3095
            labelImage: (ResourceRetriever nil iconAlignR)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3096
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3097
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3098
            activeHelpKey: alignSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3099
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3100
            label: 'Align Top'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3101
            itemValue: alignSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3102
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3103
            labelImage: (ResourceRetriever nil iconAlignT)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3104
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3105
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3106
            activeHelpKey: alignSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3107
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3108
            label: 'Align Bottom'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3109
            itemValue: alignSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3110
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3111
            labelImage: (ResourceRetriever nil iconAlignB)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3112
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3113
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3114
            activeHelpKey: alignSelectionLeftAndRight
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  3115
            enabled: canResizeSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3116
            label: 'Align Left & Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3117
            itemValue: alignSelectionLeftAndRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3118
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3119
            labelImage: (ResourceRetriever nil iconResizeLR)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3120
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3121
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3122
            activeHelpKey: alignSelectionTopAndBottom
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  3123
            enabled: canResizeSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3124
            label: 'Align Top & Bottom'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3125
            itemValue: alignSelectionTopAndBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3126
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3127
            labelImage: (ResourceRetriever nil iconResizeTB)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3128
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3129
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3130
            label: ''
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3131
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3132
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3133
            activeHelpKey: changePositionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3134
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3135
            label: 'Move Left'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3136
            itemValue: moveSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3137
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3138
            hideMenuOnActivated: false
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3139
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3140
            labelImage: (ResourceRetriever nil arrowLeft)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3141
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3142
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3143
            activeHelpKey: changePositionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3144
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3145
            label: 'Move Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3146
            itemValue: moveSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3147
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3148
            hideMenuOnActivated: false
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3149
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3150
            labelImage: (ResourceRetriever nil arrowRight)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3151
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3152
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3153
            activeHelpKey: changePositionUp
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3154
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3155
            label: 'Move Up'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3156
            itemValue: moveSelectionUp
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3157
            isButton: true
2848
f11b5f5ab04e changed: #menuToolbar2
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  3158
            hideMenuOnActivated: false
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3159
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3160
            labelImage: (ResourceRetriever nil arrowUp)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3161
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3162
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3163
            activeHelpKey: changePositionDown
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3164
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3165
            label: 'Move Down'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3166
            itemValue: moveSelectionDown
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3167
            isButton: true
2848
f11b5f5ab04e changed: #menuToolbar2
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  3168
            hideMenuOnActivated: false
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3169
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3170
            labelImage: (ResourceRetriever nil arrowDown)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3171
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3172
         (MenuItem
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3173
            activeHelpKey: changeMoveDelta
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3174
            label: 'Move by'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3175
            nameKey: MoveByMenu
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3176
            isButton: true
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3177
            submenu: 
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3178
           (Menu
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3179
              (
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3180
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3181
                  label: '1'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3182
                  itemValue: setMoveByStep:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3183
                  argument: 1
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3184
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3185
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3186
                  label: '5'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3187
                  itemValue: setMoveByStep:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3188
                  argument: 5
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3189
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3190
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3191
                  label: '10'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3192
                  itemValue: setMoveByStep:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3193
                  argument: 10
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3194
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3195
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3196
                  label: '24'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3197
                  itemValue: setMoveByStep:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3198
                  argument: 24
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3199
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3200
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3201
                  label: '30'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3202
                  itemValue: setMoveByStep:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3203
                  argument: 30
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3204
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3205
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3206
                  label: '100'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3207
                  itemValue: setMoveByStep:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3208
                  argument: 100
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3209
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3210
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3211
                  label: '-'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3212
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3213
               (MenuItem
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3214
                  label: 'Enter Value...'
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3215
                  itemValue: askForMoveByStep
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3216
                )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3217
               )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3218
              nil
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3219
              nil
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3220
            )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3221
            labelImage: (ResourceRetriever UIPainter delta)
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3222
          )
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  3223
         (MenuItem
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3224
            activeHelpKey: editOpenSpecDocumentation
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3225
            label: 'Widget Documentation'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3226
            itemValue: doOpenWidgetDocumentation
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3227
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3228
            startGroup: right
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3229
            labelImage: (ResourceRetriever Icon helpIcon)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3230
          )
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3231
         )
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3232
        nil
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  3233
        nil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  3234
      )
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3235
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3236
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3237
moveInListMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3238
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3239
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3240
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3241
    "Do not manually edit this!! If it is corrupted,
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3242
     the MenuEditor may not be able to read the specification."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3243
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3244
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3245
     MenuEditor new openOnClass:UIPainter andSelector:#editToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3246
     (Menu new fromLiteralArrayEncoding:(UIPainter editToolbar)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3247
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3248
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3249
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3250
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3251
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3252
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3253
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3254
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3255
            activeHelpKey: moveWidgetUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3256
            enabled: canChangeOrderInContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3257
            label: 'Move Up'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3258
            itemValue: doStepUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3259
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3260
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3261
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetUpIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3262
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3263
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3264
            activeHelpKey: moveWidgetDown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3265
            enabled: canChangeOrderInContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3266
            label: 'Move Down'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3267
            itemValue: doStepDown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3268
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3269
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3270
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3271
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3272
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3273
            activeHelpKey: moveWidgetInto
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3274
            enabled: canMoveSelectionIntoContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3275
            label: 'Move Into'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3276
            itemValue: doStepIn
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3277
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3278
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3279
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownRightIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3280
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3281
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3282
            activeHelpKey: moveWidgetOut
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3283
            enabled: canMoveSelectionOutOfContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3284
            label: 'Move Out'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3285
            itemValue: doStepOut
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3286
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3287
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3288
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetLeftDownIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3289
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3290
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3291
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3292
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3293
      )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3294
! !
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3295
3111
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  3296
!UIPainter class methodsFor:'private class access'!
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  3297
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  3298
applicationClassQuery
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  3299
    ^ ApplicationClassQuery
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  3300
! !
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  3301
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3302
!UIPainter methodsFor:'aspects'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3303
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3304
alignToGridHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3305
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3306
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3307
    (holder := builder bindingAt:#alignToGridHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3308
        holder := (self class settings at: #GridAlign ifAbsent: [painter gridAlign]) asValue.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3309
        builder aspectAt:#alignToGridHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3310
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3311
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3312
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3313
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3314
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  3315
aspectFor:aKey
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3316
    "returns the aspect for aKey or nil"
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3317
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3318
    ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  3319
!
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  3320
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  3321
canChangeOrderInContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3322
    "returns a boolean value holder which is true if the widget order can be changed 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3323
     within their container"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3324
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  3325
    ^ builder booleanValueAspectFor:#canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  3326
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  3327
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3328
canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3329
    "returns a boolean value holder which is true in case that the selection 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3330
     consists of exactly 2 components
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3331
     and all widgets in the selection can change its layout through to a move or
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3332
     align operation"
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3333
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3334
    ^ builder booleanValueAspectFor:#canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3335
!
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3336
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3337
canInstallAsWebPage
3060
a8780dec8d43 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3338
    ^ specClass notNil
a8780dec8d43 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3339
       and:[ specClass isSubclassOf:WebApplicationModel ]
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3340
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3341
    "Created: / 14-01-2008 / 17:34:56 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3342
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3343
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3344
canInstallAsWebPageHolder
3060
a8780dec8d43 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3345
    ^ builder 
3061
c90c7db6e6d9 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3060
diff changeset
  3346
            valueAspectFor:#canInstallAsWebPageHolder
3060
a8780dec8d43 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3054
diff changeset
  3347
            initialValue:(self canInstallAsWebPage).
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3348
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3349
    "Created: / 14-01-2008 / 17:36:04 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3350
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3351
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3352
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3353
    "returns a boolean value holder which is true in case that any selection exists
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3354
     and all widgets in the selection can change their layout through to a move or
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3355
     align operation"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3356
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3357
    ^ builder booleanValueAspectFor:#canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3358
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3359
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3360
canMoveSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3361
    "true if move-in/move-out/move-up and down are enabled"
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3362
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3363
    treeView hasOneSelectionOtherThanCanvas ifFalse:[^ false].
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3364
    ^ self canChangeOrderInContainer value 
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3365
     or: [ self canMoveSelectionOutOfContainer value 
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  3366
     or: [ self canMoveSelectionIntoContainer value ]]
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3367
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3368
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3369
canMoveSelectionIntoContainer
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3370
    "returns true in case that at least one widget is selected and can change its container
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  3371
     widget to an element below"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3372
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3373
    ^ builder booleanValueAspectFor:#canMoveSelectionIntoContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3374
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3375
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3376
canMoveSelectionOutOfContainer
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3377
    "returns a boolean value holder which is true in case that at least one widget is selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3378
     which is contained within another component"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3379
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3380
    ^ builder booleanValueAspectFor:#canMoveSelectionOutOfContainer
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3381
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3382
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3383
canPasteHolder
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3384
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3385
    |holder|
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3386
    (holder := builder bindingAt:#canPasteHolder) isNil ifTrue:[
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3387
        holder := [ self canPaste ].
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3388
    ].
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3389
    ^ holder
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3390
!
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3391
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3392
canPasteKeepingLayoutHolder
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3393
    ^ self canPasteHolder
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3394
!
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3395
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3396
canReplaceSelection
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3397
    treeView hasOneSelectionOtherThanCanvas ifFalse:[^ false].
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3398
    ^ true
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3399
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3400
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3401
canResizeSelection
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3402
    "returns a boolean value holder which is true in case that any selection exists
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3403
     and all widgets in the selection can be resized"
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3404
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3405
    ^ builder booleanValueAspectFor:#canResizeSelection
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3406
!
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3407
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  3408
canWrapSelection
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3409
    treeView hasOneSelectionOtherThanCanvas ifFalse:[^ false].
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  3410
    ^ true
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  3411
!
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  3412
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3413
editToolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3414
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3415
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3416
    (holder := builder bindingAt:#editToolBarVisibleHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3417
        holder := self class defaultEditToolbarVisible asValue.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3418
        builder aspectAt:#editToolBarVisibleHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3419
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3420
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3421
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3422
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3423
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  3424
enableChannel
2012
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3425
    "true if modifications are allowed otherwise in test mode"
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3426
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3427
    ^ builder valueAspectFor:#enableChannel initialValue:true
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3428
!
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3429
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3430
enableChannel2
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3431
    "true if modifications are allowed otherwise running test"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3432
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3433
    ^ self painter enableChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3434
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3435
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3436
galleryShown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3437
    "returns a boolean value holder which is set to true if the gallery is shown"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3438
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3439
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3440
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3441
    (holder := builder bindingAt:#galleryShown) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3442
        builder aspectAt:#galleryShown put:(holder :=  true asValue).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3443
        holder addDependent:self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3444
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3445
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3446
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3447
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3448
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3449
gridShownHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3450
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3451
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3452
    (holder := builder bindingAt:#gridShownHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3453
        holder := (self class settings at: #GridShown ifAbsent: [painter gridShown]) asValue.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3454
        builder aspectAt:#gridShownHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3455
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3456
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3457
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3458
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3459
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3460
hasMultipleSelectionOtherThanCanvas
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3461
    "returns a value holder which is true in case that multiple widget other than the root are selected"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3462
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3463
    ^ builder booleanValueAspectFor:#hasMultipleSelectionOtherThanCanvas
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3464
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3465
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3466
hasOneSelectionOtherThanCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3467
    "returns a value holder which is true in case that one widget is selected
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3468
     other than the root"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3469
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3470
    ^ builder booleanValueAspectFor:#hasOneSelectionOtherThanCanvas
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3471
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3472
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3473
hasSelectionOtherThanCanvas
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3474
    "returns a value holder which is true in case that any widget other than the root is selected"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3475
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3476
    ^ builder booleanValueAspectFor:#hasSelectionOtherThanCanvas
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3477
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  3478
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3479
hasUndoHistory
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3480
    ^ self painter hasUndoHistory
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3481
!
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3482
1954
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3483
hasUndoHistoryHolder
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3484
    ^ self painter hasUndoHistoryHolder
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3485
!
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3486
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3487
installAsWebPageVisible
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3488
    ^ true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3489
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3490
    "Created: / 14-01-2008 / 17:46:05 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3491
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3492
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3493
noteBookView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3494
    "returns the notebook view; initialize the tools embedded in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3495
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3496
    |noteBook|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3497
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3498
    (noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  3499
        noteBook := View new.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  3500
        builder aspectAt:#noteBookView put:noteBook.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  3501
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3502
        layoutTool := self createToolApplication:UILayoutTool        spec:#windowSpec in:noteBook.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3503
        helpTool   := self createToolApplication:UIHelpTool          spec:#innerSpec  in:noteBook.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3504
        specTool   := self createToolApplication:UISpecificationTool spec:#windowSpec in:noteBook.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3505
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3506
        helpTool loadFromClass:specClass.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3507
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3508
    ^ noteBook
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3509
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3510
    "Modified: / 31-08-2006 / 10:11:15 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3511
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3512
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3513
painterShown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3514
    "returns a boolean value holder which is set to true if the painter is shown"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3515
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3516
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3517
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3518
    (holder := builder bindingAt:#painterShown) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3519
        builder aspectAt:#painterShown put:(holder :=  true asValue).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3520
        holder addDependent:self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3521
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3522
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3523
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3524
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3525
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3526
tabList
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3527
    "returns a value holder which keeps a list of the section labels in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3528
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  3529
    |tabs holder|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3530
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3531
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  3532
        tabs := #(Basics Details Layout).
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  3533
        builder aspectAt:#tabList put:(holder :=  (resources array:tabs) asValue).
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3534
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3535
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3536
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3537
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3538
tabModel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3539
    "returns a value holder which keeps the label of the current section in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3540
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3541
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3542
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3543
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3544
        holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3545
        builder aspectAt:#tabModel put:holder.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3546
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3547
    ^ holder
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3548
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3549
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3550
toolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3551
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3552
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3553
    (holder := builder bindingAt:#toolBarVisibleHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3554
        holder := self class defaultToolbarVisible asValue.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3555
        builder aspectAt:#toolBarVisibleHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3556
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3557
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3558
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3559
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3560
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3561
treeView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3562
    "returns the tree view which holds all widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3563
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3564
    ^ treeView
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3565
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3566
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3567
valueOfCanPasteWithKeepingLayout
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  3568
    <resource: #obsolete>
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3569
    self obsoleteMethodWarning:'stupid name - use #canPasteKeepingLayoutHolder'.
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3570
    ^ self canPasteKeepingLayoutHolder
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3571
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3572
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  3573
!UIPainter methodsFor:'building editors'!
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3574
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3575
XXopenDataSetColumnEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3576
    "opens a Table Column Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3577
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3578
    |cls editor specTool columnHolder tableSelector columns isEditingSpecOnly|
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3579
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3580
    isEditingSpecOnly := self isEditingSpecOnly.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3581
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3582
    isEditingSpecOnly ifFalse:[
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3583
        (cls := self resolveName:specClassName) isNil ifTrue:[
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3584
            self askForSaving ifTrue:[cls := self resolveName:specClassName].
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3585
        ].
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3586
        cls isNil ifTrue:[^ self].
1103
ecc91379704b accept before opening an editor
Claus Gittinger <cg@exept.de>
parents: 1071
diff changeset
  3587
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3588
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3589
    self acceptOrIgnoreSectionModification.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3590
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3591
    editor   := DataSetBuilder new.
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3592
    editor masterApplication:self.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3593
    specTool := self specTool.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3594
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3595
    isEditingSpecOnly ifFalse:[
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3596
        editor specClass: cls.
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3597
        editor rowClassName:(specTool specification rowClassName).
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3598
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3599
    columnHolder  := specTool aspectFor:#columnHolder.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3600
    tableSelector := columnHolder value.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3601
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3602
    tableSelector := tableSelector notEmptyOrNil 
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3603
                        ifTrue:[tableSelector asSymbol]
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3604
                        ifFalse:[nil].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3605
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3606
    (isEditingSpecOnly not
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3607
    and:[tableSelector notNil 
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3608
    and:[cls class includesSelector:tableSelector]]) ifTrue:[
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3609
        editor openModalOnClass:cls andSelector:tableSelector
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3610
    ] ifFalse:[
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3611
        editor editingSpecOnly:true.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3612
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3613
        columns := specTool specification columns.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3614
        columns size ~~ 0 ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3615
            editor openModalOnResourceSpec:columns
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3616
        ] ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3617
            editor openModal
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3618
        ].
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3619
    ].
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3620
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3621
    isEditingSpecOnly ifFalse:[
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3622
        editor hasSaved ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3623
            specTool specification 
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3624
                columns:nil;
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3625
                rowClassName:(editor rowClassName).
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3626
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3627
            tableSelector = editor specSelector ifFalse:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3628
                columnHolder value:(editor specSelector).
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3629
                self accept.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3630
            ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3631
            ^ self
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3632
        ].
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3633
    ].
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3634
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3635
    tableSelector isNil ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3636
        editor hasSaved ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3637
            editor modified ifFalse:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3638
                specTool specification 
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3639
                    columns:(editor acceptedColumns);
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3640
                    rowClassName:(editor rowClassName).
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3641
                self modifiedChannel value:true.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3642
            ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3643
        ].
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3644
    ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3645
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3646
    "Modified: / 12-01-2008 / 10:31:47 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3647
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3648
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3649
openDataSetColumnEditor
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3650
    "opens a Table Column Editor on current widget"
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3651
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3652
    |cls editor specTool columnHolder tableSelector columns isEditingSpecOnly|
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3653
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3654
    self isModified ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3655
        "/ force editFields to accept
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3656
        self acceptChannel value:true; value:false.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3657
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3658
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3659
    specTool := self specTool.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3660
    columnHolder := specTool aspectFor:#columnHolder.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3661
    tableSelector := columnHolder value.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3662
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3663
    tableSelector notEmptyOrNil ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3664
        tableSelector := tableSelector asSymbol.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3665
    ] ifFalse:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3666
        tableSelector := nil.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3667
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3668
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3669
    isEditingSpecOnly := true.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3670
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3671
    (tableSelector notNil and:[self isEditingSpecOnly not]) ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3672
        (cls := self resolveName:specClassName) notNil ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3673
            isEditingSpecOnly := false.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3674
        ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3675
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3676
    editor := DataSetBuilder new.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3677
    editor masterApplication:self.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3678
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3679
    isEditingSpecOnly ifFalse:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3680
        editor specClass:cls.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3681
        editor rowClassName:(specTool specification rowClassName).
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3682
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3683
2768
79fbc52bcb69 code deobfuscated:
Claus Gittinger <cg@exept.de>
parents: 2740
diff changeset
  3684
    isEditingSpecOnly ifFalse:[
2559
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3685
        editor openModalOnClass:cls andSelector:tableSelector.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3686
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3687
        editor hasSaved ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3688
            specTool specification 
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3689
                columns:nil;
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3690
                rowClassName:(editor rowClassName).
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3691
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3692
            tableSelector = editor specSelector ifFalse:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3693
                columnHolder value:(editor specSelector).
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3694
                self accept.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3695
            ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3696
        ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3697
        ^ self
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3698
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3699
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3700
    editor editingSpecOnly:true.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3701
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3702
    columns := specTool specification columns.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3703
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3704
    columns size ~~ 0 ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3705
        editor openModalOnResourceSpec:columns
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3706
    ] ifFalse:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3707
        editor openModal
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3708
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3709
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3710
    editor hasSaved ifTrue:[
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3711
        columnHolder value:nil.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3712
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3713
        specTool specification 
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3714
            columns:(editor acceptedColumns);
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3715
            rowClassName:(editor rowClassName).
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3716
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3717
        columnHolder value:nil.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3718
        self modifiedChannel value:true.
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3719
    ].
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3720
!
04b2605a66b2 dataset editor support
ca
parents: 2552
diff changeset
  3721
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3722
openEditMenu
2967
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3723
    "opens a Menu Editor on current widget for the standard menu
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3724
     (accessed via #menu or #menuSelector)"
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3725
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3726
    ^ self
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3727
        openEditMenuFor:#menu
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3728
        and:#menuSelector
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3729
!
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3730
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3731
openEditMenuFor:menuSelector and:menuSelectorSelector
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3732
    "opens a Menu Editor on the current widget.
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3733
     The arguments menuSelector (typically: #menu) 
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3734
     and menuSelectorSelector (typically: #menuSelector) can be passed in
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3735
     for widgets with a secondary menu (with different selectors)"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3736
2568
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3737
    |cls selectorOrMenu editor selectedSpec windowSpec holder|
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3738
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3739
    self isEditingSpecOnly ifFalse:[
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3740
        "/ normal mode
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3741
        (cls := self resolveName:specClassName) isNil ifTrue:[
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3742
            self askForSaving ifTrue:[cls := self resolveName:specClassName].
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3743
        ].
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3744
        cls isNil ifTrue:[^ self].
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3745
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3746
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3747
    self acceptOrIgnoreSectionModification.
2568
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3748
    windowSpec := self specTool specification.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3749
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3750
    self isEditingSpecOnly ifTrue:[
2967
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3751
        selectorOrMenu := windowSpec perform:menuSelector
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3752
    ] ifFalse:[
2967
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3753
        (selectorOrMenu := (windowSpec perform:menuSelectorSelector)) notNil ifTrue:[
2568
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3754
            selectorOrMenu := selectorOrMenu asSymbol
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3755
        ] ifFalse:[
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3756
            "/ cg: q&d hack ...
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3757
            selectorOrMenu := nil.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3758
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3759
            (selectedSpec := treeView propertySelected) notNil ifTrue:[
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3760
                Error handle:[:ex |
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3761
                    selectorOrMenu := nil.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3762
                ] do:[
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3763
                    selectorOrMenu := selectedSpec view asMenu.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3764
                ]
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3765
            ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3766
        ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3767
    ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3768
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3769
    editor := MenuEditor new.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3770
    editor masterApplication:self.
2568
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3771
    self isEditingSpecOnly ifFalse:[
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3772
        editor specClass: cls.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3773
        editor useHelpTool:(self helpTool).
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3774
    ].
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3775
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3776
    (self isEditingSpecOnly or:[selectorOrMenu class == Menu]) ifTrue: [
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3777
        editor openModalOnMenu:(selectorOrMenu).
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3778
        editor hasSaved ifTrue:[
3094
57d90e5e6605 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3085
diff changeset
  3779
            windowSpec perform:menuSelector asMutator with:(editor savedSpec).
2568
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3780
            self accept.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3781
        ].
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3782
    ] ifFalse: [
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3783
        editor openModalOnClass:cls andSelector:selectorOrMenu.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3784
        editor hasSaved ifTrue:[
2967
f1bdf4e5e0b4 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2952
diff changeset
  3785
            holder := self specTool aspectFor:menuSelector.
2568
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3786
            holder value:(editor specSelector).
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3787
            self accept.
ea1484c2ab9b preps for menuSpec without a class
Claus Gittinger <cg@exept.de>
parents: 2564
diff changeset
  3788
        ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3789
    ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3790
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3791
    "Modified: / 12-01-2008 / 10:31:41 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3792
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3793
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3794
openHierarchicalListEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3795
    "opens a Hierarchical List Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3796
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3797
    |selector editor spec|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3798
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3799
    (self resolveName:specClassName) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3800
        self askForSaving ifFalse: [^self]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3801
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3802
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3803
    spec := self specTool specification.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3804
    (selector := spec hierarchicalList) notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3805
        selector := selector asSymbol
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3806
    ].
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3807
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3808
    editor := HierarchicalListEditor new.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3809
    editor masterApplication:self.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3810
    editor openModalOnClass:specClassName andSelector:selector.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3811
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3812
    editor specSelector ~= selector ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3813
        editor hasSaved ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3814
            spec hierarchicalList:editor specSelector.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3815
            self modifiedChannel value:true.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3816
            self accept
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3817
        ]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3818
    ]
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3819
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3820
    "Modified: / 16.7.1998 / 18:15:46 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3821
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3822
3241
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3823
openSubSpecBrowser
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3824
    "opens a browser on the current subspecification"
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3825
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3826
    self withSpecClassAndSelectorDo:[:cls :sel |
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3827
        cls theMetaclass browse:sel.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3828
    ].
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3829
!
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3830
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3831
openSubSpecGUIPainter
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3832
    "opens a GUI Painter on the current subspecification"
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3833
3241
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3834
    self withSpecClassAndSelectorDo:[:cls :sel |
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3835
        self class 
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3836
            openOnClass:cls theMetaclass soleInstance 
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3837
            andSelector:sel.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3838
    ].        
1523
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3839
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3840
    "Modified: / 5.11.2001 / 16:51:46 / cg"
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3841
!
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3842
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3843
openTabListEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3844
    "opens a Tab List Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3845
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3846
    |selector editor spec cls holder|
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3847
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3848
    (cls := self resolveName:specClassName) isNil ifTrue:[
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3849
        self askForSaving ifTrue:[cls := self resolveName:specClassName].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3850
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3851
    cls isNil ifTrue:[^ self].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3852
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3853
    self acceptOrIgnoreSectionModification.
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3854
    spec := self specTool specification.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3855
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3856
    (selector := spec listSelector) isArray 
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3857
        ifTrue: [^self warn: 'Cannot open the Tab List Editor on an array!!'].
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3858
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3859
    editor := TabListEditor new.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3860
    editor masterApplication:self.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3861
    editor openModalOnClass:cls andSelector:selector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3862
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3863
    editor hasSaved ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3864
        holder := self specTool aspectFor:#listSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3865
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3866
        holder value ~= editor specSelector ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3867
            holder value:editor specSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3868
            self accept.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3869
        ]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3870
    ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3871
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3872
    "Modified: / 12-01-2008 / 10:31:34 / cg"
3241
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3873
!
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3874
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3875
withSpecClassAndSelectorDo:aTwoArgBlock
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3876
    "helper for open GUI Painter/open Browser on the current subspecification"
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3877
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3878
    |spec cls meta sel|
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3879
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3880
    (self resolveName:specClassName) isNil ifTrue:[
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3881
        self askForSaving ifFalse: [^self]
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3882
    ]. 
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3883
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3884
    spec := self specTool specification.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3885
    cls := spec majorKey.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3886
    cls isNil ifTrue:[
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3887
        cls := specClassName.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3888
    ].
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3889
    (cls := self resolveName:cls inClass:(Smalltalk at: specClassName asSymbol)) isNil ifTrue:[
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3890
        spec majorKey isNil ifTrue:[
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3891
            ^ self warn:'Cannot find class (no majorKey specified).'.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3892
        ].
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  3893
        ^ self warn:('Cannot find class ', spec majorKey allBold, '.').
3241
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3894
    ].
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3895
    sel := spec minorKey.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3896
    meta := cls class whichClassIncludesSelector:sel.
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3897
    meta isNil ifTrue:[
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  3898
        ^ self warn:'Cannot find selector #', (sel ? '') allBold, ' in class ', cls name allBold, '!!'
3241
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3899
    ].
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3900
1fca4b63f4bf #FEATURE
Claus Gittinger <cg@exept.de>
parents: 3238
diff changeset
  3901
    aTwoArgBlock value:meta value:spec minorKey.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3902
! !
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3903
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3904
!UIPainter methodsFor:'change & update'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3905
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3906
layoutChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3907
    "called by the painter/canvas whenever the layout of the current selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3908
     widget has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3909
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3910
    self isModified ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3911
        self layoutTool update.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3912
        self clearModifiedFlag
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3913
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3914
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3915
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3916
propertyChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3917
    "called by the painter/canvas whenever the property of the current selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3918
     widget has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3919
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3920
    |property spec|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3921
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3922
    (property := treeView propertySelected) notNil ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3923
        spec := property spec copy.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3924
        self specTool specification:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3925
        self setViewInLayoutTool:(property view) spec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3926
        self clearModifiedFlag
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3927
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3928
        self layoutTool layoutView notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3929
            self clearModifiedFlag.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3930
            self treeSelectionChanged
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3931
        ]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3932
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3933
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3934
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3935
toolBarVisibilityChanged
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3936
    |toolBarVisible editToolBarVisible toolBar editToolBar noteBook topOffset|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3937
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3938
    topOffset := 0.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3939
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3940
    toolBar := self componentAt:#ToolBar.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3941
    toolBar notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3942
        toolBarVisible := self toolBarVisibleHolder value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3943
        DefaultToolBarVisible := toolBarVisible.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3944
        toolBarVisible ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3945
            topOffset := topOffset + toolBar height.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3946
        ]
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3947
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3948
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3949
    editToolBar := self componentAt:#EditToolBar.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3950
    editToolBar notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3951
        editToolBar layout 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3952
            topOffset:topOffset bottomOffset:(topOffset + editToolBar height).
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3953
        "/ force it to recompute its dimension
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3954
        editToolBar container notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3955
            editToolBar containerChangedSize.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3956
        ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3957
        editToolBarVisible := self editToolBarVisibleHolder value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3958
        DefaultEditToolBarVisible := editToolBarVisible.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3959
        editToolBarVisible ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3960
            topOffset := topOffset + editToolBar height.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3961
        ]
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3962
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3963
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3964
    noteBook := self componentAt:#Painter.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3965
    noteBook notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3966
        noteBook layout topOffset:topOffset.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3967
        "/ force it to recompute its dimension
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3968
        noteBook container notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3969
            noteBook containerChangedSize.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3970
        ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3971
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3972
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3973
    "Created: / 18-02-2007 / 14:46:22 / cg"
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3974
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3975
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3976
update:something with:aParameter from:changedObject
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3977
    "catches change notifications"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3978
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3979
    |window lbl|
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3980
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3981
    ((changedObject == self toolBarVisibleHolder)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3982
    or:[ changedObject == self editToolBarVisibleHolder ]) ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3983
        self toolBarVisibilityChanged.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3984
        ^ self
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3985
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3986
    changedObject == self gridShownHolder ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3987
        self class settings at: #GridShown  put: changedObject value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3988
        painter gridShown:changedObject value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3989
        ^ self
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3990
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3991
    changedObject == self alignToGridHolder ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3992
        self class settings at: #GridAlign  put: changedObject value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3993
        painter gridAlign:changedObject value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3994
        ^ self
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3995
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3996
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3997
    changedObject == treeView model ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3998
        (something == #selection
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3999
        or:[something == #selectionIndex]) ifTrue:[self treeSelectionChanged].
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4000
        ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4001
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4002
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4003
    changedObject == self galleryShown ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4004
        "/ galleryShown toggle changed
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4005
        window := selectionPanel window.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4006
        (changedObject value) ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4007
            self raiseUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4008
        ] ifFalse:[
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4009
            self hideUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4010
        ].
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4011
        ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4012
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4013
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4014
    changedObject == self painterShown ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4015
        "/ canvasShown toggle changed
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4016
        window := self painter topView.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4017
        (changedObject value) ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4018
            self raiseUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4019
        ] ifFalse:[
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4020
            self hideUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4021
        ].
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4022
        ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4023
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4024
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4025
    changedObject == self autoAcceptOnSelectionChange ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4026
        lbl := changedObject value ifTrue:['Apply'] ifFalse:['OK'].
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4027
        (builder componentAt:'acceptButton') label:(resources string:lbl).
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4028
        ^ self
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4029
    ].
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4030
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  4031
    "Modified: / 16.7.1998 / 19:09:57 / cg"
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4032
!
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4033
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4034
updateChannels
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4035
    "updates the channels"
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4036
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4037
    |canCutOrCopy|
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4038
3108
325b4bd1ee46 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3106
diff changeset
  4039
    treeView isNil ifTrue:[^ self].
325b4bd1ee46 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3106
diff changeset
  4040
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4041
    self canMoveOrAlignSelection        value:(treeView canMoveOrAlignSelection).
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  4042
    self canResizeSelection             value:(treeView canResizeSelection).
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4043
    self canExchangeSelectionLayouts    value:(treeView canExchangeSelectionLayouts).
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4044
    self canChangeOrderInContainer      value:(treeView canChangeOrderInContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4045
    self canMoveSelectionIntoContainer  value:(treeView canMoveSelectionIntoContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4046
    self canMoveSelectionOutOfContainer value:(treeView canMoveSelectionOutOfContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4047
    self hasOneSelectionOtherThanCanvas value:(treeView hasOneSelectionOtherThanCanvas).
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  4048
    self hasSelectionOtherThanCanvas    value:(treeView hasSelectionOtherThanCanvas).
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  4049
    self hasMultipleSelectionOtherThanCanvas value:(treeView hasMultipleSelectionOtherThanCanvas).
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  4050
    
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4051
    "/ the top-node cannot be cut, copied or pasted.
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4052
    canCutOrCopy := treeView selection notEmptyOrNil and:[treeView selection first ~~ 1].
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  4053
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  4054
    self canCutHolder value: canCutOrCopy.
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  4055
    self canCopyHolder value: canCutOrCopy.
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  4056
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  4057
"/    self modifiedChannel value: false.
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  4058
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  4059
    "Modified: / 16.7.1998 / 19:13:30 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4060
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4061
952
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  4062
!UIPainter methodsFor:'defaults'!
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  4063
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4064
defaultNameOfCanvas
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4065
    ^ self class defaultNameOfCanvas
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4066
!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4067
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  4068
defaultWindowSpecClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  4069
    ^ WindowSpec
952
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  4070
! !
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  4071
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4072
!UIPainter methodsFor:'event handling'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4073
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4074
doesNotUnderstand:aMessage
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4075
    "forward misunderstood messages to the painter"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4076
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4077
    |painter|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4078
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4079
    painter := self painter.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4080
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4081
    (painter respondsTo:(aMessage selector)) ifTrue:[
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4082
        ^ aMessage sendTo:painter
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4083
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4084
    super doesNotUnderstand:aMessage
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4085
1957
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4086
!
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4087
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4088
processEvent:anEvent
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4089
    "filter keyboard events.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4090
     Return true, if I have eaten the event"
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4091
2947
9bbc38256343 changed: #processEvent:
Claus Gittinger <cg@exept.de>
parents: 2923
diff changeset
  4092
    <resource: #keyboard (#CtrlCursorUp #CtrlCursorDown #CtrlCursorLeft #CtrlCursorRight)>
9bbc38256343 changed: #processEvent:
Claus Gittinger <cg@exept.de>
parents: 2923
diff changeset
  4093
1957
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4094
    |key|
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4095
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4096
    anEvent isKeyPressEvent ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4097
        anEvent targetView == treeView ifFalse:[^ false].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4098
        treeView hasFocus ifFalse:[^ false].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4099
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4100
        key := anEvent key.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4101
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4102
"/        (anEvent rawKey == #Cmdr) ifTrue:[
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4103
"/            self openNameEditorOnTreeSelection.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4104
"/            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4105
"/        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4106
        (anEvent rawKey == #CtrlCursorUp) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4107
            self doStepUp.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4108
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4109
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4110
        (anEvent rawKey == #CtrlCursorDown) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4111
            self doStepDown.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4112
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4113
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4114
        (anEvent rawKey == #CtrlCursorLeft) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4115
            self doStepOut.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4116
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4117
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4118
        (anEvent rawKey == #CtrlCursorRight) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4119
            self doStepIn.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4120
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4121
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4122
    ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4123
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4124
    ^ false.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4125
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4126
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  4127
!UIPainter methodsFor:'help'!
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  4128
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  4129
defaultInfoLabel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4130
    "returns the default info label"
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  4131
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4132
    specClassName isNil ifTrue: [^'No class defined.'].
877
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  4133
    specSelector isNil ifTrue: [^'No selector defined.'].
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  4134
    ^ specClassName printString, ' >> ', specSelector
877
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  4135
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4136
    "Modified: / 31-08-2006 / 10:12:03 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  4137
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
  4138
2353
13774605a1a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2336
diff changeset
  4139
!UIPainter methodsFor:'help specs'!
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4140
2544
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  4141
basicHelpTextFromSpecification:specification forKey:aKey
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  4142
    "redefinable, to allow for subclasses to overwrite the helpTexts of the ui-spec"
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  4143
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  4144
    ^ specification helpSpec at:aKey ifAbsent:nil
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  4145
!
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  4146
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4147
flyByHelpSpec
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4148
    |spec painter|
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4149
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4150
    painter := self painter.
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4151
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4152
    spec := self class flyByHelpSpec.
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4153
    spec at:#editUndo put:(resources string:'Undo (%1)' 
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4154
                        with:(resources string:painter undoHistory labelOfLastUndo)).
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4155
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4156
    spec at:#changePositionDown put:(resources string:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4157
                (spec at:#changePositionDown) with:painter nPixelsForMoveSelection).
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4158
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4159
    spec at:#changePositionLeft put:(resources string:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4160
                (spec at:#changePositionLeft) with:painter nPixelsForMoveSelection). 
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4161
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4162
    spec at:#changePositionRight put:(resources string:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4163
                (spec at:#changePositionRight) with:painter nPixelsForMoveSelection). 
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4164
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4165
    spec at:#changePositionUp put:(resources string:
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4166
                (spec at:#changePositionUp) with:painter nPixelsForMoveSelection). 
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  4167
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4168
    ^ spec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4169
!
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4170
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4171
helpSpec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4172
    |spec|
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4173
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4174
    spec := self class helpSpec.
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4175
    spec at:#editUndo put:(resources string:'Undo (%1)' 
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4176
                        with:(resources string:self painter undoHistory labelOfLastUndo)).
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4177
    ^ spec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4178
! !
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4179
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4180
!UIPainter methodsFor:'initialization'!
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4181
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4182
hideToolBarButtonCreated:aButton
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4183
    aButton passiveLevel:(MenuPanel defaultLevel). 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4184
"/    aButton passiveLevel:1.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4185
    aButton activeLevel:-1.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4186
    aButton backgroundColor:(MenuPanel defaultBackgroundColor).
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4187
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4188
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4189
initialize
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4190
    |name scroller viewScroller|
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4191
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4192
    super initialize.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4193
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4194
    modified := false.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4195
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4196
    aspects := IdentityDictionary new.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4197
    aspects at:#classNameChannel put:'NewApplication' asValue.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4198
    aspects at:#superclassNameChannel put:'ApplicationModel' asValue.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4199
    aspects at:#methodNameChannel put:'windowSpec' asValue.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4200
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4201
    treeView := TreeView new.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4202
    treeView painter:self.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4203
    treeView windowSpecClass:(self defaultWindowSpecClass).
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4204
    treeView selectConditionBlock:[:newSelection | self selectionChangeAllowed:newSelection ].
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4205
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4206
    painterView := StandardSystemView new.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4207
    name := name ? self defaultNameOfCanvas.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4208
    painterView beToolWindow.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4209
    painterView name:name.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4210
    painterView label:name.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4211
    painterView extent:(treeView windowSpecClass defaultExtentInUIPainter).
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4212
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4213
    UseViewScroller == true ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4214
        scroller := HVScrollableView for:ViewScroller in:painterView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4215
        scroller
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4216
            horizontalScrollable:true miniScroller:true;
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4217
            verticalScrollable:true; verticalMini:true;
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4218
            autoHideScrollBars:false;
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4219
            layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4220
        viewScroller := scroller scrolledView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4221
        painter := UIPainterView new.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4222
        painter extent:300@300.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4223
        viewScroller scrolledView:painter.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4224
    ] ifFalse:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4225
        painter := UIPainterView in:painterView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4226
        painter layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4227
    ].
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  4228
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4229
    treeView := treeView canvas:painter specName:name.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4230
    painter treeView:treeView.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4231
    treeView model addDependent:self.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4232
    painter enableChannel:(self enableChannel).
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4233
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4234
    selectionPanel := self selectionPanelClass new.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4235
    selectionPanel allButOpenInterface:#windowSpec.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4236
! !
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4237
1718
aedf32fc1715 method category rename
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
  4238
!UIPainter methodsFor:'menus-dynamic'!
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4239
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4240
menuEdit
1528
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4241
    ^ [
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4242
        |m i|
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4243
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4244
        m := self class menuEdit.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4245
        m := m decodeAsLiteralArray.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4246
        i := m detectItem:[:item | item nameKey == #undo] ifNone:nil.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4247
        i notNil ifTrue:[
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4248
            i label:(resources string:(i label , ' (%1)') 
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  4249
                        with:(resources string:self painter undoHistory labelOfLastUndo)).
1528
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4250
        ].
1540
dda0bf556ebc findGuiResources... now sets the receiver, if not yet set
Claus Gittinger <cg@exept.de>
parents: 1528
diff changeset
  4251
        "/ m receiver:self.   -- now done in findGuiResources ...
1528
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4252
        m findGuiResourcesIn:self.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4253
        m
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  4254
      ].
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4255
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4256
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4257
menuReplaceWidget
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4258
    ^ [
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4259
        |m i specAndView spec usefulReplacementSpecClasses|
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4260
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4261
        m := self class menuReplaceWidget.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4262
        m := m decodeAsLiteralArray.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4263
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4264
        specAndView := self selectedSpecAndView.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4265
        spec := specAndView first.
1968
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4266
        spec notNil ifTrue:[
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4267
            usefulReplacementSpecClasses := spec usefulReplacementSpecClasses.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4268
            usefulReplacementSpecClasses notEmptyOrNil ifTrue:[
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4269
                m addSeparator.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4270
                usefulReplacementSpecClasses do:[:eachClass |      
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4271
                    |item|
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4272
3137
3f3d24b1bed7 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3132
diff changeset
  4273
                    item := MenuItem  
3f3d24b1bed7 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3132
diff changeset
  4274
                                label:(resources string:'Replace by %1' with:eachClass userFriendlyName)
3f3d24b1bed7 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3132
diff changeset
  4275
                                itemValue:#replaceWidgetByClass: argument:eachClass.
3f3d24b1bed7 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3132
diff changeset
  4276
                    item translateLabel:false.
1968
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4277
                    m addItem:item.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  4278
                ].
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4279
            ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4280
        ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4281
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4282
        m findGuiResourcesIn:self.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4283
        m
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4284
      ].
2923
38943deb8672 menuitem protocol
Claus Gittinger <cg@exept.de>
parents: 2920
diff changeset
  4285
38943deb8672 menuitem protocol
Claus Gittinger <cg@exept.de>
parents: 2920
diff changeset
  4286
    "Modified: / 09-09-2012 / 13:25:09 / cg"
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4287
! !
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4288
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4289
!UIPainter methodsFor:'private'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4290
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4291
acceptOrIgnoreSectionModification
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4292
    self isModified ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4293
        (self confirm:'Accept changes made to spec ?') ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4294
            self accept
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4295
        ]
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4296
    ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4297
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4298
    "Created: / 12-01-2008 / 10:31:20 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4299
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4300
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4301
askForModification
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4302
    "asks for window spec modification"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4303
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4304
    |painter|
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4305
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4306
    painter := self painter.
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4307
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4308
    self askForSectionModification.    
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4309
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4310
    (modified or: [painter isModified or: [self helpTool modified]])
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4311
    ifTrue:[
1772
e33aee13defe Use 'Discard Changes and Exit' instead of 'Forget it...'
Stefan Vogel <sv@exept.de>
parents: 1760
diff changeset
  4312
        ((YesNoBox title:(resources string:'Window spec was modified. Exit anyway?'))        
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4313
            noText:(resources string:'Cancel');
1772
e33aee13defe Use 'Discard Changes and Exit' instead of 'Forget it...'
Stefan Vogel <sv@exept.de>
parents: 1760
diff changeset
  4314
            yesText:(resources string:'Discard Changes and Exit');
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4315
            showAtPointer;
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4316
            accepted) ifFalse: [^false].
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4317
        self clearModified.
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  4318
        painter resetModification
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4319
    ].
2293
b8149118f0af Do not ask for "discarding changes" on first doSaveAs
Stefan Vogel <sv@exept.de>
parents: 2284
diff changeset
  4320
    ^ true
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  4321
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  4322
    "Modified: / 20.5.1998 / 02:03:16 / cg"
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4323
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4324
808
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4325
askForSaving
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4326
    "asks for defining an application class"
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4327
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4328
    self askForSectionModification.    
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4329
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4330
    ((YesNoBox title:'No application class defined yet!!')        
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4331
        noText:'Cancel';
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4332
        yesText:'Define';
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4333
        showAtPointer;
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4334
        accepted) ifFalse: [^false].
808
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4335
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4336
    self doSave.
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4337
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4338
    ^true
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4339
!
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  4340
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4341
askForSectionModification
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4342
    "asks for section modification in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4343
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4344
    self isModified ifTrue:[
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  4345
        (self confirm:'Accept modifications in section ' , tabSelection printString allBold, '?') ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4346
            self accept
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4347
        ] ifFalse: [
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4348
            self cancel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4349
        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4350
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4351
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4352
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4353
checkClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4354
    "checks for class & superclass"
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4355
1211
53cfc272acc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1204
diff changeset
  4356
    |superclass cls|
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4357
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4358
    specClassName isNil ifTrue:[^ false].
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4359
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4360
    cls := self resolveName:specClassName.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4361
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4362
    cls isNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4363
        superclass := self resolveName:specSuperclassName.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4364
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4365
        superclass isNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4366
            self warn:'No class named ' , specSuperclassName , ' exists!!'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4367
            ^ false.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4368
        ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4369
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  4370
        (self confirm:'Create class ' , specClassName allBold, '?') ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4371
            cls := superclass 
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4372
                        subclass:(specClassName asSymbol)
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4373
                        instanceVariableNames:''
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4374
                        classVariableNames:''
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4375
                        poolDictionaries:''
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4376
                        category:'Applications'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4377
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4378
            cls name ~= specClassName ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4379
                self information:'Created new class is ' , cls name.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4380
                specClassName := cls name
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4381
            ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4382
            ^ true.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4383
        ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4384
        ^ false.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4385
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4386
    cls isBehavior ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4387
        self warn:'A global named ' , specClassName , ' exists, but it is no class.'.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4388
        ^ false.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4389
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4390
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4391
    specSuperclassName isBehavior ifFalse:[
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  4392
        specSuperclassName notEmptyOrNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4393
            superclass := self resolveName:specSuperclassName
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  4394
        ] ifFalse:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4395
            specSuperclassName := nil.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4396
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4397
    ] ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4398
        superclass := specSuperclassName
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4399
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4400
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4401
    specSuperclassName notNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4402
        superclass isNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4403
            self warn:'No class named ' , specSuperclassName , ' exists!!'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4404
            ^ false.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4405
        ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4406
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4407
        (cls isSubclassOf:superclass) ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4408
            self information:('A global named ' , specClassName , ' exists,\' ,
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4409
                              'but is not a subclass of ' , superclass name , '.\\' ,
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4410
                              'Check and try again if that is not what you want.') withCRs.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4411
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4412
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4413
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4414
    superclass isNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4415
        cls notNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4416
            specSuperclassName := cls superclass name
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4417
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4418
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4419
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4420
    ^ true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4421
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4422
    "Modified: 12.8.1997 / 23:39:10 / cg"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4423
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4424
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4425
createToolApplication:anApplicationClass spec:aSpec in:aView
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4426
    |appl applBuilder applWindow|
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4427
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4428
    appl := anApplicationClass new.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4429
    appl createBuilder.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4430
    applBuilder := appl builder.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4431
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4432
    applWindow  := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:aView.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4433
    applWindow level:0.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4434
    applWindow hiddenOnRealize:true.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4435
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4436
    appl masterApplication:self.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4437
    applBuilder window:applWindow.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4438
    applWindow client:appl spec:aSpec builder:applBuilder.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4439
    appl modifiedHolder:(self modifiedChannel).
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4440
    applBuilder window:applWindow.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4441
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4442
    ^ appl
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4443
!
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4444
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4445
hideUIView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4446
    "hides the view which is an application or top view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4447
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4448
    aView beIndependent.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4449
    aView unmap.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4450
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4451
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4452
raiseTabView
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4453
    |tool|
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4454
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4455
             self isLayoutToolSelected ifTrue:[tool := layoutTool ]
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4456
    ifFalse:[self isHelpToolSelected   ifTrue:[tool := helpTool   ]
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4457
    ifFalse:[
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4458
        tool := specTool.
3111
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4459
        tool notNil ifTrue:[
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4460
            ApplicationClassQuery answer:specClass do:[
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4461
                    "/ the spectool needs to know, in which nameSpace the application class is located, to find out
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4462
                    "/ how to resolve short majorKeys...
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4463
                    UISpecification uiMajorKeyBindingNameSpaceQuery 
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4464
                        answer:(specClass notNil ifTrue:[specClass nameSpace] ifFalse:Smalltalk)
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4465
                        do:[
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4466
                            specTool selection:tabSelection 
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  4467
                        ].
3085
cc05bf8ba3a7 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3084
diff changeset
  4468
                ].
cc05bf8ba3a7 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3084
diff changeset
  4469
        ].
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4470
    ]].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4471
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4472
    (Array with:helpTool with:layoutTool with:specTool) do:[:aTool|
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4473
        aTool ~~ tool ifTrue:[
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4474
            aTool window beInvisible.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4475
        ].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4476
    ].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4477
    tool notNil ifTrue:[
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4478
        tool window beVisible.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  4479
    ].
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4480
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4481
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4482
raiseUIView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4483
    "raise the view which is an application or top view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4484
1193
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  4485
    aView remap.
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4486
    aView bePartner.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4487
!
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4488
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4489
setClass:cls selector:selector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4490
    "sets the specClass and the specSelector under which the window spec should be saved"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4491
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4492
    |clsName superClassName|
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4493
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4494
    clsName := cls name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4495
    superClassName := cls superclass name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4496
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4497
    (self aspectFor:#classNameChannel) value:clsName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4498
    (self aspectFor:#methodNameChannel) value:(selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4499
    (self aspectFor:#superclassNameChannel) value:superClassName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4500
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4501
    self painter 
1760
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  4502
            className:clsName 
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  4503
            superclassName:superClassName
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  4504
            selector:(selector ? '').
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4505
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4506
    self specClass:clsName.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4507
    specSelector := (selector ? '').
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4508
    specSuperclassName := superClassName.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  4509
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4510
    (specClassName notNil and:[ selector notNil ]) ifTrue:[
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4511
        self addHistoryEntryForClass:specClass selector:specSelector.
1760
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  4512
        self updateInfoLabel
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  4513
    ].
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  4514
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4515
    "Modified: / 05-02-1998 / 09:44:58 / stefan"
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4516
    "Modified: / 31-08-2006 / 10:14:49 / cg"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4517
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4518
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4519
setViewInLayoutTool:aView spec:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4520
    "sets view for layout tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4521
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4522
    |type|
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4523
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4524
    self painter topView == aView ifTrue:[
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4525
        type := #Extent
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4526
    ] ifFalse:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4527
        self canvas == aView ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4528
            type := #Extent
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4529
        ]
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4530
    ].
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4531
    self layoutTool layoutView:aView type:type spec:aSpec
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4532
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4533
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4534
specClass
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4535
    specClass isNil ifTrue:[
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4536
        specClassName notNil ifTrue:[
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4537
            specClass := Smalltalk classNamed:specClassName.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4538
            self canInstallAsWebPageHolder value:self canInstallAsWebPage.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4539
        ]
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4540
    ].
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4541
    ^ specClass
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4542
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4543
    "Created: / 31-08-2006 / 10:08:43 / cg"
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4544
    "Modified: / 14-01-2008 / 17:39:32 / cg"
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4545
!
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4546
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4547
specClass:aClassOrClassName
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4548
    "sets the specClass and updates the Help Tool"
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  4549
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4550
    aClassOrClassName isBehavior 
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4551
        ifTrue: [ specClass := aClassOrClassName.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4552
                  specClassName := aClassOrClassName name ]
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4553
        ifFalse:[ specClass := Smalltalk classNamed:aClassOrClassName.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4554
                  specClassName := aClassOrClassName ].
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4555
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4556
    self canInstallAsWebPageHolder value:self canInstallAsWebPage.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4557
    self helpTool loadFromClass:specClass.    
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4558
    self clearModifiedFlag.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4559
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4560
    "Modified: / 14-01-2008 / 17:39:08 / cg"
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4561
! !
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4562
1714
f57812a56d17 method category rename
Claus Gittinger <cg@exept.de>
parents: 1712
diff changeset
  4563
!UIPainter methodsFor:'private-tools'!
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4564
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4565
canvas
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4566
    "returns the canvas view"
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4567
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4568
    UseViewScroller == true ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4569
        ^ painter.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4570
    ].
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4571
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4572
    ^ painter topView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4573
"/    ^ treeView canvas
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4574
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4575
    "Modified: / 05-09-2006 / 18:36:32 / cg"
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4576
!
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4577
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4578
helpTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4579
    "returns the help tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4580
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4581
    helpTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4582
  ^ helpTool
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4583
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4584
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4585
layoutTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4586
    "returns the layout tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4587
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4588
    layoutTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4589
  ^ layoutTool
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4590
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4591
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4592
painter
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4593
    "returns the canvas view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4594
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4595
    ^ painter.
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4596
"/    ^ treeView canvas
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4597
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4598
    "Modified: / 05-09-2006 / 18:36:32 / cg"
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4599
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4600
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4601
specTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4602
    "returns the spec tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4603
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4604
    specTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4605
  ^ specTool
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4606
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4607
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4608
!UIPainter methodsFor:'queries'!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4609
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4610
canPaste
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4611
    |clipboard sel|
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4612
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4613
    clipboard := painterView getClipboardObject.
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4614
2328
5324713ed697 care for non collection which responds to notEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 2319
diff changeset
  4615
    (clipboard isCollection 
5324713ed697 care for non collection which responds to notEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 2319
diff changeset
  4616
    and:[ clipboard notEmptyOrNil ]) 
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4617
            ifTrue:[sel := clipboard first]
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4618
            ifFalse:[sel := clipboard].
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4619
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4620
    ^ (sel isKindOf:UISpecification) 
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4621
"/                    and:[treeSelection size  = 1 
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4622
"/                    and:[treeSelection first == 1 
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4623
"/                         or: [self canPasteInto: treeView selectedNode contents view]]]
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4624
!
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4625
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4626
hasSpecClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4627
    "answers whether an application class is defined"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4628
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4629
    ^ (self resolveName:specClassName) notNil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4630
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4631
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4632
hasSpecClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4633
    "answers whether an application class and a selector under which
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4634
     the window spec is stored is defined"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4635
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4636
    specSelector size > 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4637
        ^ self hasSpecClass
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4638
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4639
    ^ false
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4640
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4641
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4642
isEditingSpecOnly
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4643
    ^ self isNotEditingSpecOnly not
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4644
!
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4645
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4646
isHelpToolSelected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4647
    "answers whether the current selected section in the noteBook is the Help Tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4648
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4649
    ^ tabSelection = UIHelpTool label
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4650
!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4651
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4652
isLayoutToolSelected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4653
    "answers whether the current selected section in the noteBook is the Layout Tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4654
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4655
    ^ tabSelection = UILayoutTool label
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4656
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4657
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4658
isModified
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4659
    "answers whether the current window spec or a layout is modified"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4660
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4661
    ^ self modifiedChannel value
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4662
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4663
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4664
isNotEditingSpecOnly
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4665
    ^ true
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4666
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4667
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4668
isPainterEnabled
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4669
    "answers whether I am running in test mode"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4670
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4671
    ^ self painter enabled
1608
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4672
!
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4673
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4674
isUIPainter
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4675
    ^ true
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4676
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4677
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4678
listOfAspects
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4679
    ^ self painter listOfAspects
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4680
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4681
    "Created: / 12-01-2008 / 19:24:51 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4682
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4683
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4684
listOfCallbacks
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4685
    ^ self painter listOfCallbacks
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4686
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4687
    "Created: / 12-01-2008 / 19:25:09 / cg"
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4688
! !
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4689
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4690
!UIPainter methodsFor:'selection'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4691
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4692
askForUnsavedModifications
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4693
    |whatToDo|
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4694
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4695
    self isModified ifFalse:[^ true].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4696
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4697
    whatToDo := DialogBox 
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  4698
                    confirmWithCancel:'Accept modifications in section ' , tabSelection printString allBold, ' ?'
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4699
                    labels:#('Cancel' 'Ignore' 'Accept')
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4700
                    default:3.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4701
    whatToDo isNil ifTrue:[^ false].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4702
    whatToDo == true ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4703
        self accept
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4704
    ] ifFalse:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4705
        self cancel
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4706
    ].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4707
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4708
    ^ true
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4709
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4710
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4711
copySelection
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4712
    self painter copySelection.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4713
    self updateChannels.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4714
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4715
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4716
selectedSpec
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4717
    |specAndView|
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4718
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4719
    specAndView := self selectedSpecAndView.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4720
    ^ specAndView first
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4721
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4722
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4723
selectedSpecAndView
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4724
    |spec view property|
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4725
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4726
    treeView isCanvasSelected ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4727
        spec := treeView canvasSpec.
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4728
        view := self canvas. "/ self painter topView.
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4729
    ] ifFalse:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4730
        (property := treeView propertySelected) notNil ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4731
            treeView canResizeSelectedWidget ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4732
                view := property view.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4733
            ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4734
            spec := property spec copy.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4735
        ]
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4736
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4737
    ^ Array with:spec with:view
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4738
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4739
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4740
tabSelection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4741
    "returns the label of the current section in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4742
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4743
    ^ tabSelection
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4744
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4745
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4746
tabSelection:something
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4747
    "called whenever the section of the notebook has changed"
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  4748
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4749
    (something isNil or:[tabSelection = something]) ifTrue:[
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4750
        ^ self
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4751
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4752
2202
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4753
    self isModified ifTrue:[
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4754
        self autoAcceptOnSelectionChange value ifTrue:[
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4755
            self accept
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4756
        ] ifFalse:[
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4757
            self askForUnsavedModifications ifFalse:[^ self].
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4758
        ].
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4759
    ].
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4760
    tabSelection := something.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4761
    self raiseTabView.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4762
    self cancel.
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4763
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4764
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4765
treeSelectionChanged
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4766
    "called whenever the selection of the treeview has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4767
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4768
    |specAndView view spec|
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4769
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4770
    self askForUnsavedModifications ifFalse:[^ self].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4771
"/    self isModified ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4772
"/        (self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4773
"/            self accept
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4774
"/        ]
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4775
"/    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4776
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4777
    specAndView := self selectedSpecAndView.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4778
    spec := specAndView first.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4779
    view := specAndView last.
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4780
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4781
    self setViewInLayoutTool:view spec:spec.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4782
    self specTool specification:spec.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4783
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4784
    self updateSlicesForSpec:spec andView:view.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4785
    self clearModifiedFlag.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4786
    self updateChannels.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4787
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4788
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4789
updateSlicesForSpec:spec andView:view
2512
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4790
    "fetch slices-info from the spec; add help and geometry slices manually"
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4791
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4792
    |slices "size" list tabComponent|
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4793
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4794
    tabComponent := self componentAt:#noteBook.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4795
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4796
    spec notNil ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4797
        self helpTool helpKey:(spec activeHelpKey).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4798
        slices := spec class slices.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4799
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4800
        list := slices collect:[:eachSlice | eachSlice first asString].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4801
        self treeView isCanvasSelected ifFalse:[
2040
2df23da6484a you shalt not add to Arrays !
ab
parents: 2023
diff changeset
  4802
            list := list copyWith:(UIHelpTool label)
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4803
        ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4804
        view notNil ifTrue:[
2512
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4805
            "/ for now, keep it as an empty slice;
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4806
            "/ better when toggling as we do not loos the 'geometry' selection.
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4807
            "/ slices notebook should remember the last 'explicit' selected tab.
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4808
            true "spec hasLayout" ifTrue:[
2511
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  4809
                list := list copyWith:UILayoutTool label.
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  4810
            ]
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4811
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4812
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4813
"/        size   := slices size.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4814
"/        view notNil ifTrue:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4815
"/            self treeView isCanvasSelected ifFalse:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4816
"/                list := Array new:(size + 2).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4817
"/                list at:(size + 2) put:(UILayoutTool label).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4818
"/            ] ifTrue:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4819
"/                list := Array new:(size + 1).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4820
"/                list at:(size + 1) put:(UILayoutTool label).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4821
"/            ].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4822
"/        ] ifFalse:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4823
"/            list := Array new:(size + 1).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4824
"/        ].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4825
"/
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4826
"/        1 to:size do:[:i| list at:i put:((slices at:i) first asString)].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4827
"/        self treeView isCanvasSelected ifFalse: [
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4828
"/            list at:(size + 1) put:(UIHelpTool label)
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4829
"/        ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4830
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4831
        self tabList value:list.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4832
        self showHelp:spec class name for:self.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4833
        tabComponent enabled:true.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4834
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4835
        (tabSelection := tabComponent selection) isNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4836
            tabComponent setSelection:(tabSelection := list first)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4837
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4838
        self raiseTabView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4839
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4840
        self helpTool helpKey:nil.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4841
        tabComponent enabled:false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4842
        self defaultInfoLabel.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4843
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4844
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4845
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4846
!UIPainter methodsFor:'settings'!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4847
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4848
generateAspectsAsInstanceVariables
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4849
    "if on, aspects are held as instance variables;
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4850
     if off (the default), they are kept in the bindings dictionary."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4851
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4852
    ^ UIPainterView generateAspectsAsInstanceVariables
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4853
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4854
    "Created: / 29-07-1998 / 11:17:59 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4855
    "Modified: / 12-01-2008 / 10:37:43 / cg"
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4856
!
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4857
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4858
generateAspectsAsInstanceVariables:aBoolean
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4859
    "if on, aspects are held as instance variables;
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4860
     if off (the default), they are kept in the bindings dictionary."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4861
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4862
    ^ UIPainterView generateAspectsAsInstanceVariables:aBoolean
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4863
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4864
    "Created: / 29.7.1998 / 11:18:20 / cg"
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4865
!
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4866
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4867
generateCommentedCode
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4868
    "comments in generated aspect methods; yes or no."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4869
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4870
    ^ UIPainterView generateCommentedCode
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4871
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4872
    "Created: / 12-01-2008 / 10:34:14 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4873
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4874
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4875
generateCommentedCode:aBoolean
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4876
    "comments in generated aspect methods; yes or no."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4877
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4878
    UIPainterView generateCommentedCode:aBoolean
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4879
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4880
    "Created: / 12-01-2008 / 10:23:10 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4881
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4882
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4883
redefineAspectMethods
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4884
    "redefine methods yes or no.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4885
     If a method is defined in super class should the message be reinstalled ?"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4886
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4887
    ^ UIPainterView redefineAspectMethods
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4888
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4889
    "Modified: / 12-01-2008 / 10:34:07 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4890
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4891
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4892
redefineAspectMethods:aBoolean
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4893
    "redefine methods yes or no.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4894
     If a method is defined in super class should the message be reinstalled ?"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4895
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4896
    UIPainterView redefineAspectMethods:aBoolean
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4897
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4898
    "Modified: / 12-01-2008 / 10:23:20 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4899
! !
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4900
1716
5ae373f6fef0 method category rename
Claus Gittinger <cg@exept.de>
parents: 1714
diff changeset
  4901
!UIPainter methodsFor:'startup & release'!
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4902
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4903
closeRequest
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4904
    "asks for permission before closing"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4905
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4906
    self askForModification ifFalse:[^self].
133
e12f82d3afb7 popup box caused by a closeRequest with still open
ca
parents: 130
diff changeset
  4907
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4908
    super closeRequest.
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4909
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4910
    painterView notNil ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4911
        painterView masterApplication:nil.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4912
        painterView closeRequest.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4913
    ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4914
    treeView notNil ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4915
        treeView model removeDependent:self.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4916
    ].
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4917
    selectionPanel notNil ifTrue:[
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4918
        selectionPanel masterApplication:nil.
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4919
        selectionPanel closeRequest
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4920
    ].
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4921
    "/ selectionPanel := nil.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4922
    "/ treeView       := nil.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4923
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4924
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4925
closeRequestFor:aTopView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4926
    "handles a close request for a specific view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4927
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4928
    |topView|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4929
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4930
    (topView := self window) == aTopView ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4931
        super closeRequestFor:aTopView
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4932
    ] ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4933
        aTopView = selectionPanel window ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4934
            self galleryShown value:false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4935
        ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4936
            aTopView == (self painter topView) ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4937
                self painterShown value:false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4938
            ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4939
                aTopView closeRequest
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4940
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4941
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4942
        topView raise.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4943
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4944
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4945
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4946
commonPostBuild
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4947
    "sets the root of the tree view as first selection;
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4948
     sets the grid parameters, if defined"
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4949
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4950
    |cls sel|
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4951
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4952
    cls := self specClass.
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4953
    sel := specSelector.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4954
    cls notNil ifTrue:[
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4955
        self setClass:cls selector:sel.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4956
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4957
        (cls respondsTo:sel) ifTrue:[  
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4958
            self painter setupFromSpec:(cls perform:sel).
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4959
        ]
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4960
    ].
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4961
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4962
    self autoAcceptOnSelectionChange addDependent:self.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4963
    self autoAcceptOnSelectionChange value ifTrue:[
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4964
        (builder componentAt:'acceptButton') label:(resources string:'Apply')
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4965
    ].
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4966
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4967
    "/ using masters infoHolder ?
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4968
    (builder aspectAt:#useAlienInfoLabelHolder) == true ifTrue:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4969
        (builder componentAt:#mainPanel) layout bottomOffset:0.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4970
        (builder componentAt:#infoBarSubSpec) beInvisible
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4971
    ].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4972
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  4973
    self updateInfoLabel.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4974
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4975
    "Modified: / 31-08-2006 / 10:12:53 / cg"
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4976
!
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4977
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4978
loadFromClass:aClass andSelector:selector
1185
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  4979
    "loads a window spec by evaluating aMessageString
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  4980
     (which is something like 'fooClass windowSpec')"
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  4981
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4982
    self assert:(aClass isNil or:[aClass isClass]).
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4983
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4984
    self askForModification ifFalse:[^ self].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4985
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4986
    self setClass:aClass selector:selector.    
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4987
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4988
    (aClass respondsTo:selector) ifTrue:[   
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4989
        self loadFromSpec:(aClass perform:selector).
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4990
    ]
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4991
!
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4992
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4993
loadFromMessage:classAndSelector
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4994
    "loads a window spec by evaluating aMessageString
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4995
     (which is something like 'fooClass windowSpec')"
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4996
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4997
    self askForModification ifFalse:[^ self].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4998
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4999
    classAndSelector notNil ifTrue:[
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5000
        self 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5001
            loadFromClass:classAndSelector methodClass 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5002
            andSelector:classAndSelector methodSelector
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5003
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5004
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5005
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5006
loadFromSpec:aSpec
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5007
    "loads a window spec proper"
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5008
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5009
    self askForModification ifFalse:[^ self].
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5010
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5011
    self painter setupFromSpec:aSpec.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5012
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5013
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  5014
openInterface:aSymbol 
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5015
    "in addition to opening my interface, also open up a gallery and a painter"
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  5016
    
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5017
    |topView|
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5018
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5019
    self setupSpecClassAndSelector.
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5020
2012
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5021
"/    treeView := TreeView new.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5022
"/    treeView windowSpecClass:(self defaultWindowSpecClass).
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5023
"/    treeView 
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5024
"/        selectConditionBlock:[:newSelection | self selectionChangeAllowed:newSelection ].
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5025
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5026
"/    painterView := StandardSystemView new.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5027
"/    name := name ? UIPainter defaultNameOfCanvas.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5028
"/    painterView beToolWindow.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5029
"/    painterView name:name.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5030
"/    painterView label:name.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5031
"/    painterView extent:(treeView windowSpecClass defaultExtentInUIPainter).
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5032
"/    painter := UIPainterView in:painterView.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5033
"/    painter layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5034
"/    treeView := treeView canvas:painter specName:name.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5035
"/    painter treeView:treeView.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5036
"/    treeView model addDependent:self.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  5037
"/    painter enableChannel:(self enableChannel).
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5038
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5039
    super openInterface:aSymbol.
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5040
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  5041
    topView := self window.
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  5042
    topView label:'GUI Painter'.
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5043
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5044
"/    self setupCanvasAndSelectionPanel.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5045
"/
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5046
"/    selectionPanel window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5047
"/    painterView window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5048
"/    self window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5049
"/    [ Delay waitForSeconds:0.5. self window topView raise ] fork.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5050
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5051
    "Modified: / 31-08-2006 / 10:13:16 / cg"
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  5052
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  5053
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  5054
openOnClass:aClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5055
    "opens the GUI Painter on aClass and #windowSpec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5056
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  5057
    self openOnClass:aClass andSelector:#windowSpec
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  5058
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  5059
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  5060
openOnClass:aClass andSelector:aSelector
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5061
    "opens the GUI Painter on aClass and aSelector"
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5062
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  5063
    aClass isNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5064
        (self confirm:'No class given to the GUI Painter (class was probably renamed?)\\Open anyway (to create a new window spec) ?' withCRs)
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5065
        ifFalse:[^ nil].
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  5066
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  5067
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  5068
    specSelector := aSelector.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5069
    specClass := aClass.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5070
    specClassName := aClass name.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  5071
964
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  5072
    self openInterface.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  5073
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  5074
"/    specSelector := aSelector.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  5075
"/    specClass := aClass.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  5076
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5077
    "Modified: / 31-08-2006 / 10:13:31 / cg"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5078
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5079
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5080
postBuildWith: aBuilder
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5081
    super postBuildWith:aBuilder.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  5082
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5083
    (self toolBarVisibleHolder value 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5084
    or:[ self editToolBarVisibleHolder value ]) ifTrue:[ self toolBarVisibilityChanged ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5085
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5086
    "Created: / 18-02-2007 / 15:03:08 / cg"
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5087
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5088
    self setupPainter.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  5089
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5090
    "Modified: / 22.8.1998 / 17:41:34 / cg"
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5091
!
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5092
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5093
postOpenWith: aBuilder
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5094
    "spread the painter and gallery views on the screen"
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5095
1194
651885033545 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1193
diff changeset
  5096
    |myWindow canvasWindow canvasOrg galleryWindow 
3062
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5097
     galleryOrg windowGroup monitorBounds myViewRectangle|
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5098
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5099
    super postOpenWith:aBuilder.
1957
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  5100
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  5101
    windowGroup := self topApplication windowGroup.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  5102
    windowGroup addPreEventHook:self.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  5103
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  5104
    treeView selection: #(1).
1247
6fb170b75302 clear menuBar in keyProcessor
ca
parents: 1230
diff changeset
  5105
    aBuilder keyboardProcessor menuBar:nil.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  5106
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5107
    myWindow := self window.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5108
    canvasWindow := self painter topView.
1456
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  5109
    [selectionPanel isNil] whileTrue:[
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  5110
        Delay waitForSeconds:0.1.
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  5111
    ].
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  5112
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5113
    galleryWindow := selectionPanel window.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5114
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  5115
    "/ try to lay out things non-overlapping
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  5116
    "/ but only, if the window manager placed all windows
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  5117
    "/ on top of each other
3062
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5118
    "/ make sure, that all the windows are on the same physical monitor
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5119
    monitorBounds := device monitorBoundsAt:self window origin.
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5120
    myViewRectangle := myWindow screenBounds.
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5121
    (myViewRectangle intersects:galleryWindow screenBounds) ifTrue:[
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5122
        galleryOrg := (monitorBounds right - galleryWindow width - 20) 
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  5123
                      @ 
3062
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5124
                      ((myWindow bottom + 20) min:(monitorBounds bottom - galleryWindow height - 20)).
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5125
        galleryWindow 
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5126
            origin:galleryOrg;
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5127
            raise.
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5128
    ].
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5129
    ((myViewRectangle intersects:canvasWindow screenBounds)
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5130
     or:[galleryWindow screenBounds intersects:canvasWindow screenBounds])ifTrue:[          
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5131
        canvasOrg := monitorBounds origin + (10@20).
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5132
        canvasWindow 
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5133
            origin:canvasOrg;
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5134
            raise.
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  5135
    ].
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  5136
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5137
    self setupCanvasAndSelectionPanel.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5138
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5139
"/    selectionPanel window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5140
"/    painterView window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5141
"/    self window waitUntilVisible.
3062
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5142
    [   
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5143
        Delay waitForSeconds:0.1. 
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5144
        myWindow topView raise.
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5145
        Delay waitForSeconds:0.25. 
3062
fb2f2197eada class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3061
diff changeset
  5146
        myWindow topView raise 
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5147
    ] fork.
1195
64f3537ca061 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1194
diff changeset
  5148
    "Modified: / 13.7.1999 / 21:26:52 / cg"
1461
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5149
!
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5150
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5151
release
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5152
    super release.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5153
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5154
    painterView notNil ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5155
        painterView destroy.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5156
    ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5157
    selectionPanel notNil ifTrue:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5158
        selectionPanel masterApplication:nil.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5159
        selectionPanel window destroy
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5160
    ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5161
    selectionPanel := nil.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5162
    treeView       := nil.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5163
    painterView    := nil.
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5164
!
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  5165
1461
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5166
selectionPanelClass
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
  5167
    ^ SelectionPanelClass
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5168
!
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5169
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5170
setupCanvasAndSelectionPanel
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5171
    |topView galleryWindow icon|
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5172
3132
461c7f2b2148 class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3130
diff changeset
  5173
    painterView isOpen ifTrue:[
461c7f2b2148 class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3130
diff changeset
  5174
        ^ self.
461c7f2b2148 class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3130
diff changeset
  5175
    ].
461c7f2b2148 class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3130
diff changeset
  5176
3296
9a42d2d7ff05 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3256
diff changeset
  5177
    icon := self class builderIcon.
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5178
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5179
    topView := self window.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5180
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5181
    painterView openInGroup:(topView windowGroup).
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5182
    painterView application:self.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5183
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5184
    galleryWindow := selectionPanel window.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5185
    galleryWindow beToolWindow.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5186
    galleryWindow openInGroup:(topView windowGroup).
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5187
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5188
    selectionPanel masterApplication:self.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5189
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5190
    topView iconLabel:'GUI Painter'.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5191
    topView icon:icon.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5192
    painterView iconLabel:'GUI Canvas'.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5193
    painterView icon:icon.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5194
    galleryWindow iconLabel:'GUI Gallery'.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5195
    galleryWindow icon:icon.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5196
    
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  5197
    topView isModal ifFalse:[
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  5198
        topView bePartner.
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  5199
        painterView bePartner.
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  5200
        galleryWindow bePartner.
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  5201
    ]
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5202
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5203
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5204
setupPainter
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5205
    "sets the painter's grid parameters, if defined"
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5206
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5207
    |painter settings gridPara hspace vspace|
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5208
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5209
    painter  := self painter.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5210
    settings := self class settings.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5211
    gridPara := painter gridParameters copy.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5212
    hspace   := settings at: #HGridSpace ifAbsent:10.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5213
    vspace   := settings at: #VGridSpace ifAbsent:10.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5214
    gridPara at:1 put:hspace; at:2 put:vspace; at:5 put:hspace; at:6 put:vspace.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5215
    painter gridParameters:gridPara.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5216
    painter gridShown: (settings at: #GridShown ifAbsent:false).
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5217
    painter gridAlign: (settings at: #GridAlign ifAbsent:false).
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5218
    painter shown ifTrue:[painter clearView].
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5219
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  5220
    "Modified: / 22.8.1998 / 17:41:34 / cg"
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5221
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5222
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5223
setupSpecClassAndSelector
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5224
    |cls name|
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5225
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5226
    self specClass notNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5227
        specClassName isBehavior ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5228
            name := specClassName nameWithoutPrefix.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5229
        ] ifFalse:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5230
            name := specClassName printString string
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5231
        ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5232
    ].
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5233
    (aspects at:#classNameChannel) value:(specClassName ? 'NewApplication').
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5234
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5235
    specSuperclassName isNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5236
        specClassName notNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5237
            (cls := self resolveName:specClassName) notNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5238
                specSuperclassName := cls superclass name.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5239
            ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5240
        ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5241
    ].
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5242
    aspects at:#superclassNameChannel
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5243
        put:((specSuperclassName notNil 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5244
                ifTrue:[ specSuperclassName ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5245
                ifFalse:[ 'ApplicationModel' ]) asValue).
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5246
    aspects at:#superclassNameDefaults
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5247
        put:#( 'ApplicationModel' 'SimpleDialog' 'WebApplicationModel') asValue.
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5248
    aspects at:#methodNameChannel
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5249
        put:((specSelector notNil 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5250
                ifTrue:[ specSelector asValue ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5251
                ifFalse:[ #windowSpec ]) asValue).
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5252
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5253
    "Modified: / 16-01-2008 / 10:44:55 / cg"
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  5254
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  5255
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5256
!UIPainter methodsFor:'user actions'!
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5257
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5258
accept
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5259
    "accepts all modifications done to the attributes of the current section"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5260
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  5261
    |painter layout spec layoutTool layoutView t|
1068
dcb2cba5787f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1063
diff changeset
  5262
dcb2cba5787f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1063
diff changeset
  5263
    self acceptChannel value:true; value:false.  "/ force editFields to accept
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5264
    self clearModifiedFlag.
788
8f9f3c3fcf60 avoid modified problems
tz
parents: 787
diff changeset
  5265
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5266
    painter := self painter.
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  5267
    spec := self specTool specification.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5268
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5269
    self isLayoutToolSelected ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5270
        layoutTool := self layoutTool.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5271
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5272
        (layout := layoutTool layout) notNil ifTrue:[
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  5273
            "/ cg->ca: the following code should be moded to the layoutTool
3325
8ce2df5fc1f7 #OTHER by mawalch
mawalch
parents: 3296
diff changeset
  5274
            "/ (i.e. layoutTool saveInSpec:spec).
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  5275
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5276
            layoutTool layoutType == #Extent ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5277
                layoutView := layoutTool layoutView.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5278
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5279
                layoutView == self canvas ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5280
                    layoutView extent:layout.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5281
                    UseViewScroller == true ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5282
                        layoutView container container sizeChanged:nil.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5283
                    ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5284
                ] ifFalse:[
3236
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5285
                    spec useDefaultExtent:(layoutTool aspectValueFor:#useDefaultExtent).
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5286
                    spec useDefaultExtent ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5287
                        "/ temporarily unfreeze the widgets size
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5288
                        "/ (but remember, the old setting, which is actually
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5289
                        "/ controlled by the resizeForLabel attribute)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5290
                        t := layoutView sizeFixed.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5291
                        layoutView sizeFixed:false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5292
                        layout := layoutView preferredExtent.    
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5293
                        layoutView sizeFixed:t.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5294
                    ].
3236
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5295
                    spec usePreferredWidth:(layoutTool aspectValueFor:#usePreferredWidth).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5296
                    spec usePreferredHeight:(layoutTool aspectValueFor:#usePreferredHeight).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5297
                    spec useDynamicPreferredWidth:(layoutTool aspectValueFor:#useDynamicPreferredWidth).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5298
                    spec useDynamicPreferredHeight:(layoutTool aspectValueFor:#useDynamicPreferredHeight).
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5299
                    painter setExtent:layout.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5300
                    painter updateFromSpec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5301
                ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5302
            ] ifFalse:[
1444
fec7424dccda clear the useDefaultExtent flag, if the layout is NOT an extent
martin
parents: 1442
diff changeset
  5303
                spec useDefaultExtent:false.
3236
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5304
                spec usePreferredWidth:(layoutTool aspectValueFor:#usePreferredWidth).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5305
                spec usePreferredHeight:(layoutTool aspectValueFor:#usePreferredHeight).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5306
                spec useDynamicPreferredWidth:(layoutTool aspectValueFor:#useDynamicPreferredWidth).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5307
                spec useDynamicPreferredHeight:(layoutTool aspectValueFor:#useDynamicPreferredHeight).
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  5308
                layoutTool layoutType == #LayoutFrame ifTrue:[
3236
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5309
                    spec keepSpaceForOSXResizeHandleH:(layoutTool aspectValueFor:#keepSpaceForOSXResizeHandleH).
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5310
                    spec keepSpaceForOSXResizeHandleV:(layoutTool aspectValueFor:#keepSpaceForOSXResizeHandleV).
2950
9277c8ef8f03 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  5311
                ].
2477
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  5312
                painter setLayout:layout.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5313
                spec layout:layout.
2477
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  5314
                painter updateFromSpec:spec.
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  5315
            ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5316
        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5317
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5318
        self isHelpToolSelected ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5319
            self helpTool accept.      
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5320
            spec activeHelpKey:self helpTool helpKey.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5321
        ].      
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5322
        painter updateFromSpec:spec
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  5323
    ].
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  5324
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  5325
    self clearModified
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5326
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5327
3238
04a843a6ae79 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3236
diff changeset
  5328
addWidget: aSpecClassSymbol
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5329
    "adds a widget from aSpecClass to the current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5330
3238
04a843a6ae79 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3236
diff changeset
  5331
    self addWidgetOfSpec: (Array with: (Smalltalk at: aSpecClassSymbol) new)
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5332
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5333
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5334
addWidgetOfSpec: aSpec
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5335
    "adds a widget from aSpec to the current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5336
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5337
    |newSel|
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5338
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5339
    (newSel := painter pasteSpecifications:aSpec keepLayout:false at:0@0) notNil
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5340
    ifTrue:[
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5341
        painter select: newSel
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5342
    ] ifFalse:[   
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5343
        ((treeView selection size = 0) or: [treeView selectedNode isNil])
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5344
        ifTrue:[                          
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5345
            treeView selection: #(1).
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5346
        ] ifFalse:[  
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5347
            treeView selectNode: (treeView detectNode: [:n| n = treeView selectedNode parent])
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5348
        ].
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  5349
        self addWidgetOfSpec: aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5350
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5351
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  5352
    "Modified: / 05-09-2006 / 18:37:12 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5353
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5354
3218
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5355
askForMoveByStep
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5356
    "open a dialog to ask for a number"
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5357
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5358
    |s nPixels|
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5359
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5360
    s := Dialog request:'Number of Pixels to Move: '
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5361
                initialAnswer:painter nPixelsForMoveSelection asString.
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5362
    s isEmptyOrNil ifTrue:[^ self].
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5363
    nPixels := Integer readFrom:s onError:nil.
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5364
    nPixels isNil ifTrue:[^ self].
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5365
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5366
    self painter nPixelsForMoveSelection:nPixels
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5367
!
16b714603368 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3155
diff changeset
  5368
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5369
cancel
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5370
    "cancels all modifications done to the attributes of the current section; 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5371
     reread the old attributes"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5372
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5373
    |spec key view|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5374
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5375
    self isModified ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5376
        (spec := self painter specForSelection) notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5377
            key := spec activeHelpKey.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5378
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5379
        self helpTool helpKey:key.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5380
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5381
        treeView isCanvasSelected ifTrue: [
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5382
            spec := treeView canvasSpec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5383
        ].
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  5384
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5385
        self specTool specification:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5386
        view := self layoutTool layoutView.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5387
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5388
        self setViewInLayoutTool:view spec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5389
        spec class == DataSetSpec ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5390
            view notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5391
                view columnDescriptors:(spec columns)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5392
            ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5393
        ].        
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5394
        self clearModifiedFlag.
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  5395
        self clearModified.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5396
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5397
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5398
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5399
hideEditToolbar
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5400
    self editToolBarVisibleHolder value:false
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5401
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5402
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5403
hideToolbar
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5404
    self toolBarVisibleHolder value:false
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5405
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5406
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5407
replaceWidgetByClass:aSpecOrWidgetClass
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5408
    "replace the selected widget by a new instance of aSpecOrWidgetClass,
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5409
     which gets the old widget's layout"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5410
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5411
    |newSpecClass oldSpec newSpec|
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5412
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5413
    treeView isCanvasSelected ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5414
        ^ self
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5415
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5416
    (newSpecClass := self specClassFromUsersSpecOrWidgetClass:aSpecOrWidgetClass) isNil ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5417
        ^ newSpecClass
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5418
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5419
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5420
    oldSpec := self selectedSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5421
    newSpec := newSpecClass cloneFrom:oldSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5422
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5423
    self painter replaceSelectionBy:newSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5424
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5425
    "Modified: / 05-09-2012 / 19:24:40 / cg"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5426
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5427
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5428
setMoveByStep:nPixels
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5429
    "change the number of pixels by which the step-buttons move the selected widget(s)"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5430
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5431
    self painter nPixelsForMoveSelection:nPixels
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5432
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5433
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5434
specClassFromUsersSpecOrWidgetClass:aSpecOrWidgetClass
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5435
    |newSpecClass|
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5436
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5437
    (aSpecOrWidgetClass isSubclassOf:UISpecification) ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5438
        newSpecClass := aSpecOrWidgetClass.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5439
    ] ifFalse:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5440
        (aSpecOrWidgetClass isSubclassOf:View) ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5441
            newSpecClass := aSpecOrWidgetClass basicNew specClass.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5442
        ] ifFalse:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5443
            newSpecClass := nil
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5444
        ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5445
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5446
    newSpecClass isNil ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5447
        Dialog warn:'Invalid Spec- or View-Class: ' , aSpecOrWidgetClass name.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5448
        ^ nil.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5449
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5450
    ^ newSpecClass
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5451
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5452
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5453
useBackgroundImage
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5454
    "select bitmap to underly"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5455
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5456
    |fn|
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5457
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5458
    fn := Dialog requestFileName:'Bitmap Image File ?' pattern:'*.gif;*.tiff;*.jpg;*.png' fromDirectory:'f:'.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5459
    fn isNil ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5460
        ^ self
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5461
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5462
    painter useSketchFile:fn
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5463
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5464
    "Created: / 16-01-2008 / 17:49:20 / cg"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5465
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5466
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5467
useSketch
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5468
    "select sketchfile to underly.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5469
     Sketchfiles are generated by notepads, which can offline-store drawn sketches"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5470
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5471
    |fn|
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5472
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5473
    fn := Dialog requestFileName:'Sketch (Notepad Drawing) ?' pattern:'*.TOP' fromDirectory:'f:'.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5474
    fn isNil ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5475
        ^ self
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5476
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5477
    painter useSketchFile:fn
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5478
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5479
    "Created: / 16-01-2008 / 17:49:20 / cg"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5480
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5481
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5482
wrapWidgetIntoClass:aSpecOrWidgetClass
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5483
    "put the selected widget into a new instance of aSpecOrWidgetClass,
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5484
     which gets the wrapped widget's layout"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5485
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5486
    |newSpecClass oldSpec newSpec|
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5487
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5488
    treeView isCanvasSelected ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5489
        ^ self
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5490
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5491
    (newSpecClass := self specClassFromUsersSpecOrWidgetClass:aSpecOrWidgetClass) isNil ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5492
        ^ newSpecClass
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5493
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5494
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5495
    oldSpec := self selectedSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5496
    newSpec := newSpecClass new.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5497
    newSpec layout:oldSpec layout.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5498
    newSpec component:oldSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5499
    
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5500
    self painter replaceSelectionBy:newSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5501
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5502
    "Modified: / 05-09-2012 / 19:24:40 / cg"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5503
! !
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5504
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5505
!UIPainter methodsFor:'user actions-menu'!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5506
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5507
doAskAndReplaceWidgetBy
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5508
    "ask for a widget class,
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5509
     and replace the selected widget by a new instance of that one,
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5510
     which gets the old widget's layout"
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5511
2397
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  5512
    |widgetClass list common selectedSpec|
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  5513
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  5514
    selectedSpec := self selectedSpec.
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  5515
    selectedSpec isNil ifTrue:[^ self].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5516
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5517
    list :=  UISpecification allSubclasses
2920
a7ddf89e20e3 changed:
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5518
                select:[:cls | 
a7ddf89e20e3 changed:
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5519
                    [ cls viewClass notNil]
a7ddf89e20e3 changed:
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5520
                        on: NotFoundError
a7ddf89e20e3 changed:
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5521
                        do:[ false ]
a7ddf89e20e3 changed:
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5522
                ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5523
    list sort:[:a :b | a name < b name].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5524
2397
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  5525
    common := selectedSpec class commonReplacementClasses.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5526
    common notEmpty ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5527
        list addAllFirst:(common , (Array with:'-')).
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5528
    ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5529
    widgetClass := Dialog 
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5530
                        requestClass:'Replace by (Spec or View Class):'
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5531
                        list:list
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5532
                        okLabel:'OK' 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5533
                        initialAnswer:nil.
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5534
    widgetClass isNil ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5535
        ^ self
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5536
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5537
    self replaceWidgetByClass:widgetClass
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5538
2920
a7ddf89e20e3 changed:
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5539
    "Modified: / 05-09-2012 / 19:31:22 / cg"
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5540
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5541
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5542
doAskAndWrapWidgetInto
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5543
    "ask for a container class,
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5544
     and put the selected widget into a new instance of that one,
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5545
     which gets the wrapped widget's layout"
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5546
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5547
    |widgetClass list selectedSpec|
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5548
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5549
    selectedSpec := self selectedSpec.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5550
    selectedSpec isNil ifTrue:[^ self].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5551
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5552
    list :=  UISpecification allSubclasses
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5553
                select:[:cls | 
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5554
                    [ cls viewClass notNil
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5555
                      and:[ cls supportsSubComponents ]]
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5556
                        on: NotFoundError
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5557
                        do:[ false ]
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5558
                ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5559
    list sort:[:a :b | a name < b name].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5560
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5561
    widgetClass := Dialog 
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5562
                        requestClass:'Wrap into (Spec or View Class):'
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5563
                        list:list
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5564
                        okLabel:'OK' 
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5565
                        initialAnswer:nil.
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5566
    widgetClass isNil ifTrue:[
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5567
        ^ self
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5568
    ].
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  5569
    self wrapWidgetIntoClass:widgetClass
3054
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5570
!
Claus Gittinger <cg@exept.de>
parents: 3053
diff changeset
  5571
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5572
doBrowseActionMethod:aspectSelector
3256
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5573
    "browse or create the action method as entered in the field 
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5574
     (button beside input field in ui-slice pressed)"
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5575
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5576
    self acceptOrIgnoreSectionModification.
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5577
2222
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  5578
    self doBrowseActionMethod:aspectSelector nameAs:aspectSelector
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5579
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5580
    "Modified: / 12-01-2008 / 10:32:12 / cg"
2222
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  5581
!
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  5582
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  5583
doBrowseActionMethod:aspectSelector nameAs:aspectNameShown
3256
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5584
    "browse or create the action method as entered in the field.
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5585
     sent by embedded ui-slice's browse class button."
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5586
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5587
    |cls spec aspect code|
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5588
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5589
    cls := self specClass.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5590
    cls isNil ifTrue:[
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  5591
        Dialog information:'No application class defined.'.
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5592
        ^ self
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5593
    ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5594
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5595
    spec := painter specForSelection.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5596
    spec isNil ifTrue:[^ self].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5597
    aspect := spec perform:aspectSelector.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5598
    aspect isNil ifTrue:[
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5599
        Dialog information:(resources 
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  5600
                                string:'Please enter an action method name for "%1" first.'
2222
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  5601
                                with:(resources string:aspectNameShown) allBold).
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5602
        ^ self
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5603
    ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5604
        
2629
61f3f3a13b9e changed: #doBrowseActionMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2615
diff changeset
  5605
    (cls includesSelector:aspect asSymbol) ifFalse:[
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5606
        (Dialog confirm:(resources 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5607
                            stringWithCRs:'%1 does not implement %2.\\Create ?'
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5608
                            with:(cls name allBold)
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5609
                            with:aspect allBold)) 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5610
        ifFalse:[
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5611
            (Dialog confirm:(resources 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5612
                                stringWithCRs:'Browse implementors of %1 ?'
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5613
                                with:aspect allBold)) 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5614
            ifTrue:[
3228
1653d1bda447 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
  5615
                SystemBrowser default browseImplementorsOf:aspect
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5616
            ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5617
            ^ self
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5618
        ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5619
        code := painter
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5620
            generateActionMethodFor:aspect 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5621
            spec:nil 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5622
            inClass:cls.
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  5623
        Class packageQuerySignal answer:painter targetClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  5624
            code readStream fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  5625
        ].
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5626
    ].
3228
1653d1bda447 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
  5627
    SystemBrowser default openInClass:cls selector:aspect
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  5628
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  5629
    "Modified: / 28-01-2014 / 21:55:56 / cg"
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5630
!
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5631
3084
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5632
doBrowseAspectClass: aspect
3256
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5633
    "sent by embedded ui-slice's 'browse'-class button (for example, subcanvasSpec)."
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5634
3084
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5635
    | spec className class |
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5636
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5637
    spec := painter specForSelection.
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5638
    spec isNil ifTrue:[ self error: 'No spec!!'.].      
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5639
    className := spec perform: aspect.
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5640
    class := self resolveName: className inClass: specClass.
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5641
    class isNil ifTrue:[ 
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5642
        Dialog warn: (resources string: 'No such class (%1)' with: className). 
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5643
        ^ self.
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5644
    ].
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5645
    Smalltalk browseInClass: (self resolveName: className inClass: specClass)
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5646
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5647
    "Created: / 24-02-2014 / 17:20:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5648
!
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5649
3106
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5650
doBrowseAspectClassAndSelector:classAspectAndSelectorAspect
3256
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5651
    "sent by embedded ui-slice's browse class button (for example, subcanvasSpec)."
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5652
3106
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5653
    | classAspect selector selectorAspect spec className class |
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5654
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5655
    classAspect := classAspectAndSelectorAspect first. "/ #(#majorKey #minorKey)
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5656
    selectorAspect := classAspectAndSelectorAspect second. "/ #(#majorKey #minorKey)
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5657
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5658
    spec := painter specForSelection.
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5659
    spec isNil ifTrue:[ self error: 'No spec!!'.].      
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5660
    className := spec perform: classAspect.
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5661
    class := self resolveName: className inClass: specClass.
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5662
    class isNil ifTrue:[ 
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5663
        Dialog warn: (resources string: 'No such class (%1)' with: className). 
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5664
        ^ self.
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5665
    ].
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5666
    selector := spec perform: selectorAspect.
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5667
    Smalltalk 
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5668
        browseInClass: (self resolveName: className inClass: specClass) theMetaclass
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5669
        selector:selector
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5670
!
148a01b7abc0 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3098
diff changeset
  5671
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5672
doBrowseAspectMethod:aspectSelector
3256
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5673
    "browse or create the aspect method as entered in the field 
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  5674
    (button beside input field pressed)"
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5675
2529
07c7e9ba97ee changed #doBrowseAspectMethod:
Claus Gittinger <cg@exept.de>
parents: 2527
diff changeset
  5676
    self isModified ifTrue:[ self accept ].
07c7e9ba97ee changed #doBrowseAspectMethod:
Claus Gittinger <cg@exept.de>
parents: 2527
diff changeset
  5677
    "/ self acceptOrIgnoreSectionModification.
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5678
    self doBrowseAspectMethod:aspectSelector nameAs:aspectSelector
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5679
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5680
    "Modified: / 12-01-2008 / 10:32:15 / cg"
3084
02c5bb5ce4ee UIPainter>>#doBrowseAspectClass:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3078
diff changeset
  5681
    "Modified (format): / 24-02-2014 / 17:44:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5682
!
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5683
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5684
doBrowseAspectMethod:aspectSelector nameAs:aspectNameShown
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5685
    "browse or create the aspect method as entered in the field"
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5686
2527
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  5687
    |cls spec aspect implementingClass answer|
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5688
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5689
    cls := self specClass.
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5690
    cls isNil ifTrue:[
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5691
        Dialog information:'No Application Class defined.'.
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5692
        ^ self
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5693
    ].
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5694
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5695
    spec := painter specForSelection.
2527
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  5696
    spec isNil ifTrue:[self halt. ^ self].
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5697
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5698
    aspect := spec perform:aspectSelector.
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5699
    aspect isString ifFalse:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5700
        "ignore non-strings (list may be an Array)"
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5701
        aspect isNil ifTrue:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5702
            Dialog information:(resources 
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5703
                                    string:'Please enter a Method name for "%1" first.'
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5704
                                    with:(resources string:aspectNameShown) allBold).
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5705
        ].
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5706
        ^ self
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5707
    ].
2357
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  5708
2615
347a0b26e210 changed: #doBrowseAspectMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2568
diff changeset
  5709
    implementingClass := (cls whichClassIncludesSelector:aspect asSymbol).
2357
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  5710
    implementingClass isNil ifTrue:[
2615
347a0b26e210 changed: #doBrowseAspectMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2568
diff changeset
  5711
        implementingClass := (cls class whichClassIncludesSelector:aspect asSymbol).
2357
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  5712
    ].
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  5713
    implementingClass isNil ifTrue:[
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5714
        answer := OptionBox
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5715
                          request:(resources 
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5716
                                    stringWithCRs:'%1 does not implement %2.\\Create ?'
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5717
                                    with:(cls name allBold)
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5718
                                    with:aspect allBold)
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5719
                          label:'Create/Browse Aspect Method'
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5720
                          image:(WarningBox iconBitmap)
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5721
                          buttonLabels:#('Cancel' 'Browse Implementors' 'Create & Browse' 'Create' )
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5722
                          values:#(abort browseImplementors createAndBrowse create )
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5723
                          default:#create
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5724
                          onCancel:#abort.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5725
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5726
        answer == #browseImplementors ifTrue:[
3025
7509aa3559e9 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2967
diff changeset
  5727
            UserPreferences systemBrowserClass browseImplementorsOf:aspect.
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5728
            ^ self
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5729
        ].
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5730
        answer == #abort ifTrue:[
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5731
            ^ self
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5732
        ].
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5733
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5734
        self doGenerateAspectMethodsForAll:(Array with:aspect).
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5735
        implementingClass := self painter targetClass.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5736
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5737
        answer == #create ifTrue:[^ self].
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5738
    ] ifFalse:[
2547
80cb3ae254fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2544
diff changeset
  5739
        (Dialog confirm:(resources string:'Browse the implementation of "%1" ?' with:aspect)) ifFalse:[
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5740
            ^ self.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5741
        ].
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5742
    ].
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5743
3025
7509aa3559e9 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 2967
diff changeset
  5744
    UserPreferences systemBrowserClass 
2357
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  5745
        openInClass:implementingClass selector:aspect
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5746
!
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5747
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5748
doBrowseAspectMethods
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5749
    "opens a browser on all the aspect methods"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5750
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5751
    |methods|
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5752
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5753
    self painter isModified ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  5754
        self warn:'The current window spec has not yet been saved!!\\The System Browser may show the code of the old aspect methods.' withCRs.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5755
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5756
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5757
    (methods := self painter aspectMethods) isEmpty ifTrue:[
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5758
        self warn:'No aspect methods found !!'.
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  5759
        ^ self.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5760
    ].
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5761
    UserPreferences systemBrowserClass 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5762
        browseMethods:methods 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5763
        title:'Aspect methods'.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5764
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5765
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5766
doBrowseClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5767
    "opens a System Browser on the specClass"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5768
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5769
    self painter isModified ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  5770
        self warn:'The current window spec has not yet been saved!!\\The System Browser will show the code of the old window spec.' withCRs.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5771
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5772
2400
40e49dac643e code reuse
Claus Gittinger <cg@exept.de>
parents: 2399
diff changeset
  5773
    Smalltalk browseInClass:(self resolveName:specClassName)
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5774
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5775
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5776
doBrowseSpecificationClass
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5777
    "opens an browser on the spec class of the selected widget"
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5778
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5779
    |spec|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5780
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5781
    (spec := self painter specForSelection) isNil ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5782
        treeView isCanvasSelected ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5783
            spec := treeView canvasSpec.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5784
        ]
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5785
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5786
    spec notNil ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5787
        spec class browse
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5788
    ]
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5789
!
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5790
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5791
doBrowseViewClass
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5792
    "opens a browser on the selected widgets class"
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5793
2273
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5794
    |selection widget|
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5795
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5796
    ((selection := self painter selection) isCollection and: [selection size >= 1]) ifTrue:[
2273
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5797
        widget := selection first
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5798
    ] ifFalse:[
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5799
        widget := selection
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5800
    ].
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5801
2829
b3bce50bdb18 changed: #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
  5802
    widget scrolledView class browse
b3bce50bdb18 changed: #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
  5803
b3bce50bdb18 changed: #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
  5804
    "Modified: / 22-01-2011 / 12:02:31 / cg"
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5805
!
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5806
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5807
doDefineClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5808
    "launches a dialog for defining class, superclass, and selector of the application"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5809
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5810
    |again readFromModelKeyed|
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5811
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5812
    readFromModelKeyed := [:aKey| |ret|
3236
2e494c0bcf47 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3229
diff changeset
  5813
        ret := (self aspectValueFor:aKey).
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5814
        ret isEmptyOrNil ifTrue:[
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5815
            ret := nil
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5816
        ] ifFalse:[
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5817
            ret isString ifTrue:[
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5818
                ret := ret string withoutSeparators.
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5819
                ret := ret isEmpty ifTrue:[nil] ifFalse:[ret asSymbol].
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5820
            ].
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5821
        ].
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5822
        ret
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5823
    ].
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5824
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5825
    [
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5826
        again := false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5827
2372
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  5828
        aspects at:#classNameChannel      put:(specClassName  ? 'NewApplication')   asValue.
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5829
        aspects at:#methodNameChannel     put:(specSelector   ? 'windowSpec')       asValue.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5830
        aspects at:#superclassNameChannel put:(specSuperclassName ? 'ApplicationModel') asValue.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5831
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5832
        (self openDialogInterface:#dialogSpecForDefiningClassAndSelector) ifTrue:[
2206
1a7921b6c104 changed #doDefineClassAndSelector
Claus Gittinger <cg@exept.de>
parents: 2202
diff changeset
  5833
            specClassName  := readFromModelKeyed value:#classNameChannel.
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5834
            specSelector   := readFromModelKeyed value:#methodNameChannel.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5835
            specSuperclassName := readFromModelKeyed value:#superclassNameChannel.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5836
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5837
            (again := self checkClassAndSelector not) ifFalse:[
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5838
                self painter 
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5839
                    className:specClassName
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5840
                    superclassName:specSuperclassName
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5841
                    selector:specSelector.
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5842
            ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5843
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5844
            again ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5845
                ((Smalltalk at:specClassName asSymbol) notNil
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5846
                and:[ (Smalltalk at:specClassName asSymbol) class includesSelector:specSelector ])
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5847
                ifTrue:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5848
                    (self confirm:('%1 already implements %2. Overwrite ?' bindWith:specClassName with:specSelector))
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5849
                    ifFalse:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5850
                        again := true.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5851
                    ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5852
                ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5853
            ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5854
        ] ifFalse: [
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5855
            ^nil
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5856
        ]
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5857
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5858
    ] doWhile:[again].
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5859
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5860
    specClassName := specClassName isBehavior 
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5861
                        ifTrue:[specClassName name]
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5862
                        ifFalse:[specClassName].
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5863
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5864
    self clearModifiedFlag.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5865
    self helpTool buildAndMergeFromClass:specClassName.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5866
    self updateInfoLabel
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  5867
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  5868
    "Modified: / 16.7.1998 / 18:26:33 / cg"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5869
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5870
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5871
doDefineGrid
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5872
    "opens a dialog for the grid parameters"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5873
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5874
    |hspace vspace bindings painter gridPara settings|
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5875
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5876
    painter  := self painter.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5877
    bindings := IdentityDictionary new.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5878
    gridPara := painter gridParameters copy.
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5879
    settings := self class settings.
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5880
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5881
    bindings at:#showGrid    put:((settings at: #GridShown ifAbsent: [painter gridShown]) asValue).
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5882
    bindings at:#alignToGrid put:((settings at: #GridAlign ifAbsent: [painter gridAlign]) asValue).
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5883
    bindings at:#hspace      put:((gridPara at:1) asValue).
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5884
    bindings at:#vspace      put:((gridPara at:2) asValue).
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5885
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5886
    (self openDialogInterface:#dialogSpecForDefiningGridParameters withBindings:bindings) ifFalse:[
1803
a0f73e1695e1 clear -> clearView
Claus Gittinger <cg@exept.de>
parents: 1801
diff changeset
  5887
        ^ self
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5888
    ].
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5889
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5890
    hspace := (bindings at:#hspace) value ? 5.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5891
    vspace := (bindings at:#vspace) value ? 5.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5892
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5893
    gridPara at:1 put:hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5894
    gridPara at:2 put:vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5895
    gridPara at:5 put:hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5896
    gridPara at:6 put:vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5897
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5898
    painter gridShown:false. 
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5899
    painter gridAlign:false. 
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5900
    painter gridParameters:gridPara.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5901
    painter gridAlign:(bindings at:#alignToGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5902
    painter gridShown:(bindings at:#showGrid) value.
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5903
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5904
    settings at: #GridShown  put: (bindings at:#showGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5905
    settings at: #GridAlign  put: (bindings at:#alignToGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5906
    settings at: #HGridSpace put: hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5907
    settings at: #VGridSpace put: vspace.
1803
a0f73e1695e1 clear -> clearView
Claus Gittinger <cg@exept.de>
parents: 1801
diff changeset
  5908
    painter clearView.
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5909
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5910
    "Modified: / 4.2.1999 / 15:36:34 / cg"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5911
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5912
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5913
doEditList:listSelector
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5914
    "browse or create the aspect method as entered in the field (button beside input fieled pressed)"
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5915
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5916
    |spec list editor|
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5917
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5918
    self acceptOrIgnoreSectionModification.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5919
2318
8d920f26edef care for nil UIList
Claus Gittinger <cg@exept.de>
parents: 2313
diff changeset
  5920
    UIListEditor isNil ifTrue:[^ self].
8d920f26edef care for nil UIList
Claus Gittinger <cg@exept.de>
parents: 2313
diff changeset
  5921
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5922
    spec := painter specForSelection.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5923
    spec isNil ifTrue:[^ self].
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5924
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5925
    "Kludge: subject - fetch the AspectAdaptor behind the TypeConverter"
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5926
    list := (specTool aspectFor:listSelector) subject value.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5927
    list isNil ifTrue:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5928
        list := #()
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5929
    ].
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5930
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5931
    editor := UIListEditor new.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5932
    editor
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5933
        informationLabel:'Edit List';
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5934
        list:list;
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5935
        useSymbols:(list notEmpty and:[list conform:[:e| e isSymbol]]);    "set use symbols, if all elements are symbols"
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5936
        open.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5937
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5938
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5939
    editor accepted ifTrue:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5940
        "Kludge: subject - fetch the AspectAdaptor behind the TypeConverter"
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5941
        (specTool aspectFor:listSelector) subject value:editor list.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5942
    ].
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5943
!
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5944
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5945
doGenerateAspectMethodFor
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5946
    |cls aspectList displayedList selectorsToGenerateCode 
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5947
     doBrowse methods|
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5948
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5949
    self askForSectionModification.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5950
2238
3b631ae43cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  5951
    cls := self painter targetClass.
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5952
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5953
    aspectList := OrderedCollection new.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5954
3368
a0ef44e63e6f #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3361
diff changeset
  5955
    self painter aspectSelectorsAndTypesDo:[:selector :type |
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5956
            |newEntry|
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5957
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5958
            ( #(#modelAspect channelAspect actionSelector valueSelector) includes:type) ifTrue:[
2294
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
  5959
                ((cls canUnderstand:selector) or:[cls class canUnderstand:selector]) ifFalse:[
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5960
                    newEntry := Array with:selector with:type.    
3368
a0ef44e63e6f #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3361
diff changeset
  5961
                    (aspectList includes:newEntry) ifFalse:[    
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5962
                        aspectList add:newEntry.
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5963
                    ]
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5964
                ]
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5965
            ]
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5966
        ].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5967
    
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5968
    aspectList isEmpty ifTrue:[
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5969
        self information:'All aspect methods exist.'.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5970
        ^ self.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5971
    ].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5972
2220
ff2b5cb004c2 sort aspects in generateAspectsMethods dialog;
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  5973
    aspectList sort:[:a :b | a first < b first].
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5974
    displayedList := aspectList collect:[:entry | (((entry first) paddedTo:25) contractTo:25) , ' -> ' , entry second ].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5975
    aspectList := aspectList collect:[:each | each first].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5976
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5977
    doBrowse := false.    
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5978
    selectorsToGenerateCode := Dialog
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5979
        choose:'Select aspect(s) for which code shall be generated:' 
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5980
        fromList:displayedList 
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5981
        values:aspectList 
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5982
        initialSelection:nil
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5983
        buttons:nil 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5984
        values:nil 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5985
        lines:15 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5986
        cancel:nil 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5987
        multiple:true
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5988
        postBuildBlock:[:dialog | 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5989
                            |b|
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5990
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5991
                            b := Button label:'Generate & Browse'.
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5992
                            b action:[doBrowse := true. dialog okPressed].
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5993
                            b := dialog addButton:b before:dialog okButton.
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5994
                       ].
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5995
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5996
    selectorsToGenerateCode isEmptyOrNil ifTrue:[^ self].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5997
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5998
    self doGenerateAspectMethodsForAll:selectorsToGenerateCode.
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5999
1689
5d02658c548a must refetch class after adding instVars (when generating aspects)
Claus Gittinger <cg@exept.de>
parents: 1688
diff changeset
  6000
    "/ refetch - cls is now obsolete
2238
3b631ae43cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  6001
    cls := self painter targetClass.
1689
5d02658c548a must refetch class after adding instVars (when generating aspects)
Claus Gittinger <cg@exept.de>
parents: 1688
diff changeset
  6002
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6003
    doBrowse ifTrue:[
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6004
        methods := selectorsToGenerateCode 
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  6005
                        collect:[:sel | cls compiledMethodAt:sel]
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6006
                        thenSelect:[:m | m notNil].
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6007
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6008
        UserPreferences systemBrowserClass 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6009
            browseMethods:methods 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6010
            title:'Some Aspect methods'.
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  6011
    ].
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6012
!
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6013
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  6014
doGenerateAspectMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6015
    "generates aspect and action methods for the application class"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6016
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6017
    self askForSectionModification.
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6018
    self withWaitCursorDo:[
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6019
        |code|
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6020
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6021
        code := self painter generateAspectMethodCode.
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6022
        Class packageQuerySignal answer:painter targetClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6023
            code readStream fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6024
        ]
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  6025
    ]
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6026
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6027
    "Modified: / 28-01-2014 / 21:56:03 / cg"
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6028
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6029
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  6030
doGenerateAspectMethodsForAll:selectorsToGenerateCode
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  6031
    |code|
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  6032
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  6033
    code := self painter generateAspectMethodCodeFiltering:selectorsToGenerateCode.
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6034
    Class packageQuerySignal answer:painter targetClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6035
        code readStream fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6036
    ]
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6037
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6038
    "Modified: / 28-01-2014 / 21:56:06 / cg"
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  6039
!
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  6040
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6041
doGenerateAspectSelectorsMethod
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6042
    "generates aspectSelectors method for the exported aspects"
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6043
2846
9d025aa9921a changed: #doGenerateAspectSelectorsMethod
ca
parents: 2829
diff changeset
  6044
    |aspectSelectorsAsString|
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6045
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6046
    self askForSectionModification.
2846
9d025aa9921a changed: #doGenerateAspectSelectorsMethod
ca
parents: 2829
diff changeset
  6047
    aspectSelectorsAsString := self painter generateAspectSelectorsMethod.
9d025aa9921a changed: #doGenerateAspectSelectorsMethod
ca
parents: 2829
diff changeset
  6048
    aspectSelectorsAsString notEmptyOrNil ifTrue:[
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6049
        Class packageQuerySignal answer:painter targetClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6050
            (ReadStream on:aspectSelectorsAsString) fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6051
        ].
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6052
    ].
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6053
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6054
    "Modified: / 28-01-2014 / 21:56:09 / cg"
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6055
!
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6056
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  6057
doGenerateHookMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6058
    "generates hook methods for the application class"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6059
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6060
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6061
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6062
    Class packageQuerySignal answer:painter targetClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6063
        (ReadStream on:painter generateHookMethods) fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6064
    ]
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6065
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6066
    "Modified: / 28-01-2014 / 21:56:13 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6067
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6068
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6069
doGenerateMenuMethods
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6070
    "generates menu stub methods for the application class"
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6071
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6072
    self askForSectionModification.
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6073
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6074
    Class packageQuerySignal answer:painter targetClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6075
        (ReadStream on:painter generateMenuMethods) fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6076
    ]
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6077
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6078
    "Created: / 23-08-1998 / 16:10:04 / cg"
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6079
!
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  6080
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6081
doInspectSpec
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6082
    "opens an inspector on the spec of the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6083
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6084
    |spec|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6085
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  6086
    (spec := self painter specForSelection) isNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  6087
        treeView isCanvasSelected ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  6088
            spec := treeView canvasSpec.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  6089
        ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6090
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6091
    spec notNil ifTrue:[
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  6092
        spec inspect.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6093
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6094
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6095
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6096
doInspectView
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6097
    "opens an inspector on the view of the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6098
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6099
    |selection|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6100
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6101
    ((selection := self painter selection) isCollection and: [selection size >= 1]) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6102
        selection first inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6103
    ] ifFalse: [
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6104
        selection inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6105
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6106
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6107
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6108
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6109
doInstallAsWebPage
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6110
    "lets user select a service, page-name and installs the page"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6111
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  6112
    |runningServerPorts again serviceOrPort pageName port serviceLinkName service server app|
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  6113
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  6114
    runningServerPorts := (HTTPServer runningServers collect:[:s | s port printString]) asOrderedCollection sort.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6115
    serviceOrPort := lastPort ? LastPort ? '8080'.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6116
    pageName := lastPage ? LastPage ? 'myPage'.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6117
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6118
    [
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6119
        again := false.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6120
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6121
        aspects at:#serviceOrPortNameChannel put:serviceOrPort printString  asValue.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6122
        aspects at:#pageNameNameChannel      put:pageName printString asValue.
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  6123
        aspects at:#runningServerPorts       put:runningServerPorts.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6124
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6125
        (self openDialogInterface:#dialogSpecForDefiningPortAndPageName) ifFalse:[^ nil].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6126
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6127
        port := Integer readFrom:(aspects at:#serviceOrPortNameChannel) value onError:nil.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6128
        port isNil ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6129
            serviceLinkName := (aspects at:#serviceOrPortNameChannel) value.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6130
            service := HTTPPortalService allSubInstances select:[:s | s linkName = serviceLinkName].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6131
            service notEmptyOrNil ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6132
                again := false.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6133
                service := service first.    
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6134
            ] ifFalse:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6135
                Dialog warn:'No such service'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6136
            ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6137
        ] ifFalse:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6138
            server := HTTPServer serverOnPort:port.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6139
            service := server 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6140
                        serviceForLink:'/portal'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6141
                        ifAbsent:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6142
                            service := HTTPPortalService new.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6143
                            service linkName:'/portal'.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6144
                            service class unRegisterServiceOn:server.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6145
                            service registerServiceOn:server.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6146
                        ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6147
        ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6148
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6149
        pageName := (aspects at:#pageNameNameChannel) value.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6150
    ] doWhile:[again].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6151
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6152
    lastPage := LastPage := pageName.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6153
    lastPort := LastPort := port.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6154
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6155
    app := self specClass new.
2411
14dd0d9afbf3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2400
diff changeset
  6156
    app webLink:pageName.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6157
    app service:service.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6158
    app defineInterface:(self specSelector).
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6159
    app addToService.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6160
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6161
"/    self clearModifiedFlag.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6162
"/    self helpTool buildAndMergeFromClass:specClassName.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6163
    self updateInfoLabel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6164
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6165
    "Modified: / 15-01-2008 / 14:18:53 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6166
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  6167
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6168
doLoad
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6169
    "opens a ResourceSelectionBrowser for loading a window spec from a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6170
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6171
    self askForModification ifFalse: [^nil].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6172
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6173
    self loadFromMessage: 
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6174
        (ResourceSelectionBrowser
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6175
            request: 'Load Window Spec from Class'
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6176
            onSuperclass: nil
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6177
            andClass: self specClass
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6178
            andSelector: specSelector ? #windowSpec
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6179
            withResourceTypes: #(canvas))
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6180
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6181
    "Modified: / 31-08-2006 / 10:14:01 / cg"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6182
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6183
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6184
doLoadSubspec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6185
    "opens a ResourceSelectionBrowser for loading a sub spec from a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6186
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6187
    |classAndSelector class selector|
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6188
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6189
    self askForSectionModification.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6190
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6191
    classAndSelector := ResourceSelectionBrowser
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6192
            request: 'Load Subspec from Class'
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6193
            onSuperclass: nil
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6194
            andClass: self specClass
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6195
            andSelector: specSelector
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6196
            withResourceTypes: #(canvas).
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6197
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6198
    classAndSelector isNil ifTrue:[^ self].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6199
    class := classAndSelector methodClass.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6200
    selector := classAndSelector methodSelector.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  6201
    (class == specClassName and: [selector == specSelector]) ifTrue: [
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6202
        self warn: 'Current interface as subspec not allowed!!'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6203
        ^ self.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6204
    ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6205
    (class respondsTo:selector) ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6206
        self addWidgetOfSpec:(Array with: (UISubSpecification new majorKey: class name; minorKey: selector))
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6207
    ]
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6208
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6209
    "Modified: / 31-08-2006 / 10:13:56 / cg"
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6210
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6211
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6212
doNew
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6213
    "removes all widgets, specClass, and specSelector"
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6214
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6215
    self askForModification ifFalse: [^nil].
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6216
    specClass := specClassName := specSelector := nil.
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  6217
    self painter removeAll.
2564
595b56327446 leftover halt
Claus Gittinger <cg@exept.de>
parents: 2559
diff changeset
  6218
"/ self halt.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6219
    treeView canvas topView 
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  6220
        name:  self defaultNameOfCanvas;
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  6221
        label: self defaultNameOfCanvas.
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  6222
    self helpTool doNew.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  6223
    self treeSelectionChanged.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  6224
    treeView selectedNode changed.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  6225
    self tabModel value: self tabList value first.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6226
    self updateInfoLabel.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6227
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  6228
    "Modified: / 31-08-2006 / 10:14:10 / cg"
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6229
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6230
3256
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6231
doOpenAspectClassChooserFor: aspect
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6232
    "open a class chooser; when ok, set the aspect to its name
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6233
     sent by embedded ui-slice's '...'-class button (for example, subcanvasSpec)."
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6234
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6235
    | spec className class choice|
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6236
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6237
    spec := painter specForSelection.
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6238
    spec isNil ifTrue:[ self error: 'No spec!!'.].      
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6239
    className := spec perform: aspect.
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6240
    class := self resolveName: className inClass: specClass.
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6241
    choice := Dialog requestClassName:'Choose class' initialAnswer:(class isNil ifTrue:nil ifFalse:[class name]).
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6242
    choice isEmptyOrNil ifTrue:[^ self ].
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6243
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6244
    spec perform: (aspect asMutator) with:choice.
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6245
    (specTool aspectFor:aspect) value:choice.
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6246
!
175d2d7e95c5 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
  6247
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6248
doOpenWidgetDocumentation
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6249
    "opens documentation for the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6250
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6251
    |spec document|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6252
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6253
    (spec := self specForSelection) isNil ifTrue:[
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  6254
"/        treeView isCanvasSelected ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  6255
"/            spec := nil
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  6256
"/        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6257
    ].
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6258
    spec notNil ifTrue:[
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  6259
        document := 'tools/uipainter/', spec documentFileName,'.html'
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6260
    ] ifFalse: [
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  6261
        document := 'tools/uipainter/WindowSpec.html'
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6262
    ].
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6263
    HTMLDocumentView openFullOnDocumentationFile: document 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6264
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6265
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6266
doPickAView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6267
    "changes the cursor for picking a view and builds a window spec from it"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6268
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6269
    |view|
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6270
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6271
    self askForModification ifFalse: [^nil].
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6272
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6273
    (view := Screen current viewFromUser) notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6274
        view == Screen current rootView ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6275
            self painter setupFromSpec:(UISpecification fromView:view topView).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6276
        ]
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6277
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6278
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6279
    self updateInfoLabel
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  6280
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6281
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6282
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6283
doSave
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6284
    "saves the window spec"
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  6285
    
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6286
    |code painter specClass extentUsed|
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6287
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6288
    self askForSectionModification.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6289
    self hasSpecClassAndSelector ifFalse:[
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  6290
        self doDefineClassAndSelector isNil ifTrue:[
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  6291
            ^ nil
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  6292
        ]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6293
    ].
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6294
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6295
    specClass := self resolveName:specClassName.
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6296
    (specClass notNil and:[ specClass isClass ]) ifFalse:[
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6297
        self warn:('Oops - cannot save. Class not found: ' , specClassName).
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6298
        ^ nil
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6299
    ].
3155
4e93da30717e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3137
diff changeset
  6300
    ApplicationModel forgetDefaultExtentFor:specClass.
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6301
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6302
    painter := self painter.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  6303
    painter 
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6304
        class:specClass
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6305
        superclassName:specSuperclassName
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  6306
        selector:specSelector.
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6307
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6308
"/    Transcript showCR:'generating windowSpec code...'.
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6309
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6310
    extentUsed := self canvas extent.
2264
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6311
    (extentUsed > (1024 @ 768)) ifTrue:[
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6312
        Dialog 
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6313
            warn:(resources
2740
c96124d9aefd changed: #doSave
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  6314
                stringWithCRs:'The application''s default window-size is taken from the current size and will be %1.\\This may be too large for some displays - if required, resize and save again.'
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6315
                with:extentUsed printString allBold)
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6316
    ].
2264
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6317
    (self canvas maxExtent notNil
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6318
    and:[ extentUsed > self canvas maxExtent ]) ifTrue:[
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6319
        Dialog 
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6320
            warn:(resources
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6321
                stringWithCRs:'The window-size is larger than its max-extent.\\This may lead to trouble (lost extent) later. I suggest removal of the max or resizing.'
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6322
                with:extentUsed printString allBold)
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  6323
    ].
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  6324
3222
85db156be933 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
  6325
    code := painter generateWindowSpecMethodSource.
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6326
    Class packageQuerySignal answer:specClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6327
        (ReadStream on:code) fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6328
    ].
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6329
    self doGenerateAspectSelectorsMethod.
1669
e6ea33c843a0 *** empty log message ***
ca
parents: 1663
diff changeset
  6330
    self helpTool doSave.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6331
    self updateInfoLabel.
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  6332
    self clearModified.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  6333
    painter resetModification.
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6334
    (specClass respondsTo:specSelector) ifTrue:[
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  6335
        self addHistoryEntryForClass:specClass selector:specSelector.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6336
    ].
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6337
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6338
    "Modified: / 28-01-2014 / 21:52:32 / cg"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6339
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6340
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6341
doSaveAs
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6342
    "opens a ResourceSelectionBrowser for saving the window spec on a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6343
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6344
    |classAndSelector|
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6345
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6346
    self askForSectionModification.
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  6347
"/    self hasSpecClassAndSelector ifTrue:[
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  6348
"/        self askForModification ifFalse:[^ false].
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  6349
"/    ].
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6350
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6351
    classAndSelector := ResourceSelectionBrowser
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6352
            request: 'Save Window Spec in Class'
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6353
            onSuperclass: #Object
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  6354
            andClass: (specClassName ? #ApplicationModel) asSymbol
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6355
            andSelector: specSelector ? #windowSpec
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6356
            withResourceTypes: #(canvas).
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6357
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6358
    classAndSelector isNil ifTrue:[^ false].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6359
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  6360
    self clearModified.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6361
    self painter resetModification.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6362
2372
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  6363
    specClass := classAndSelector methodClass.
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  6364
    specClassName := classAndSelector methodClass name.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6365
    specSelector := classAndSelector methodSelector.
2372
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  6366
    specSuperclassName := specClass superclass name.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6367
    self doSave.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  6368
    ^ true
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6369
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6370
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6371
doSaveElementSpecAs
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6372
    "opens a ResourceSelectionBrowser for saving a spec for the selected
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6373
     elements on a class.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6374
     Useful to save parts for refactoring a spec into
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6375
     subSpecifications, for example when putting parts into a tab"
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6376
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6377
    |spec fullSpec classAndSelector subSpecClass subSpecClassName subSpecSelector code|
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6378
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6379
    self askForSectionModification.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6380
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6381
    (spec := self painter specForSelection) isNil ifTrue:[
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6382
        self warn:('Select a single item first').
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6383
        ^ false
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6384
    ].
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6385
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6386
    classAndSelector := ResourceSelectionBrowser
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6387
            request: 'Save Subspec in Class'
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6388
            onSuperclass: #Object
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6389
            andClass: specClassName
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6390
            andSelector: #subSpec
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6391
            withResourceTypes: #(canvas).
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6392
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6393
    classAndSelector isNil ifTrue:[^ false].
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6394
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6395
    self clearModified.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6396
    self painter resetModification.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6397
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6398
    subSpecClass := classAndSelector methodClass.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6399
    subSpecClassName := classAndSelector methodClass name.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6400
    subSpecSelector := classAndSelector methodSelector.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6401
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6402
    subSpecClass := self resolveName:subSpecClassName.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6403
    (subSpecClass notNil and:[ subSpecClass isClass ]) ifFalse:[
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6404
        self warn:('Oops - cannot save - class not found: ' , subSpecClassName).
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6405
        ^ false
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6406
    ].
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6407
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6408
    spec := painter fullSpecFor:(painter singleSelection).
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6409
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6410
    fullSpec := treeView generateFullSpecForComponents:(Array with:spec) named:subSpecSelector asUppercaseFirst.
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6411
    code := painter generateWindowSpecMethodSourceFor:fullSpec class:subSpecClassName selector:subSpecSelector.
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6412
    Class packageQuerySignal answer:subSpecClass package do:[
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6413
        (ReadStream on:code) fileIn.
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6414
    ].
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6415
    ^ true
3073
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6416
ad458a6e1a83 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3064
diff changeset
  6417
    "Modified: / 28-01-2014 / 21:53:35 / cg"
3032
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6418
!
41f4128c029c class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3025
diff changeset
  6419
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6420
doSelectAspectMethod:aspectSelector
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6421
    "open a dialog to select an existing aspect method and enter in the field"
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6422
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6423
    self doSelectAspectMethod:aspectSelector nameAs:aspectSelector
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6424
!
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6425
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6426
doSelectAspectMethod:aspectSelector nameAs:aspectNameShown
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6427
"/    |cls spec aspect code|
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6428
"/
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6429
"/    cls := self specClass.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6430
"/    cls isNil ifTrue:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6431
"/        Dialog information:'No Application Class defined.'.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6432
"/        ^ self
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6433
"/    ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6434
"/
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6435
"/    spec := painter specForSelection.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6436
"/    spec isNil ifTrue:[^ self].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6437
"/    aspect := spec perform:aspectSelector.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6438
"/    aspect isNil ifTrue:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6439
"/        Dialog information:(resources 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6440
"/                                string:'Please enter a Method name for "%1" first.'
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6441
"/                                with:(resources string:aspectNameShown) allBold).
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6442
"/        ^ self
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6443
"/    ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6444
"/        
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6445
"/    (cls implements:aspect asSymbol) ifFalse:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6446
"/        (Dialog confirm:(resources 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6447
"/                            stringWithCRs:'%1 does not implement %2.\\Create ?'
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6448
"/                            with:(cls name allBold)
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6449
"/                            with:aspect allBold)) 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6450
"/        ifFalse:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6451
"/            (Dialog confirm:(resources 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6452
"/                                stringWithCRs:'Browse implementors of %1 ?'
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6453
"/                                with:aspect allBold)) 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6454
"/            ifTrue:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6455
"/                UserPreferences current systemBrowserClass browseImplementorsOf:aspect
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6456
"/            ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6457
"/            ^ self
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6458
"/        ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6459
"/        code := painter
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6460
"/            generateAspectMethodFor:aspect 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6461
"/            spec:nil 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6462
"/            inClass:cls.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6463
"/        code readStream fileIn.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6464
"/    ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6465
"/    UserPreferences current systemBrowserClass openInClass:cls selector:aspect
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6466
!
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  6467
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6468
doSortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6469
    "sort the selected items by position"
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6470
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6471
    treeView doSortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6472
!
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6473
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6474
doStartApplication
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6475
    "starts the application on the editing window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6476
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  6477
    |cls application|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6478
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6479
    self hasSpecClassAndSelector ifFalse:[
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6480
        self doSave isNil ifTrue: [^nil].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6481
    ] ifTrue: [
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6482
        self askForSectionModification.    
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6483
        (modified or: [self painter isModified or: [self helpTool modified]])
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6484
        ifTrue:
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6485
        [
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6486
            ((YesNoBox title:'Window Spec was modified!!')        
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6487
                noText:'Cancel';
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6488
                yesText:'Save it and start';
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6489
                showAtPointer;
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6490
                accepted) ifFalse: [^nil].
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6491
            self doSave isNil ifTrue: [^nil]
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6492
        ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6493
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6494
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  6495
    cls := self resolveName:specClassName.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  6496
    cls isNil ifTrue:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  6497
        self warn:'Oops cannot start application - no class:' , specClassName.
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6498
        ^ nil
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  6499
    ].
2227
a0af7929bfca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2225
diff changeset
  6500
    application := cls new.
a0af7929bfca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2225
diff changeset
  6501
    (application respondsTo:#openInterface:) ifFalse:[
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6502
        (self confirm:('The application does not respond to the ''openInterface:'' message.\(maybe the spec is supposed to be used as subApplication/subCanvas)\\Shall I try to open this as a standAlone dialog ?') withCRs)
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6503
        ifTrue:[
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6504
            SimpleDialog new openSpec:(cls perform:specSelector) withBindings:nil.
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6505
        ].
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  6506
        ^ self.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6507
    ].        
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6508
    application openInterface:specSelector
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6509
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  6510
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6511
doStepDown
3130
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  6512
    "moves the selected widget(s) one step down in the hierarchy"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6513
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6514
    treeView doStepOver:1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6515
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6516
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6517
doStepIn
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6518
    "moves the selected widget into the next widget as child"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6519
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6520
    treeView doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6521
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6522
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6523
doStepOut
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6524
    "moves the selected widget out of the parent widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6525
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6526
    treeView doStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6527
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6528
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6529
doStepUp
3130
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  6530
    "moves the selected widget(s) one step up in the hierarchy"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6531
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6532
    treeView doStepOver:-1
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  6533
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  6534
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  6535
doWindowSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6536
    "opens a code view with the contents of the window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6537
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6538
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6539
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6540
    CodeView 
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6541
        openWith: self painter generateWindowSpecMethodSource 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6542
        title: 'Window Spec'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  6543
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6544
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6545
3111
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  6546
!UIPainter::ApplicationClassQuery class methodsFor:'documentation'!
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  6547
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  6548
documentation
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  6549
    "This Query answers the application class, that is currently being edited"
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  6550
! !
618a32168c9c class: UIPainter
Stefan Vogel <sv@exept.de>
parents: 3108
diff changeset
  6551
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6552
!UIPainter::TreeView class methodsFor:'documentation'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6553
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6554
documentation
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6555
"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6556
    selection in tree view; only used by the UIPainter
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6557
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6558
    [see also:]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6559
        SelectionInTreeView
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6560
        SelectionInTree
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6561
        TreeItem
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6562
        UIPainter
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6563
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6564
    [author:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6565
        Claus Atzkern
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6566
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6567
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6568
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6569
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6570
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6571
!UIPainter::TreeView methodsFor:'accessing'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6572
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6573
canvas
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6574
    "returns the canvas (UIPainterView)"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6575
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6576
    ^ model root contents view
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6577
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6578
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6579
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6580
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6581
canvas:aCanvas
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6582
    "install canvas (UIPainterView)"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6583
1396
58c4d1027a5e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1395
diff changeset
  6584
    self canvas:aCanvas specName:nil
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6585
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6586
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6587
canvas:aCanvas specName:nameOfSpec
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6588
    "install canvas (UIPainterView)"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6589
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6590
    |props|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6591
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6592
    props := UIPainterView::ViewProperty new.
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  6593
    props view:aCanvas.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  6594
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  6595
    model root:(TreeItem 
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  6596
                    name:(nameOfSpec ? painter defaultNameOfCanvas) allBold 
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  6597
                    contents:props).
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  6598
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  6599
    model root expand.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  6600
    self enableChannel:(aCanvas enableChannel).
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  6601
!
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  6602
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6603
canvasSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6604
    "returns spec assigned to canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6605
1574
e4897b61395c Remove unused method var
Stefan Vogel <sv@exept.de>
parents: 1572
diff changeset
  6606
    |spec list cls canvas|
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6607
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6608
    spec := self windowSpecClass new.
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6609
    canvas := self canvas.
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6610
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6611
    spec fromView:(canvas topView) callBack:nil.
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6612
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6613
    windowSpec notNil ifTrue:[
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6614
        spec copyValuesFromSpec:windowSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6615
    ].
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6616
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6617
    spec exportedAspects isNil ifTrue:[
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6618
        (     (cls  := canvas className) notNil
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6619
         and:[(cls  := canvas resolveName:cls) notNil]
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6620
        ) ifTrue:[
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6621
            list := cls perform:#aspectSelectors ifNotUnderstood:nil.
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6622
        ].
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6623
        spec setExportedAspectsFrom:list.
1360
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  6624
        windowSpec notNil ifTrue:[
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  6625
            windowSpec exportedAspects:(spec exportedAspects).
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  6626
        ]
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6627
    ].
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6628
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6629
    self propertiesDo:[:aProp| 
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6630
        |propsSpec|
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6631
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  6632
        spec exportedAspectsAddKey:(aProp model) type:nil.
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6633
        propsSpec := aProp spec.
2251
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  6634
        propsSpec aspectSelectors 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  6635
                select:[:a | a isString or:[a isSymbol]] 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  6636
                thenDo:[:aKey|spec exportedAspectsAddKey:aKey type:nil].
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  6637
        propsSpec actionSelectors 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  6638
                select:[:a | a isString or:[a isSymbol]] 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  6639
                thenDo:[:aKey|spec exportedAspectsAddKey:aKey type:#action].
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6640
    ].
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  6641
  ^ spec
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6642
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6643
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6644
canvasSpec:aSpec
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6645
    "update canvas from spec"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6646
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6647
    |spec|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6648
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6649
    self setAttributesFromWindowSpec:aSpec.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6650
    spec := aSpec copy.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6651
    spec  menu:nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6652
    spec flags:nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6653
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6654
    spec setAttributesIn:(self canvas "topView") with:(UIBuilder new isEditing:true).
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6655
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6656
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6657
exportedAspects
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6658
    "returns spec assigned to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6659
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6660
    windowSpec isNil ifTrue:[^ #()].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6661
    ^ windowSpec exportedAspects ? #()
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6662
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6663
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6664
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6665
itemOfView:aView
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6666
    "returns item assigned to view or nil"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6667
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6668
    aView notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6669
        self allItemsDo:[:anItem|
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6670
            (anItem contents view == aView) ifTrue:[^ anItem]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6671
        ]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6672
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6673
    ^ nil
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6674
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6675
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  6676
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  6677
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6678
lastDrawnMaster
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6679
    "returns the lastDrawnMaster"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6680
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6681
    ^ lastDrawnMaster
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6682
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6683
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6684
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6685
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6686
painter
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6687
    ^ painter
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6688
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6689
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6690
painter:something
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6691
    painter := something.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6692
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6693
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6694
windowSpecClass
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6695
    "returns the default  windowSpecClass (WindowSpec)"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6696
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6697
    ^ windowSpecClass ? WindowSpec
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6698
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6699
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6700
windowSpecClass:aClass
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6701
    "set the default windowSpecClass"
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6702
3078
3dafd923e1e5 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3073
diff changeset
  6703
    windowSpecClass := aClass
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6704
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6705
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6706
!UIPainter::TreeView methodsFor:'accessing-property'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6707
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6708
propertiesDo:aOneArgBlock
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6709
    "evaluates the argument a block on each property"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6710
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6711
    self allItemsDo:[:anItem| aOneArgBlock value:(anItem contents)]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6712
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6713
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6714
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6715
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6716
propertyDetect:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6717
    "evaluates the block on each property"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6718
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6719
    self allItemsDo:[:anItem|
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6720
        (aOneArgBlock value:(anItem contents)) ifTrue:[^ anItem contents]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6721
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6722
    ^ nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6723
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6724
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6725
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6726
propertySelected
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6727
    "returns current selected property or nil in case of multi selection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6728
     or empty selection "
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6729
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6730
    |idx|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6731
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6732
    selection size == 1 ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6733
        (idx := selection first) ~~ 1 ifTrue:[          "canvas: not yet supported"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6734
            ^ (listOfNodes at:idx) contents
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6735
        ]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6736
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6737
    ^ nil
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6738
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6739
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6740
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6741
!UIPainter::TreeView methodsFor:'adding & removing'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6742
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6743
addProperty:aProperty
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6744
    "adds a new item"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6745
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6746
    ^ self addProperty:aProperty beforeIndex:nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6747
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6748
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6749
addProperty:aProperty beforeIndex:anIndex
2389
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6750
    "adds a new item"
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6751
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6752
    |parent treeItem index| 
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  6753
1870
771fcc38ecb8 set selection interface changed
ca
parents: 1868
diff changeset
  6754
    parent := self detectItemCorespondingToView:(aProperty view superView).
2389
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6755
    parent isNil ifTrue:[^ nil ].
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6756
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6757
    treeItem := TreeItem new contents:aProperty.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6758
    index := parent numberOfChildren + 1.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6759
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6760
    (anIndex notNil and:[anIndex > 0]) ifTrue:[
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6761
        index := anIndex min:index.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6762
    ].
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6763
    model add:treeItem beforeIndex:index below:parent.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  6764
    ^ treeItem
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6765
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6766
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6767
removeAll
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6768
    "removes all items other than canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6769
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6770
    lastDrawnMaster := nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6771
    windowSpec := nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6772
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6773
    self canvas components copy do:[:aView|
2507
42c9db715d33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
  6774
        aView destroy
42c9db715d33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
  6775
    ].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6776
    self canvas subViews copy do:[:aView|
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6777
        "/ care to not destroy the transparent input view
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6778
        (aView isInputOnly) ifFalse:[aView destroy]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6779
    ].
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  6780
    model root name: painter defaultNameOfCanvas allBold.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6781
    model removeAllOtherThanRoot.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6782
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6783
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6784
removeView:aView
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6785
    "removes a view"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6786
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6787
    |item prnt|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6788
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6789
    ((item := self itemOfView:aView) notNil and:[(prnt := item parent) notNil]) ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6790
        aView destroy.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6791
        prnt contents view sizeChanged:nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6792
        model remove:item
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6793
    ]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6794
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6795
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6796
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6797
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6798
!UIPainter::TreeView methodsFor:'building'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6799
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6800
generateFullSpecForComponents:aSpecArray named:specNameSymbol
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6801
    "generates a full spec from aSpecArray"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6802
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  6803
    |fullSpec winSpec|
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6804
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6805
    fullSpec := FullSpec new.
1058
243d945b1daf name the (full-)spec
tm
parents: 1046
diff changeset
  6806
    fullSpec name:specNameSymbol.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6807
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6808
    fullSpec fromBuilder:(self canvas)
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6809
              components:(SpecCollection new collection:aSpecArray).
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6810
2223
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6811
    winSpec := fullSpec window.
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6812
    windowSpec isNil ifTrue:[
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6813
        "/ kludge: if grid was on, its now present in the windowSpec (which should not)
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6814
        self canvas gridShown ifTrue:[
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6815
            fullSpec window backgroundColor:nil.    
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6816
        ].
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6817
    ] ifFalse:[
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6818
        winSpec copyValuesFromSpec:windowSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6819
    ].    
2223
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6820
    winSpec name: winSpec label.
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  6821
    ^ fullSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6822
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6823
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6824
setAttributesFromWindowSpec:aWindowSpec
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6825
    "sets a window spec from aWindowSpec and applies some attributes
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6826
     to the canvas."
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6827
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6828
    |name canvasView builder|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6829
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6830
    windowSpec := (self windowSpecClass) new copyValuesFromSpec:aWindowSpec.
1172
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6831
    canvasView := self canvas.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6832
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6833
    builder := UIBuilder new isEditing:true.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6834
    aWindowSpec setAttributesIn:canvasView with:builder.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6835
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6836
    name := aWindowSpec label.
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6837
    canvasView topView name:name.
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6838
    self canvasNameChanged:name.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  6839
    self application treeSelectionChanged.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6840
! !
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6841
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6842
!UIPainter::TreeView methodsFor:'canvas selection'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6843
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6844
canvasSelection:aSelection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6845
    "canvas changed its selection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6846
    "
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6847
    |sel list size|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6848
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6849
    ((sel := aSelection) isNil or:[sel isCollection]) ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6850
        sel := Array with:sel
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6851
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6852
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6853
    (size := sel size) ~~ 0 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6854
        list := OrderedCollection new:size.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6855
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6856
        sel do:[:aView|
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6857
            |item|
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6858
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6859
            (item := self itemOfView:aView) notNil ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6860
                list add:item.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6861
                model doMakeVisible:item.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6862
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6863
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6864
        sel := list collect:[:anItem| self indexOfNode:anItem ].
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6865
    ].
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6866
    self canvasEventsDisabledDo:[ self selection:sel ].            
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6867
!
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6868
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6869
canvasSelectionAdd:aView
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6870
    "canvas adds a view to current selection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6871
    "
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6872
    |item index oldSel|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6873
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6874
    item := self itemOfView:aView.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6875
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6876
    item notNil ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6877
        model doMakeVisible:item.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6878
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6879
        (index := self indexOfNode:item) ~~ 0 ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6880
            oldSel := selection copy.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6881
            self addToSelection:index.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6882
            self selectionChangedFrom:oldSel
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6883
        ]        
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6884
    ]            
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6885
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6886
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6887
canvasSelectionRemove:aView
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6888
    "canvas removes a view from current selection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6889
    "
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6890
    |item index oldSel|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6891
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6892
    (     (item := self itemOfView:aView) notNil
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6893
     and:[(index := self indexOfNode:item) ~~ 0
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6894
     and:[self isInSelection:index]]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6895
    ) ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6896
        oldSel := selection copy.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6897
        self removeFromSelection:index.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6898
        self selectionChangedFrom:oldSel.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6899
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6900
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6901
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6902
selectedViews
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6903
    ^ self selection 
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6904
        collect:[:index |
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6905
            |node view|
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6906
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6907
            node := listOfNodes at:index.
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6908
            view := node contents view.
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6909
            view
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6910
        ]
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6911
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6912
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6913
!UIPainter::TreeView methodsFor:'change & update'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6914
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6915
canvasNameChanged:aName
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6916
    "called if identification name assigned to window (canvas) changed
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6917
    "
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6918
    |name node|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6919
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6920
    node := listOfNodes at:1.
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6921
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6922
    (    aName size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6923
     and:[(name := aName string withoutSeparators) size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6924
     and:[(self propertyDetect:[:p| p name = name]) isNil
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6925
     and:[node name ~= name]]]
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6926
    ) ifTrue:[
3251
b5188e3ab24f #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  6927
        node name: name allBold.
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6928
        node changed.   
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6929
    ].
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6930
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6931
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6932
layoutChanged
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6933
    "layout of any component changed; in case of single selection, the
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6934
     application will be informed to update its layout
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6935
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6936
    selection size == 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6937
        self application layoutChanged
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6938
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6939
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6940
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6941
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6942
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6943
propertyChanged:aProperty
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6944
    "property of view derived from argument a property changed
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6945
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6946
    |item idx end|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6947
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6948
    item := self itemOfView:(aProperty view).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6949
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6950
    item notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6951
        item contents:aProperty.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6952
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6953
        item name = aProperty name ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6954
            idx := self firstLineShown.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6955
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6956
            (end := self lastLineShown) > listOfNodes size ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6957
                end := listOfNodes size
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6958
            ].                          
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6959
            item changed.   
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6960
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6961
            [idx <= end] whileTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6962
                (listOfNodes at:idx) == item ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6963
                    self redrawLine:idx.                "/ is visible; redraw line
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6964
                    end := 0
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6965
                ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6966
                    idx := idx + 1
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6967
                ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6968
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6969
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6970
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6971
        self selectedNode == item ifTrue:[              "/ inform application
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6972
            self application propertyChanged
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6973
        ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6974
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6975
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6976
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6977
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6978
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6979
!UIPainter::TreeView methodsFor:'drag & drop'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6980
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6981
canDrop:aDropContext
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6982
    "can drop ? -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6983
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6984
    ^ self canvas canDrop:aDropContext
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6985
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6986
    "Modified: / 13-10-2006 / 16:08:43 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6987
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6988
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6989
canDrop:aDropContext at:aPoint
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6990
    "can drop ? -> delegate to canvas"
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6991
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6992
    ^ self canvas canDrop:aDropContext at:aPoint
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6993
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6994
    "Created: / 13-10-2006 / 12:35:53 / cg"
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6995
    "Modified: / 13-10-2006 / 16:08:46 / cg"
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6996
!
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6997
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6998
canDropObjects:aCollectionOfDropObjects
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  6999
    "can drop ? -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7000
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7001
    ^ self canvas canDropObjects:aCollectionOfDropObjects
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7002
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7003
    "Created: / 13-10-2006 / 16:08:31 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7004
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7005
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7006
canDropObjects:aCollectionOfDropObjects at:aPoint
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7007
    "can drop ? -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7008
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7009
    ^ self canvas canDropObjects:aCollectionOfDropObjects at:aPoint
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7010
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7011
    "Created: / 13-10-2006 / 16:08:35 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7012
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7013
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7014
drop:aDropContext
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7015
    "drop objects -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7016
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7017
    self canvas drop:aDropContext
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7018
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7019
    "Created: / 13-10-2006 / 12:35:59 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7020
    "Modified: / 13-10-2006 / 16:09:04 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7021
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7022
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7023
drop:aDropContext at:aPoint
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7024
    "drop objects -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7025
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7026
    self canvas drop:aDropContext at:nil
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7027
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7028
    "Modified: / 13-10-2006 / 16:09:07 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7029
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7030
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7031
dropObjects:aCollectionOfDropObjects
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7032
    "drop objects -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7033
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7034
    self canvas dropObjects:aCollectionOfDropObjects
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7035
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7036
    "Created: / 13-10-2006 / 16:08:51 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7037
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7038
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7039
dropObjects:aCollectionOfDropObjects at:aPoint
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7040
    "drop objects -> delegate to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7041
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7042
    self canvas dropObjects:aCollectionOfDropObjects at:nil
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7043
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7044
    "Created: / 13-10-2006 / 16:08:56 / cg"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7045
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7046
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7047
!UIPainter::TreeView methodsFor:'enumerating'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7048
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7049
allItemsDo:aOneArgBlock
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7050
    "evaluates the argument a block on each item other than the canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7051
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7052
    model root allChildrenDo:aOneArgBlock
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7054
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7055
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7056
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7057
!UIPainter::TreeView methodsFor:'event handling'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7058
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7059
canvasEventsDisabledDo:aBlock
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7060
    "evaluates the block without raising selection changed notifications to canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7061
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7062
    |restoreCanvasEvents|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7063
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7064
    restoreCanvasEvents  := canvasEventsDisabled.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7065
    canvasEventsDisabled := true.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7066
    aBlock value.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7067
    canvasEventsDisabled := restoreCanvasEvents.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7068
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7069
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7070
doubleClicked
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7071
    "disables collapsing of the root item"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7072
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7073
    self selectedNode == model root ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7074
        super doubleClicked
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7075
    ]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7076
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7077
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7078
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7079
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7080
redrawLabelAt:x y:yTop index:anIndex
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7081
    "draws a tiny rectangle for indicating the master node (first selected node)"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7082
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7083
    |dX|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7084
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7085
    super redrawLabelAt:x y:yTop index:anIndex.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7086
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7087
    ((selection size > 1) and: [selection first == anIndex]) ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7088
        dX := textInset - 1.
3386
5baabc41e189 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3368
diff changeset
  7089
        gc paint:(Color red). "/ self application painter handleMasterColor.
5baabc41e189 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3368
diff changeset
  7090
        gc fillRectangleX:(x - dX - 2) y:yTop + ((fontHeight - dX) // 2)
5baabc41e189 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3368
diff changeset
  7091
           width:dX height:dX
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7092
    ]
3051
ebb32d3a997e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  7093
! !
ebb32d3a997e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  7094
ebb32d3a997e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  7095
!UIPainter::TreeView methodsFor:'initialization'!
ebb32d3a997e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  7096
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7097
iconForNode:aNode
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7098
    |spec|       
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7099
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7100
    spec := aNode contents spec.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7101
    spec isNil ifTrue: [
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7102
        ^ WindowSpec icon
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7103
    ] ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7104
        ^ spec icon
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7105
    ]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7106
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7107
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7108
initialize
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7109
    "initialize the tree view; multiple select and tree item actions"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7110
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7111
    super initialize.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7112
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7113
    self multipleSelectOk:true.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7114
    canvasEventsDisabled := false.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7115
    self showDirectoryIndicator: true.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7116
    self showDirectoryIndicatorForRoot: false.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7117
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7118
    self model 
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7119
        iconAction:[:aNode| self iconForNode:aNode];
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7120
        labelAction: [:aNode | self labelForNode:aNode].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7121
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7122
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7123
labelForNode:aNode
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7124
    |spec|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7125
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7126
    spec := aNode contents spec.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7127
    spec notNil ifTrue: [
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7128
        ^ self nameForSpecInList:spec
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7129
    ] ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7130
        ^ aNode name
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7131
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7132
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7133
3051
ebb32d3a997e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  7134
!UIPainter::TreeView methodsFor:'private'!
ebb32d3a997e class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3032
diff changeset
  7135
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7136
nameForSpecInList:aSpec
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7137
    "returns the tree item label for aSpec"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7138
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7139
    |aspect aspectPrefix nameString viewClassString|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7140
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7141
    nameString := aSpec name ? ''.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7142
    viewClassString := '[',aSpec viewClass name,']' .
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7143
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7144
    aspect := aSpec nameOfMainAspect.
2230
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  7145
    aspect notNil ifTrue:[
2854
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7146
        aspectPrefix := '(',aspect allBold ,') '
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7147
    ] ifFalse:[
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7148
        aspectPrefix := ''.
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7149
    ].
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7150
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7151
    ^ aspectPrefix, nameString, ': ', viewClassString
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7152
459153442565 care for id-less components
Claus Gittinger <cg@exept.de>
parents: 2848
diff changeset
  7153
    "Modified: / 17-08-2011 / 09:10:31 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7154
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7155
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7156
selectionChangedFrom:oldSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7157
    "selection has changed. update master selection and raise notification
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7158
     to canvas in case of enabled cvs events
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7159
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7160
    |sel size|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7161
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7162
    super selectionChangedFrom:oldSelection.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7163
    size := selection size.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7164
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  7165
    canvasEventsDisabled ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7166
        (size ~~ 0 and:[size ~~ 1 or:[selection first ~~ 1]]) ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7167
            sel := OrderedCollection new.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7168
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7169
            selection do:[:i|
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7170
                i ~~ 1 ifTrue:[sel add:(listOfNodes at:i) contents view]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7171
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7172
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7173
        self canvas updateSelectionFromModel:sel
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  7174
    ].             
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  7175
    size = 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7176
        oldSelection size > 1 ifTrue: [
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7177
            (listOfNodes at:lastDrawnMaster) retrieveLabel.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7178
            self redrawLine: lastDrawnMaster. 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7179
            lastDrawnMaster := selection first
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7180
        ]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  7181
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  7182
    size > 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7183
        selection first ~~ lastDrawnMaster ifTrue: [
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7184
            (listOfNodes at:selection first) retrieveLabel.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7185
            lastDrawnMaster notNil ifTrue: [(listOfNodes at:lastDrawnMaster) retrieveLabel].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7186
            self redrawLine: lastDrawnMaster. 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7187
            self redrawLine: (lastDrawnMaster := selection first)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7188
        ]
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  7189
    ]         
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  7190
    ifFalse: [
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7191
        lastDrawnMaster := nil
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  7192
    ] 
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7193
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7194
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7195
!UIPainter::TreeView methodsFor:'queries'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7196
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7197
canChangeOrderInContainer
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7198
    "returns true if any selection exists and all widgets in the selection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7199
     can change their layout through to a move or align operation"
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  7200
3130
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7201
"/ old code (only allow if a single item is selected):
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7202
"/
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7203
"/    ^(selection size == 1)  and: 
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7204
"/    [(selection at: 1) ~~ 1 and:   
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7205
"/    [self selectedNode parent children size > 1]] 
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7206
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7207
    ^ self selectedNodes 
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7208
        conform:[:eachSelectedNode |
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7209
            |parent|
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7210
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7211
            (parent := eachSelectedNode parent) notNil
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7212
            and:[parent children size > 1]
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7213
        ].
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  7214
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  7215
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7216
canExchangeSelectionLayouts 
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7217
    "returns true if the selections size is exactly 2
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7218
     and all widgets in the selection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7219
     can change their layout through to a move or align operation"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7220
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7221
    selection size == 2 ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7222
        ^ false
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7223
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7224
    ^ self canMoveOrAlignSelection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7225
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7226
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7227
canMoveOrAlignSelection
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7228
    "returns true if any selection exists and all widgets in the selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7229
     can change their layout through to a move or align operation"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7230
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7231
    selection isEmptyOrNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7232
        ^ false
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7233
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7234
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7235
    selection do:[:i|
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7236
        |node view|
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7237
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7238
        i == 1 ifTrue:[
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7239
            "/ the tree node for the canvas itself.
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7240
            ^ false
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7241
        ].
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7242
        node := listOfNodes at:i.
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7243
        view := node contents view.
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  7244
        (self canvas canChangeLayoutOfView:view) ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7245
            ^ false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7246
        ]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7247
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7248
    ^ true
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7249
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7250
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7251
canMoveSelectionIntoContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7252
    "returns true in case that one widget is selected and can change its container
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7253
     widget to an element below"
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7254
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7255
    |item oldParentItem newParentItem idx|
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7256
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7257
    item := self selectedNode.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7258
    (item notNil and:[(oldParentItem := item parent) notNil]) ifTrue:[
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7259
        idx := (oldParentItem indexOfChild:item) + 1.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7260
        newParentItem := oldParentItem children detect:[:eachChild|
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7261
            eachChild contents spec class supportsSubComponents
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7262
        ] startingAt:idx ifNone:nil.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7263
        ^ newParentItem notNil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7264
    ].
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7265
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7266
    ^ false
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7267
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7268
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7269
canMoveSelectionOutOfContainer
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7270
    "returns true in case that one widget is selected which is contained within
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7271
     another widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7272
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7273
    |item prnt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7274
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7275
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7276
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7277
      or:[prnt parent isNil]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7278
    ) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7279
        ^ false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7280
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7281
    ^ true
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7282
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7283
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7284
canResizeSelectedWidget
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7285
    "returns true in case of one widget selected and is contained
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7286
     within a widget which allows to resize sub components"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7287
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7288
    |selectedNode|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7289
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  7290
    (selectedNode := self selectedNode) notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7291
        (selectedNode := selectedNode parent) notNil ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7292
            ^ (selectedNode parent isNil or:[selectedNode contents spec class canResizeSubComponents])
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7293
        ]
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  7294
    ].
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  7295
    ^ false
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  7296
!
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  7297
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7298
canResizeSelection
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7299
    "returns true if all selected widgets can be resized"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7300
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7301
    selection isEmptyOrNil ifTrue:[ ^ false ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7302
    ^ self canvas canResize:(self selectedViews)
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7303
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7304
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7305
hasMultipleSelectionOtherThanCanvas
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7306
    "returns true in case that any selection other than the canvas exists"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7307
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7308
    ^ selection size > 0 and:[ (selection count:[:anyindex | anyindex ~~ 1]) > 1]
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7309
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7310
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7311
hasOneSelectionOtherThanCanvas
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7312
    "returns true in case that one selection exists other than the canvas"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7313
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7314
    ^ selection size == 1 and:[selection first ~~ 1]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7315
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7316
3361
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7317
hasSelectionOtherThanCanvas
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7318
    "returns true in case that any selection other than the canvas exists"
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7319
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7320
    ^ selection size > 0 and:[selection contains:[:anyindex | anyindex ~~ 1]]
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7321
!
4bd3866a0f40 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3325
diff changeset
  7322
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7323
isCanvasSelected
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7324
    "returns true in case of a single selection and the
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7325
     selection is the canvas (index 1)"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7326
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7327
    ^ selection size == 1 and:[self isInSelection:1]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7328
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7329
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7330
!UIPainter::TreeView methodsFor:'searching'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7331
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7332
detectItemCorespondingToView:aView
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7333
    "detects the item coresponding to the view. The item of the view or the first
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7334
     subview providing the item is returned. If no property is detected nil is
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7335
     returned"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7336
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7337
    |view item|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7338
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7339
    (view := aView) isNil ifTrue:[ ^ nil ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7340
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7341
    [(item := self itemOfView:view) isNil] whileTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7342
        (view := view superView) isNil ifTrue:[^ listOfNodes at:1]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7343
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7344
    ^ item
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7345
! !
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7346
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7347
!UIPainter::TreeView methodsFor:'user interaction'!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7348
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7349
askForSelectionChangeAllowed 
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  7350
    selectConditionBlock notNil ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  7351
        ^ selectConditionBlock value:nil 
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  7352
    ].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  7353
    ^ true
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  7354
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  7355
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7356
doChangeParentOfSelectedItemTo:newParentItem
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7357
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7358
    |canvas|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7359
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7360
    newParentItem isNil ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7361
        ^ self
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7362
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7363
    self askForSelectionChangeAllowed ifFalse:[^ self].    
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7364
    self setSelection:nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7365
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7366
    canvas := self canvas.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7367
    canvas deleteSelection.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7368
    canvas setSelection:(newParentItem contents view) withRedraw:false.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7369
    canvas pasteWithLayout.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7370
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7371
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7372
doSortItems
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7373
    "sort items by their top-left position"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7374
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7375
    |selectedItems parent sortedItems newChildren itemList parentView|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7376
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7377
    self askForSelectionChangeAllowed ifFalse:[^ self].
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7378
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7379
    selectedItems := self selectedNodes.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7380
    selectedItems size <= 1 ifTrue:[^ self].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7381
    parent := selectedItems first parent.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7382
    (parent isNil or:[(selectedItems conform:[:e| e parent == parent]) not]) ifTrue:[^ self].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7383
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  7384
    sortedItems := selectedItems sort:[:a :b| 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  7385
                            a contents view origin isLeftOrAbove:(b contents view origin)].
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7386
    itemList := selectedItems asIdentitySet.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7387
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7388
    newChildren := parent children collect:[:eachChild|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7389
        (itemList includes:eachChild) ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7390
            sortedItems removeFirst.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7391
        ] ifFalse:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7392
            eachChild.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7393
        ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7394
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7395
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7396
    self setSelection:nil.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7397
    model remove:parent children.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7398
    model add:newChildren beforeIndex:1 below:parent.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7399
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7400
    parentView := parent contents view.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7401
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7402
    self canvas hideSelection.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7403
    newChildren keysAndValuesDo:[:idx :eachItem|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7404
        parentView changeSequenceOrderFor:eachItem contents view to:idx.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7405
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7406
    parentView specClass isLayoutContainer ifFalse:[
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  7407
        parentView components notEmptyOrNil ifTrue:[ self halt ].
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7408
        parentView subViews do:[:v| v raise ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7409
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7410
    self canvas showSelection.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7411
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  7412
    self selectNodes:itemList asOrderedCollection.
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7413
!
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  7414
3130
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7415
doStep:item over:anIndex
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7416
    "moves a single child 'anIndex' forward or backward in list of children.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7417
     positive index: move down; negative index: move up"
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7418
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7419
    |idx size parentItem parentItemsView itemsView canvas prevSelection|
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7420
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7421
    self askForSelectionChangeAllowed ifFalse:[^ self].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7422
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7423
    (    item isNil
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7424
     or:[(parentItem := item parent) isNil
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7425
     or:[(size := parentItem children size) < 2
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7426
     or:[(idx  := parentItem indexOfChild:item) == 0]]]
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7427
    ) ifTrue:[
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7428
        ^ self
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7429
    ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7430
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7431
    idx := idx + anIndex.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7432
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7433
    idx < 1 ifTrue:[idx := size]
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7434
           ifFalse:[idx > size ifTrue:[idx := 1]].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7435
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7436
    prevSelection := self selectedNodes.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7437
    self setSelection:nil.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7438
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7439
    model remove:item.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7440
    model add:item beforeIndex:idx below:parentItem.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7441
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7442
    idx := parentItem indexOfChild:item.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7443
    itemsView := item contents view.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7444
    parentItemsView := parentItem contents view.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7445
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7446
    canvas := self canvas.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7447
    canvas hideSelection.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7448
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7449
    itemsView isView ifFalse:[
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7450
        "/ a component - has its own collection (and therefore indexing) - sigh
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7451
        idx := idx - ((1 to:idx-1) count:[:i | (parentItem children at:i) contents view isView]).
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7452
        parentItemsView changeSequenceOrderFor:itemsView to:idx.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7453
    ] ifTrue:[
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7454
        "/ a view - has its own collection (and therefore indexing) - sigh
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7455
        idx := idx - ((1 to:idx-1) count:[:i | (parentItem children at:i) contents view isView not]).
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7456
        parentItemsView changeSequenceOrderFor:itemsView to:idx.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7457
    ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7458
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7459
    parentItemsView specClass isLayoutContainer ifFalse:[
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7460
        "/ spVw components notEmptyOrNil ifTrue:[ self halt ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7461
        parentItemsView subViews do:[:v| v raise ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7462
    ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7463
    self selectNodes:prevSelection.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7464
    canvas showSelection.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7465
!
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7466
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7467
doStepIn
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7468
    "move the currently selected widget into the next available container below"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7469
    
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7470
    |item oldParentItem newParentItem idx|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7471
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7472
    item := self selectedNode.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7473
    (item notNil and:[(oldParentItem := item parent) notNil]) ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7474
        idx := (oldParentItem indexOfChild:item) + 1.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7475
        newParentItem := oldParentItem children 
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7476
                    detect:[:eachChild | eachChild contents spec class supportsSubComponents]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7477
                    startingAt:idx
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7478
                    ifNone:nil.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7479
        newParentItem notNil ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7480
            self doChangeParentOfSelectedItemTo:newParentItem
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  7481
        ].
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7482
    ]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7483
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7484
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7485
doStepOut
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7486
    |item|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7487
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7488
    item := self selectedNode.    
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7489
    (item notNil and:[(item := item parent) notNil]) ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7490
        self doChangeParentOfSelectedItemTo:(item parent)
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7491
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7492
!
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7493
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7494
doStepOver:anIndex
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7495
    "moves child 'anIndex' forward or backward in list of children"
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7496
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7497
    |item idx size parentItem parentItemsView itemsView canvas|
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7498
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7499
    self askForSelectionChangeAllowed ifFalse:[^ self].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7500
3130
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7501
    anIndex < 0 ifTrue:[
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7502
        "/ moving up
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7503
        self selectedNodes do:[:eachNode |
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7504
            self doStep:eachNode over:anIndex.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7505
        ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7506
    ] ifFalse:[
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7507
        "/ moving down
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7508
        self selectedNodes reverseDo:[:eachNode |
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7509
            self doStep:eachNode over:anIndex.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7510
        ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7511
    ].
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7512
    ^ self.
935ad3a85262 class: UIPainter
Claus Gittinger <cg@exept.de>
parents: 3119
diff changeset
  7513
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7514
    (    (item := self selectedNode) isNil
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7515
     or:[(parentItem := item parent) isNil
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7516
     or:[(size := parentItem children size) < 2
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7517
     or:[(idx  := parentItem indexOfChild:item) == 0]]]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7518
    ) ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7519
        ^ self
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7520
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7521
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7522
    idx := idx + anIndex.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7523
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7524
    idx < 1 ifTrue:[idx := size]
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7525
           ifFalse:[idx > size ifTrue:[idx := 1]].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  7526
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  7527
    self setSelection:nil.
3053
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7528
    model remove:item.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7529
    model add:item beforeIndex:idx below:parentItem.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7530
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7531
    idx := parentItem indexOfChild:item.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7532
    itemsView := item contents view.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7533
    parentItemsView := parentItem contents view.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7534
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7535
    canvas := self canvas.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7536
    canvas hideSelection.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7537
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7538
    itemsView isView ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7539
        "/ a component - has its own collection (and therefore indexing) - sigh
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7540
        idx := idx - ((1 to:idx-1) count:[:i | (parentItem children at:i) contents view isView]).
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7541
        parentItemsView changeSequenceOrderFor:itemsView to:idx.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7542
    ] ifTrue:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7543
        "/ a view - has its own collection (and therefore indexing) - sigh
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7544
        idx := idx - ((1 to:idx-1) count:[:i | (parentItem children at:i) contents view isView not]).
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7545
        parentItemsView changeSequenceOrderFor:itemsView to:idx.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7546
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7547
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7548
    parentItemsView specClass isLayoutContainer ifFalse:[
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7549
        "/ spVw components notEmptyOrNil ifTrue:[ self halt ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7550
        parentItemsView subViews do:[:v| v raise ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7551
    ].
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7552
    canvas showSelection.
db8d30e7a621 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  7553
    self selectNode:item.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7554
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  7555
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  7556
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  7557
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  7558
version
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  7559
    ^ '$Header$'
2615
347a0b26e210 changed: #doBrowseAspectMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2568
diff changeset
  7560
!
347a0b26e210 changed: #doBrowseAspectMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2568
diff changeset
  7561
347a0b26e210 changed: #doBrowseAspectMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2568
diff changeset
  7562
version_CVS
347a0b26e210 changed: #doBrowseAspectMethod:nameAs:
Claus Gittinger <cg@exept.de>
parents: 2568
diff changeset
  7563
    ^ '$Header$'
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  7564
! !
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7565
2947
9bbc38256343 changed: #processEvent:
Claus Gittinger <cg@exept.de>
parents: 2923
diff changeset
  7566
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  7567
UIPainter initialize!