UIPainter.st
author ca
Wed, 10 Jun 2009 17:20:46 +0200
changeset 2558 1acb2765094d
parent 2552 6b958036f5c4
child 2559 04b2605a66b2
permissions -rw-r--r--
move columns up or down
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
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
    14
ResourceSpecEditor subclass:#UIPainter
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    15
	instanceVariableNames:'specSuperclassName treeView selectionPanel specTool layoutTool
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
    16
		helpTool painterView painter lastPort lastPage'
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
    17
	classVariableNames:'SelectionPanelClass UseViewScroller LastPort LastPage
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
    18
		DefaultEditToolBarVisible DefaultToolBarVisible'
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    19
	poolDictionaries:''
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    20
	category:'Interface-UIPainter'
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    21
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    22
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    23
SelectionInTreeView subclass:#TreeView
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
    24
	instanceVariableNames:'lastDrawnMaster canvasEventsDisabled windowSpec windowSpecClass
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
    25
		painter'
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    26
	classVariableNames:''
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    27
	poolDictionaries:''
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
    28
	privateIn:UIPainter
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    29
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    30
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    31
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    32
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    33
copyright
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    34
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    35
 COPYRIGHT (c) 1995-1998 by eXept Software AG
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    36
              All Rights Reserved
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    37
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    38
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    39
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    40
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    41
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    42
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    43
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    44
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    45
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
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    48
documentation
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    49
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    50
    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
    51
    interfaces by interactively assembling widgets and defining the behavior of the widgets.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    52
    The resulting interface specifications can be saved as methods on the application
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    53
    classes, typically subclasses of the class ApplicationModel. These specifications
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    54
    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
    55
    opening the application.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    56
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    57
    [start with:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    58
        UIPainter open
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    59
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    60
    [author:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    61
        Claus Gittinger, eXept Software AG
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    62
        Claus Atzkern, eXept Software AG
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    63
        Thomas Zwick, eXept Software AG
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    64
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    65
    [see also:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    66
        UIBuilder
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    67
        ApplicationModel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
    68
        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
    69
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
    70
    [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
    71
        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
    72
                                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
    73
                                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
    74
                                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
    75
                                callback functions.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    76
"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    77
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    78
2399
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    79
!UIPainter class methodsFor:'initialization'!
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    80
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    81
initialize
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    82
    SelectionPanelClass isNil ifTrue:[
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    83
        SelectionPanelClass := UISelectionPanel
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    84
    ].
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    85
! !
1ae184ce9595 category change
Claus Gittinger <cg@exept.de>
parents: 2397
diff changeset
    86
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    87
!UIPainter class methodsFor:'instance creation'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    88
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    89
openOnClass:aClass andSelector:aSelector
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
    90
    "open a GUI Painter on aClass and (windowSpec) aSelector"
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
    91
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
    92
    ^ self new openOnClass:aClass theNonMetaclass andSelector:aSelector
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    93
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    94
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    95
!UIPainter class methodsFor:'ST-80 queries'!
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    96
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    97
preferenceFor:aSymbol
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    98
    "ST-80 compatible; always returns false
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    99
    "
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
   100
    ^ false
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   101
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   102
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   103
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   104
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   105
!UIPainter class methodsFor:'defaults'!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   106
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   107
defaultEditToolbarVisible
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   108
    ^ DefaultEditToolBarVisible ? true
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   109
!
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   110
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   111
defaultNameOfCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
   112
    "returns the default name of the application"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
   113
2208
4e1c31df6014 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2206
diff changeset
   114
    ^ 'NewApplication'
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   115
!
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   116
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   117
defaultToolbarVisible
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   118
    ^ DefaultToolBarVisible ? true
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   119
!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
   120
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   121
selectionPanelClass
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   122
    ^ SelectionPanelClass
2225
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   123
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   124
    "
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   125
     UIPainter selectionPanelClass.
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   126
     UIPainter selectionPanelClass:UISelectionPanel
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   127
    "
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   128
!
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
   129
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   130
selectionPanelClass:something
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   131
    "set the class used as selection panel.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   132
     this is UISelectionPanel as default"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   133
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   134
    SelectionPanelClass := something.
2225
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   135
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   136
    "
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   137
     UIPainter selectionPanelClass:UISelectionPanel
b01b58d85458 comments
Claus Gittinger <cg@exept.de>
parents: 2223
diff changeset
   138
    "
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   139
! !
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   140
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   141
!UIPainter class methodsFor:'help specs'!
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   142
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   143
flyByHelpSpec
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   144
    <resource: #help>
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   145
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   146
    ^super flyByHelpSpec 
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   147
        addPairsFrom:#(
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   148
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   149
#fileSave
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
   150
'Save Spec'
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
   151
2336
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   152
shadesOfRed
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   153
'Red color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   154
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   155
shadesOfGreen
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   156
'Green color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   157
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   158
shadesOfBlue
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   159
'Blue color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   160
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   161
shadesOfCyan
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   162
'Cyan 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
shadesOfMagenta
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   165
'Magenta 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
shadesOfYellow
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   168
'Yellow 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
shadesOfGray
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   171
'Gray 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
openColorEditor
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   174
'Open a color editor'
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
pickColorFromScreen
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   177
'Pick a color from the screen'
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
recentlyUsedColors
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   180
'Pick a recently used color'
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
useDefaultColorToggle
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   183
'Toggle between default and explicit color'
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   184
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   185
);
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   186
    declareAllFrom:self helpSpec
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   187
!
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1540
diff changeset
   188
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   189
helpSpec
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   190
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   191
     by the UIHelpTool of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   192
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   193
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   194
     the UIHelpTool may not be able to read the specification."
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   195
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   196
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   197
     UIHelpTool openOnClass:UIPainter    
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   198
    "
114befd1c369 add some help text
ca
parents: 287
diff changeset
   199
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   200
    <resource: #help>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   201
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   202
    ^ super helpSpec addPairsFrom:#(
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   203
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   204
#align
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   205
'Widget alignment functions.'
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   206
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   207
#alignSelectionBottom
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   208
'Aligns the selected widgets bottom edges with the bottom of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   209
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   210
#alignResizeSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   211
'Resize the selected widgets bottom edges to align them with the bottom of the dominant widget.'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   212
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   213
#alignSelectionCenterHor
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   214
'Aligns the selected widgets centers vertically with the center of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   215
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   216
#alignSelectionCenterVer
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   217
'Aligns the selected widgets centers horizontally with the center of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   218
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   219
#alignSelectionLeft
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   220
'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
   221
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   222
#alignResizeSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   223
'Resize the selected widgets left edges to align them with the left edge of the dominant widget.'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   224
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   225
#alignSelectionLeftAndRight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   226
'Aligns the selected widgets left & right edges with the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   227
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   228
#alignSelectionRight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   229
'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
   230
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   231
#alignResizeSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   232
'Resize the selected widgets right edges to align them with the right edge of the dominant widget.'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   233
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   234
#alignSelectionTop
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   235
'Aligns the selected widgets top edgegs with the top edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   236
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   237
#alignResizeSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   238
'Resize the selected widgets top edgegs to align them with the top edge of the dominant widget.'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   239
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   240
#alignSelectionTopAndBottom
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   241
'Aligns the selected widgets top and bottom 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
#centerSelectionHor
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   244
'Centers the selected widgets horizontally within their containing widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   245
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   246
#centerSelectionVer
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   247
'Centers the selected widgets vertically within their containing widget.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   248
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   249
#changePositionDown
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   250
'Moves the selected widget(s) towards the bottom.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   251
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   252
#changePositionLeft
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   253
'Moves the selected widget(s) towards the left.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   254
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   255
#changePositionRight
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   256
'Moves the selected widget(s) towards the right.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   257
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   258
#changePositionUp
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   259
'Moves the selected widget(s) towards the top.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   260
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   261
#drawEdit
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   262
''
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   263
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   264
#editBrowseViewClass
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   265
'Opens a browser on the class of the selected widget.'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   266
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   267
#editDimensionCopyExtent
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   268
'Copies the extent of the selected widget.'
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
#editDimensionCopyLayout
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   271
'Copies the layout of the selected widget.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   272
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   273
#editDimensionDefaultExtent
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   274
'Sets the selected widget(s) extent to their default.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   275
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   276
#editDimensionDefaultHeight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   277
'Sets the selected widget(s) height to their default.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   278
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   279
#editDimensionDefaultWidth
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   280
'Sets the selected widget(s) width to their default.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   281
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   282
#editDimensionPasteExtent
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   283
'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
   284
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   285
#editDimensionPasteHeight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   286
'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
   287
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   288
#editDimensionPasteLayout
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   289
'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
   290
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   291
#editDimensionPasteWidth
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   292
'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
   293
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   294
#editInspectSpec
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   295
'Opens an inspector on the spec of the selected widget.'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   296
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   297
#editInspectView
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
   298
'Opens an inspector on the selected widget.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   299
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   300
#editOpenSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   301
'Opens the documentation of the selected widget.'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   302
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   303
#fileBrowseAspectMethods
2540
fd4d8522f02c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
   304
'Opens a System Browser on the application''s aspect methods.'
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   305
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
   306
#fileBrowseClass
2540
fd4d8522f02c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2531
diff changeset
   307
'Open a System Browser on the application''s class.'
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
   308
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   309
#fileLoad
1032
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
   310
'Opens a dialog to load a window specification from a classes spec method.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   311
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   312
#fileLoadSubspec
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   313
'Opens a dialog to load a sub specification from a classes windowSpec method.'
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   314
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   315
#fileNew
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   316
'Creates a new window spec.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   317
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   318
#filePickAnInterface
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   319
'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
   320
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   321
#fileSave
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   322
'Saves the window spec in the current class (as spec method).'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   323
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   324
#fileSaveAs
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   325
'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
   326
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   327
#fileShowWindowSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   328
'Opens a Workspace showing the current window spec.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   329
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   330
#generateAspectMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   331
'Generates aspect methods for defined aspect selectors of the widgets.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   332
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   333
#generateHookMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   334
'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   335
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   336
#group
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   337
''
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   338
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   339
#helpExamples
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   340
'Show some examples uses of the GUI Painter.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   341
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   342
#helpFunctions
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   343
'Show the documentation on the GUI Painters menu and button functions.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   344
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   345
#helpLayoutTool
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   346
'Show the Layout Tools documentation.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   347
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   348
#helpSelectedWidget
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   349
'Show the documentation of the selected widget.'
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   350
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   351
#helpTutorial
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   352
'Show the GUI Painters documentation.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   353
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   354
#historyMenuItem
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   355
'Edit this windowSpec.'
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   356
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   357
#moveWidgetDown
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   358
'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
   359
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   360
#moveWidgetInto
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   361
'Moves the selected widget into next widget as child widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   362
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   363
#moveWidgetOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   364
'Moves the selected widget out of its parent widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   365
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   366
#moveWidgetUp
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   367
'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
   368
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   369
#pasteBuffer
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   370
'Pastes the widgets of the clipboard at the current mouse position.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   371
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   372
#pasteWithLayout
2370
ce1233002cf8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2361
diff changeset
   373
'Pastes the widgets of the clipboard without changing their layouts.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   374
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   375
#referToCOnfigDatabase
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   376
''
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   377
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   378
#settingsAspectsAsInstances
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   379
'Generate aspects as instance variables (or bindings, if off).'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
   380
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   381
#settingsCanvas
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   382
'Shows or hides the canvas window.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   383
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   384
#settingsGallery
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   385
'Shows or hides the gallery window.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   386
2294
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
   387
#settingsGenerateCommentedCode
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
   388
''
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
   389
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   390
#settingsGridManager
1032
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
   391
'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
   392
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   393
#settingsRedefineAspectMethods
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   394
'Toggles the permission to overwrite existing aspect methods.'
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   395
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   396
#settingsTranscriptHelp
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   397
'Toggles display of help texts (after opening a new GUI Painter).'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   398
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   399
#settingsUndoManager
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   400
'Opens a dialog to undo modifications.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   401
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   402
#sortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
   403
'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
   404
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   405
#spreadSelectionHor
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   406
'Sets the horizontal spaces between the selected widgets to the same value.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   407
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   408
#spreadSelectionVer
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   409
'Sets the vertical spaces between the selected widgets to the same value.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   410
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   411
#testGeometryTestMode
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   412
'Toggles geometry test mode (to define ratios of variable panels and top-window dimension).'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   413
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   414
#testStartApplication
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   415
'Starts the application with the current window spec.'
194
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   416
2336
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   417
shadesOfRed
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   418
'Red color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   419
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   420
shadesOfGreen
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   421
'Green color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   422
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   423
shadesOfBlue
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   424
'Blue color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   425
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   426
shadesOfCyan
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   427
'Cyan color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   428
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   429
shadesOfMagenta
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   430
'Magenta color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   431
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   432
shadesOfYellow
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   433
'Yellow color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   434
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   435
shadesOfGray
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   436
'Gray color tones'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   437
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   438
openColorEditor
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   439
'Open a color editor'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   440
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   441
pickColorFromScreen
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   442
'Pick a color from the screen'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   443
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   444
recentlyUsedColors
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   445
'Pick a recently used color'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   446
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   447
useDefaultColorToggle
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   448
'Toggle between default and explicit color'
b3ce8b110486 help spec
Claus Gittinger <cg@exept.de>
parents: 2328
diff changeset
   449
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   450
)
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   451
! !
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   452
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   453
!UIPainter class methodsFor:'helpers'!
14db1276218c change the spec;
ca
parents: 295
diff changeset
   454
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   455
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   456
    "converts a string to a string collection with maximum characters
14db1276218c change the spec;
ca
parents: 295
diff changeset
   457
     per line
14db1276218c change the spec;
ca
parents: 295
diff changeset
   458
    "
14db1276218c change the spec;
ca
parents: 295
diff changeset
   459
    |stream
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   460
        max     "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   461
        size    "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   462
        start   "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   463
        stop    "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   464
        cpySz   "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   465
        lnSz    "{ Class:SmallInteger }"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   466
        atBeginOfLine|
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   467
14db1276218c change the spec;
ca
parents: 295
diff changeset
   468
    maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   469
                               ifTrue:[max := 20].
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   470
14db1276218c change the spec;
ca
parents: 295
diff changeset
   471
    (size := aString size) <= max ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   472
        ^ aString
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   473
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   474
    start  := 1.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   475
    lnSz   := 0.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   476
    stream := (String new:size) writeStream.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   477
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   478
    atBeginOfLine := true.
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   479
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   480
    [start <= size] whileTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   481
        (start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   482
            ^ stream contents
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   483
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   484
        (aString at:start) == $\ ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   485
            skipLineFeed ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   486
                stream nextPut:$\
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   487
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   488
            start := start + 1.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   489
            stream cr.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   490
            start := start + 1.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   491
            lnSz := 0.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   492
        ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   493
            (stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   494
                stop := size + 1
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   495
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   496
            (aString at:(stop - 1)) == $\ ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   497
                stop := stop - 1
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   498
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   499
            cpySz := stop - start.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   500
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   501
            lnSz == 0 ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   502
                (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
   503
                                             ifFalse:[stream space. lnSz := lnSz + 1]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   504
            ] ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   505
                lnSz := cpySz
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   506
            ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   507
            stream nextPutAll:aString startingAt:start to:(stop - 1).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   508
            start := stop.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
   509
        ]
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   510
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   511
    ^ stream contents
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   512
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   513
    "Modified: / 1.2.1998 / 14:42:56 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   514
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
   515
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   516
!UIPainter class methodsFor:'image specs'!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   517
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   518
arrowDown
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   519
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   520
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   521
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   522
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   523
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   524
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   525
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   526
     self arrowDown inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   527
     ImageEditor openOnClass:self andSelector:#arrowDown
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   528
     Icon flushCachedIcons
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   529
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   530
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   531
    <resource: #image>
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   532
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   533
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   534
        constantNamed:'UIPainter class arrowDown'
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   535
        ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O? ?>C@XNC <^C;8O? ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   536
@@@@@@@@@@@? A<@C @D@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   537
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   538
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   539
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   540
arrowLeft
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   541
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   542
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   543
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   544
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   545
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   546
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   547
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   548
     self arrowLeft inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   549
     ImageEditor openOnClass:self andSelector:#arrowLeft
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   550
     Icon flushCachedIcons
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   551
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   552
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   553
    <resource: #image>
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   554
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   555
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   556
        constantNamed:'UIPainter class arrowLeft'
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   557
        ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O7 >^C18NG <^C98O7 ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@H@A @N@A8@C PF@@H@@@@@@@@a') ; yourself); yourself]
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
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   560
arrowRight
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   561
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   562
     by the ImageEditor of ST/X."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   563
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   564
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   565
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   566
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   567
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   568
     self arrowRight inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   569
     ImageEditor openOnClass:self andSelector:#arrowRight
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   570
     Icon flushCachedIcons
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   571
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   572
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   573
    <resource: #image>
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   574
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   575
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   576
        constantNamed:'UIPainter class arrowRight'
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   577
        ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O_ <>C18OC <^C38O_ ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@ @C@@NA@<@C @L@@ @@@@@@@@a') ; yourself); yourself]
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   578
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   579
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   580
arrowUp
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   581
    "This resource specification was automatically generated
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   582
     by the ImageEditor of ST/X."
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
    "Do not manually edit this!! If it is corrupted,
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   585
     the ImageEditor may not be able to read the specification."
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   586
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   587
    "
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   588
     self arrowUp inspect
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   589
     ImageEditor openOnClass:self andSelector:#arrowUp
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   590
     Icon flushCachedIcons
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
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   593
    <resource: #image>
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   594
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   595
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   596
        constantNamed:'UIPainter class arrowUp'
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   597
        ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O? >>C18NC 0FC?8O? ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A@@NG1<@O8@@@@@@@@@@AP@a') ; yourself); yourself]
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   598
!
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
   599
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   600
browseActionImage
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   601
    "This resource specification was automatically generated
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   602
     by the ImageEditor of ST/X."
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   603
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   604
    "Do not manually edit this!! If it is corrupted,
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   605
     the ImageEditor may not be able to read the specification."
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   606
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   607
    "
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   608
     self browseActionImage inspect
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   609
     ImageEditor openOnClass:self andSelector:#browseActionImage
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   610
     Icon flushCachedIcons
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   611
    "
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   612
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   613
    <resource: #image>
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   614
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   615
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   616
        constantNamed:'UIPainter class browseActionImage'
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   617
        ifAbsentPut:[(Depth8Image new) width: 11; height: 12; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   618
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
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   619
U%IVU5YRU%URZ%IR@EITT ART&,@@@@@T%MR@@@@@@@@@@@@T @@@@@@') ; 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]; mask:((Depth1Image new) width: 11; height: 12; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A@@N@F;@?>A?0G>@O8A?0O? [,@N@@P@') ; yourself); yourself]
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   620
!
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
   621
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   622
defaultIcon
2175
f8dd64f73dfc icon resource
Claus Gittinger <cg@exept.de>
parents: 2159
diff changeset
   623
    <resource: #programImage>
f8dd64f73dfc icon resource
Claus Gittinger <cg@exept.de>
parents: 2159
diff changeset
   624
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   625
    ^ ToolbarIconLibrary startUIPainterIcon
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   626
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   627
    "Created: / 10-02-2007 / 14:45:56 / cg"
2175
f8dd64f73dfc icon resource
Claus Gittinger <cg@exept.de>
parents: 2159
diff changeset
   628
    "Modified: / 17-09-2007 / 11:36:33 / cg"
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   629
!
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
   630
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   631
editTableIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   632
    <resource: #programImage>
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   633
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   634
    ^ SystemBrowser tableColumnsIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   635
!
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   636
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   637
helpIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   638
    <resource: #programImage>
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   639
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   640
    ^ Icon helpIcon
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   641
!
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
   642
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   643
hideToolBarIcon
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   644
    <resource: #programImage>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   645
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   646
    ^ ToolbarIconLibrary hideToolBarIcon
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   647
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
   648
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   649
iconAlignB
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   650
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   651
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   652
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   653
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   654
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   655
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   656
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   657
     self iconAlignB inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   658
     ImageEditor openOnClass:self andSelector:#iconAlignB
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   659
     Icon flushCachedIcons
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   660
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   661
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   662
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   663
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   664
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   665
        constantNamed:'UIPainter class iconAlignB'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   666
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   667
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   668
@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@') ; yourself); yourself]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   669
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   670
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   671
iconAlignL
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   672
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   673
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   674
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   675
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   676
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   677
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   678
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   679
     self iconAlignL inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   680
     ImageEditor openOnClass:self andSelector:#iconAlignL
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   681
     Icon flushCachedIcons
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   682
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   683
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   684
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   685
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   686
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   687
        constantNamed:'UIPainter class iconAlignL'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   688
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   689
@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   690
@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@') ; yourself); yourself]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   691
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   692
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   693
iconAlignLR
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   694
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   695
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   696
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
   697
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   698
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   699
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   700
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   701
     self iconAlignLR inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   702
     ImageEditor openOnClass:self andSelector:#iconAlignLR
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   703
     Icon flushCachedIcons
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   704
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   705
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   706
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   707
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   708
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   709
        constantNamed:'UIPainter class iconAlignLR'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   710
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   711
@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   712
@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray 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 @@@@@@@@') ; yourself); yourself]
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
   713
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   714
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   715
iconAlignR
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   716
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   717
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   718
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   719
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   720
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   721
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   722
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   723
     self iconAlignR inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   724
     ImageEditor openOnClass:self andSelector:#iconAlignR
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   725
     Icon flushCachedIcons
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   726
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   727
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   728
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   729
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   730
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   731
        constantNamed:'UIPainter class iconAlignR'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   732
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   733
@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   734
@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@') ; yourself); yourself]
1432
c032f34cd7bb remove shortcutKeyCharacter's from menu
ca
parents: 1397
diff changeset
   735
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   736
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   737
iconAlignT
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   738
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   739
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   740
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   741
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   742
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   743
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   744
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   745
     self iconAlignT inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   746
     ImageEditor openOnClass:self andSelector:#iconAlignT
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   747
     Icon flushCachedIcons
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   748
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   749
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   750
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   751
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   752
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   753
        constantNamed:'UIPainter class iconAlignT'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   754
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   755
@@@@@@@@@@@@@@@@@@@@@@@@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@@
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   756
@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@') ; yourself); yourself]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   757
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   758
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   759
iconAlignTB
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   760
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   761
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   762
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   763
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   764
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   765
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   766
    "
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   767
     self iconAlignTB inspect
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   768
     ImageEditor openOnClass:self andSelector:#iconAlignTB
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   769
     Icon flushCachedIcons
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   770
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   771
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   772
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   773
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   774
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   775
        constantNamed:'UIPainter class iconAlignTB'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   776
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   777
@@@@@@@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@@
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   778
@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   779
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   780
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   781
iconCenterH
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   782
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   783
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   784
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   785
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   786
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   787
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   788
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   789
     self iconCenterH inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   790
     ImageEditor openOnClass:self andSelector:#iconCenterH
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   791
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   792
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   793
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   794
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   795
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   796
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   797
        constantNamed:'UIPainter class iconCenterH'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   798
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   799
@@@@@@@@@@@@@@@@@(@J@B @@(@J@B @@(UZUR @@(?:?R @@(@J@B @@(@J@B @@(@J@B @@@@J@@@@@EUZUU@@@O?:?=@@@@@J@@@@@(@J@B @@(@J@B @
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   800
@(@J@B @@(EZUB@@@(O:=B @@(@J@B @@(@J@B @@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@C@@A?>@A?>@A?>@A?>@@C@@@C@@G?? G?? G?? G??#@C@@@C@C@?<@@?<A@?<@@?<@@C@@@@@A@@@@') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   801
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   802
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   803
iconCenterHInFrame
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   804
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   805
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   806
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   807
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   808
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   809
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   810
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   811
     self iconCenterHInFrame inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   812
     ImageEditor openOnClass:self andSelector:#iconCenterHInFrame
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   813
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   814
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   815
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   816
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   817
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   818
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   819
        constantNamed:'UIPainter class iconCenterHInFrame'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   820
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   821
@@@@@@@@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@
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   822
H8@@@@2@HHEUUBB@H8O?=B2@HL@@@CB@H@@@@@B@J******@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@_??8P@@HW??(U?>(U?>(U?>(T@@(T@@(W??(W??(W??(W??+T@@(T@@+T?<(T?<)T?<(W??(P@@H_??9@@@@') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   823
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   824
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   825
iconCenterV
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   826
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   827
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   828
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   829
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   830
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   831
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   832
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   833
     self iconCenterV inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   834
     ImageEditor openOnClass:self andSelector:#iconCenterV
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   835
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   836
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   837
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   838
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   839
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   840
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   841
        constantNamed:'UIPainter class iconCenterV'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   842
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   843
@@@@@@@@@@@@@@@@@@@@@@@@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@@
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   844
@@@M@E@@@@@M@@@@B**EJ*(@B(*@J*(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G @@G @@G'' G''''!!G'''' G'''' G'''' O??0O??0G'''' G'''' G'''' G'''' @G''#@G @@G C@@@@@@@@@@@@') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   845
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   846
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   847
iconCenterVInFrame
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   848
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   849
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   850
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   851
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   852
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   853
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   854
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   855
     self iconCenterVInFrame inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   856
     ImageEditor openOnClass:self andSelector:#iconCenterVInFrame
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   857
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   858
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   859
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   860
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   861
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   862
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   863
        constantNamed:'UIPainter class iconCenterVInFrame'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   864
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   865
@@@@@@@@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@
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   866
HE@G@@B@H@@G@@B@H:*E@J2@HL3@L3B@H@@@@@B@J******@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@B_??9P@@HW??(TG (W'' (W''''*W''''(W''''*W'''')W''''(W'''')W''''+W''''*W''''*W''''(W'' )TG (W??(P@@H_??8@@@@') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   867
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   868
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   869
iconDistributeH
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   870
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   871
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   872
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   873
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   874
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   875
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   876
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   877
     self iconDistributeH inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   878
     ImageEditor openOnClass:self andSelector:#iconDistributeH
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   879
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   880
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   881
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   882
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   883
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   884
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   885
        constantNamed:'UIPainter class iconDistributeH'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   886
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1863
f9a8e3c20143 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1862
diff changeset
   887
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@E@@E@G@@G@@G@G@@G@@G@GHBGHBG@GHBGHBG@GJ*GJ*G@GHBGHBG@GHBGHBG@GB*GJ G@GB*GJ G@
f9a8e3c20143 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1862
diff changeset
   888
G@@G@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@<G <<G <<G ?<G =>O1?>O1????<>O1<>O1><G <<G ><G <<G ?@@@A@@@@@@@@@@@@@@@A') ; yourself); yourself]
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   889
!
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   890
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   891
iconDistributeV
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   892
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   893
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   894
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   895
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   896
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   897
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   898
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   899
     self iconDistributeV inspect
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   900
     ImageEditor openOnClass:self andSelector:#iconDistributeV
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   901
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   902
    "
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   903
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   904
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   905
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   906
    ^Icon
2268
52429abf9eab *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2264
diff changeset
   907
        constantNamed:'UIPainter class iconDistributeV'
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
   908
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1863
f9a8e3c20143 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1862
diff changeset
   909
@@@@@@@@@@UUUT@@@@???4@@@@@@@@@@@@@*(@@@@@JB@@@@@@JB@@@@@@JB@@@@@@J*(@@@@@@@@@@@@@UUUT@@@@???4@@@@@@@@@@@@J*(@@@@@JB@@@@
f9a8e3c20143 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1862
diff changeset
   910
@@JB@@@@@@@B@@@@@@@*(@@@@@@@@@@@@@UUUT@@@@???4@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A??@A??@A??CA??@@G0@@A@@@A@@@A@@@G0CA??@A??@A??@A??@@G0C@A@@@A@@@A@@@G0AA??AA??@A??@A??B') ; yourself); yourself]
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   911
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   912
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   913
iconResizeB
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   914
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   915
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   916
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   917
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   918
     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
   919
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   920
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   921
     self iconResizeB inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   922
     ImageEditor openOnClass:self andSelector:#iconResizeB
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   923
     Icon flushCachedIcons
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   924
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   925
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   926
    <resource: #image>
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   927
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   928
    ^Icon
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   929
        constantNamed:'UIPainter class iconResizeB'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   930
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   931
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@M@@@@@@@M@@@@@@@M@M@@@@@M@M@@@@@M@M@@@@@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@@@@@@M@@
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   932
@@@@@E@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G A@G @@G'' @G'' @G''#@G'' G''''"G'''' G''''!!G'''' G'''' O?7 G'''' CCG O??0O??0@@@A@@@@@@@@') ; yourself); yourself]
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   933
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   934
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   935
iconResizeL
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   936
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   937
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   938
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   939
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   940
     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
   941
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   942
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   943
     self iconResizeL inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   944
     ImageEditor openOnClass:self andSelector:#iconResizeL
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   945
     Icon flushCachedIcons
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   946
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   947
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   948
    <resource: #image>
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   949
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   950
    ^Icon
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   951
        constantNamed:'UIPainter class iconResizeL'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   952
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   953
@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(AUUU@@@(C???@@@(@@@@@E@(@@@@@@@(@@@@@@
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   954
@(@@@@@@@(AU@@@@@(C?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@FP@@F?? G?? G?? F?? FP@@FP@@F? @G? @G? @F? @FP@@@@@@@@@@') ; yourself); yourself]
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   955
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   956
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   957
iconResizeLR
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   958
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   959
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   960
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   961
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   962
     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
   963
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   964
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   965
     self iconResizeLR inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   966
     ImageEditor openOnClass:self andSelector:#iconResizeLR
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   967
     Icon flushCachedIcons
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   968
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   969
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   970
    <resource: #image>
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   971
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   972
    ^Icon
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   973
        constantNamed:'UIPainter class iconResizeLR'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   974
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   975
@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(???2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(AUTB @@(C?<B @@(@@@B E@(@@@B @@(@@@B @
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   976
@(@@@B @@(AUTB @@(C?<B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A FPI F?= G?? G?? F?= FPI FPI F?= G?? G?? F?= FPI @@@@@@@@') ; yourself); yourself]
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   977
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   978
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   979
iconResizeR
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   980
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   981
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   982
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   983
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   984
     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
   985
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   986
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   987
     self iconResizeR inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   988
     ImageEditor openOnClass:self andSelector:#iconResizeR
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   989
     Icon flushCachedIcons
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   990
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   991
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   992
    <resource: #image>
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   993
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   994
    ^Icon
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   995
        constantNamed:'UIPainter class iconResizeR'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   996
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   997
@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@???R @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUTB @@O??<B @@@@@@B E@@@@@B @@@@@@B @
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   998
@@@@@B @@@@ETB @@@@O<B @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@I G?= G?? G?? G?= @@I @@I @G= @G? @G? @G= @@I @@@@@@@@') ; yourself); yourself]
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
   999
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1000
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1001
iconResizeT
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1002
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1003
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1004
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1005
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1006
     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
  1007
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1008
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1009
     self iconResizeT inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1010
     ImageEditor openOnClass:self andSelector:#iconResizeT
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1011
     Icon flushCachedIcons
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1012
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1013
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1014
    <resource: #image>
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1015
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1016
    ^Icon
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1017
        constantNamed:'UIPainter class iconResizeT'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1018
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1019
@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@E@@@@@@@M@@@M@M@M@@@M@M@M@@@M@M@M@@@M@M@M@@@@@M@M@@@@@M@M@@@@@M@M@@
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1020
@@@M@M@@@@@M@@@@@@@M@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@AO??0O??0CCG G'''' O?7 G'''' G'''' G''''!!G'''' G''''"@G'' @G''#@G'' @G'' @G @@G A@@@@@@@@@@@@') ; yourself); yourself]
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1021
!
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1022
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1023
iconResizeTB
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1024
    "This resource specification was automatically generated
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1025
     by the ImageEditor of ST/X."
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1026
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1027
    "Do not manually edit this!! If it is corrupted,
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1028
     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
  1029
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1030
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1031
     self iconResizeTB inspect
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1032
     ImageEditor openOnClass:self andSelector:#iconResizeTB
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1033
     Icon flushCachedIcons
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1034
    "
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1035
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1036
    <resource: #image>
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1037
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1038
    ^Icon
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1039
        constantNamed:'UIPainter class iconResizeTB'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1040
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1041
@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@G@@@@@@@G@@@@@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@@@@@@
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  1042
@G@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@B@@@@@@@BO??0O??2G#C@G'''' G/?0G''''#G'''' G'''' G'''' G'''' G''''"G/?0G'''' G#C@O??1O??0@@@A@@@B@@@@') ; yourself); yourself]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  1043
! !
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  1044
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1045
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1046
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1047
dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1048
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1049
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1050
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1051
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1052
     the UIPainter may not be able to read the specification."
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1053
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1054
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1055
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1056
     UIPainter new openInterface:#dialogSpecForDefiningClassAndSelector
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1057
    "
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1058
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1059
    <resource: #canvas>
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1060
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1061
    ^
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1062
     
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1063
       #(#FullSpec
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1064
          #window: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1065
           #(#WindowSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1066
              #name: 'GUI Painter'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1067
              #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
  1068
              #label: 'GUI Painter'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1069
              #min: #(#Point 350 160)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1070
              #max: #(#Point 500 160)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1071
              #bounds: #(#Rectangle 291 130 638 290)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1072
              #usePreferredExtent: false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1073
          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1074
          #component: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1075
           #(#SpecCollection
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1076
              #collection: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1077
               #(
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1078
                 #(#FramedBoxSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1079
                    #name: 'FramedBox'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1080
                    #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
  1081
                    #component: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1082
                     #(#SpecCollection
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1083
                        #collection: 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1084
                         #(
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1085
                           #(#LabelSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1086
                              #name: 'selectorLabel'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1087
                              #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
  1088
                              #label: 'Selector:'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1089
                              #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1090
                              #adjust: #right
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1091
                              #resizeForLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1092
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1093
                           #(#InputFieldSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1094
                              #name: 'methodNameField'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1095
                              #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
  1096
                              #tabable: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1097
                              #model: #methodNameChannel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1098
                              #group: #inputGroup
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1099
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1100
                           #(#LabelSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1101
                              #name: 'classLabel'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1102
                              #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
  1103
                              #label: 'Class:'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1104
                              #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1105
                              #adjust: #right
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1106
                              #resizeForLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1107
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1108
                           #(#InputFieldSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1109
                              #name: 'classNameField'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1110
                              #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
  1111
                              #tabable: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1112
                              #model: #classNameChannel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1113
                              #group: #inputGroup
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1114
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1115
                           #(#LabelSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1116
                              #name: 'superClassLabel'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1117
                              #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
  1118
                              #label: 'Superclass:'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1119
                              #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1120
                              #adjust: #right
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1121
                              #resizeForLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1122
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1123
                           #(#ComboBoxSpec
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1124
                              #name: 'superclassNameComboBox'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1125
                              #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
  1126
                              #tabable: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1127
                              #model: #superclassNameChannel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1128
                              #comboList: #superclassNameDefaults
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1129
                          )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1130
                        )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1131
                    )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1132
                    #label: 'Define Class And Selector'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1133
                    #labelPosition: #topLeft
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1134
                    #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1135
                )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1136
                 #(#UISubSpecification
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1137
                    #name: 'subSpec'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1138
                    #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
  1139
                    #majorKey: #ToolApplicationModel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1140
                    #minorKey: #windowSpecForCommitWithoutChannels
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1141
                )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1142
              )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  1143
          )
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1144
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1145
950
3e227dc788be fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
  1146
    "Modified: / 13.8.1998 / 19:59:44 / cg"
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1147
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1148
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1149
dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1150
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1151
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1152
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1153
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1154
     the UIPainter may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1155
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1156
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1157
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1158
     UIPainter new openInterface:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1159
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1160
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1161
    <resource: #canvas>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1162
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1163
    ^ 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1164
     #(FullSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1165
        name: dialogSpecForDefiningGridParameters
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1166
        window: 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1167
       (WindowSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1168
          label: 'GUI Painter'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1169
          name: 'GUI Painter'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1170
          min: (Point 300 200)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1171
          max: (Point 300 200)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1172
          bounds: (Rectangle 16 46 298 244)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1173
        )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1174
        component: 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1175
       (SpecCollection
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1176
          collection: (
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1177
           (FramedBoxSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1178
              label: 'Grid Parameter'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1179
              name: 'FramedBox'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1180
              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
  1181
              labelPosition: topLeft
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1182
              translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1183
              component: 
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1184
             (SpecCollection
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1185
                collection: (
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1186
                 (CheckBoxSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1187
                    label: 'Show Grid'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1188
                    name: 'ShowGridCheckBox'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1189
                    layout: (Point 13 14)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1190
                    model: showGrid
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1191
                    translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1192
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1193
                 (CheckBoxSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1194
                    label: 'Align To Grid'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1195
                    name: 'AlignCheckBox'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1196
                    layout: (Point 13 42)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1197
                    model: alignToGrid
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1198
                    translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1199
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1200
                 (LabelSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1201
                    label: 'Horizontal Pixels:'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1202
                    name: 'HorizontalPixelsLabel'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1203
                    layout: (AlignmentOrigin 138 0 89 0 1 0.5)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1204
                    translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1205
                    resizeForLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1206
                    adjust: right
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1207
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1208
                 (InputFieldSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1209
                    name: 'HorizontalPixelsField'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1210
                    layout: (LayoutFrame 144 0 77 0 197 0 99 0)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1211
                    model: hspace
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1212
                    group: inputGroup
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1213
                    type: numberOrNil
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1214
                    acceptOnPointerLeave: false
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1215
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1216
                 (LabelSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1217
                    label: 'Vertical Pixels:'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1218
                    name: 'VerticalPixelsLabel'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1219
                    layout: (AlignmentOrigin 139 0 114 0 1 0.5)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1220
                    translateLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1221
                    resizeForLabel: true
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1222
                    adjust: right
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1223
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1224
                 (InputFieldSpec
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1225
                    name: 'VerticalPixelsField'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1226
                    layout: (LayoutFrame 144 0 102 0 197 0 124 0)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1227
                    model: vspace
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1228
                    group: inputGroup
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1229
                    type: numberOrNil
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1230
                    acceptOnPointerLeave: false
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1231
                  )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1232
                 )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1233
               
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1234
              )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1235
            )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1236
           (UISubSpecification
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1237
              name: 'subSpec'
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1238
              layout: (LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1239
              majorKey: ToolApplicationModel
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1240
              minorKey: windowSpecForCommitWithoutChannels
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1241
            )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1242
           )
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1243
         
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1244
        )
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1245
      )
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1246
!
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  1247
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1248
dialogSpecForDefiningPortAndPageName
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1249
    "This resource specification was automatically generated
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1250
     by the UIPainter of ST/X."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1251
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1252
    "Do not manually edit this!! If it is corrupted,
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1253
     the UIPainter may not be able to read the specification."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1254
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1255
    "
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1256
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningPortAndPageName
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1257
     UIPainter new openInterface:#dialogSpecForDefiningPortAndPageName
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1258
    "
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1259
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1260
    <resource: #canvas>
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1261
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1262
    ^ 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1263
     #(FullSpec
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1264
        name: dialogSpecForDefiningPortAndPageName
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1265
        window: 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1266
       (WindowSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1267
          label: 'GUI Painter'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1268
          name: 'GUI Painter'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1269
          min: (Point 350 140)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1270
          max: (Point 500 140)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1271
          bounds: (Rectangle 0 0 346 138)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1272
        )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1273
        component: 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1274
       (SpecCollection
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1275
          collection: (
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1276
           (FramedBoxSpec
2261
60725fccd12d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2258
diff changeset
  1277
              label: 'Define Service and Pagename'
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1278
              name: 'FramedBox'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1279
              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
  1280
              labelPosition: topLeft
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1281
              translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1282
              component: 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1283
             (SpecCollection
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1284
                collection: (
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1285
                 (LabelSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1286
                    label: 'Service (or Port):'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1287
                    name: 'portLabel'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1288
                    layout: (AlignmentOrigin 67 0.11 29 0 1 0.5)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1289
                    translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1290
                    resizeForLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1291
                    adjust: right
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1292
                  )
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1293
                 (ComboBoxSpec
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1294
                    name: 'ComboBox1'
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1295
                    layout: (LayoutFrame 70 0.11 18 0 4 1.0 40 0)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1296
                    model: serviceOrPortNameChannel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1297
                    acceptOnPointerLeave: false
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  1298
                    comboList: runningServerPorts
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1299
                  )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1300
                 (LabelSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1301
                    label: 'Pagename:'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1302
                    name: 'pageNameLabel'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1303
                    layout: (AlignmentOrigin 67 0.11 54 0 1 0.5)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1304
                    translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1305
                    resizeForLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1306
                    adjust: right
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1307
                  )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1308
                 (InputFieldSpec
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1309
                    name: 'pageNameNameField'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1310
                    layout: (LayoutFrame 70 0.11 43 0 4 1.0 65 0)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1311
                    tabable: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1312
                    model: pageNameNameChannel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1313
                    group: inputGroup
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1314
                    acceptOnPointerLeave: false
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1315
                  )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1316
                 )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1317
               
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1318
              )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1319
            )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1320
           (UISubSpecification
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1321
              name: 'subSpec'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1322
              layout: (LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1323
              majorKey: ToolApplicationModel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1324
              minorKey: windowSpecForCommitWithoutChannels
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1325
            )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1326
           )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1327
         
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1328
        )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1329
      )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1330
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1331
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1332
windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1333
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1334
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1335
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1336
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1337
     the UIPainter may not be able to read the specification."
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1338
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1339
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1340
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1341
     UIPainter new openInterface:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1342
     UIPainter open
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1343
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1344
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1345
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1346
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1347
    ^ 
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1348
     #(FullSpec
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1349
        name: windowSpec
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1350
        window: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1351
       (WindowSpec
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1352
          label: 'GUI Painter'
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1353
          name: 'GUI Painter'
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1354
          min: (Point 560 460)
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1355
          bounds: (Rectangle 0 0 608 523)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1356
          menu: menu
2157
76aadc90818e mask of icons
Claus Gittinger <cg@exept.de>
parents: 2138
diff changeset
  1357
          icon: defaultIcon
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1358
        )
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1359
        component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1360
       (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1361
          collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1362
           (ViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1363
              name: 'mainPanel'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1364
              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
  1365
              component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1366
             (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1367
                collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1368
                 (ViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1369
                    name: 'ToolBar'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1370
                    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
  1371
                    visibilityChannel: toolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1372
                    component: 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1373
                   (SpecCollection
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1374
                      collection: (
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1375
                       (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1376
                          label: 'hideToolBarIcon'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1377
                          name: 'HideToolBarButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1378
                          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
  1379
                          activeHelpKey: hideToolBar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1380
                          hasCharacterOrientedLabel: false
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1381
                          translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1382
                          model: hideToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1383
                          postBuildCallback: hideToolBarButtonCreated:
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1384
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1385
                       (MenuPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1386
                          name: 'menuToolbarView'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1387
                          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
  1388
                          visibilityChannel: toolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1389
                          menu: menuToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1390
                          textDefault: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1391
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1392
                       )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1393
                     
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1394
                    )
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1395
                  )
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1396
                 (ViewSpec
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1397
                    name: 'EditToolBar'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1398
                    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
  1399
                    visibilityChannel: editToolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1400
                    component: 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1401
                   (SpecCollection
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1402
                      collection: (
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1403
                       (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1404
                          label: 'hideToolBarIcon'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1405
                          name: 'HideEditToolBarButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1406
                          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
  1407
                          activeHelpKey: hideToolBar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1408
                          hasCharacterOrientedLabel: false
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1409
                          translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1410
                          model: hideEditToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1411
                          postBuildCallback: hideToolBarButtonCreated:
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1412
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1413
                       (MenuPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1414
                          name: 'EditToolBar1'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1415
                          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
  1416
                          visibilityChannel: editToolBarVisibleHolder
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1417
                          menu: editToolbar
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1418
                          textDefault: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1419
                        )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1420
                       )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1421
                     
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1422
                    )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1423
                  )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1424
                 (VariableHorizontalPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1425
                    name: 'Painter'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1426
                    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
  1427
                    level: 1
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1428
                    component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1429
                   (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1430
                      collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1431
                       (ArbitraryComponentSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1432
                          name: 'treeView'
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1433
                          tabable: true
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1434
                          menu: menuEdit
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1435
                          hasHorizontalScrollBar: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1436
                          hasVerticalScrollBar: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1437
                          miniScrollerHorizontal: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1438
                          miniScrollerVertical: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1439
                          hasBorder: false
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1440
                          component: treeView
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1441
                        )
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1442
                       (ViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1443
                          name: 'specHolderView'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1444
                          level: 0
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1445
                          component: 
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1446
                         (SpecCollection
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1447
                            collection: (
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1448
                             (MenuPanelSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1449
                                name: 'menuToolbar2View'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1450
                                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
  1451
                                level: 0
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1452
                                tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1453
                                menu: menuToolbar2
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1454
                              )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1455
                             (NoteBookViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1456
                                name: 'noteBook'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1457
                                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
  1458
                                level: 0
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1459
                                enableChannel: enableChannel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1460
                                tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1461
                                model: tabModel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1462
                                menu: tabList
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  1463
                                translateLabel: true
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1464
                                canvas: noteBookView
1457
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1465
                              )
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1466
                             (HorizontalPanelViewSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1467
                                name: 'HorizontalPanel1'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1468
                                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
  1469
                                horizontalLayout: fit
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1470
                                verticalLayout: fit
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1471
                                horizontalSpace: 3
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1472
                                verticalSpace: 3
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1473
                                reverseOrderIfOKAtLeft: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1474
                                component: 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1475
                               (SpecCollection
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1476
                                  collection: (
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1477
                                   (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1478
                                      label: 'Cancel'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1479
                                      name: 'cancelButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1480
                                      activeHelpKey: commitCancel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1481
                                      translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1482
                                      tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1483
                                      model: cancel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1484
                                      enableChannel: modifiedChannel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1485
                                      extent: (Point 146 24)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1486
                                    )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1487
                                   (ActionButtonSpec
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1488
                                      label: 'OK'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1489
                                      name: 'acceptButton'
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1490
                                      activeHelpKey: commitOK
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1491
                                      translateLabel: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1492
                                      tabable: true
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1493
                                      model: accept
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1494
                                      enableChannel: modifiedChannel
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1495
                                      extent: (Point 146 24)
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1496
                                    )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1497
                                   )
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1498
                                 
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1499
                                )
1457
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1500
                              )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1501
                             )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
  1502
                           
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1503
                          )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1504
                        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1505
                       )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1506
                     
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1507
                    )
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1508
                    handles: (Any 0.5 1.0)
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1509
                  )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1510
                 )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1511
               
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1512
              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1513
            )
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1514
           (UISubSpecification
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1515
              name: 'infoBarSubSpec'
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1516
              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
  1517
              level: 1
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1518
              majorKey: ToolApplicationModel
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  1519
              minorKey: windowSpecForInfoBar
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1520
            )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
  1521
           )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
  1522
         
2531
dcfbf5a1e032 oops - component \"mainPanel\" IS required
Claus Gittinger <cg@exept.de>
parents: 2529
diff changeset
  1523
        )
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1524
      )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1525
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1526
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1527
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1528
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1529
cutCopyPasteMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1530
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1531
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1532
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1533
    "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
  1534
     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
  1535
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1536
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1537
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1538
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1539
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1540
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1541
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1542
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1543
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1544
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1545
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1546
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1547
            activeHelpKey: editCut
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1548
            enabled: canCutHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1549
            label: 'Cut'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1550
            itemValue: deleteSelection
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1551
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1552
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1553
            labelImage: (ResourceRetriever ToolbarIconLibrary cutWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1554
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1555
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1556
            activeHelpKey: editCopy
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1557
            enabled: canCopyHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1558
            label: 'Copy'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1559
            itemValue: copySelection
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1560
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1561
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1562
            labelImage: (ResourceRetriever ToolbarIconLibrary copyWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1563
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1564
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1565
            activeHelpKey: editPaste
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1566
            enabled: canPasteKeepingLayoutHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1567
            label: 'Paste with Layout'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1568
            itemValue: pasteWithLayout
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1569
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1570
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1571
            labelImage: (ResourceRetriever ToolbarIconLibrary pasteWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1572
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1573
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1574
            activeHelpKey: editDelete
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1575
            enabled: canCutHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1576
            label: 'Delete'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1577
            itemValue: deleteTotalSelection
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1578
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1579
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1580
            isVisible: false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1581
            labelImage: (ResourceRetriever ToolbarIconLibrary deleteWidgetIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1582
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1583
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1584
            label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1585
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1586
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1587
            activeHelpKey: editUndo
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1588
            enabled: hasUndoHistoryHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1589
            label: 'Undo'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1590
            itemValue: undoLast
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1591
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1592
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1593
            labelImage: (ResourceRetriever ToolbarIconLibrary undoIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1594
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1595
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1596
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1597
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1598
      )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1599
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1600
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1601
editToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1602
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1603
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1604
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1605
    "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
  1606
     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
  1607
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1608
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1609
     MenuEditor new openOnClass:UIPainter andSelector:#editToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1610
     (Menu new fromLiteralArrayEncoding:(UIPainter editToolbar)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1611
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1612
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1613
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1614
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1615
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1616
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1617
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1618
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1619
            label: 'moveItems'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1620
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1621
            submenuChannel: moveInListMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1622
            isMenuSlice: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1623
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1624
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1625
            label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1626
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1627
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1628
            label: 'gridItems'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1629
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1630
            submenuChannel: gridMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1631
            isMenuSlice: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1632
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1633
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1634
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1635
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1636
      )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1637
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1638
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1639
gridMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1640
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1641
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1642
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1643
    "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
  1644
     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
  1645
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1646
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1647
     MenuEditor new openOnClass:Workflow::WorksheetEditor andSelector:#zoomMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1648
     (Menu new fromLiteralArrayEncoding:(Workflow::WorksheetEditor zoomMenuSlice)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1649
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1650
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1651
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1652
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1653
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1654
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1655
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1656
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1657
            label: 'ShowGrid'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1658
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1659
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1660
            indication: gridShownHolder
2522
45f29cf0cc5e grid icons
Claus Gittinger <cg@exept.de>
parents: 2512
diff changeset
  1661
            labelImage: (ResourceRetriever ToolbarIconLibrary gridIcon)
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1662
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1663
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1664
            label: 'AlignToGrid'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1665
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1666
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1667
            indication: alignToGridHolder
2522
45f29cf0cc5e grid icons
Claus Gittinger <cg@exept.de>
parents: 2512
diff changeset
  1668
            labelImage: (ResourceRetriever ToolbarIconLibrary gridAlignIcon)
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1669
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1670
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1671
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1672
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1673
      )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1674
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1675
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1676
menu
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1677
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1678
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1679
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1680
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1681
     the MenuEditor may not be able to read the specification."
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1682
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1683
    "
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1684
     MenuEditor new openOnClass:UIPainter andSelector:#menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1685
     (Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1686
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1687
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1688
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1689
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1690
    ^ 
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1691
     #(Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1692
        (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1693
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1694
            label: '&File'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1695
            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
  1696
            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
  1697
            keepLinkedMenu: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1698
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1699
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1700
            label: 'Edit'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1701
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1702
            submenuChannel: menuEdit
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1703
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1704
         (MenuItem
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1705
            label: 'View'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1706
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1707
            submenu: 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1708
           (Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1709
              (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1710
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1711
                  activeHelpKey: settingsCanvas
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1712
                  label: 'Canvas'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1713
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1714
                  indication: painterShown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1715
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1716
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1717
                  activeHelpKey: settingsGallery
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1718
                  label: 'Gallery'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1719
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1720
                  indication: galleryShown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1721
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1722
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1723
                  label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1724
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1725
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1726
                  label: 'Toolbar'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1727
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1728
                  hideMenuOnActivated: false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1729
                  indication: toolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1730
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1731
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1732
                  label: 'Editor Toolbar'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1733
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1734
                  hideMenuOnActivated: false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1735
                  indication: editToolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1736
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1737
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1738
                  label: '-'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1739
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1740
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1741
                  label: 'Load Sketch as Background...'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1742
                  itemValue: useSketch
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1743
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1744
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1745
               (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1746
                  label: 'Load Image as Background...'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1747
                  itemValue: useBackgroundImage
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1748
                  translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1749
                )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1750
               )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1751
              nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1752
              nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1753
            )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1754
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  1755
         (MenuItem
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1756
            label: 'Align'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1757
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1758
            submenuChannel: menuAlign
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1759
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1760
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1761
            label: 'Generate'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1762
            translateLabel: true
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  1763
            isVisible: isNotEditingSpecOnly
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1764
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1765
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1766
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1767
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1768
                  activeHelpKey: generateAspectMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1769
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1770
                  label: 'Aspect Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1771
                  itemValue: doGenerateAspectMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1772
                  translateLabel: true
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1773
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1774
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1775
                  activeHelpKey: generateAspectMethodFor
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1776
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1777
                  label: 'Aspect Method For...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1778
                  itemValue: doGenerateAspectMethodFor
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1779
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1780
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1781
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1782
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1783
                  label: 'Menu Stub Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1784
                  itemValue: doGenerateMenuMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1785
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1786
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1787
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1788
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1789
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1790
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1791
                  activeHelpKey: generateHookMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1792
                  enabled: hasSpecClass
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1793
                  label: 'Hook Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1794
                  itemValue: doGenerateHookMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1795
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1796
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1797
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1798
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1799
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1800
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1801
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1802
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1803
            label: 'Test'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1804
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1805
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1806
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1807
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1808
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1809
                  activeHelpKey: testStartApplication
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1810
                  label: 'Start Application'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1811
                  itemValue: doStartApplication
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1812
                  translateLabel: true
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  1813
                  isVisible: isNotEditingSpecOnly
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1814
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1815
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1816
                  label: '-'
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  1817
                  isVisible: isNotEditingSpecOnly
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1818
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1819
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1820
                  activeHelpKey: testGeometryTestMode
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1821
                  label: 'Geometry Test Mode'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1822
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1823
                  indication: testMode:
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1824
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1825
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1826
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1827
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1828
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1829
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1830
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1831
            label: 'Settings'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1832
            translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1833
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1834
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1835
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1836
               (MenuItem
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1837
                  activeHelpKey: settingsAspectsAsInstances
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1838
                  label: 'Aspects as InstanceVariables'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1839
                  translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1840
                  isVisible: isNotEditingSpecOnly
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1841
                  indication: generateAspectsAsInstanceVariables:
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1842
                )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1843
               (MenuItem
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1844
                  activeHelpKey: settingsRedefineAspectMethods
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1845
                  label: 'Redefine Aspect Methods'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1846
                  translateLabel: true
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1847
                  isVisible: isNotEditingSpecOnly
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1848
                  indication: redefineAspectMethods:
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1849
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1850
               (MenuItem
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1851
                  activeHelpKey: settingsGenerateCommentedCode
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1852
                  label: 'Generate Commented Code'
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1853
                  translateLabel: true
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  1854
                  isVisible: isNotEditingSpecOnly
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  1855
                  indication: generateCommentedCode:
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1856
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1857
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1858
                  label: 'AutoAccept on Selection-Change '
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1859
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1860
                  indication: autoAcceptOnSelectionChange
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1861
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1862
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1863
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1864
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1865
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1866
                  activeHelpKey: settingsUndoManager
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1867
                  enabled: hasUndoHistory
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1868
                  label: 'Undo Manager...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1869
                  itemValue: openUndoMenu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1870
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1871
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1872
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1873
                  activeHelpKey: settingsGridManager
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1874
                  label: 'Grid Manager...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1875
                  itemValue: doDefineGrid
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1876
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1877
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1878
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1879
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1880
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1881
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1882
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1883
         (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1884
            label: 'History'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1885
            translateLabel: true
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  1886
            isVisible: isStandAlone
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1887
            submenuChannel: menuHistory
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1888
          )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1889
         (MenuItem
2138
55f338a77eb0 support '?' as help (for now: controlled by resources)
Claus Gittinger <cg@exept.de>
parents: 2124
diff changeset
  1890
            label: 'MENU_Help'
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1891
            translateLabel: true
2124
214c0d1d3c5a #conditionalRight
Claus Gittinger <cg@exept.de>
parents: 2117
diff changeset
  1892
            startGroup: conditionalRight
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1893
            submenu: 
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1894
           (Menu
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1895
              (
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1896
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1897
                  activeHelpKey: helpTutorial
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1898
                  label: 'Tutorial'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1899
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1900
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1901
                  argument: 'tools/uipainter/TOP.html'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1902
                )
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1903
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1904
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1905
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1906
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1907
                  activeHelpKey: helpFunctions
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1908
                  label: 'Functions'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1909
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1910
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1911
                  argument: 'tools/uipainter/Functions.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1912
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1913
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1914
                  activeHelpKey: helpExamples
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1915
                  label: 'Examples'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1916
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1917
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1918
                  argument: 'tools/uipainter/Examples.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1919
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1920
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1921
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1922
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1923
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1924
                  activeHelpKey: helpHelpTool
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1925
                  label: 'Help Tool'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1926
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1927
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1928
                  argument: 'tools/uipainter/HelpTool.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1929
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1930
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1931
                  activeHelpKey: helpLayoutTool
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1932
                  label: 'Layout Tool'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1933
                  itemValue: openHTMLDocument:
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1934
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1935
                  argument: 'tools/uipainter/LayoutTool.html'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1936
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1937
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1938
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1939
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1940
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1941
                  activeHelpKey: helpSelectedWidget
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1942
                  label: 'Selected Widget'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1943
                  itemValue: doOpenWidgetDocumentation
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1944
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1945
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1946
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1947
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1948
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1949
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1950
                  activeHelpKey: helpShowHelp
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1951
                  label: 'Show Help Texts'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1952
                  translateLabel: true
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1953
                  indication: showingHelp:
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1954
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1955
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1956
                  label: '-'
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1957
                )
1775
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1958
               (MenuItem
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1959
                  activeHelpKey: aboutThisAppliaction
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1960
                  label: 'About this Application...'
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1961
                  itemValue: openAboutThisApplication
695f10f213d1 no flyByHelp for menu
ca
parents: 1772
diff changeset
  1962
                  translateLabel: true
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1963
                )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1964
               )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1965
              nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1966
              nil
1498
817cce99fc96 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1487
diff changeset
  1967
            )
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1968
          )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1969
         )
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1970
        nil
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  1971
        nil
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1972
      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1973
!
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1974
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1975
menuAlign
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1976
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1977
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1978
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  1979
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1980
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1981
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1982
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1983
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlign
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1984
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1985
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1986
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1987
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1988
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1989
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1990
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1991
        (
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1992
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1993
            activeHelpKey: alignSelectionLeft
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1994
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1995
            label: 'Left'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1996
            itemValue: alignSelectionLeft
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1997
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1998
            labelImage: (ResourceRetriever UIPainter iconAlignL 'Left')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  1999
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2000
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2001
            activeHelpKey: alignSelectionRight
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2002
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2003
            label: 'Right'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2004
            itemValue: alignSelectionRight
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2005
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2006
            labelImage: (ResourceRetriever UIPainter iconAlignR 'Right')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2007
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2008
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2009
            activeHelpKey: alignSelectionTop
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2010
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2011
            label: 'Top'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2012
            itemValue: alignSelectionTop
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2013
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2014
            labelImage: (ResourceRetriever UIPainter iconAlignT 'Top')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2015
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2016
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2017
            activeHelpKey: alignSelectionBottom
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2018
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2019
            label: 'Bottom'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2020
            itemValue: alignSelectionBottom
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2021
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2022
            labelImage: (ResourceRetriever UIPainter iconAlignB 'Bottom')
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2023
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2024
         (MenuItem
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2025
            label: '-'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2026
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2027
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2028
            activeHelpKey: alignResizeSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2029
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2030
            label: 'Resize Left'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2031
            itemValue: alignResizeSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2032
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2033
            labelImage: (ResourceRetriever UIPainter iconResizeL 'Resize Left')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2034
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2035
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2036
            activeHelpKey: alignResizeSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2037
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2038
            label: 'Resize Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2039
            itemValue: alignResizeSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2040
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2041
            labelImage: (ResourceRetriever UIPainter iconResizeR 'Resize Right')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2042
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2043
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2044
            activeHelpKey: alignResizeSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2045
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2046
            label: 'Resize Top'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2047
            itemValue: alignResizeSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2048
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2049
            labelImage: (ResourceRetriever UIPainter iconResizeT 'Resize Top')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2050
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2051
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2052
            activeHelpKey: alignResizeSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2053
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2054
            label: 'Resize Bottom'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2055
            itemValue: alignResizeSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2056
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2057
            labelImage: (ResourceRetriever UIPainter iconResizeB 'Resize Bottom')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2058
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2059
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2060
            activeHelpKey: alignSelectionLeftAndRight
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  2061
            enabled: canResizeSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2062
            label: 'Left && Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2063
            itemValue: alignSelectionLeftAndRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2064
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2065
            labelImage: (ResourceRetriever UIPainter iconResizeLR 'Left && Right')
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2066
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2067
         (MenuItem
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2068
            activeHelpKey: alignSelectionTopAndBottom
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  2069
            enabled: canResizeSelection
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2070
            label: 'Top && Bottom'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2071
            itemValue: alignSelectionTopAndBottom
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2072
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2073
            labelImage: (ResourceRetriever UIPainter iconResizeTB 'Top && Bottom')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2074
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2075
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2076
            label: '-'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2077
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2078
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2079
            activeHelpKey: alignSelectionCenterHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2080
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2081
            label: 'Center Horizontal'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2082
            itemValue: alignSelectionCenterHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2083
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2084
            labelImage: (ResourceRetriever UIPainter iconCenterH 'Center Horizontal')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2085
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2086
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2087
            activeHelpKey: centerSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2088
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2089
            label: 'Center Horizontal in Frame'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2090
            itemValue: centerSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2091
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2092
            labelImage: (ResourceRetriever UIPainter iconCenterHInFrame 'Center Horizontal in Frame')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2093
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2094
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2095
            activeHelpKey: alignSelectionCenterVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2096
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2097
            label: 'Center Vertical'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2098
            itemValue: alignSelectionCenterVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2099
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2100
            labelImage: (ResourceRetriever UIPainter iconCenterV 'Center Vertical')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2101
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2102
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2103
            activeHelpKey: centerSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2104
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2105
            label: 'Center Vertical in Frame'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2106
            itemValue: centerSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2107
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2108
            labelImage: (ResourceRetriever UIPainter iconCenterVInFrame 'Center Vertical in Frame')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2109
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2110
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2111
            label: '-'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2112
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2113
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2114
            activeHelpKey: spreadSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2115
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2116
            label: 'Distribute Horizontal'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2117
            itemValue: spreadSelectionHor
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2118
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2119
            labelImage: (ResourceRetriever UIPainter iconDistributeH 'Distribute Horizontal')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2120
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2121
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2122
            activeHelpKey: spreadSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2123
            enabled: canMoveOrAlignSelection
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2124
            label: 'Distribute Vertical'
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2125
            itemValue: spreadSelectionVer
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2126
            translateLabel: true
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2127
            labelImage: (ResourceRetriever UIPainter iconDistributeV 'Distribute Vertical')
1862
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2128
          )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2129
         )
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2130
        nil
Claus Gittinger <cg@exept.de>
parents: 1851
diff changeset
  2131
        nil
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2132
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2133
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2134
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2135
menuEdit
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2136
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2137
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2138
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2139
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2140
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2141
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2142
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2143
     MenuEditor new openOnClass:UIPainter andSelector:#menuEdit
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2144
     (Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2145
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2146
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2147
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2148
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2149
    ^ 
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2150
     #(Menu
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2151
        (
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2152
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2153
            activeHelpKey: editUndo
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2154
            enabled: hasUndoHistory
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2155
            label: 'Undo'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2156
            itemValue: undoLast
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2157
            nameKey: undo
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2158
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2159
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2160
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2161
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2162
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2163
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2164
            activeHelpKey: editCut
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2165
            enabled: canCutHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2166
            label: 'Cut'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2167
            itemValue: deleteSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2168
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2169
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2170
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2171
            activeHelpKey: editCopy
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2172
            enabled: canCopyHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2173
            label: 'Copy'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2174
            itemValue: copySelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2175
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2176
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2177
         (MenuItem
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2178
            activeHelpKey: editPaste
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2179
            enabled: canPasteHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2180
            label: 'Paste'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2181
            itemValue: pasteBuffer
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2182
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2183
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2184
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2185
            activeHelpKey: pasteWithLayout
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2186
            enabled: canPasteKeepingLayoutHolder
2425
22db8982a5c9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2411
diff changeset
  2187
            label: 'Paste with Layout'
2370
ce1233002cf8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2361
diff changeset
  2188
            itemValue: pasteWithLayout
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2189
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2190
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2191
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2192
            activeHelpKey: editPaste
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2193
            enabled: canPasteKeepingLayoutHolder
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2194
            label: 'Paste Keeping Absolute Position'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2195
            itemValue: pasteKeepingPosition
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2196
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2197
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2198
         (MenuItem
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2199
            activeHelpKey: editDelete
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2200
            enabled: canCutHolder
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2201
            label: 'Delete'
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2202
            itemValue: deleteTotalSelection
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2203
            translateLabel: true
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2204
          )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2205
         (MenuItem
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2206
            activeHelpKey: replaceBy
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2207
            enabled: canReplaceSelection
2426
51e741037ce6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2425
diff changeset
  2208
            label: 'Replace By...'
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2209
            itemValue: doAskAndReplaceWidgetBy
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2210
            translateLabel: true
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2211
          )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2212
         (MenuItem
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2213
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2214
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2215
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2216
            enabled: canMoveSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2217
            label: 'Move'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2218
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2219
            submenuChannel: menuMove
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2220
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2221
         (MenuItem
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2222
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2223
            label: 'Align'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2224
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2225
            submenuChannel: menuAlign
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2226
          )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2227
         (MenuItem
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2228
            enabled: hasSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2229
            label: 'Dimension'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2230
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2231
            submenu: 
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2232
           (Menu
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2233
              (
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2234
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2235
                  activeHelpKey: editDimensionCopyLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2236
                  enabled: hasSingleSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2237
                  label: 'Copy Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2238
                  itemValue: copyLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2239
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2240
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2241
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2242
                  activeHelpKey: editDimensionPasteLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2243
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2244
                  label: 'Paste Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2245
                  itemValue: pasteLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2246
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2247
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2248
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2249
                  activeHelpKey: editDimensionExchangeLayouts
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2250
                  enabled: canExchangeSelectionLayouts
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2251
                  label: 'Exchange Layouts'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2252
                  itemValue: exchangeLayouts
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2253
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2254
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2255
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2256
                  label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2257
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2258
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2259
                  activeHelpKey: editDimensionCopyExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2260
                  enabled: hasSingleSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2261
                  label: 'Copy Extent'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2262
                  itemValue: copyExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2263
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2264
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2265
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2266
                  activeHelpKey: editDimensionPasteExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2267
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2268
                  label: 'Paste Extent'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2269
                  itemValue: pasteExtent
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2270
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2271
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2272
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2273
                  activeHelpKey: editDimensionPasteWidth
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2274
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2275
                  label: 'Paste Width'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2276
                  itemValue: pasteWidth
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2277
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2278
                )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2279
               (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2280
                  activeHelpKey: editDimensionPasteHeight
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2281
                  enabled: canMoveOrAlignSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2282
                  label: 'Paste Height'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2283
                  itemValue: pasteHeight
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2284
                  translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2285
                )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2286
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2287
                  label: '-'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2288
                )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2289
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2290
                  activeHelpKey: editDimensionDefaultExtent
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2291
                  enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2292
                  label: 'Set Default Extent'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2293
                  itemValue: setToDefaultExtent
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2294
                  translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2295
                )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2296
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2297
                  activeHelpKey: editDimensionDefaultWidth
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2298
                  enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2299
                  label: 'Set Default Width'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2300
                  itemValue: setToDefaultWidth
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2301
                  translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2302
                )
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2303
               (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2304
                  activeHelpKey: editDimensionDefaultHeight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2305
                  enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2306
                  label: 'Set Default Height'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2307
                  itemValue: setToDefaultHeight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2308
                  translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2309
                )
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2310
               )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2311
              nil
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2312
              nil
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2313
            )
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2314
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2315
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2316
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2317
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2318
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2319
            activeHelpKey: editOpenSpecDocumentation
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2320
            label: 'Open Widget Documentation'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2321
            itemValue: doOpenWidgetDocumentation
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2322
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2323
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2324
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2325
            activeHelpKey: referToCOnfigDatabase
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2326
            label: 'Refer to Config Database'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2327
            itemValue: configSelection
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2328
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2329
            isVisible: false
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2330
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2331
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2332
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2333
            isVisible: false
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2334
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2335
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2336
            activeHelpKey: drawEdit
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2337
            label: 'Draw Edit'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2338
            itemValue: shapeEdit
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2339
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2340
            isVisible: false
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2341
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2342
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2343
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2344
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2345
         (MenuItem
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2346
            activeHelpKey: sortItems
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2347
            label: 'Sort Selected Items by Position'
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2348
            itemValue: doSortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2349
            translateLabel: true
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2350
          )
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2351
"/         (MenuItem
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2352
"/            label: 'Action'
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2353
"/            translateLabel: true
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2354
"/          )
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2355
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2356
            activeHelpKey: groupWithLayout
2393
ca
parents: 2389
diff changeset
  2357
            enabled: canGroup
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2358
            label: 'Group with Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2359
            itemValue: groupWithLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2360
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2361
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2362
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2363
            activeHelpKey: ungroup
2393
ca
parents: 2389
diff changeset
  2364
            enabled: canUngroup
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2365
            label: 'Ungroup'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2366
            itemValue: ungroup
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2367
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2368
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2369
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2370
            activeHelpKey: ungroupWithLayout
2393
ca
parents: 2389
diff changeset
  2371
            enabled: canGroup
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2372
            label: 'Ungroup with Layout'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2373
            itemValue: ungroupWithLayout
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2374
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2375
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2376
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2377
            label: '-'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2378
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2379
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2380
            activeHelpKey: editBrowseViewClass
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2381
            enabled: hasOneSelectionOtherThanCanvas
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2382
            label: 'Browse Widget Class'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2383
            itemValue: doBrowseViewClass
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2384
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2385
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2386
         (MenuItem
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2387
            activeHelpKey: editInspectView
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2388
            enabled: hasOneSelectionOtherThanCanvas
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2389
            label: 'Inspect Widget'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2390
            itemValue: doInspectView
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2391
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2392
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2393
         (MenuItem
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2394
            activeHelpKey: editBrowseViewClass
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2395
            label: 'Browse Specification Class'
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2396
            itemValue: doBrowseSpecificationClass
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2397
            translateLabel: true
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2398
          )
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  2399
         (MenuItem
1827
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2400
            activeHelpKey: editInspectSpec
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2401
            label: 'Inspect Spec'
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2402
            itemValue: doInspectSpec
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2403
            translateLabel: true
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2404
          )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2405
         )
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2406
        nil
691d1471cd3e WOs changes
werner
parents: 1820
diff changeset
  2407
        nil
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2408
      )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2409
!
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2410
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2411
menuFile
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2412
    "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
  2413
     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
  2414
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2415
    "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
  2416
     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
  2417
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2418
    "
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2419
     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
  2420
     (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
  2421
    "
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2422
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2423
    <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
  2424
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2425
    ^ 
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2426
     #(Menu
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2427
              (
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2428
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2429
                  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
  2430
                  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
  2431
                  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
  2432
                  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
  2433
                  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
  2434
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2435
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2436
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2437
                  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
  2438
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2439
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2440
                  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
  2441
                  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
  2442
                  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
  2443
                  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
  2444
                  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
  2445
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2446
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2447
                  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
  2448
                  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
  2449
                  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
  2450
                  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
  2451
                  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
  2452
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2453
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2454
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2455
                  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
  2456
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2457
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2458
                  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
  2459
                  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
  2460
                  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
  2461
                  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
  2462
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2463
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2464
                  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
  2465
                  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
  2466
                  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
  2467
                  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
  2468
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2469
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2470
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2471
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2472
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2473
                  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
  2474
                  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
  2475
                  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
  2476
                  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
  2477
                  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
  2478
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2479
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2480
                  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
  2481
                  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
  2482
                  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
  2483
                  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
  2484
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2485
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2486
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2487
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2488
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2489
                  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
  2490
                  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
  2491
                  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
  2492
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2493
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2494
                  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
  2495
                  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
  2496
                  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
  2497
                  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
  2498
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2499
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2500
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2501
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2502
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2503
                  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
  2504
                  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
  2505
                  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
  2506
                  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
  2507
                  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
  2508
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2509
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2510
                  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
  2511
                  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
  2512
                  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
  2513
                  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
  2514
                  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
  2515
                  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
  2516
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2517
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2518
                  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
  2519
                  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
  2520
                  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
  2521
                  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
  2522
                  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
  2523
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2524
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2525
                  label: '-'
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2526
                  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
  2527
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2528
               (MenuItem
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2529
                  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
  2530
                  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
  2531
                  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
  2532
                  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
  2533
                  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
  2534
                )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2535
               )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2536
              nil
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2537
              nil
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2538
            )
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2539
!
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  2540
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2541
menuMove
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2542
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2543
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2544
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2545
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2546
     the MenuEditor may not be able to read the specification."
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2547
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2548
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2549
     MenuEditor new openOnClass:UIPainter andSelector:#menuMove
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2550
     (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2551
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2552
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2553
    <resource: #menu>
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2554
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2555
    ^
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2556
     
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2557
       #(#Menu
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  2558
          
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2559
           #(
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2560
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2561
                #label: 'Up'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2562
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2563
                #value: #doStepUp
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2564
                #activeHelpKey: #moveWidgetUp
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2565
                #enabled: #canChangeOrderInContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2566
                #labelImage: #(#ResourceRetriever #Icon #upIcon 'Up')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2567
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2568
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2569
                #label: 'Down'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2570
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2571
                #value: #doStepDown
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2572
                #activeHelpKey: #moveWidgetDown
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2573
                #enabled: #canChangeOrderInContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2574
                #labelImage: #(#ResourceRetriever #Icon #downIcon 'Down')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2575
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2576
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2577
                #label: 'Into'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2578
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2579
                #value: #doStepIn
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2580
                #activeHelpKey: #moveWidgetInto
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2581
                #enabled: #canMoveSelectionIntoContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2582
                #labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Into')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2583
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2584
             #(#MenuItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2585
                #label: 'Out'
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2586
                #translateLabel: true
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2587
                #value: #doStepOut
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2588
                #activeHelpKey: #moveWidgetOut
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2589
                #enabled: #canMoveSelectionOutOfContainer
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2590
                #labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Out')
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2591
            )
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2592
          ) nil
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  2593
          nil
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2594
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2595
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2596
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2597
menuReplaceWidget
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2598
    "This resource specification was automatically generated
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2599
     by the MenuEditor of ST/X."
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2600
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2601
    "Do not manually edit this!! If it is corrupted,
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2602
     the MenuEditor may not be able to read the specification."
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2603
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2604
    "
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2605
     MenuEditor new openOnClass:UIPainter andSelector:#menuReplaceWidget
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2606
     (Menu new fromLiteralArrayEncoding:(UIPainter menuReplaceWidget)) startUp
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2607
    "
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2608
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2609
    <resource: #menu>
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2610
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2611
    ^ 
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2612
     #(Menu
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2613
        (
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2614
         (MenuItem
2319
357af951d0ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2318
diff changeset
  2615
            activeHelpKey: replaceBy
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2616
            enabled: canChangeOrderInContainer
2426
51e741037ce6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2425
diff changeset
  2617
            label: 'Replace By...'
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2618
            itemValue: doAskAndReplaceWidgetBy
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2619
            translateLabel: true
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2620
          )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2621
         )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2622
        nil
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2623
        nil
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2624
      )
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2625
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  2626
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2627
menuToolbar
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2628
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2629
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2630
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  2631
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2632
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2633
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2634
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2635
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2636
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2637
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2638
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2639
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2640
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2641
    ^ 
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2642
     #(Menu
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2643
        (
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2644
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2645
            activeHelpKey: testStartApplication
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2646
            label: 'Start'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2647
            itemValue: doStartApplication
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2648
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2649
            isButton: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2650
            labelImage: (ResourceRetriever ToolbarIconLibrary start22x22Icon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2651
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2652
         (MenuItem
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2653
            enabled: canInstallAsWebPageHolder
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2654
            label: 'Install as WebPage'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2655
            itemValue: doInstallAsWebPage
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2656
            translateLabel: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2657
            isButton: true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2658
            isVisible: installAsWebPageVisible
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2659
            labelImage: (ResourceRetriever XPToolbarIconLibrary installAsWebPage24x24Icon)
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2660
          )
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2661
         (MenuItem
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  2662
            label: '-'
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2663
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2664
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2665
            activeHelpKey: fileNew
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2666
            label: 'New'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2667
            itemValue: doNew
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2668
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2669
            isButton: true
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2670
            isVisible: isStandAlone
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  2671
            labelImage: (ResourceRetriever ToolbarIconLibrary newWindowSpecIcon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2672
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2673
         (MenuItem
1950
aaf6499564ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2674
            label: '-'
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2675
            isVisible: isStandAlone
1950
aaf6499564ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2676
          )
aaf6499564ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2677
         (MenuItem
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2678
            activeHelpKey: fileLoad
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2679
            label: 'Load'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2680
            itemValue: doLoad
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2681
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2682
            isButton: true
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  2683
            isVisible: isStandAlone
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  2684
            labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethodIcon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2685
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2686
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2687
            activeHelpKey: fileSave
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2688
            label: 'Save'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2689
            itemValue: doSave
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2690
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2691
            isButton: true
1883
577a267a87cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1872
diff changeset
  2692
            labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethodIcon)
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2693
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2694
         (MenuItem
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  2695
            label: '-'
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  2696
          )
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  2697
         (MenuItem
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2698
            label: 'CutCopyPaste'
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2699
            translateLabel: true
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2700
            submenuChannel: cutCopyPasteMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2701
            isMenuSlice: true
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2702
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2703
         (MenuItem
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  2704
            label: '-'
1820
3d834d5e5bb4 toolbar icons & help texts
Claus Gittinger <cg@exept.de>
parents: 1819
diff changeset
  2705
            startGroup: right
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2706
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2707
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2708
            activeHelpKey: settingsCanvas
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2709
            label: 'Canvas'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2710
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2711
            indication: painterShown
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2712
          )
1750
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2713
         (MenuItem
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2714
            activeHelpKey: settingsGallery
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2715
            label: 'Gallery'
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2716
            translateLabel: true
f175cc37a17a toolBar: button image
Claus Gittinger <cg@exept.de>
parents: 1742
diff changeset
  2717
            indication: galleryShown
1690
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2718
          )
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2719
         )
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2720
        nil
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  2721
        nil
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2722
      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2723
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2724
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2725
menuToolbar2
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2726
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2727
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2728
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  2729
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2730
     the MenuEditor may not be able to read the specification."
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2731
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2732
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2733
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar2
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2734
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar2)) startUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2735
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2736
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2737
    <resource: #menu>
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2738
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2739
    ^ 
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2740
     #(Menu
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2741
        (
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2742
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2743
            activeHelpKey: alignSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2744
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2745
            label: 'Align Left'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2746
            itemValue: alignSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2747
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2748
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2749
            labelImage: (ResourceRetriever nil iconAlignL)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2750
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2751
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2752
            activeHelpKey: alignSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2753
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2754
            label: 'Align Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2755
            itemValue: alignSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2756
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2757
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2758
            labelImage: (ResourceRetriever nil iconAlignR)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2759
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2760
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2761
            activeHelpKey: alignSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2762
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2763
            label: 'Align Top'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2764
            itemValue: alignSelectionTop
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2765
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2766
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2767
            labelImage: (ResourceRetriever nil iconAlignT)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2768
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2769
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2770
            activeHelpKey: alignSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2771
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2772
            label: 'Align Bottom'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2773
            itemValue: alignSelectionBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2774
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2775
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2776
            labelImage: (ResourceRetriever nil iconAlignB)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2777
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2778
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2779
            activeHelpKey: alignSelectionLeftAndRight
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  2780
            enabled: canResizeSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2781
            label: 'Align Left & Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2782
            itemValue: alignSelectionLeftAndRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2783
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2784
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2785
            labelImage: (ResourceRetriever nil iconResizeLR)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2786
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2787
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2788
            activeHelpKey: alignSelectionTopAndBottom
2479
fda2e68c7cad UIPainter can now resize subviews of PanelViews
Stefan Vogel <sv@exept.de>
parents: 2477
diff changeset
  2789
            enabled: canResizeSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2790
            label: 'Align Top & Bottom'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2791
            itemValue: alignSelectionTopAndBottom
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2792
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2793
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2794
            labelImage: (ResourceRetriever nil iconResizeTB)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2795
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2796
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2797
            label: ''
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2798
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2799
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2800
            activeHelpKey: changePositionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2801
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2802
            label: 'Move Left'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2803
            itemValue: moveSelectionLeft
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2804
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2805
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2806
            hideMenuOnActivated: false
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2807
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2808
            labelImage: (ResourceRetriever nil arrowLeft)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2809
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2810
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2811
            activeHelpKey: changePositionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2812
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2813
            label: 'Move Right'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2814
            itemValue: moveSelectionRight
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2815
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2816
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2817
            hideMenuOnActivated: false
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2818
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2819
            labelImage: (ResourceRetriever nil arrowRight)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2820
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2821
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2822
            activeHelpKey: changePositionUp
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2823
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2824
            label: 'Move Up'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2825
            itemValue: moveSelectionUp
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2826
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2827
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2828
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2829
            labelImage: (ResourceRetriever nil arrowUp)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2830
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2831
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2832
            activeHelpKey: changePositionDown
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2833
            enabled: canMoveOrAlignSelection
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2834
            label: 'Move Down'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2835
            itemValue: moveSelectionDown
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2836
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2837
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2838
            triggerOnDown: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2839
            labelImage: (ResourceRetriever nil arrowDown)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2840
          )
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2841
         (MenuItem
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2842
            activeHelpKey: editOpenSpecDocumentation
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2843
            label: 'Widget Documentation'
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2844
            itemValue: doOpenWidgetDocumentation
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2845
            translateLabel: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2846
            isButton: true
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2847
            startGroup: right
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2848
            labelImage: (ResourceRetriever Icon helpIcon)
1565
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2849
          )
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2850
         )
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2851
        nil
3282f44c5ca4 *** empty log message ***
ca
parents: 1563
diff changeset
  2852
        nil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2853
      )
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2854
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2855
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2856
moveInListMenuSlice
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2857
    "This resource specification was automatically generated
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2858
     by the MenuEditor of ST/X."
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2859
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2860
    "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
  2861
     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
  2862
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2863
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2864
     MenuEditor new openOnClass:UIPainter andSelector:#editToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2865
     (Menu new fromLiteralArrayEncoding:(UIPainter editToolbar)) startUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2866
    "
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2867
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2868
    <resource: #menu>
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2869
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2870
    ^ 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2871
     #(Menu
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2872
        (
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2873
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2874
            activeHelpKey: moveWidgetUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2875
            enabled: canChangeOrderInContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2876
            label: 'Move Up'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2877
            itemValue: doStepUp
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2878
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2879
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2880
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetUpIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2881
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2882
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2883
            activeHelpKey: moveWidgetDown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2884
            enabled: canChangeOrderInContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2885
            label: 'Move Down'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2886
            itemValue: doStepDown
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2887
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2888
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2889
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2890
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2891
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2892
            activeHelpKey: moveWidgetInto
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2893
            enabled: canMoveSelectionIntoContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2894
            label: 'Move Into'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2895
            itemValue: doStepIn
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2896
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2897
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2898
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownRightIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2899
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2900
         (MenuItem
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2901
            activeHelpKey: moveWidgetOut
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2902
            enabled: canMoveSelectionOutOfContainer
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2903
            label: 'Move Out'
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2904
            itemValue: doStepOut
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2905
            translateLabel: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2906
            isButton: true
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2907
            labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetLeftDownIcon)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2908
          )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2909
         )
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2910
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2911
        nil
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2912
      )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2913
! !
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2914
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2915
!UIPainter methodsFor:'aspects'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2916
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2917
alignToGridHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2918
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2919
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2920
    (holder := builder bindingAt:#alignToGridHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2921
        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
  2922
        builder aspectAt:#alignToGridHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2923
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2924
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2925
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2926
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  2927
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2928
aspectFor:aKey
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2929
    "returns the aspect for aKey or nil"
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2930
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2931
    ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2932
!
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2933
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2934
canChangeOrderInContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2935
    "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
  2936
     within their container"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2937
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2938
    ^ builder booleanValueAspectFor:#canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2939
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2940
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2941
canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2942
    "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
  2943
     consists of exactly 2 components
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2944
     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
  2945
     align operation"
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2946
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2947
    ^ builder booleanValueAspectFor:#canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2948
!
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2949
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2950
canInstallAsWebPage
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2951
    ^ self specClass notNil
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2952
       and:[ self specClass isSubclassOf:WebApplicationModel ]
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2953
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2954
    "Created: / 14-01-2008 / 17:34:56 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2955
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2956
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2957
canInstallAsWebPageHolder
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2958
    |a|
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2959
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2960
    a := builder booleanValueAspectFor:#canInstallAsWebPageHolder.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2961
    a value:self canInstallAsWebPage.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2962
    ^ a
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2963
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2964
    "Created: / 14-01-2008 / 17:36:04 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2965
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  2966
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2967
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2968
    "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
  2969
     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
  2970
     align operation"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2971
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2972
    ^ builder booleanValueAspectFor:#canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2973
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2974
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2975
canMoveSelection
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2976
    "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
  2977
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2978
    ^ self canChangeOrderInContainer value 
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2979
     or: [ self canMoveSelectionOutOfContainer value 
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  2980
     or: [ self canMoveSelectionIntoContainer value ]]
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2981
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2982
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2983
canMoveSelectionIntoContainer
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2984
    "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
  2985
     widget to an element below"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2986
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2987
    ^ builder booleanValueAspectFor:#canMoveSelectionIntoContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2988
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2989
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2990
canMoveSelectionOutOfContainer
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2991
    "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
  2992
     which is contained within another component"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2993
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2994
    ^ builder booleanValueAspectFor:#canMoveSelectionOutOfContainer
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2995
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2996
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  2997
canPasteHolder
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2998
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  2999
    |holder|
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3000
    (holder := builder bindingAt:#canPasteHolder) isNil ifTrue:[
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3001
        holder := [ self canPaste ].
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3002
    ].
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3003
    ^ holder
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3004
!
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3005
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3006
canPasteKeepingLayoutHolder
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3007
    ^ self canPasteHolder
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3008
!
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3009
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3010
canReplaceSelection
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3011
    treeView isCanvasSelected ifTrue:[^ false].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3012
    ^ true
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3013
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3014
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3015
canResizeSelection
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3016
    "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
  3017
     and all widgets in the selection can be resized"
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3018
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3019
    ^ builder booleanValueAspectFor:#canResizeSelection
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3020
!
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3021
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3022
editToolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3023
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3024
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3025
    (holder := builder bindingAt:#editToolBarVisibleHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3026
        holder := self class defaultEditToolbarVisible asValue.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3027
        builder aspectAt:#editToolBarVisibleHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3028
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3029
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3030
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3031
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3032
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  3033
enableChannel
2012
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3034
    "true if modifications are allowed otherwise in test mode"
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3035
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3036
    ^ builder valueAspectFor:#enableChannel initialValue:true
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3037
!
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3038
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  3039
enableChannel2
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3040
    "true if modifications are allowed otherwise running test"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3041
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3042
    ^ self painter enableChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3043
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3044
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3045
galleryShown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3046
    "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
  3047
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3048
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3049
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3050
    (holder := builder bindingAt:#galleryShown) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3051
        builder aspectAt:#galleryShown put:(holder :=  true asValue).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3052
        holder addDependent:self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3053
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3054
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3055
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3056
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3057
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3058
gridShownHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3059
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3060
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3061
    (holder := builder bindingAt:#gridShownHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3062
        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
  3063
        builder aspectAt:#gridShownHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3064
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3065
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3066
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3067
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3068
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3069
hasOneSelectionOtherThanCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3070
    "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
  3071
     other than the root"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3072
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3073
    ^ builder booleanValueAspectFor:#hasOneSelectionOtherThanCanvas
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3074
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3075
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3076
hasUndoHistory
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3077
    ^ self painter hasUndoHistory
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3078
!
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3079
1954
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3080
hasUndoHistoryHolder
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3081
    ^ self painter hasUndoHistoryHolder
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3082
!
1344ec1f99eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1953
diff changeset
  3083
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3084
installAsWebPageVisible
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3085
    ^ true
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3086
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3087
    "Created: / 14-01-2008 / 17:46:05 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3088
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3089
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3090
noteBookView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3091
    "returns the notebook view; initialize the tools embedded in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3092
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3093
    |noteBook|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3094
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3095
    (noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  3096
        noteBook := View new.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  3097
        builder aspectAt:#noteBookView put:noteBook.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  3098
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3099
        layoutTool := self createToolApplication:UILayoutTool        spec:#windowSpec in:noteBook.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3100
        helpTool   := self createToolApplication:UIHelpTool          spec:#innerSpec  in:noteBook.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3101
        specTool   := self createToolApplication:UISpecificationTool spec:#windowSpec in:noteBook.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3102
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3103
        helpTool loadFromClass:specClass.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3104
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3105
    ^ noteBook
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3106
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3107
    "Modified: / 31-08-2006 / 10:11:15 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3108
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3109
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3110
painterShown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3111
    "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
  3112
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3113
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3114
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3115
    (holder := builder bindingAt:#painterShown) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3116
        builder aspectAt:#painterShown put:(holder :=  true asValue).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3117
        holder addDependent:self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3118
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3119
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3120
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3121
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3122
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3123
tabList
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3124
    "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
  3125
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  3126
    |tabs holder|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3127
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3128
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
1782
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  3129
        tabs := #(Basics Details Layout).
8108839cc262 translate label
Claus Gittinger <cg@exept.de>
parents: 1775
diff changeset
  3130
        builder aspectAt:#tabList put:(holder :=  (resources array:tabs) asValue).
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3131
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3132
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3133
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3134
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3135
tabModel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3136
    "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
  3137
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3138
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3139
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3140
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3141
        holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3142
        builder aspectAt:#tabModel put:holder.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3143
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3144
    ^ holder
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3145
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3146
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3147
toolBarVisibleHolder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3148
    |holder|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3149
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3150
    (holder := builder bindingAt:#toolBarVisibleHolder) isNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3151
        holder := self class defaultToolbarVisible asValue.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3152
        builder aspectAt:#toolBarVisibleHolder put: holder.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3153
        holder addDependent:self.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3154
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3155
    ^ holder
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3156
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3157
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3158
treeView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3159
    "returns the tree view which holds all widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3160
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3161
    ^ treeView
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3162
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3163
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3164
valueOfCanPasteWithKeepingLayout
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  3165
    <resource: #obsolete>
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3166
    self obsoleteMethodWarning:'stupid name - use #canPasteKeepingLayoutHolder'.
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3167
    ^ self canPasteKeepingLayoutHolder
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3168
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3169
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  3170
!UIPainter methodsFor:'building editors'!
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3171
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3172
openDataSetColumnEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3173
    "opens a Table Column Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3174
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3175
    |cls editor specTool columnHolder tableSelector columns|
824
1d5adf147721 change mechanism for opening the dataset builder (step 2)
tz
parents: 819
diff changeset
  3176
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3177
    self isEditingSpecOnly ifFalse:[
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3178
        (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
  3179
            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
  3180
        ].
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3181
        cls isNil ifTrue:[^ self].
1103
ecc91379704b accept before opening an editor
Claus Gittinger <cg@exept.de>
parents: 1071
diff changeset
  3182
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3183
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3184
    self acceptOrIgnoreSectionModification.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3185
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3186
    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
  3187
    editor masterApplication:self.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3188
    specTool := self specTool.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3189
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3190
    self isEditingSpecOnly ifFalse:[
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3191
        editor specClass: cls.
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3192
        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
  3193
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3194
    columnHolder  := specTool aspectFor:#columnHolder.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3195
    tableSelector := columnHolder value.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3196
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3197
    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
  3198
                        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
  3199
                        ifFalse:[nil].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3200
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3201
    (self isEditingSpecOnly not
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3202
    and:[tableSelector notNil 
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  3203
    and:[cls class includesSelector:tableSelector]]) ifTrue:[
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3204
        editor openModalOnClass:cls andSelector:tableSelector
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3205
    ] 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
  3206
        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
  3207
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3208
        columns := specTool specification columns.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3209
        columns size ~~ 0 ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3210
            editor openModalOnResourceSpec:columns
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3211
        ] ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3212
            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
  3213
        ].
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3214
    ].
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3215
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3216
    self isEditingSpecOnly ifFalse:[
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3217
        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
  3218
            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
  3219
                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
  3220
                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
  3221
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3222
            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
  3223
                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
  3224
                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
  3225
            ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3226
            ^ self
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3227
        ].
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3228
    ].
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3229
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3230
    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
  3231
        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
  3232
            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
  3233
                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
  3234
                    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
  3235
                    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
  3236
                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
  3237
            ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  3238
        ].
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  3239
    ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3240
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3241
    "Modified: / 12-01-2008 / 10:31:47 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3242
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3243
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3244
openEditMenu
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3245
    "opens a Menu Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3246
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3247
    |cls selectorOrMenu editor selectedSpec spec holder|
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3248
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3249
    (cls := self resolveName:specClassName) isNil ifTrue:[
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3250
        self askForSaving ifTrue:[cls := self resolveName:specClassName].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3251
    ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3252
    cls isNil ifTrue:[^ self].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3253
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3254
    self acceptOrIgnoreSectionModification.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3255
    spec := self specTool specification.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3256
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3257
    (selectorOrMenu := spec menuSelector) notNil ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3258
        selectorOrMenu := selectorOrMenu asSymbol
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3259
    ] ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3260
        "/ cg: q&d hack ...
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3261
        selectorOrMenu := nil.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3262
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3263
        (selectedSpec := treeView propertySelected) notNil ifTrue:[
1688
389815b12d3a Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents: 1684
diff changeset
  3264
            Error handle:[:ex |
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3265
                selectorOrMenu := nil.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3266
            ] do:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3267
                selectorOrMenu := selectedSpec view asMenu.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3268
            ]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3269
        ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3270
    ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3271
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3272
    editor := MenuEditor new.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3273
    editor masterApplication:self.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3274
    editor specClass: cls.
1669
e6ea33c843a0 *** empty log message ***
ca
parents: 1663
diff changeset
  3275
    editor useHelpTool:(self helpTool).
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3276
2442
9dceed2892bd add breakpoint
sr
parents: 2427
diff changeset
  3277
    selectorOrMenu class == Menu       
9dceed2892bd add breakpoint
sr
parents: 2427
diff changeset
  3278
        ifTrue: [self breakPoint:#cg."no resources"editor openModalOnMenu:selectorOrMenu]
1698
28250498a2b3 *** empty log message ***
penk
parents: 1690
diff changeset
  3279
        ifFalse:  [editor openModalOnClass:cls andSelector:selectorOrMenu].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3280
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3281
    editor hasSaved ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3282
        holder := self specTool aspectFor:#menuSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3283
        holder value:(editor specSelector).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3284
        self accept.
1669
e6ea33c843a0 *** empty log message ***
ca
parents: 1663
diff changeset
  3285
        ^ self
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3286
    ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3287
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3288
    "Modified: / 12-01-2008 / 10:31:41 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3289
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3290
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3291
openHierarchicalListEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3292
    "opens a Hierarchical List Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3293
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3294
    |selector editor spec|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3295
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3296
    (self resolveName:specClassName) isNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3297
        self askForSaving ifFalse: [^self]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3298
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3299
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3300
    spec := self specTool specification.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3301
    (selector := spec hierarchicalList) notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3302
        selector := selector asSymbol
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3303
    ].
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3304
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3305
    editor := HierarchicalListEditor new.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3306
    editor masterApplication:self.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3307
    editor openModalOnClass:specClassName andSelector:selector.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3308
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3309
    editor specSelector ~= selector ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3310
        editor hasSaved ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3311
            spec hierarchicalList:editor specSelector.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3312
            self modifiedChannel value:true.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3313
            self accept
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3314
        ]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3315
    ]
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3316
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3317
    "Modified: / 16.7.1998 / 18:15:46 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3318
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3319
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3320
openSubSpecGUIPainter
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3321
    "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
  3322
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3323
    |spec cls meta sel|
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3324
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3325
    (self resolveName:specClassName) isNil ifTrue:[
1523
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3326
        self askForSaving ifFalse: [^self]
913
12e73e6c57b4 do open building editors after defining first new app class
tz
parents: 892
diff changeset
  3327
    ]. 
12e73e6c57b4 do open building editors after defining first new app class
tz
parents: 892
diff changeset
  3328
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3329
    spec := self specTool specification.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3330
    cls := spec majorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3331
    cls isNil ifTrue:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3332
        cls := specClassName.
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3333
    ].
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3334
    (cls := self resolveName:cls inClass:(Smalltalk at: specClassName asSymbol)) isNil ifTrue:[
1523
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3335
        spec majorKey isNil ifTrue:[
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3336
            ^ self warn:'Cannot find class (no majorKey specified).'.
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3337
        ].
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3338
        ^ self warn:('Cannot find class ', spec majorKey asBoldText, '.').
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3339
    ].
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3340
    sel := spec minorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3341
    meta := cls class whichClassIncludesSelector:sel.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3342
    meta isNil ifTrue:[
1523
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3343
        ^ self warn:'Cannot find selector #', (sel ? '') asBoldText, ' in class ', cls name asBoldText, '!!'
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3344
    ].
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3345
1523
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3346
    self class 
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3347
        openOnClass:meta soleInstance 
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3348
        andSelector:spec minorKey.
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3349
a8fe5e15220b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1521
diff changeset
  3350
    "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
  3351
!
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  3352
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3353
openTabListEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3354
    "opens a Tab List Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3355
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3356
    |selector editor spec cls holder|
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3357
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3358
    (cls := self resolveName:specClassName) isNil ifTrue:[
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3359
        self askForSaving ifTrue:[cls := self resolveName:specClassName].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3360
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3361
    cls isNil ifTrue:[^ self].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3362
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3363
    self acceptOrIgnoreSectionModification.
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3364
    spec := self specTool specification.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3365
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3366
    (selector := spec listSelector) isArray 
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3367
        ifTrue: [^self warn: 'Cannot open the Tab List Editor on an array!!'].
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3368
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3369
    editor := TabListEditor new.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3370
    editor masterApplication:self.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3371
    editor openModalOnClass:cls andSelector:selector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3372
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3373
    editor hasSaved ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3374
        holder := self specTool aspectFor:#listSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3375
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3376
        holder value ~= editor specSelector ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3377
            holder value:editor specSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3378
            self accept.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3379
        ]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  3380
    ].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3381
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3382
    "Modified: / 12-01-2008 / 10:31:34 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3383
! !
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  3384
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3385
!UIPainter methodsFor:'change & update'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3386
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3387
layoutChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3388
    "called by the painter/canvas whenever the layout of the current selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3389
     widget has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3390
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3391
    self isModified ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3392
        self layoutTool update.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3393
        self clearModifiedFlag
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3394
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3395
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3396
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3397
propertyChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3398
    "called by the painter/canvas whenever the property of the current selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3399
     widget has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3400
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3401
    |property spec|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3402
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3403
    (property := treeView propertySelected) notNil ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3404
        spec := property spec copy.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3405
        self specTool specification:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3406
        self setViewInLayoutTool:(property view) spec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3407
        self clearModifiedFlag
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3408
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3409
        self layoutTool layoutView notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3410
            self clearModifiedFlag.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3411
            self treeSelectionChanged
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3412
        ]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3413
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3414
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3415
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3416
toolBarVisibilityChanged
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3417
    |toolBarVisible editToolBarVisible toolBar editToolBar noteBook topOffset|
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3418
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3419
    topOffset := 0.
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
    toolBar := self componentAt:#ToolBar.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3422
    toolBar notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3423
        toolBarVisible := self toolBarVisibleHolder value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3424
        DefaultToolBarVisible := toolBarVisible.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3425
        toolBarVisible ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3426
            topOffset := topOffset + toolBar height.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3427
        ]
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3428
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3429
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3430
    editToolBar := self componentAt:#EditToolBar.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3431
    editToolBar notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3432
        editToolBar layout 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3433
            topOffset:topOffset bottomOffset:(topOffset + editToolBar height).
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3434
        "/ force it to recompute its dimension
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3435
        editToolBar container notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3436
            editToolBar containerChangedSize.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3437
        ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3438
        editToolBarVisible := self editToolBarVisibleHolder value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3439
        DefaultEditToolBarVisible := editToolBarVisible.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3440
        editToolBarVisible ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3441
            topOffset := topOffset + editToolBar height.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3442
        ]
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3443
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3444
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3445
    noteBook := self componentAt:#Painter.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3446
    noteBook notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3447
        noteBook layout topOffset:topOffset.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3448
        "/ force it to recompute its dimension
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3449
        noteBook container notNil ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3450
            noteBook containerChangedSize.
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
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3453
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3454
    "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
  3455
!
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
update:something with:aParameter from:changedObject
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3458
    "catches change notifications"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3459
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3460
    |window lbl|
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3461
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3462
    ((changedObject == self toolBarVisibleHolder)
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3463
    or:[ changedObject == self editToolBarVisibleHolder ]) ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3464
        self toolBarVisibilityChanged.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3465
        ^ self
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3466
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3467
    changedObject == self gridShownHolder ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3468
        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
  3469
        painter gridShown:changedObject value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3470
        ^ self
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3471
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3472
    changedObject == self alignToGridHolder ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3473
        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
  3474
        painter gridAlign:changedObject value.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3475
        ^ self
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3476
    ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3477
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3478
    changedObject == treeView model ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3479
        (something == #selection
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3480
        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
  3481
        ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3482
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3483
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3484
    changedObject == self galleryShown ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3485
        "/ galleryShown toggle changed
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3486
        window := selectionPanel window.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3487
        (changedObject value) ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3488
            self raiseUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3489
        ] ifFalse:[
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3490
            self hideUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3491
        ].
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  3492
        ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3493
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3494
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3495
    changedObject == self painterShown ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3496
        "/ canvasShown toggle changed
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3497
        window := self painter topView.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3498
        (changedObject value) ifTrue:[
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3499
            self raiseUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3500
        ] ifFalse:[
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3501
            self hideUIView:window
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3502
        ].
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  3503
        ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3504
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3505
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3506
    changedObject == self autoAcceptOnSelectionChange ifTrue:[
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3507
        lbl := changedObject value ifTrue:['Apply'] ifFalse:['OK'].
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3508
        (builder componentAt:'acceptButton') label:(resources string:lbl).
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3509
        ^ self
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3510
    ].
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  3511
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3512
    "Modified: / 16.7.1998 / 19:09:57 / cg"
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3513
!
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3514
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3515
updateChannels
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3516
    "updates the channels"
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3517
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3518
    |canCutOrCopy|
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3519
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3520
    self canMoveOrAlignSelection        value:(treeView canMoveOrAlignSelection).
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3521
    self canResizeSelection             value:(treeView canResizeSelection).
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  3522
    self canExchangeSelectionLayouts    value:(treeView canExchangeSelectionLayouts).
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3523
    self canChangeOrderInContainer      value:(treeView canChangeOrderInContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3524
    self canMoveSelectionIntoContainer  value:(treeView canMoveSelectionIntoContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3525
    self canMoveSelectionOutOfContainer value:(treeView canMoveSelectionOutOfContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3526
    self hasOneSelectionOtherThanCanvas value:(treeView hasOneSelectionOtherThanCanvas).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3527
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3528
    "/ the top-node cannot be cut, copied or pasted.
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  3529
    canCutOrCopy := treeView selection notEmptyOrNil and:[treeView selection first ~~ 1].
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  3530
1991
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3531
    self canCutHolder value: canCutOrCopy.
feaad07cb3cf valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1983
diff changeset
  3532
    self canCopyHolder value: canCutOrCopy.
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3533
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  3534
"/    self modifiedChannel value: false.
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  3535
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3536
    "Modified: / 16.7.1998 / 19:13:30 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3537
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3538
952
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3539
!UIPainter methodsFor:'defaults'!
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3540
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3541
aboutImage
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3542
    "the image to be displayed in my about-box;
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3543
     If nil is returned, thhe ST/X default image is used."
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3544
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3545
    ^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_windows.xpm'
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3546
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3547
    "Created: / 13.8.1998 / 20:33:05 / cg"
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3548
!
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3549
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3550
defaultNameOfCanvas
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3551
    ^ self class defaultNameOfCanvas
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3552
!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3553
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3554
defaultWindowSpecClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3555
    ^ WindowSpec
952
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3556
! !
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  3557
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3558
!UIPainter methodsFor:'event handling'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3559
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3560
doesNotUnderstand:aMessage
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3561
    "forward misunderstood messages to the painter"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3562
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3563
    |painter|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3564
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3565
    painter := self painter.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3566
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3567
    (painter respondsTo:(aMessage selector)) ifTrue:[
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3568
        ^ aMessage sendTo:painter
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3569
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3570
    super doesNotUnderstand:aMessage
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3571
1957
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3572
!
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3573
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3574
processEvent:anEvent
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3575
    "filter keyboard events.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3576
     Return true, if I have eaten the event"
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3577
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3578
    |key|
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3579
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3580
    anEvent isKeyPressEvent ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3581
        anEvent targetView == treeView ifFalse:[^ false].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3582
        treeView hasFocus ifFalse:[^ false].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3583
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3584
        key := anEvent key.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3585
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3586
"/        (anEvent rawKey == #Cmdr) ifTrue:[
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3587
"/            self openNameEditorOnTreeSelection.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3588
"/            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3589
"/        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3590
        (anEvent rawKey == #CtrlCursorUp) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3591
            self doStepUp.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3592
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3593
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3594
        (anEvent rawKey == #CtrlCursorDown) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3595
            self doStepDown.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3596
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3597
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3598
        (anEvent rawKey == #CtrlCursorLeft) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3599
            self doStepOut.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3600
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3601
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3602
        (anEvent rawKey == #CtrlCursorRight) ifTrue:[ 
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3603
            self doStepIn.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3604
            ^ true.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3605
        ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3606
    ].
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3607
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  3608
    ^ false.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3609
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3610
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  3611
!UIPainter methodsFor:'help'!
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  3612
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  3613
defaultInfoLabel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3614
    "returns the default info label"
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  3615
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3616
    specClassName isNil ifTrue: [^'No class defined.'].
877
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  3617
    specSelector isNil ifTrue: [^'No selector defined.'].
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  3618
    ^ specClassName printString, ' >> ', specSelector
877
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  3619
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3620
    "Modified: / 31-08-2006 / 10:12:03 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  3621
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
  3622
2353
13774605a1a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2336
diff changeset
  3623
!UIPainter methodsFor:'help specs'!
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3624
2544
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  3625
basicHelpTextFromSpecification:specification forKey:aKey
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  3626
    "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
  3627
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  3628
    ^ specification helpSpec at:aKey ifAbsent:nil
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  3629
!
62e390e651a3 more flexible flyByHelpText redefinition
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
  3630
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3631
flyByHelpSpec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3632
    |spec|
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3633
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3634
    spec := self class flyByHelpSpec.
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3635
    spec at:#editUndo put:(resources string:'Undo (%1)' 
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3636
                        with:(resources string:self painter undoHistory labelOfLastUndo)).
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3637
    ^ spec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3638
!
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3639
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3640
helpSpec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3641
    |spec|
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3642
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3643
    spec := self class helpSpec.
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3644
    spec at:#editUndo put:(resources string:'Undo (%1)' 
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3645
                        with:(resources string:self painter undoHistory labelOfLastUndo)).
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3646
    ^ spec
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3647
! !
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3648
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3649
!UIPainter methodsFor:'initialization'!
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3650
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3651
hideToolBarButtonCreated:aButton
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3652
    aButton passiveLevel:(MenuPanel defaultLevel). 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3653
"/    aButton passiveLevel:1.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3654
    aButton activeLevel:-1.
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3655
    aButton backgroundColor:(MenuPanel defaultBackgroundColor).
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3656
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3657
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3658
initialize
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3659
    |name scroller viewScroller|
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3660
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3661
    super initialize.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3662
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3663
    modified := false.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  3664
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3665
    aspects := IdentityDictionary new.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3666
    aspects at:#classNameChannel put:'NewApplication' asValue.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3667
    aspects at:#superclassNameChannel put:'ApplicationModel' asValue.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3668
    aspects at:#methodNameChannel put:'windowSpec' asValue.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3669
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3670
    treeView := TreeView new.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3671
    treeView painter:self.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3672
    treeView windowSpecClass:(self defaultWindowSpecClass).
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3673
    treeView selectConditionBlock:[:newSelection | self selectionChangeAllowed:newSelection ].
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3674
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3675
    painterView := StandardSystemView new.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3676
    name := name ? self defaultNameOfCanvas.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3677
    painterView beToolWindow.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3678
    painterView name:name.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3679
    painterView label:name.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3680
    painterView extent:(treeView windowSpecClass defaultExtentInUIPainter).
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3681
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3682
    UseViewScroller == true ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3683
        scroller := HVScrollableView for:ViewScroller in:painterView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3684
        scroller
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3685
            horizontalScrollable:true miniScroller:true;
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3686
            verticalScrollable:true; verticalMini:true;
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3687
            autoHideScrollBars:false;
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3688
            layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3689
        viewScroller := scroller scrolledView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3690
        painter := UIPainterView new.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3691
        painter extent:300@300.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3692
        viewScroller scrolledView:painter.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3693
    ] ifFalse:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3694
        painter := UIPainterView in:painterView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3695
        painter layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3696
    ].
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  3697
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3698
    treeView := treeView canvas:painter specName:name.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3699
    painter treeView:treeView.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3700
    treeView model addDependent:self.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3701
    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
  3702
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  3703
    selectionPanel := self selectionPanelClass new.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  3704
    selectionPanel allButOpenInterface:#windowSpec.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3705
! !
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  3706
1718
aedf32fc1715 method category rename
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
  3707
!UIPainter methodsFor:'menus-dynamic'!
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  3708
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  3709
menuEdit
1528
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3710
    ^ [
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3711
        |m i|
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3712
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3713
        m := self class menuEdit.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3714
        m := m decodeAsLiteralArray.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3715
        i := m detectItem:[:item | item nameKey == #undo] ifNone:nil.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3716
        i notNil ifTrue:[
1917
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3717
            i label:(resources string:(i label , ' (%1)') 
53832fa044f1 undo button
Claus Gittinger <cg@exept.de>
parents: 1883
diff changeset
  3718
                        with:(resources string:self painter undoHistory labelOfLastUndo)).
1528
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3719
        ].
1540
dda0bf556ebc findGuiResources... now sets the receiver, if not yet set
Claus Gittinger <cg@exept.de>
parents: 1528
diff changeset
  3720
        "/ m receiver:self.   -- now done in findGuiResources ...
1528
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3721
        m findGuiResourcesIn:self.
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3722
        m
4136505d3cbe oops - menu was wrong
Claus Gittinger <cg@exept.de>
parents: 1523
diff changeset
  3723
      ].
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3724
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3725
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3726
menuReplaceWidget
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3727
    ^ [
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3728
        |m i specAndView spec usefulReplacementSpecClasses|
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3729
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3730
        m := self class menuReplaceWidget.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3731
        m := m decodeAsLiteralArray.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3732
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3733
        specAndView := self selectedSpecAndView.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3734
        spec := specAndView first.
1968
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3735
        spec notNil ifTrue:[
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3736
            usefulReplacementSpecClasses := spec usefulReplacementSpecClasses.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3737
            usefulReplacementSpecClasses notEmptyOrNil ifTrue:[
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3738
                m addSeparator.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3739
                usefulReplacementSpecClasses do:[:eachClass |      
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3740
                    |item|
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3741
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3742
                    item := MenuItem new label:(resources string:'Replace by %1' with:eachClass userFriendlyName).
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3743
                    item value:#replaceWidgetByClass:.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3744
                    item argument:eachClass.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3745
                    m addItem:item.
1a8b9416db6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1957
diff changeset
  3746
                ].
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3747
            ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3748
        ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3749
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3750
        m findGuiResourcesIn:self.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3751
        m
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  3752
      ].
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  3753
! !
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  3754
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3755
!UIPainter methodsFor:'private'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3756
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3757
acceptOrIgnoreSectionModification
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3758
    self isModified ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3759
        (self confirm:'Accept changes made to spec ?') ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3760
            self accept
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3761
        ]
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3762
    ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3763
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3764
    "Created: / 12-01-2008 / 10:31:20 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3765
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3766
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3767
askForModification
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3768
    "asks for window spec modification"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3769
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3770
    |painter|
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3771
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3772
    painter := self painter.
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3773
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3774
    self askForSectionModification.    
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3775
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3776
    (modified or: [painter isModified or: [self helpTool modified]])
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3777
    ifTrue:[
1772
e33aee13defe Use 'Discard Changes and Exit' instead of 'Forget it...'
Stefan Vogel <sv@exept.de>
parents: 1760
diff changeset
  3778
        ((YesNoBox title:(resources string:'Window spec was modified. Exit anyway?'))        
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3779
            noText:(resources string:'Cancel');
1772
e33aee13defe Use 'Discard Changes and Exit' instead of 'Forget it...'
Stefan Vogel <sv@exept.de>
parents: 1760
diff changeset
  3780
            yesText:(resources string:'Discard Changes and Exit');
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3781
            showAtPointer;
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3782
            accepted) ifFalse: [^false].
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  3783
        self clearModified.
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3784
        painter resetModification
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3785
    ].
2293
b8149118f0af Do not ask for "discarding changes" on first doSaveAs
Stefan Vogel <sv@exept.de>
parents: 2284
diff changeset
  3786
    ^ true
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  3787
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  3788
    "Modified: / 20.5.1998 / 02:03:16 / cg"
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3789
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3790
808
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3791
askForSaving
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3792
    "asks for defining an application class"
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3793
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3794
    self askForSectionModification.    
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3795
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3796
    ((YesNoBox title:'No application class defined yet!!')        
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3797
        noText:'Cancel';
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3798
        yesText:'Define';
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3799
        showAtPointer;
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3800
        accepted) ifFalse: [^false].
808
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3801
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3802
    self doSave.
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3803
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3804
    ^true
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3805
!
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  3806
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3807
askForSectionModification
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3808
    "asks for section modification in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3809
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3810
    self isModified ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3811
        (self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3812
            self accept
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3813
        ] ifFalse: [
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3814
            self cancel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  3815
        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3816
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3817
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3818
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3819
checkClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3820
    "checks for class & superclass"
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3821
1211
53cfc272acc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1204
diff changeset
  3822
    |superclass cls|
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3823
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3824
    specClassName isNil ifTrue:[^ false].
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3825
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3826
    cls := self resolveName:specClassName.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3827
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3828
    cls isNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3829
        superclass := self resolveName:specSuperclassName.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3830
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3831
        superclass isNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3832
            self warn:'No class named ' , specSuperclassName , ' exists!!'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3833
            ^ false.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3834
        ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3835
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3836
        (self confirm:'Create class ' , specClassName asBoldText, '?') ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3837
            cls := superclass 
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3838
                        subclass:(specClassName asSymbol)
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3839
                        instanceVariableNames:''
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3840
                        classVariableNames:''
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3841
                        poolDictionaries:''
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3842
                        category:'Applications'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3843
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3844
            cls name ~= specClassName ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3845
                self information:'Created new class is ' , cls name.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3846
                specClassName := cls name
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3847
            ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3848
            ^ true.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3849
        ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3850
        ^ false.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3851
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3852
    cls isBehavior ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3853
        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
  3854
        ^ false.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3855
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3856
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3857
    specSuperclassName isBehavior ifFalse:[
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  3858
        specSuperclassName notEmptyOrNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3859
            superclass := self resolveName:specSuperclassName
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  3860
        ] ifFalse:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3861
            specSuperclassName := nil.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3862
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3863
    ] ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3864
        superclass := specSuperclassName
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3865
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3866
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3867
    specSuperclassName notNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3868
        superclass isNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3869
            self warn:'No class named ' , specSuperclassName , ' exists!!'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3870
            ^ false.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3871
        ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3872
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3873
        (cls isSubclassOf:superclass) ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3874
            self information:('A global named ' , specClassName , ' exists,\' ,
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3875
                              'but is not a subclass of ' , superclass name , '.\\' ,
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3876
                              '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
  3877
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3878
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3879
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3880
    superclass isNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3881
        cls notNil ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3882
            specSuperclassName := cls superclass name
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3883
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3884
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3885
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3886
    ^ true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3887
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3888
    "Modified: 12.8.1997 / 23:39:10 / cg"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3889
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3890
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3891
createToolApplication:anApplicationClass spec:aSpec in:aView
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3892
    |appl applBuilder applWindow|
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3893
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3894
    appl := anApplicationClass new.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3895
    appl createBuilder.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3896
    applBuilder := appl builder.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3897
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3898
    applWindow  := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:aView.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3899
    applWindow level:0.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3900
    applWindow hiddenOnRealize:true.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3901
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3902
    appl masterApplication:self.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3903
    applBuilder window:applWindow.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3904
    applWindow client:appl spec:aSpec builder:applBuilder.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3905
    appl modifiedHolder:(self modifiedChannel).
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3906
    applBuilder window:applWindow.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3907
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3908
    ^ appl
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3909
!
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3910
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3911
hideUIView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3912
    "hides the view which is an application or top view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3913
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3914
    aView beIndependent.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3915
    aView unmap.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3916
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3917
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3918
raiseTabView
2159
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3919
    |tool|
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3920
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3921
             self isLayoutToolSelected ifTrue:[tool := layoutTool ]
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3922
    ifFalse:[self isHelpToolSelected   ifTrue:[tool := helpTool   ]
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3923
    ifFalse:[
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3924
        tool := specTool.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3925
        tool notNil ifTrue:[ specTool selection:tabSelection ].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3926
    ]].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3927
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3928
    (Array with:helpTool with:layoutTool with:specTool) do:[:aTool|
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3929
        aTool ~~ tool ifTrue:[
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3930
            aTool window beInvisible.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3931
        ].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3932
    ].
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3933
    tool notNil ifTrue:[
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3934
        tool window beVisible.
7f02407f0bbf focus handling
ca
parents: 2157
diff changeset
  3935
    ].
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3936
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3937
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3938
raiseUIView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3939
    "raise the view which is an application or top view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3940
1193
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  3941
    aView remap.
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  3942
    aView bePartner.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3943
!
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3944
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3945
setClass:cls selector:selector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3946
    "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
  3947
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3948
    |clsName superClassName|
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3949
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3950
    clsName := cls name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3951
    superClassName := cls superclass name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3952
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3953
    (self aspectFor:#classNameChannel) value:clsName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3954
    (self aspectFor:#methodNameChannel) value:(selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3955
    (self aspectFor:#superclassNameChannel) value:superClassName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3956
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3957
    self painter 
1760
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  3958
            className:clsName 
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  3959
            superclassName:superClassName
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  3960
            selector:(selector ? '').
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3961
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3962
    self specClass:clsName.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3963
    specSelector := (selector ? '').
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  3964
    specSuperclassName := superClassName.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3965
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  3966
    (specClassName notNil and:[ selector notNil ]) ifTrue:[
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3967
        self addHistoryEntryForClass:specClass selector:specSelector.
1760
8419c463c4f6 use #and: - not #& you lazy bone, you
Claus Gittinger <cg@exept.de>
parents: 1750
diff changeset
  3968
        self updateInfoLabel
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3969
    ].
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  3970
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3971
    "Modified: / 05-02-1998 / 09:44:58 / stefan"
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3972
    "Modified: / 31-08-2006 / 10:14:49 / cg"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3973
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3974
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3975
setViewInLayoutTool:aView spec:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3976
    "sets view for layout tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3977
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3978
    |type|
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3979
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3980
    self painter topView == aView ifTrue:[
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3981
        type := #Extent
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3982
    ] ifFalse:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3983
        self canvas == aView ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3984
            type := #Extent
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  3985
        ]
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3986
    ].
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3987
    self layoutTool layoutView:aView type:type spec:aSpec
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3988
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  3989
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3990
specClass
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3991
    specClass isNil ifTrue:[
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3992
        specClassName notNil ifTrue:[
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3993
            specClass := Smalltalk classNamed:specClassName.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  3994
            self canInstallAsWebPageHolder value:self canInstallAsWebPage.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3995
        ]
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3996
    ].
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3997
    ^ specClass
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3998
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  3999
    "Created: / 31-08-2006 / 10:08:43 / cg"
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4000
    "Modified: / 14-01-2008 / 17:39:32 / cg"
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4001
!
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4002
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4003
specClass:aClassOrClassName
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4004
    "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
  4005
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4006
    aClassOrClassName isBehavior 
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4007
        ifTrue: [ specClass := aClassOrClassName.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4008
                  specClassName := aClassOrClassName name ]
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4009
        ifFalse:[ specClass := Smalltalk classNamed:aClassOrClassName.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4010
                  specClassName := aClassOrClassName ].
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4011
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4012
    self canInstallAsWebPageHolder value:self canInstallAsWebPage.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4013
    self helpTool loadFromClass:specClass.    
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4014
    self clearModifiedFlag.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4015
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4016
    "Modified: / 14-01-2008 / 17:39:08 / cg"
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4017
! !
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4018
1714
f57812a56d17 method category rename
Claus Gittinger <cg@exept.de>
parents: 1712
diff changeset
  4019
!UIPainter methodsFor:'private-tools'!
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4020
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4021
canvas
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4022
    "returns the canvas view"
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4023
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4024
    UseViewScroller == true ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4025
        ^ painter.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4026
    ].
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4027
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4028
    ^ painter topView.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4029
"/    ^ treeView canvas
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4030
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4031
    "Modified: / 05-09-2006 / 18:36:32 / cg"
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4032
!
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4033
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4034
helpTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4035
    "returns the help tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4036
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4037
    helpTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4038
  ^ helpTool
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4039
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4040
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4041
layoutTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4042
    "returns the layout tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4043
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4044
    layoutTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4045
  ^ layoutTool
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4046
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4047
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4048
painter
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4049
    "returns the canvas view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4050
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4051
    ^ painter.
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4052
"/    ^ treeView canvas
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4053
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4054
    "Modified: / 05-09-2006 / 18:36:32 / cg"
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4055
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4056
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4057
specTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4058
    "returns the spec tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4059
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4060
    specTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  4061
  ^ specTool
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4062
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4063
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4064
!UIPainter methodsFor:'queries'!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4065
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4066
canPaste
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4067
    |clipboard sel|
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4068
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4069
    clipboard := painterView getClipboardObject.
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4070
2328
5324713ed697 care for non collection which responds to notEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 2319
diff changeset
  4071
    (clipboard isCollection 
5324713ed697 care for non collection which responds to notEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 2319
diff changeset
  4072
    and:[ clipboard notEmptyOrNil ]) 
2313
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4073
            ifTrue:[sel := clipboard first]
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4074
            ifFalse:[sel := clipboard].
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4075
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4076
    ^ (sel isKindOf:UISpecification) 
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4077
"/                    and:[treeSelection size  = 1 
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4078
"/                    and:[treeSelection first == 1 
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4079
"/                         or: [self canPasteInto: treeView selectedNode contents view]]]
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4080
!
c60fe56ab5bf changed #updateChannels
Stefan Vogel <sv@exept.de>
parents: 2310
diff changeset
  4081
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4082
hasSpecClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4083
    "answers whether an application class is defined"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4084
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  4085
    ^ (self resolveName:specClassName) notNil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4086
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4087
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4088
hasSpecClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4089
    "answers whether an application class and a selector under which
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4090
     the window spec is stored is defined"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4091
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4092
    specSelector size > 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4093
        ^ self hasSpecClass
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4094
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4095
    ^ false
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4096
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4097
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4098
isEditingSpecOnly
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4099
    ^ 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
  4100
!
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4101
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4102
isHelpToolSelected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4103
    "answers whether the current selected section in the noteBook is the Help Tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4104
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4105
    ^ tabSelection = UIHelpTool label
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4106
!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4107
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4108
isLayoutToolSelected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4109
    "answers whether the current selected section in the noteBook is the Layout Tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4110
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4111
    ^ tabSelection = UILayoutTool label
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4112
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4113
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4114
isModified
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4115
    "answers whether the current window spec or a layout is modified"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4116
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4117
    ^ self modifiedChannel value
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4118
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4119
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4120
isNotEditingSpecOnly
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4121
    ^ true
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4122
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4123
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4124
isPainterEnabled
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4125
    "answers whether I am running in test mode"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4126
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  4127
    ^ self painter enabled
1608
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4128
!
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4129
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4130
isUIPainter
2ad8ca8b5260 isUIPainter query added
penk
parents: 1596
diff changeset
  4131
    ^ true
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4132
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4133
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4134
listOfAspects
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4135
    ^ self painter listOfAspects
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4136
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4137
    "Created: / 12-01-2008 / 19:24:51 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4138
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4139
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4140
listOfCallbacks
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4141
    ^ self painter listOfCallbacks
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4142
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4143
    "Created: / 12-01-2008 / 19:25:09 / cg"
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4144
! !
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  4145
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4146
!UIPainter methodsFor:'selection'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4147
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4148
askForUnsavedModifications
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4149
    |whatToDo|
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4150
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4151
    self isModified ifFalse:[^ true].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4152
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4153
    whatToDo := DialogBox 
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4154
                    confirmWithCancel:'Accept modifications in section ' , tabSelection printString asBoldText, ' ?'
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4155
                    labels:#('Cancel' 'Ignore' 'Accept')
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4156
                    default:3.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4157
    whatToDo isNil ifTrue:[^ false].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4158
    whatToDo == true ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4159
        self accept
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4160
    ] ifFalse:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4161
        self cancel
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4162
    ].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4163
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4164
    ^ true
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4165
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4166
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4167
copySelection
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4168
    self painter copySelection.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4169
    self updateChannels.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4170
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4171
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4172
selectedSpec
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4173
    |specAndView|
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4174
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4175
    specAndView := self selectedSpecAndView.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4176
    ^ specAndView first
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4177
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4178
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4179
selectedSpecAndView
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4180
    |spec view property|
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4181
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4182
    treeView isCanvasSelected ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4183
        spec := treeView canvasSpec.
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4184
        view := self canvas. "/ self painter topView.
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4185
    ] ifFalse:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4186
        (property := treeView propertySelected) notNil ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4187
            treeView canResizeSelectedWidget ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4188
                view := property view.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4189
            ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4190
            spec := property spec copy.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4191
        ]
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4192
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4193
    ^ Array with:spec with:view
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4194
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4195
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4196
tabSelection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4197
    "returns the label of the current section in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4198
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4199
    ^ tabSelection
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4200
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4201
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4202
tabSelection:something
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4203
    "called whenever the section of the notebook has changed"
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  4204
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4205
    (something isNil or:[tabSelection = something]) ifTrue:[
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4206
        ^ self
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4207
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4208
2202
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4209
    self isModified ifTrue:[
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4210
        self autoAcceptOnSelectionChange value ifTrue:[
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4211
            self accept
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4212
        ] ifFalse:[
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4213
            self askForUnsavedModifications ifFalse:[^ self].
b465c7e48050 changed #tabSelection:
ca
parents: 2198
diff changeset
  4214
        ].
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4215
    ].
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4216
    tabSelection := something.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4217
    self raiseTabView.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4218
    self cancel.
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4219
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4220
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4221
treeSelectionChanged
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4222
    "called whenever the selection of the treeview has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4223
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4224
    |specAndView view spec|
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4225
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4226
    self askForUnsavedModifications ifFalse:[^ self].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4227
"/    self isModified ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4228
"/        (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
  4229
"/            self accept
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4230
"/        ]
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4231
"/    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4232
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4233
    specAndView := self selectedSpecAndView.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4234
    spec := specAndView first.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4235
    view := specAndView last.
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4236
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4237
    self setViewInLayoutTool:view spec:spec.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  4238
    self specTool specification:spec.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4239
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4240
    self updateSlicesForSpec:spec andView:view.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4241
    self clearModifiedFlag.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4242
    self updateChannels.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4243
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4244
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4245
updateSlicesForSpec:spec andView:view
2512
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4246
    "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
  4247
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4248
    |slices "size" list tabComponent|
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4249
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4250
    tabComponent := self componentAt:#noteBook.
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  4251
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4252
    spec notNil ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4253
        self helpTool helpKey:(spec activeHelpKey).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4254
        slices := spec class slices.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4255
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4256
        list := slices collect:[:eachSlice | eachSlice first asString].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4257
        self treeView isCanvasSelected ifFalse:[
2040
2df23da6484a you shalt not add to Arrays !
ab
parents: 2023
diff changeset
  4258
            list := list copyWith:(UIHelpTool label)
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4259
        ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4260
        view notNil ifTrue:[
2512
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4261
            "/ for now, keep it as an empty slice;
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4262
            "/ better when toggling as we do not loos the 'geometry' selection.
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4263
            "/ slices notebook should remember the last 'explicit' selected tab.
86e433bf6e7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
  4264
            true "spec hasLayout" ifTrue:[
2511
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  4265
                list := list copyWith:UILayoutTool label.
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  4266
            ]
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4267
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4268
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4269
"/        size   := slices size.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4270
"/        view notNil ifTrue:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4271
"/            self treeView isCanvasSelected ifFalse:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4272
"/                list := Array new:(size + 2).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4273
"/                list at:(size + 2) put:(UILayoutTool label).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4274
"/            ] ifTrue:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4275
"/                list := Array new:(size + 1).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4276
"/                list at:(size + 1) put:(UILayoutTool label).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4277
"/            ].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4278
"/        ] ifFalse:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4279
"/            list := Array new:(size + 1).
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4280
"/        ].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4281
"/
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4282
"/        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
  4283
"/        self treeView isCanvasSelected ifFalse: [
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4284
"/            list at:(size + 1) put:(UIHelpTool label)
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4285
"/        ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4286
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4287
        self tabList value:list.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4288
        self showHelp:spec class name for:self.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4289
        tabComponent enabled:true.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4290
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4291
        (tabSelection := tabComponent selection) isNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4292
            tabComponent setSelection:(tabSelection := list first)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4293
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4294
        self raiseTabView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4295
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4296
        self helpTool helpKey:nil.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4297
        tabComponent enabled:false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4298
        self defaultInfoLabel.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  4299
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4300
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4301
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4302
!UIPainter methodsFor:'settings'!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4303
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4304
generateAspectsAsInstanceVariables
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4305
    "if on, aspects are held as instance variables;
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4306
     if off (the default), they are kept in the bindings dictionary."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4307
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4308
    ^ UIPainterView generateAspectsAsInstanceVariables
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4309
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4310
    "Created: / 29-07-1998 / 11:17:59 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4311
    "Modified: / 12-01-2008 / 10:37:43 / cg"
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4312
!
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4313
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4314
generateAspectsAsInstanceVariables:aBoolean
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4315
    "if on, aspects are held as instance variables;
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4316
     if off (the default), they are kept in the bindings dictionary."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4317
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4318
    ^ UIPainterView generateAspectsAsInstanceVariables:aBoolean
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4319
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4320
    "Created: / 29.7.1998 / 11:18:20 / cg"
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4321
!
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  4322
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4323
generateCommentedCode
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4324
    "comments in generated aspect methods; yes or no."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4325
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4326
    ^ UIPainterView generateCommentedCode
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4327
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4328
    "Created: / 12-01-2008 / 10:34:14 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4329
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4330
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4331
generateCommentedCode:aBoolean
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4332
    "comments in generated aspect methods; yes or no."
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4333
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4334
    UIPainterView generateCommentedCode:aBoolean
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4335
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4336
    "Created: / 12-01-2008 / 10:23:10 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4337
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4338
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4339
redefineAspectMethods
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4340
    "redefine methods yes or no.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4341
     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
  4342
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4343
    ^ UIPainterView redefineAspectMethods
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4344
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4345
    "Modified: / 12-01-2008 / 10:34:07 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4346
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4347
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4348
redefineAspectMethods:aBoolean
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4349
    "redefine methods yes or no.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4350
     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
  4351
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4352
    UIPainterView redefineAspectMethods:aBoolean
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4353
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4354
    "Modified: / 12-01-2008 / 10:23:20 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4355
! !
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4356
1716
5ae373f6fef0 method category rename
Claus Gittinger <cg@exept.de>
parents: 1714
diff changeset
  4357
!UIPainter methodsFor:'startup & release'!
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4358
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4359
closeRequest
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4360
    "asks for permission before closing"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4361
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  4362
    self askForModification ifFalse:[^self].
133
e12f82d3afb7 popup box caused by a closeRequest with still open
ca
parents: 130
diff changeset
  4363
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4364
    super closeRequest.
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4365
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4366
    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
  4367
        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
  4368
        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
  4369
    ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4370
    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
  4371
        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
  4372
    ].
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4373
    selectionPanel notNil ifTrue:[
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4374
        selectionPanel masterApplication:nil.
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4375
        selectionPanel closeRequest
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4376
    ].
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4377
    "/ 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
  4378
    "/ treeView       := nil.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4379
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4380
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4381
closeRequestFor:aTopView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4382
    "handles a close request for a specific view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4383
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  4384
    |topView|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4385
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4386
    (topView := self window) == aTopView ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4387
        super closeRequestFor:aTopView
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4388
    ] ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4389
        aTopView = selectionPanel window ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4390
            self galleryShown value:false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4391
        ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4392
            aTopView == (self painter topView) ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4393
                self painterShown value:false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4394
            ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4395
                aTopView closeRequest
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4396
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4397
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  4398
        topView raise.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4399
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4400
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4401
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4402
commonPostBuild
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4403
    "sets the root of the tree view as first selection;
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4404
     sets the grid parameters, if defined"
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4405
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4406
    |cls sel|
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4407
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4408
    cls := self specClass.
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4409
    sel := specSelector.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4410
    cls notNil ifTrue:[
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4411
        self setClass:cls selector:sel.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4412
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4413
        (cls respondsTo:sel) ifTrue:[  
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4414
            self painter setupFromSpec:(cls perform:sel).
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4415
        ]
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4416
    ].
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4417
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4418
    self autoAcceptOnSelectionChange addDependent:self.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4419
    self autoAcceptOnSelectionChange value ifTrue:[
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4420
        (builder componentAt:'acceptButton') label:(resources string:'Apply')
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4421
    ].
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4422
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4423
    "/ using masters infoHolder ?
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4424
    (builder aspectAt:#useAlienInfoLabelHolder) == true ifTrue:[
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4425
        (builder componentAt:#mainPanel) layout bottomOffset:0.
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4426
        (builder componentAt:#infoBarSubSpec) beInvisible
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4427
    ].
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4428
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  4429
    self updateInfoLabel.
2023
7a37b7c85092 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2012
diff changeset
  4430
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4431
    "Modified: / 31-08-2006 / 10:12:53 / cg"
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4432
!
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4433
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4434
loadFromClass:aClass andSelector:selector
1185
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  4435
    "loads a window spec by evaluating aMessageString
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  4436
     (which is something like 'fooClass windowSpec')"
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  4437
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4438
    self assert:(aClass isNil or:[aClass isClass]).
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4439
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4440
    self askForModification ifFalse:[^ self].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4441
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4442
    self setClass:aClass selector:selector.    
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4443
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4444
    (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
  4445
        self loadFromSpec:(aClass perform:selector).
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4446
    ]
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4447
!
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4448
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4449
loadFromMessage:classAndSelector
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4450
    "loads a window spec by evaluating aMessageString
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4451
     (which is something like 'fooClass windowSpec')"
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4452
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4453
    self askForModification ifFalse:[^ self].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4454
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4455
    classAndSelector notNil ifTrue:[
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4456
        self 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4457
            loadFromClass:classAndSelector methodClass 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4458
            andSelector:classAndSelector methodSelector
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4459
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4460
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4461
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4462
loadFromSpec:aSpec
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4463
    "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
  4464
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4465
    self askForModification ifFalse:[^ self].
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4466
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4467
    self painter setupFromSpec:aSpec.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4468
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4469
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  4470
openInterface:aSymbol 
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4471
    "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
  4472
    
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4473
    |topView|
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4474
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4475
    self setupSpecClassAndSelector.
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4476
2012
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4477
"/    treeView := TreeView new.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4478
"/    treeView windowSpecClass:(self defaultWindowSpecClass).
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4479
"/    treeView 
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4480
"/        selectConditionBlock:[:newSelection | self selectionChangeAllowed:newSelection ].
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4481
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4482
"/    painterView := StandardSystemView new.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4483
"/    name := name ? UIPainter defaultNameOfCanvas.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4484
"/    painterView beToolWindow.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4485
"/    painterView name:name.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4486
"/    painterView label:name.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4487
"/    painterView extent:(treeView windowSpecClass defaultExtentInUIPainter).
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4488
"/    painter := UIPainterView in:painterView.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4489
"/    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
  4490
"/    treeView := treeView canvas:painter specName:name.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4491
"/    painter treeView:treeView.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4492
"/    treeView model addDependent:self.
3a3b694c8288 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  4493
"/    painter enableChannel:(self enableChannel).
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4494
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4495
    super openInterface:aSymbol.
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4496
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  4497
    topView := self window.
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  4498
    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
  4499
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4500
"/    self setupCanvasAndSelectionPanel.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4501
"/
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4502
"/    selectionPanel window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4503
"/    painterView window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4504
"/    self window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4505
"/    [ Delay waitForSeconds:0.5. self window topView raise ] fork.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4506
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4507
    "Modified: / 31-08-2006 / 10:13:16 / cg"
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4508
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4509
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4510
openOnClass:aClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4511
    "opens the GUI Painter on aClass and #windowSpec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4512
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4513
    self openOnClass:aClass andSelector:#windowSpec
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4514
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  4515
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4516
openOnClass:aClass andSelector:aSelector
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4517
    "opens the GUI Painter on aClass and aSelector"
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4518
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  4519
    aClass isNil ifTrue:[
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  4520
        (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
  4521
        ifFalse:[^ nil].
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  4522
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4523
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  4524
    specSelector := aSelector.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4525
    specClass := aClass.
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4526
    specClassName := aClass name.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  4527
964
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  4528
    self openInterface.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  4529
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  4530
"/    specSelector := aSelector.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  4531
"/    specClass := aClass.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  4532
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  4533
    "Modified: / 31-08-2006 / 10:13:31 / cg"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4534
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4535
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4536
postBuildWith: aBuilder
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4537
    super postBuildWith:aBuilder.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  4538
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4539
    (self toolBarVisibleHolder value 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4540
    or:[ self editToolBarVisibleHolder value ]) ifTrue:[ self toolBarVisibilityChanged ].
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4541
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4542
    "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
  4543
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4544
    self setupPainter.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4545
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4546
    "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
  4547
!
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4548
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4549
postOpenWith: aBuilder
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4550
    "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
  4551
1194
651885033545 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1193
diff changeset
  4552
    |myWindow canvasWindow canvasOrg galleryWindow 
1957
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4553
     galleryOrg myOrg myCorner windowGroup|
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4554
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4555
    super postOpenWith: aBuilder.
1957
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4556
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4557
    windowGroup := self topApplication windowGroup.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4558
    windowGroup addPreEventHook:self.
cd30f8cd59f8 Ctrl-CursorUp/Down in tree
Claus Gittinger <cg@exept.de>
parents: 1954
diff changeset
  4559
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  4560
    treeView selection: #(1).
1247
6fb170b75302 clear menuBar in keyProcessor
ca
parents: 1230
diff changeset
  4561
    aBuilder keyboardProcessor menuBar:nil.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  4562
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4563
    myWindow := self window.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4564
    canvasWindow := self painter topView.
1456
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  4565
    [selectionPanel isNil] whileTrue:[
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  4566
        Delay waitForSeconds:0.1.
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  4567
    ].
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4568
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4569
    galleryWindow := selectionPanel window.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4570
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4571
    myOrg := myWindow origin.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4572
    myCorner := myWindow corner.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4573
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4574
    "/ try to lay out things non-overlapping
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4575
    true
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4576
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4577
    "/ 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
  4578
    "/ on top of each other
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4579
    "/ myOrg = canvasWindow origin 
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4580
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4581
    ifTrue:[
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4582
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4583
        canvasOrg := 10@20.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4584
"/        myOrg := (device width - myWindow width - 20) @ 20.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4585
        galleryOrg := (device width - galleryWindow width - 20) 
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4586
                      @ 
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4587
                      ((myWindow height + 20) min:(device height - galleryWindow height - 20)).
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4588
        myWindow origin:myOrg.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4589
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4590
        canvasWindow origin:canvasOrg.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4591
        galleryWindow origin:galleryOrg.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4592
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4593
        galleryWindow raise.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4594
        canvasWindow raise.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  4595
    ].
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  4596
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4597
    self setupCanvasAndSelectionPanel.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4598
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4599
"/    selectionPanel window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4600
"/    painterView window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4601
"/    self window waitUntilVisible.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4602
    [   Delay waitForSeconds:0.1. 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4603
        self window topView raise.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4604
        Delay waitForSeconds:0.25. 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4605
        self window topView raise 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4606
    ] fork.
1195
64f3537ca061 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1194
diff changeset
  4607
    "Modified: / 13.7.1999 / 21:26:52 / cg"
1461
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  4608
!
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  4609
2551
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4610
release
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4611
    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
  4612
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4613
    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
  4614
        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
  4615
    ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4616
    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
  4617
        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
  4618
        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
  4619
    ].
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4620
    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
  4621
    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
  4622
    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
  4623
!
9f95bababe1b fixes to allow for table-view spec to be inline (no class/selector)
Claus Gittinger <cg@exept.de>
parents: 2547
diff changeset
  4624
1461
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  4625
selectionPanelClass
2218
01fdf3323d89 changed #selectionPanelClass
Stefan Vogel <sv@exept.de>
parents: 2217
diff changeset
  4626
    ^ SelectionPanelClass
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4627
!
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4628
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4629
setupCanvasAndSelectionPanel
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4630
    |topView galleryWindow icon|
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4631
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4632
    icon := Smalltalk imageFromFileNamed:'UIPainter.xbm' forClass:self class.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4633
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4634
    topView := self window.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4635
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4636
    painterView openInGroup:(topView windowGroup).
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4637
    painterView application:self.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4638
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4639
    galleryWindow := selectionPanel window.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4640
    galleryWindow beToolWindow.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4641
    galleryWindow openInGroup:(topView windowGroup).
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4642
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4643
    selectionPanel masterApplication:self.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4644
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4645
    topView iconLabel:'GUI Painter'.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4646
    topView icon:icon.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4647
    painterView iconLabel:'GUI Canvas'.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4648
    painterView icon:icon.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4649
    galleryWindow iconLabel:'GUI Gallery'.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4650
    galleryWindow icon:icon.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4651
    
2277
342f25e2c276 more changes to allow for non-class/selector (i.e. spec-only) use
Claus Gittinger <cg@exept.de>
parents: 2273
diff changeset
  4652
    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
  4653
        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
  4654
        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
  4655
        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
  4656
    ]
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4657
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4658
1994
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4659
setupPainter
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4660
    "sets the painter's grid parameters, if defined"
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4661
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4662
    |painter settings gridPara hspace vspace|
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4663
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4664
    painter  := self painter.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4665
    settings := self class settings.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4666
    gridPara := painter gridParameters copy.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4667
    hspace   := settings at: #HGridSpace ifAbsent:10.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4668
    vspace   := settings at: #VGridSpace ifAbsent:10.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4669
    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
  4670
    painter gridParameters:gridPara.
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4671
    painter gridShown: (settings at: #GridShown ifAbsent:false).
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4672
    painter gridAlign: (settings at: #GridAlign ifAbsent:false).
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4673
    painter shown ifTrue:[painter clearView].
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4674
afcf20d971e0 postBuild
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  4675
    "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
  4676
!
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4677
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4678
setupSpecClassAndSelector
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4679
    |cls name|
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4680
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4681
    self specClass notNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4682
        specClassName isBehavior ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4683
            name := specClassName nameWithoutPrefix.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4684
        ] ifFalse:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4685
            name := specClassName printString string
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4686
        ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4687
    ].
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4688
    (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
  4689
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4690
    specSuperclassName isNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4691
        specClassName notNil ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4692
            (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
  4693
                specSuperclassName := cls superclass name.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4694
            ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4695
        ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4696
    ].
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4697
    aspects at:#superclassNameChannel
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4698
        put:((specSuperclassName notNil 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4699
                ifTrue:[ specSuperclassName ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4700
                ifFalse:[ 'ApplicationModel' ]) asValue).
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4701
    aspects at:#superclassNameDefaults
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4702
        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
  4703
    aspects at:#methodNameChannel
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4704
        put:((specSelector notNil 
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4705
                ifTrue:[ specSelector asValue ]
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  4706
                ifFalse:[ #windowSpec ]) asValue).
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4707
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4708
    "Modified: / 16-01-2008 / 10:44:55 / cg"
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4709
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4710
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  4711
!UIPainter methodsFor:'user actions'!
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  4712
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4713
accept
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4714
    "accepts all modifications done to the attributes of the current section"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4715
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4716
    |painter layout spec layoutTool layoutView t|
1068
dcb2cba5787f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1063
diff changeset
  4717
dcb2cba5787f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1063
diff changeset
  4718
    self acceptChannel value:true; value:false.  "/ force editFields to accept
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4719
    self clearModifiedFlag.
788
8f9f3c3fcf60 avoid modified problems
tz
parents: 787
diff changeset
  4720
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4721
    painter := self painter.
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4722
    spec := self specTool specification.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4723
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4724
    self isLayoutToolSelected ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4725
        layoutTool := self layoutTool.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4726
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4727
        (layout := layoutTool layout) notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4728
            layoutTool layoutType == #Extent ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4729
                layoutView := layoutTool layoutView.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4730
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4731
                layoutView == self canvas ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4732
                    layoutView extent:layout.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4733
                    UseViewScroller == true ifTrue:[
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4734
                        layoutView container container sizeChanged:nil.
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  4735
                    ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4736
                ] ifFalse:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4737
                    spec useDefaultExtent:(layoutTool aspectFor:#useDefaultExtent) value.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4738
                    spec useDefaultExtent ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4739
                        "/ temporarily unfreeze the widgets size
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4740
                        "/ (but remember, the old setting, which is actually
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4741
                        "/ controlled by the resizeForLabel attribute)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4742
                        t := layoutView sizeFixed.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4743
                        layoutView sizeFixed:false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4744
                        layout := layoutView preferredExtent.    
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4745
                        layoutView sizeFixed:t.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4746
                    ].
2477
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  4747
                    spec usePreferredWidth:(layoutTool aspectFor:#usePreferredWidth) value.
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  4748
                    spec usePreferredHeight:(layoutTool aspectFor:#usePreferredHeight) value.
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  4749
                    spec useDynamicPreferredWidth:(layoutTool aspectFor:#useDynamicPreferredWidth) value.
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  4750
                    spec useDynamicPreferredHeight:(layoutTool aspectFor:#useDynamicPreferredHeight) value.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4751
                    painter setExtent:layout.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4752
                    painter updateFromSpec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4753
                ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4754
            ] ifFalse:[
1444
fec7424dccda clear the useDefaultExtent flag, if the layout is NOT an extent
martin
parents: 1442
diff changeset
  4755
                spec useDefaultExtent:false.
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  4756
                spec usePreferredWidth:(layoutTool aspectFor:#usePreferredWidth) value.
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  4757
                spec usePreferredHeight:(layoutTool aspectFor:#usePreferredHeight) value.
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  4758
                spec useDynamicPreferredWidth:(layoutTool aspectFor:#useDynamicPreferredWidth) value.
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  4759
                spec useDynamicPreferredHeight:(layoutTool aspectFor:#useDynamicPreferredHeight) value.
2477
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  4760
                painter setLayout:layout.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  4761
                spec layout:layout.
2477
e51d7128bcd4 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2442
diff changeset
  4762
                painter updateFromSpec:spec.
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  4763
            ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4764
        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4765
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4766
        self isHelpToolSelected ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4767
            self helpTool accept.      
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4768
            spec activeHelpKey:self helpTool helpKey.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4769
        ].      
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4770
        painter updateFromSpec:spec
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4771
    ].
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  4772
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4773
    self clearModified
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4774
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4775
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4776
addWidget: aSpecClass
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4777
    "adds a widget from aSpecClass to the current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4778
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4779
    self addWidgetOfSpec: (Array with: (Smalltalk at: aSpecClass) new)
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4780
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4781
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4782
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4783
addWidgetOfSpec: aSpec
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4784
    "adds a widget from aSpec to the current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4785
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4786
    |newSel|
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4787
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4788
    (newSel := painter pasteSpecifications:aSpec keepLayout:false at:0@0) notNil
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4789
    ifTrue:[
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4790
        painter select: newSel
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4791
    ] ifFalse:[   
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4792
        ((treeView selection size = 0) or: [treeView selectedNode isNil])
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4793
        ifTrue:[                          
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4794
            treeView selection: #(1).
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4795
        ] ifFalse:[  
1521
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4796
            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
  4797
        ].
2efd2b9419c4 undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents: 1499
diff changeset
  4798
        self addWidgetOfSpec: aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4799
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4800
2077
bf7f7207fa07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2072
diff changeset
  4801
    "Modified: / 05-09-2006 / 18:37:12 / cg"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4802
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4803
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4804
cancel
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4805
    "cancels all modifications done to the attributes of the current section; 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4806
     reread the old attributes"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4807
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4808
    |spec key view|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4809
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4810
    self isModified ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4811
        (spec := self painter specForSelection) notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4812
            key := spec activeHelpKey.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4813
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4814
        self helpTool helpKey:key.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4815
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4816
        treeView isCanvasSelected ifTrue: [
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4817
            spec := treeView canvasSpec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4818
        ].
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  4819
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4820
        self specTool specification:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4821
        view := self layoutTool layoutView.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4822
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4823
        self setViewInLayoutTool:view spec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4824
        spec class == DataSetSpec ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4825
            view notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4826
                view columnDescriptors:(spec columns)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4827
            ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4828
        ].        
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  4829
        self clearModifiedFlag.
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  4830
        self clearModified.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4831
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4832
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4833
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4834
doAskAndReplaceWidgetBy
2397
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  4835
    |widgetClass list common selectedSpec|
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  4836
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  4837
    selectedSpec := self selectedSpec.
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  4838
    selectedSpec isNil ifTrue:[^ self].
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4839
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4840
    list :=  UISpecification allSubclasses
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4841
                select:[:cls | Error handle:[ false ] do:[ cls viewClass notNil]].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4842
    list sort:[:a :b | a name < b name].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4843
2397
07ab2bdac066 changed #doAskAndReplaceWidgetBy
ca
parents: 2393
diff changeset
  4844
    common := selectedSpec class commonReplacementClasses.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4845
    common notEmpty ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4846
        list addAllFirst:(common , (Array with:'-')).
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4847
    ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4848
    widgetClass := Dialog 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4849
                        requestClass:'Spec- or View-Class:'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4850
                        list:list
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4851
                        okLabel:'OK' 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4852
                        initialAnswer:nil.
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4853
    widgetClass isNil ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4854
        ^ self
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4855
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4856
    self replaceWidgetByClass:widgetClass
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4857
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4858
    "Modified: / 12-01-2008 / 23:50:25 / cg"
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4859
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  4860
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4861
doBrowseActionMethod:aspectSelector
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4862
    "browse or create the action method as entered in the field (button beside input filed pressed)"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4863
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4864
    self acceptOrIgnoreSectionModification.
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  4865
2222
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  4866
    self doBrowseActionMethod:aspectSelector nameAs:aspectSelector
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4867
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4868
    "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
  4869
!
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  4870
23205ddb56e1 bug fix: saving a spec while grid is on saved the grid-Form
Claus Gittinger <cg@exept.de>
parents: 2220
diff changeset
  4871
doBrowseActionMethod:aspectSelector nameAs:aspectNameShown
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  4872
    "browse or create the action method as entered in the field"
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  4873
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4874
    |cls spec aspect code|
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4875
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4876
    cls := self specClass.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4877
    cls isNil ifTrue:[
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  4878
        Dialog information:'No application class defined.'.
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4879
        ^ self
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4880
    ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4881
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4882
    spec := painter specForSelection.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4883
    spec isNil ifTrue:[^ self].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4884
    aspect := spec perform:aspectSelector.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4885
    aspect isNil ifTrue:[
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4886
        Dialog information:(resources 
2296
365b3a73cd28 pass info about being a non-class editor to dataSetEditor
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
  4887
                                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
  4888
                                with:(resources string:aspectNameShown) allBold).
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4889
        ^ self
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4890
    ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4891
        
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4892
    (cls implements:aspect asSymbol) ifFalse:[
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4893
        (Dialog confirm:(resources 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4894
                            stringWithCRs:'%1 does not implement %2.\\Create ?'
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4895
                            with:(cls name allBold)
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4896
                            with:aspect allBold)) 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4897
        ifFalse:[
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4898
            (Dialog confirm:(resources 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4899
                                stringWithCRs:'Browse implementors of %1 ?'
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4900
                                with:aspect allBold)) 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4901
            ifTrue:[
2219
dc5bf7573298 changed #doBrowseActionMethod:
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4902
                UserPreferences current systemBrowserClass browseImplementorsOf:aspect
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4903
            ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4904
            ^ self
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4905
        ].
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4906
        code := painter
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4907
            generateActionMethodFor:aspect 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4908
            spec:nil 
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4909
            inClass:cls.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4910
        code readStream fileIn.
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4911
    ].
2219
dc5bf7573298 changed #doBrowseActionMethod:
Claus Gittinger <cg@exept.de>
parents: 2218
diff changeset
  4912
    UserPreferences current systemBrowserClass openInClass:cls selector:aspect
2210
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4913
!
0a2c19976d82 action creation/browse added
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4914
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4915
doBrowseAspectMethod:aspectSelector
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  4916
    "browse or create the aspect method as entered in the field (button beside input fieled pressed)"
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4917
2529
07c7e9ba97ee changed #doBrowseAspectMethod:
Claus Gittinger <cg@exept.de>
parents: 2527
diff changeset
  4918
    self isModified ifTrue:[ self accept ].
07c7e9ba97ee changed #doBrowseAspectMethod:
Claus Gittinger <cg@exept.de>
parents: 2527
diff changeset
  4919
    "/ self acceptOrIgnoreSectionModification.
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4920
    self doBrowseAspectMethod:aspectSelector nameAs:aspectSelector
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4921
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  4922
    "Modified: / 12-01-2008 / 10:32:15 / cg"
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4923
!
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4924
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4925
doBrowseAspectMethod:aspectSelector nameAs:aspectNameShown
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  4926
    "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
  4927
2527
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  4928
    |cls spec aspect implementingClass answer|
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4929
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4930
    cls := self specClass.
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4931
    cls isNil ifTrue:[
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4932
        Dialog information:'No Application Class defined.'.
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4933
        ^ self
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4934
    ].
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4935
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4936
    spec := painter specForSelection.
2527
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  4937
    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
  4938
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4939
    aspect := spec perform:aspectSelector.
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  4940
    aspect isString ifFalse:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  4941
        "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
  4942
        aspect isNil ifTrue:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  4943
            Dialog information:(resources 
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  4944
                                    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
  4945
                                    with:(resources string:aspectNameShown) allBold).
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  4946
        ].
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4947
        ^ self
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4948
    ].
2357
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4949
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4950
    implementingClass := (cls whichClassImplements:aspect asSymbol).
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4951
    implementingClass isNil ifTrue:[
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4952
        implementingClass := (cls class whichClassImplements:aspect asSymbol).
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4953
    ].
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4954
    implementingClass isNil ifTrue:[
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4955
        answer := OptionBox
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4956
                          request:(resources 
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4957
                                    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
  4958
                                    with:(cls name allBold)
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4959
                                    with:aspect allBold)
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4960
                          label:'Create/Browse Aspect Method'
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4961
                          image:(WarningBox iconBitmap)
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4962
                          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
  4963
                          values:#(abort browseImplementors createAndBrowse create )
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4964
                          default:#create
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4965
                          onCancel:#abort.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4966
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4967
        answer == #browseImplementors ifTrue:[
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4968
            UserPreferences current systemBrowserClass browseImplementorsOf:aspect.
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4969
            ^ self
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4970
        ].
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4971
        answer == #abort ifTrue:[
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4972
            ^ self
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4973
        ].
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4974
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4975
        self doGenerateAspectMethodsForAll:(Array with:aspect).
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4976
        implementingClass := self painter targetClass.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4977
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4978
        answer == #create ifTrue:[^ self].
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4979
    ] ifFalse:[
2547
80cb3ae254fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2544
diff changeset
  4980
        (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
  4981
            ^ self.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4982
        ].
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4983
    ].
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  4984
2357
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4985
    UserPreferences current systemBrowserClass 
48ed61c2825e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2353
diff changeset
  4986
        openInClass:implementingClass selector:aspect
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4987
!
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  4988
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  4989
doBrowseAspectMethods
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  4990
    "opens a browser on all the aspect methods"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4991
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4992
    |methods|
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  4993
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  4994
    self painter isModified ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  4995
        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
  4996
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4997
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4998
    (methods := self painter aspectMethods) isEmpty ifTrue:[
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  4999
        self warn:'No aspect methods found !!'.
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  5000
        ^ self.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5001
    ].
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5002
    UserPreferences systemBrowserClass 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5003
        browseMethods:methods 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5004
        title:'Aspect methods'.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5005
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5006
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5007
doBrowseClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5008
    "opens a System Browser on the specClass"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5009
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5010
    self painter isModified ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  5011
        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
  5012
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5013
2400
40e49dac643e code reuse
Claus Gittinger <cg@exept.de>
parents: 2399
diff changeset
  5014
    Smalltalk browseInClass:(self resolveName:specClassName)
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5015
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5016
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5017
doBrowseSpecificationClass
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5018
    "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
  5019
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5020
    |spec|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5021
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5022
    (spec := self painter specForSelection) isNil ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5023
        treeView isCanvasSelected ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5024
            spec := treeView canvasSpec.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5025
        ]
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5026
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5027
    spec notNil ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5028
        spec class browse
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5029
    ]
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5030
!
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5031
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5032
doBrowseViewClass
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5033
    "opens a browser on the selected widgets class"
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5034
2273
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5035
    |selection widget|
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5036
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5037
    ((selection := self painter selection) isCollection and: [selection size >= 1]) ifTrue:[
2273
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5038
        widget := selection first
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5039
    ] ifFalse:[
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5040
        widget := selection
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5041
    ].
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5042
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5043
    widget isScrollWrapper ifTrue:[ widget := widget scrolledView].
b72473dda659 changed #doBrowseViewClass
Claus Gittinger <cg@exept.de>
parents: 2268
diff changeset
  5044
    widget class browse
1742
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5045
!
4c39c2f1dcc7 help texts
Claus Gittinger <cg@exept.de>
parents: 1739
diff changeset
  5046
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5047
doDefineClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5048
    "launches a dialog for defining class, superclass, and selector of the application"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5049
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5050
    |again readFromModelKeyed|
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5051
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5052
    readFromModelKeyed := [:aKey| |ret|
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5053
        ret := (self aspectFor:aKey) value.
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5054
        ret isEmptyOrNil ifTrue:[
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5055
            ret := nil
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5056
        ] ifFalse:[
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5057
            ret isString ifTrue:[
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5058
                ret := ret string withoutSeparators.
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5059
                ret := ret isEmpty ifTrue:[nil] ifFalse:[ret asSymbol].
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5060
            ].
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5061
        ].
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5062
        ret
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5063
    ].
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5064
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5065
    [
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5066
        again := false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5067
2372
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  5068
        aspects at:#classNameChannel      put:(specClassName  ? 'NewApplication')   asValue.
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5069
        aspects at:#methodNameChannel     put:(specSelector   ? 'windowSpec')       asValue.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5070
        aspects at:#superclassNameChannel put:(specSuperclassName ? 'ApplicationModel') asValue.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5071
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5072
        (self openDialogInterface:#dialogSpecForDefiningClassAndSelector) ifTrue:[
2206
1a7921b6c104 changed #doDefineClassAndSelector
Claus Gittinger <cg@exept.de>
parents: 2202
diff changeset
  5073
            specClassName  := readFromModelKeyed value:#classNameChannel.
1819
cbf2079fd723 bugfix: test whether specClass is a symbol not a string
ca
parents: 1803
diff changeset
  5074
            specSelector   := readFromModelKeyed value:#methodNameChannel.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5075
            specSuperclassName := readFromModelKeyed value:#superclassNameChannel.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5076
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5077
            (again := self checkClassAndSelector not) ifFalse:[
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5078
                self painter 
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5079
                    className:specClassName
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5080
                    superclassName:specSuperclassName
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5081
                    selector:specSelector.
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5082
            ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5083
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5084
            again ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5085
                ((Smalltalk at:specClassName asSymbol) notNil
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5086
                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
  5087
                ifTrue:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5088
                    (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
  5089
                    ifFalse:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5090
                        again := true.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5091
                    ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5092
                ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5093
            ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5094
        ] ifFalse: [
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5095
            ^nil
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5096
        ]
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5097
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5098
    ] doWhile:[again].
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5099
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5100
    specClassName := specClassName isBehavior 
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5101
                        ifTrue:[specClassName name]
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5102
                        ifFalse:[specClassName].
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5103
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  5104
    self clearModifiedFlag.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5105
    self helpTool buildAndMergeFromClass:specClassName.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5106
    self updateInfoLabel
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  5107
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  5108
    "Modified: / 16.7.1998 / 18:26:33 / cg"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5109
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5110
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5111
doDefineGrid
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5112
    "opens a dialog for the grid parameters"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5113
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5114
    |hspace vspace bindings painter gridPara settings|
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5115
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5116
    painter  := self painter.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5117
    bindings := IdentityDictionary new.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5118
    gridPara := painter gridParameters copy.
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5119
    settings := self class settings.
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5120
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5121
    bindings at:#showGrid    put:((settings at: #GridShown ifAbsent: [painter gridShown]) asValue).
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5122
    bindings at:#alignToGrid put:((settings at: #GridAlign ifAbsent: [painter gridAlign]) asValue).
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5123
    bindings at:#hspace      put:((gridPara at:1) asValue).
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5124
    bindings at:#vspace      put:((gridPara at:2) asValue).
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5125
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5126
    (self openDialogInterface:#dialogSpecForDefiningGridParameters withBindings:bindings) ifFalse:[
1803
a0f73e1695e1 clear -> clearView
Claus Gittinger <cg@exept.de>
parents: 1801
diff changeset
  5127
        ^ self
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5128
    ].
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5129
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5130
    hspace := (bindings at:#hspace) value ? 5.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5131
    vspace := (bindings at:#vspace) value ? 5.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5132
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5133
    gridPara at:1 put:hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5134
    gridPara at:2 put:vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5135
    gridPara at:5 put:hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5136
    gridPara at:6 put:vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5137
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5138
    painter gridShown:false. 
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5139
    painter gridAlign:false. 
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5140
    painter gridParameters:gridPara.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5141
    painter gridAlign:(bindings at:#alignToGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5142
    painter gridShown:(bindings at:#showGrid) value.
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5143
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5144
    settings at: #GridShown  put: (bindings at:#showGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5145
    settings at: #GridAlign  put: (bindings at:#alignToGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5146
    settings at: #HGridSpace put: hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5147
    settings at: #VGridSpace put: vspace.
1803
a0f73e1695e1 clear -> clearView
Claus Gittinger <cg@exept.de>
parents: 1801
diff changeset
  5148
    painter clearView.
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5149
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  5150
    "Modified: / 4.2.1999 / 15:36:34 / cg"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5151
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5152
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5153
doEditList:listSelector
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5154
    "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
  5155
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5156
    |spec list editor|
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5157
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5158
    self acceptOrIgnoreSectionModification.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5159
2318
8d920f26edef care for nil UIList
Claus Gittinger <cg@exept.de>
parents: 2313
diff changeset
  5160
    UIListEditor isNil ifTrue:[^ self].
8d920f26edef care for nil UIList
Claus Gittinger <cg@exept.de>
parents: 2313
diff changeset
  5161
2284
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5162
    spec := painter specForSelection.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5163
    spec isNil ifTrue:[^ self].
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5164
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5165
    "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
  5166
    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
  5167
    list isNil ifTrue:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5168
        list := #()
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5169
    ].
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5170
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5171
    editor := UIListEditor new.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5172
    editor
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5173
        informationLabel:'Edit List';
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5174
        list:list;
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5175
        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
  5176
        open.
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5177
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5178
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5179
    editor accepted ifTrue:[
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5180
        "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
  5181
        (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
  5182
    ].
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5183
!
4116d91b6dda Allow to edit a list in a spec inline
Stefan Vogel <sv@exept.de>
parents: 2280
diff changeset
  5184
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5185
doGenerateAspectMethodFor
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5186
    |cls aspectList displayedList selectorsToGenerateCode 
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5187
     doBrowse methods|
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5188
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5189
    self askForSectionModification.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5190
2238
3b631ae43cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  5191
    cls := self painter targetClass.
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5192
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5193
    aspectList := OrderedCollection new.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5194
2238
3b631ae43cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  5195
    self painter aspectSelectorsAndTypesDo:
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5196
        [:selector :type |
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5197
            |newEntry|
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5198
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5199
            ( #(#modelAspect channelAspect actionSelector valueSelector) includes:type) ifTrue:[
2294
0a4591e6bb20 changed #doGenerateAspectMethodFor
Stefan Vogel <sv@exept.de>
parents: 2293
diff changeset
  5200
                ((cls canUnderstand:selector) or:[cls class canUnderstand:selector]) ifFalse:[
2235
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5201
                    newEntry := Array with:selector with:type.    
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5202
                    (aspectList contains:[:entry | entry = newEntry]) ifFalse:[    
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5203
                        aspectList add:newEntry.
ac5b46f34c53 browse/generate aspect methods
Claus Gittinger <cg@exept.de>
parents: 2230
diff changeset
  5204
                    ]
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5205
                ]
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5206
            ]
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5207
        ].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5208
    
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5209
    aspectList isEmpty ifTrue:[
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5210
        self information:'All aspect methods exist.'.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5211
        ^ self.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5212
    ].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5213
2220
ff2b5cb004c2 sort aspects in generateAspectsMethods dialog;
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  5214
    aspectList sort:[:a :b | a first < b first].
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5215
    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
  5216
    aspectList := aspectList collect:[:each | each first].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5217
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5218
    doBrowse := false.    
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5219
    selectorsToGenerateCode := Dialog
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5220
        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
  5221
        fromList:displayedList 
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5222
        values:aspectList 
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5223
        initialSelection:nil
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5224
        buttons:nil 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5225
        values:nil 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5226
        lines:15 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5227
        cancel:nil 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5228
        multiple:true
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5229
        postBuildBlock:[:dialog | 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5230
                            |b|
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5231
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5232
                            b := Button label:'Generate & Browse'.
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5233
                            b action:[doBrowse := true. dialog okPressed].
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5234
                            b := dialog addButton:b before:dialog okButton.
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5235
                       ].
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5236
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5237
    selectorsToGenerateCode isEmptyOrNil ifTrue:[^ self].
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5238
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5239
    self doGenerateAspectMethodsForAll:selectorsToGenerateCode.
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5240
1689
5d02658c548a must refetch class after adding instVars (when generating aspects)
Claus Gittinger <cg@exept.de>
parents: 1688
diff changeset
  5241
    "/ refetch - cls is now obsolete
2238
3b631ae43cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  5242
    cls := self painter targetClass.
1689
5d02658c548a must refetch class after adding instVars (when generating aspects)
Claus Gittinger <cg@exept.de>
parents: 1688
diff changeset
  5243
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5244
    doBrowse ifTrue:[
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5245
        methods := selectorsToGenerateCode 
1739
f7baa10ebb1c Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1719
diff changeset
  5246
                        collect:[:sel | cls compiledMethodAt:sel]
1684
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5247
                        thenSelect:[:m | m notNil].
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5248
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5249
        UserPreferences systemBrowserClass 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5250
            browseMethods:methods 
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5251
            title:'Some Aspect methods'.
34b35b8ae80f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1683
diff changeset
  5252
    ].
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5253
!
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5254
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5255
doGenerateAspectMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5256
    "generates aspect and action methods for the application class"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5257
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5258
    self askForSectionModification.
1683
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5259
    self withWaitCursorDo:[
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5260
        |code|
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5261
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5262
        code := self painter generateAspectMethodCode.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5263
        code readStream fileIn.
f95658463570 added selective aspect method generation.
Claus Gittinger <cg@exept.de>
parents: 1671
diff changeset
  5264
    ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5265
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5266
2525
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5267
doGenerateAspectMethodsForAll:selectorsToGenerateCode
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5268
    |code|
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5269
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5270
    code := self painter generateAspectMethodCodeFiltering:selectorsToGenerateCode.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5271
    code readStream fileIn.
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5272
!
16c3872003d7 gio improvement when clicking on the browse/create aspect
Claus Gittinger <cg@exept.de>
parents: 2523
diff changeset
  5273
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5274
doGenerateAspectSelectorsMethod
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5275
    "generates aspectSelectors method for the exported aspects"
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5276
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5277
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5278
    self askForSectionModification.
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5279
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5280
    (ReadStream on:self painter generateAspectSelectorsMethod) fileIn.
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5281
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5282
!
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5283
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5284
doGenerateHookMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5285
    "generates hook methods for the application class"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5286
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5287
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5288
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5289
    (ReadStream on:self painter generateHookMethods) fileIn.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5290
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5291
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5292
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5293
doGenerateMenuMethods
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5294
    "generates menu stub methods for the application class"
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5295
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5296
    self askForSectionModification.
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5297
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5298
    (ReadStream on:self painter generateMenuMethods) fileIn.
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5299
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5300
    "Created: / 23.8.1998 / 16:10:04 / cg"
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5301
!
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  5302
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5303
doInspectSpec
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5304
    "opens an inspector on the spec of the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5305
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5306
    |spec|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5307
2198
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5308
    (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
  5309
        treeView isCanvasSelected ifTrue:[
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5310
            spec := treeView canvasSpec.
804e778590fc slightly refactored to allow for more redefinition in a subclass
Claus Gittinger <cg@exept.de>
parents: 2175
diff changeset
  5311
        ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5312
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5313
    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
  5314
        spec inspect.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5315
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5316
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5317
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5318
doInspectView
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5319
    "opens an inspector on the view of the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5320
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5321
    |selection|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5322
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5323
    ((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
  5324
        selection first inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5325
    ] ifFalse: [
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5326
        selection inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5327
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5328
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5329
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5330
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5331
doInstallAsWebPage
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5332
    "lets user select a service, page-name and installs the page"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5333
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  5334
    |runningServerPorts again serviceOrPort pageName port serviceLinkName service server app|
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  5335
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  5336
    runningServerPorts := (HTTPServer runningServers collect:[:s | s port printString]) asOrderedCollection sort.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5337
    serviceOrPort := lastPort ? LastPort ? '8080'.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5338
    pageName := lastPage ? LastPage ? 'myPage'.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5339
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5340
    [
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5341
        again := false.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5342
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5343
        aspects at:#serviceOrPortNameChannel put:serviceOrPort printString  asValue.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5344
        aspects at:#pageNameNameChannel      put:pageName printString asValue.
2258
db98899b44d1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2256
diff changeset
  5345
        aspects at:#runningServerPorts       put:runningServerPorts.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5346
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5347
        (self openDialogInterface:#dialogSpecForDefiningPortAndPageName) ifFalse:[^ nil].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5348
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5349
        port := Integer readFrom:(aspects at:#serviceOrPortNameChannel) value onError:nil.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5350
        port isNil ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5351
            serviceLinkName := (aspects at:#serviceOrPortNameChannel) value.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5352
            service := HTTPPortalService allSubInstances select:[:s | s linkName = serviceLinkName].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5353
            service notEmptyOrNil ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5354
                again := false.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5355
                service := service first.    
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5356
            ] ifFalse:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5357
                Dialog warn:'No such service'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5358
            ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5359
        ] ifFalse:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5360
            server := HTTPServer serverOnPort:port.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5361
            service := server 
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5362
                        serviceForLink:'/portal'
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5363
                        ifAbsent:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5364
                            service := HTTPPortalService new.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5365
                            service linkName:'/portal'.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5366
                            service class unRegisterServiceOn:server.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5367
                            service registerServiceOn:server.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5368
                        ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5369
        ].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5370
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5371
        pageName := (aspects at:#pageNameNameChannel) value.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5372
    ] doWhile:[again].
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5373
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5374
    lastPage := LastPage := pageName.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5375
    lastPort := LastPort := port.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5376
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5377
    app := self specClass new.
2411
14dd0d9afbf3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2400
diff changeset
  5378
    app webLink:pageName.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5379
    app service:service.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5380
    app defineInterface:(self specSelector).
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5381
    app addToService.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5382
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5383
"/    self clearModifiedFlag.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5384
"/    self helpTool buildAndMergeFromClass:specClassName.
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5385
    self updateInfoLabel
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5386
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5387
    "Modified: / 15-01-2008 / 14:18:53 / cg"
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5388
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5389
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5390
doLoad
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5391
    "opens a ResourceSelectionBrowser for loading a window spec from a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5392
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5393
    self askForModification ifFalse: [^nil].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5394
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5395
    self loadFromMessage: 
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5396
        (ResourceSelectionBrowser
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5397
            request: 'Load Window Spec From Class'
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5398
            onSuperclass: nil
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5399
            andClass: self specClass
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5400
            andSelector: specSelector ? #windowSpec
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5401
            withResourceTypes: #(canvas))
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5402
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5403
    "Modified: / 31-08-2006 / 10:14:01 / cg"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5404
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5405
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5406
doLoadSubspec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5407
    "opens a ResourceSelectionBrowser for loading a sub spec from a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5408
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5409
    |classAndSelector class selector|
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5410
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5411
    self askForSectionModification.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5412
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5413
    classAndSelector := ResourceSelectionBrowser
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5414
            request: 'Load Subspec From Class'
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5415
            onSuperclass: nil
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5416
            andClass: self specClass
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5417
            andSelector: specSelector
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5418
            withResourceTypes: #(canvas).
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5419
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5420
    classAndSelector isNil ifTrue:[^ self].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5421
    class := classAndSelector methodClass.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5422
    selector := classAndSelector methodSelector.
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5423
    (class == specClassName and: [selector == specSelector]) ifTrue: [
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5424
        self warn: 'Current interface as subspec not allowed!!'.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5425
        ^ self.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5426
    ].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5427
    (class respondsTo:selector) ifTrue:[
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5428
        self addWidgetOfSpec:(Array with: (UISubSpecification new majorKey: class name; minorKey: selector))
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5429
    ]
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5430
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5431
    "Modified: / 31-08-2006 / 10:13:56 / cg"
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5432
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5433
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5434
doNew
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5435
    "removes all widgets, specClass, and specSelector"
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5436
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5437
    self askForModification ifFalse: [^nil].
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5438
    specClass := specClassName := specSelector := nil.
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  5439
    self painter removeAll.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5440
self halt.
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5441
    treeView canvas topView 
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5442
        name:  self defaultNameOfCanvas;
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5443
        label: self defaultNameOfCanvas.
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5444
    self helpTool doNew.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  5445
    self treeSelectionChanged.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  5446
    treeView selectedNode changed.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  5447
    self tabModel value: self tabList value first.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5448
    self updateInfoLabel.
2072
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5449
0b0a24d7b198 class vs. className confusion
Claus Gittinger <cg@exept.de>
parents: 2040
diff changeset
  5450
    "Modified: / 31-08-2006 / 10:14:10 / cg"
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5451
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5452
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5453
doOpenWidgetDocumentation
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5454
    "opens documentation for the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5455
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5456
    |spec document|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5457
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5458
    (spec := self specForSelection) isNil ifTrue:[
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5459
"/        treeView isCanvasSelected ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5460
"/            spec := nil
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5461
"/        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5462
    ].
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5463
    spec notNil ifTrue:[
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  5464
        document := 'tools/uipainter/', spec documentFileName,'.html'
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5465
    ] ifFalse: [
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  5466
        document := 'tools/uipainter/WindowSpec.html'
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5467
    ].
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5468
    HTMLDocumentView openFullOnDocumentationFile: document 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5469
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5470
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5471
doPickAView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5472
    "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
  5473
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5474
    |view|
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5475
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5476
    self askForModification ifFalse: [^nil].
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5477
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5478
    (view := Screen current viewFromUser) notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5479
        view == Screen current rootView ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5480
            self painter setupFromSpec:(UISpecification fromView:view topView).
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5481
        ]
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5482
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5483
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5484
    self updateInfoLabel
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  5485
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5486
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5487
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5488
doSave
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5489
    "saves the window spec"
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  5490
    
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5491
    |code painter specClass extentUsed|
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5492
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5493
    self askForSectionModification.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5494
    self hasSpecClassAndSelector ifFalse:[
1850
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  5495
        self doDefineClassAndSelector isNil ifTrue:[
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  5496
            ^ nil
410f98d259b7 kludge to raise the ui-painters control window
Claus Gittinger <cg@exept.de>
parents: 1827
diff changeset
  5497
        ]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5498
    ].
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5499
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5500
    specClass := self resolveName:specClassName.
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5501
    (specClass notNil and:[ specClass isClass ]) ifFalse:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5502
        self warn:('Oops - cannot save - class not found: ' , specClassName).
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5503
        ^ nil
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5504
    ].
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5505
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5506
    painter := self painter.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  5507
    painter 
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5508
        class:specClass
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5509
        superclassName:specSuperclassName
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  5510
        selector:specSelector.
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5511
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5512
"/    Transcript showCR:'generating windowSpec code...'.
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5513
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5514
    extentUsed := self canvas extent.
2264
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5515
    (extentUsed > (1024 @ 768)) ifTrue:[
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5516
        Dialog 
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5517
            warn:(resources
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5518
                stringWithCRs:'The application''s default window-size is taken from the current size and will be %1.\\This may be too small on some displays - if required, resize and save again.'
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5519
                with:extentUsed printString allBold)
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5520
    ].
2264
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5521
    (self canvas maxExtent notNil
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5522
    and:[ extentUsed > self canvas maxExtent ]) ifTrue:[
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5523
        Dialog 
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5524
            warn:(resources
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5525
                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
  5526
                with:extentUsed printString allBold)
26ee5a23ae95 max extent handling
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
  5527
    ].
1851
d036350188f5 warn if spec is saved too large
Claus Gittinger <cg@exept.de>
parents: 1850
diff changeset
  5528
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5529
    code := painter generateWindowSpecMethodSource withCRs.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5530
    (ReadStream on:code) fileIn.
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5531
    self doGenerateAspectSelectorsMethod.
1669
e6ea33c843a0 *** empty log message ***
ca
parents: 1663
diff changeset
  5532
    self helpTool doSave.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5533
    self updateInfoLabel.
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  5534
    self clearModified.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  5535
    painter resetModification.
2001
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5536
    (specClass respondsTo:specSelector) ifTrue:[
b12d9b4dd6f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1994
diff changeset
  5537
        self addHistoryEntryForClass:specClass selector:specSelector.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5538
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5539
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5540
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5541
doSaveAs
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5542
    "opens a ResourceSelectionBrowser for saving the window spec on a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5543
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5544
    |classAndSelector|
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5545
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5546
    self askForSectionModification.
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  5547
"/    self hasSpecClassAndSelector ifTrue:[
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  5548
"/        self askForModification ifFalse:[^ false].
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  5549
"/    ].
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5550
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5551
    classAndSelector := ResourceSelectionBrowser
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5552
            request: 'Save Window Spec In Class'
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5553
            onSuperclass: #Object
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5554
            andClass: (specClassName ? #ApplicationModel) asSymbol
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5555
            andSelector: specSelector ? #windowSpec
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5556
            withResourceTypes: #(canvas).
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5557
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5558
    classAndSelector isNil ifTrue:[^ false].
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5559
2007
77cf7ecc9ecf embedding as special editors
Claus Gittinger <cg@exept.de>
parents: 2001
diff changeset
  5560
    self clearModified.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5561
    self painter resetModification.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5562
2372
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  5563
    specClass := classAndSelector methodClass.
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  5564
    specClassName := classAndSelector methodClass name.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5565
    specSelector := classAndSelector methodSelector.
2372
7eee2cf54932 fixes in saveAs (specClassName)
fm
parents: 2370
diff changeset
  5566
    specSuperclassName := specClass superclass name.
1976
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5567
    self doSave.
969584dd8beb code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1968
diff changeset
  5568
    ^ true
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5569
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  5570
2240
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5571
doSelectAspectMethod:aspectSelector
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5572
    "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
  5573
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5574
    self doSelectAspectMethod:aspectSelector nameAs:aspectSelector
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5575
!
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5576
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5577
doSelectAspectMethod:aspectSelector nameAs:aspectNameShown
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5578
"/    |cls spec aspect code|
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5579
"/
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5580
"/    cls := self specClass.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5581
"/    cls isNil ifTrue:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5582
"/        Dialog information:'No Application Class defined.'.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5583
"/        ^ self
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5584
"/    ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5585
"/
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5586
"/    spec := painter specForSelection.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5587
"/    spec isNil ifTrue:[^ self].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5588
"/    aspect := spec perform:aspectSelector.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5589
"/    aspect isNil ifTrue:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5590
"/        Dialog information:(resources 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5591
"/                                string:'Please enter a Method name for "%1" first.'
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5592
"/                                with:(resources string:aspectNameShown) allBold).
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5593
"/        ^ self
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5594
"/    ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5595
"/        
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5596
"/    (cls implements:aspect asSymbol) ifFalse:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5597
"/        (Dialog confirm:(resources 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5598
"/                            stringWithCRs:'%1 does not implement %2.\\Create ?'
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5599
"/                            with:(cls name allBold)
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5600
"/                            with:aspect allBold)) 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5601
"/        ifFalse:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5602
"/            (Dialog confirm:(resources 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5603
"/                                stringWithCRs:'Browse implementors of %1 ?'
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5604
"/                                with:aspect allBold)) 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5605
"/            ifTrue:[
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5606
"/                UserPreferences current systemBrowserClass browseImplementorsOf:aspect
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5607
"/            ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5608
"/            ^ self
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5609
"/        ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5610
"/        code := painter
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5611
"/            generateAspectMethodFor:aspect 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5612
"/            spec:nil 
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5613
"/            inClass:cls.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5614
"/        code readStream fileIn.
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5615
"/    ].
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5616
"/    UserPreferences current systemBrowserClass openInClass:cls selector:aspect
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5617
!
2cf6b94ae9f9 aspect chooser in inputFieldSpec (prep)
Claus Gittinger <cg@exept.de>
parents: 2238
diff changeset
  5618
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5619
doSortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5620
    "sort the selected items by position"
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5621
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5622
    treeView doSortItems
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5623
!
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  5624
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5625
doStartApplication
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5626
    "starts the application on the editing window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5627
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  5628
    |cls application|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5629
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5630
    self hasSpecClassAndSelector ifFalse:[
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5631
        self doSave isNil ifTrue: [^nil].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5632
    ] ifTrue: [
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5633
        self askForSectionModification.    
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5634
        (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
  5635
        ifTrue:
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5636
        [
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5637
            ((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
  5638
                noText:'Cancel';
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5639
                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
  5640
                showAtPointer;
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5641
                accepted) ifFalse: [^nil].
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5642
            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
  5643
        ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5644
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5645
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5646
    cls := self resolveName:specClassName.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  5647
    cls isNil ifTrue:[
1983
5528c812da8f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1976
diff changeset
  5648
        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
  5649
        ^ nil
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  5650
    ].
2227
a0af7929bfca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2225
diff changeset
  5651
    application := cls new.
a0af7929bfca *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2225
diff changeset
  5652
    (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
  5653
        (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
  5654
        ifTrue:[
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5655
            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
  5656
        ].
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  5657
        ^ self.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5658
    ].        
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5659
    application openInterface:specSelector
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5660
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  5661
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5662
doStepDown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5663
    "moves the selected widget one step down in the hierarchy"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5664
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5665
    treeView doStepOver:1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5666
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5667
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5668
doStepIn
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5669
    "moves the selected widget into the next widget as child"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5670
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5671
    treeView doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5672
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5673
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5674
doStepOut
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5675
    "moves the selected widget out of the parent widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5676
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5677
    treeView doStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5678
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5679
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5680
doStepUp
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5681
    "moves the selected widget one step up in the hierarchy"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5682
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5683
    treeView doStepOver:-1
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5684
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5685
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5686
doWindowSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5687
    "opens a code view with the contents of the window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5688
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5689
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5690
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5691
    CodeView 
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5692
        openWith: self painter generateWindowSpecMethodSource 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5693
        title: 'Window Spec'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  5694
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5695
!
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5696
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5697
hideEditToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5698
    self editToolBarVisibleHolder value:false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5699
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5700
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5701
hideToolbar
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5702
    self toolBarVisibleHolder value:false
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5703
!
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  5704
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5705
replaceWidgetByClass:aSpecOrWidgetClass
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  5706
    |specClass oldSpec newSpec painter|
1940
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5707
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5708
    (aSpecOrWidgetClass isSubclassOf:UISpecification) ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5709
        specClass := aSpecOrWidgetClass.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5710
    ] ifFalse:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5711
        (aSpecOrWidgetClass isSubclassOf:View) ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5712
            specClass := aSpecOrWidgetClass basicNew specClass.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5713
        ] ifFalse:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5714
        ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5715
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5716
    specClass isNil ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5717
        Dialog warn:'Invalid Spec- or View-Class: ' , aSpecOrWidgetClass name.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5718
        ^ self.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5719
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5720
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5721
    treeView isCanvasSelected ifTrue:[
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5722
        ^ self
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5723
    ].
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5724
    oldSpec := self selectedSpec.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5725
    newSpec := specClass cloneFrom:oldSpec.
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5726
0f9be199d1c5 +replace widget
Claus Gittinger <cg@exept.de>
parents: 1917
diff changeset
  5727
    painter := self painter.
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  5728
    painter replaceSelectionBy:newSpec.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5729
!
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5730
2427
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5731
useBackgroundImage
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5732
    "select bitmap to underly"
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5733
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5734
    |fn|
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5735
2427
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5736
    fn := Dialog requestFileName:'Bitmap Image File ?' pattern:'*.gif;*.tiff;*.jpg;*.png' fromDirectory:'f:'.
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5737
    fn isNil ifTrue:[
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5738
        ^ self
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5739
    ].
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5740
    painter useSketchFile:fn
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5741
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5742
    "Created: / 16-01-2008 / 17:49:20 / cg"
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5743
!
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5744
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5745
useSketch
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5746
    "select sketchfile to underly.
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5747
     Sketchfiles are generated by notepads, which can offline-store drawn sketches"
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5748
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5749
    |fn|
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5750
ef8001f252ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2426
diff changeset
  5751
    fn := Dialog requestFileName:'Sketch (Notepad Drawing) ?' pattern:'*.TOP' fromDirectory:'f:'.
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5752
    fn isNil ifTrue:[
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5753
        ^ self
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5754
    ].
2247
a1a7ec09adff useSketch menu item moved
Claus Gittinger <cg@exept.de>
parents: 2243
diff changeset
  5755
    painter useSketchFile:fn
2243
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5756
d6fec8c8e9ce changed #initialize
Claus Gittinger <cg@exept.de>
parents: 2240
diff changeset
  5757
    "Created: / 16-01-2008 / 17:49:20 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5758
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5759
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5760
!UIPainter::TreeView class methodsFor:'documentation'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5761
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5762
documentation
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5763
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5764
    selection in tree view; only used by the UIPainter
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5765
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5766
    [see also:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5767
        SelectionInTreeView
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5768
        SelectionInTree
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5769
        TreeItem
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5770
        UIPainter
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5771
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5772
    [author:]
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5773
        Claus Atzkern
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5774
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5775
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5776
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5777
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5778
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5779
!UIPainter::TreeView methodsFor:'accessing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5780
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5781
canvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5782
    "returns the canvas (UIPainterView)"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5783
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5784
    ^ model root contents view
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5785
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5786
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5787
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5788
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5789
canvas:aCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5790
    "install canvas (UIPainterView)"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5791
1396
58c4d1027a5e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1395
diff changeset
  5792
    self canvas:aCanvas specName:nil
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  5793
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  5794
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5795
canvas:aCanvas specName:nameOfSpec
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5796
    "install canvas (UIPainterView)"
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5797
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5798
    |props|
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5799
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5800
    props := UIPainterView::ViewProperty new.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5801
    props view:aCanvas.
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5802
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5803
    model root:(TreeItem 
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5804
                    name:(nameOfSpec ? painter defaultNameOfCanvas) asBoldText 
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5805
                    contents:props).
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5806
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5807
    model root expand.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5808
    self enableChannel:(aCanvas enableChannel).
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5809
!
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  5810
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  5811
canvasSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5812
    "returns spec assigned to canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5813
1574
e4897b61395c Remove unused method var
Stefan Vogel <sv@exept.de>
parents: 1572
diff changeset
  5814
    |spec list cls canvas|
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  5815
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5816
    spec := self windowSpecClass new.
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5817
    canvas := self canvas.
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5818
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5819
    spec fromView:(canvas topView) callBack:nil.
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5820
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5821
    windowSpec notNil ifTrue:[
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5822
        spec copyValuesFromSpec:windowSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5823
    ].
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5824
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5825
    spec exportedAspects isNil ifTrue:[
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5826
        (     (cls  := canvas className) notNil
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5827
         and:[(cls  := canvas resolveName:cls) notNil]
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5828
        ) ifTrue:[
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5829
            list := cls perform:#aspectSelectors ifNotUnderstood:nil.
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5830
        ].
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5831
        spec setExportedAspectsFrom:list.
1360
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  5832
        windowSpec notNil ifTrue:[
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  5833
            windowSpec exportedAspects:(spec exportedAspects).
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  5834
        ]
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5835
    ].
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5836
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5837
    self propertiesDo:[:aProp| 
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5838
        |propsSpec|
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5839
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5840
        spec exportedAspectsAddKey:(aProp model) type:nil.
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5841
        propsSpec := aProp spec.
2251
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  5842
        propsSpec aspectSelectors 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  5843
                select:[:a | a isString or:[a isSymbol]] 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  5844
                thenDo:[:aKey|spec exportedAspectsAddKey:aKey type:nil].
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  5845
        propsSpec actionSelectors 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  5846
                select:[:a | a isString or:[a isSymbol]] 
afc2987e67b1 care for non-symbolic aspects (false)
Claus Gittinger <cg@exept.de>
parents: 2247
diff changeset
  5847
                thenDo:[:aKey|spec exportedAspectsAddKey:aKey type:#action].
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5848
    ].
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  5849
  ^ spec
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5850
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5851
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5852
canvasSpec:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5853
    "update canvas from spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5854
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5855
    |spec|
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5856
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5857
    self setAttributesFromWindowSpec:aSpec.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5858
    spec := aSpec copy.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5859
    spec  menu:nil.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5860
    spec flags:nil.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5861
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  5862
    spec setAttributesIn:(self canvas "topView") with:(UIBuilder new isEditing:true).
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5863
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5864
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5865
exportedAspects
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5866
    "returns spec assigned to canvas"
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5867
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5868
    windowSpec isNil ifTrue:[^ #()].
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5869
    ^ windowSpec exportedAspects ? #()
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5870
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5871
!
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  5872
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5873
itemOfView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5874
    "returns item assigned to view or nil"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5875
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5876
    aView notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5877
        self allItemsDo:[:anItem|
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5878
            (anItem contents view == aView) ifTrue:[^ anItem]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5879
        ]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5880
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5881
    ^ nil
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5882
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5883
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5884
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5885
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5886
lastDrawnMaster
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5887
    "returns the lastDrawnMaster"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5888
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5889
    ^ lastDrawnMaster
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5890
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  5891
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5892
!
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5893
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5894
painter
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5895
    ^ painter
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5896
!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5897
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5898
painter:something
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5899
    painter := something.
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5900
!
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5901
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5902
windowSpecClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5903
    "returns the default  windowSpecClass (WindowSpec)"
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5904
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5905
    ^ windowSpecClass ? WindowSpec
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5906
!
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5907
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5908
windowSpecClass:aClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5909
    "set the default windowSpecClass"
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5910
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  5911
    ^ windowSpecClass := aClass
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5912
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5913
1661
5c0f73b1bd07 category change
Claus Gittinger <cg@exept.de>
parents: 1626
diff changeset
  5914
!UIPainter::TreeView methodsFor:'accessing-property'!
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5915
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5916
propertiesDo:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5917
    "evaluates the argument a block on each property"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5918
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5919
    self allItemsDo:[:anItem| aOneArgBlock value:(anItem contents)]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5920
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5921
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5922
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5923
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5924
propertyDetect:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5925
    "evaluates the block on each property"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5926
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5927
    self allItemsDo:[:anItem|
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5928
        (aOneArgBlock value:(anItem contents)) ifTrue:[^ anItem contents]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5929
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5930
    ^ nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5931
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5932
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5933
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5934
propertySelected
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5935
    "returns current selected property or nil in case of multi selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5936
     or empty selection "
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5937
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5938
    |idx|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5939
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5940
    selection size == 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5941
        (idx := selection first) ~~ 1 ifTrue:[          "canvas: not yet supported"
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5942
            ^ (listOfNodes at:idx) contents
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5943
        ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5944
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5945
    ^ nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5946
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5947
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5948
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5949
!UIPainter::TreeView methodsFor:'adding & removing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5950
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5951
addProperty:aProperty
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5952
    "adds a new item"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5953
2389
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5954
    ^ self addProperty:aProperty beforeIndex:nil.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5955
!
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5956
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5957
addProperty:aProperty beforeIndex:anIndex
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5958
    "adds a new item"
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5959
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5960
    |parent treeItem index| 
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  5961
1870
771fcc38ecb8 set selection interface changed
ca
parents: 1868
diff changeset
  5962
    parent := self detectItemCorespondingToView:(aProperty view superView).
2389
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5963
    parent isNil ifTrue:[^ nil ].
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5964
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5965
    treeItem := TreeItem new contents:aProperty.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5966
    index := parent numberOfChildren + 1.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5967
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5968
    (anIndex notNil and:[anIndex > 0]) ifTrue:[
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5969
        index := anIndex min:index.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5970
    ].
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5971
    model add:treeItem beforeIndex:index below:parent.
5d9d082a012f *** empty log message ***
ca
parents: 2384
diff changeset
  5972
    ^ treeItem
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5973
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5974
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5975
removeAll
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5976
    "removes all items other than canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5977
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5978
    lastDrawnMaster := nil.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  5979
    windowSpec := nil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5980
2507
42c9db715d33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
  5981
    self canvas components copy do:[:aView|
42c9db715d33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
  5982
        aView destroy
42c9db715d33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
  5983
    ].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5984
    self canvas subViews copy do:[:aView|
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5985
        "/ care to not destroy the transparent input view
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5986
        (aView isInputOnly) ifFalse:[aView destroy]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5987
    ].
2541
6241ec9e6a6f default name of top-level spec
Claus Gittinger <cg@exept.de>
parents: 2540
diff changeset
  5988
    model root name: painter defaultNameOfCanvas asBoldText.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  5989
    model removeAllOtherThanRoot.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5990
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5991
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  5992
removeView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5993
    "removes a view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  5994
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5995
    |item prnt|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5996
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  5997
    ((item := self itemOfView:aView) notNil and:[(prnt := item parent) notNil]) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5998
        aView destroy.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  5999
        prnt contents view sizeChanged:nil.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6000
        model remove:item
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6001
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6002
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6003
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6004
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6005
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6006
!UIPainter::TreeView methodsFor:'building'!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6007
1058
243d945b1daf name the (full-)spec
tm
parents: 1046
diff changeset
  6008
generateFullSpecForComponents:aSpecArray named:specNameSymbol
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6009
    "generates a full spec from aSpecArray"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6010
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  6011
    |fullSpec winSpec|
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6012
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6013
    fullSpec := FullSpec new.
1058
243d945b1daf name the (full-)spec
tm
parents: 1046
diff changeset
  6014
    fullSpec name:specNameSymbol.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6015
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6016
    fullSpec fromBuilder:(self canvas)
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6017
              components:(SpecCollection new collection:aSpecArray).
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6018
2223
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6019
    winSpec := fullSpec window.
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6020
    windowSpec isNil ifTrue:[
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6021
        "/ 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
  6022
        self canvas gridShown ifTrue:[
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6023
            fullSpec window backgroundColor:nil.    
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6024
        ].
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6025
    ] ifFalse:[
2213
cb1e13d68761 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2210
diff changeset
  6026
        winSpec copyValuesFromSpec:windowSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6027
    ].    
2223
7cddff46d0ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2222
diff changeset
  6028
    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
  6029
    ^ fullSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6030
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6031
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6032
setAttributesFromWindowSpec:aWindowSpec
1172
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6033
    "sets a window spec from aWindowSpec and applies some attributes
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6034
     to the canvas."
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6035
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6036
    |name canvasView builder|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6037
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  6038
    windowSpec := (self windowSpecClass) new copyValuesFromSpec:aWindowSpec.
1172
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6039
    canvasView := self canvas.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6040
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6041
    builder := UIBuilder new isEditing:true.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6042
    aWindowSpec setAttributesIn:canvasView with:builder.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  6043
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6044
    name := aWindowSpec label.
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6045
    canvasView topView name:name.
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  6046
    self canvasNameChanged:name.
1710
4d81ff7b3412 autoAccept on selectionChange; ok -> apply;
Claus Gittinger <cg@exept.de>
parents: 1698
diff changeset
  6047
    self application treeSelectionChanged.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6048
! !
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  6049
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6050
!UIPainter::TreeView methodsFor:'canvas selection'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6051
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6052
canvasSelection:aSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6053
    "canvas changed its selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6054
    "
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6055
    |sel list size|
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6056
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6057
    ((sel := aSelection) isNil or:[sel isCollection]) ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6058
        sel := Array with:sel
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6059
    ].
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6060
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6061
    (size := sel size) ~~ 0 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6062
        list := OrderedCollection new:size.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6063
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6064
        sel do:[:aView|
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6065
            |item|
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6066
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6067
            (item := self itemOfView:aView) notNil ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6068
                list add:item.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6069
                model doMakeVisible:item.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6070
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6071
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6072
        sel := list collect:[:anItem| self indexOfNode:anItem ].
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6073
    ].
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6074
    self canvasEventsDisabledDo:[ self selection:sel ].            
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6075
!
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6076
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6077
canvasSelectionAdd:aView
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6078
    "canvas adds a view to current selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6079
    "
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6080
    |item index oldSel|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6081
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6082
    item := self itemOfView:aView.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6083
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6084
    item notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6085
        model doMakeVisible:item.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6086
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6087
        (index := self indexOfNode:item) ~~ 0 ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6088
            oldSel := selection copy.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6089
            self addToSelection:index.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6090
            self selectionChangedFrom:oldSel
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6091
        ]        
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6092
    ]            
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6093
!
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6094
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6095
canvasSelectionRemove:aView
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6096
    "canvas removes a view from current selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6097
    "
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6098
    |item index oldSel|
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6099
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6100
    (     (item := self itemOfView:aView) notNil
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6101
     and:[(index := self indexOfNode:item) ~~ 0
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6102
     and:[self isInSelection:index]]
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6103
    ) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6104
        oldSel := selection copy.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6105
        self removeFromSelection:index.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6106
        self selectionChangedFrom:oldSel.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6107
    ].
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6108
!
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6109
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6110
selectedViews
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6111
    ^ self selection 
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6112
        collect:[:index |
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6113
            |node view|
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6114
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6115
            node := listOfNodes at:index.
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6116
            view := node contents view.
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6117
            view
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6118
        ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6119
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6120
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6121
!UIPainter::TreeView methodsFor:'change & update'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6122
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6123
canvasNameChanged:aName
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6124
    "called if identification name assigned to window (canvas) changed
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6125
    "
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6126
    |name node|
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6127
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6128
    node := listOfNodes at:1.
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6129
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6130
    (    aName size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6131
     and:[(name := aName string withoutSeparators) size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6132
     and:[(self propertyDetect:[:p| p name = name]) isNil
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6133
     and:[node name ~= name]]]
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6134
    ) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6135
        node name: name asBoldText.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6136
        node changed.   
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6137
    ].
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6138
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6139
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6140
layoutChanged
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6141
    "layout of any component changed; in case of single selection, the
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6142
     application will be informed to update its layout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6143
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6144
    selection size == 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6145
        self application layoutChanged
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6146
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6147
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6148
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6149
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6150
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6151
propertyChanged:aProperty
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6152
    "property of view derived from argument a property changed
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6153
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6154
    |item idx end|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6155
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6156
    item := self itemOfView:(aProperty view).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6157
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6158
    item notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6159
        item contents:aProperty.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6160
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6161
        item name = aProperty name ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6162
            idx := self firstLineShown.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6163
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6164
            (end := self lastLineShown) > listOfNodes size ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6165
                end := listOfNodes size
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6166
            ].                          
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6167
            item changed.   
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6168
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6169
            [idx <= end] whileTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6170
                (listOfNodes at:idx) == item ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6171
                    self redrawLine:idx.                "/ is visible; redraw line
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6172
                    end := 0
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6173
                ] ifFalse:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6174
                    idx := idx + 1
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6175
                ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6176
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6177
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6178
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6179
        self selectedNode == item ifTrue:[              "/ inform application
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6180
            self application propertyChanged
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6181
        ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6182
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6183
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6184
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6185
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6186
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6187
!UIPainter::TreeView methodsFor:'drag & drop'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6188
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6189
canDrop:aDropContext
1953
3b5022bccca4 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
  6190
    "can drop ? -> delegate to canvas"
3b5022bccca4 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
  6191
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6192
    ^ self canvas canDrop:aDropContext
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6193
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6194
    "Modified: / 13-10-2006 / 16:08:43 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6195
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6196
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6197
canDrop:aDropContext at:aPoint
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6198
    "can drop ? -> delegate to canvas"
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6199
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6200
    ^ self canvas canDrop:aDropContext at:aPoint
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6201
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6202
    "Created: / 13-10-2006 / 12:35:53 / cg"
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6203
    "Modified: / 13-10-2006 / 16:08:46 / cg"
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6204
!
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6205
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6206
canDropObjects:aCollectionOfDropObjects
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6207
    "can drop ? -> delegate to canvas"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6208
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6209
    ^ self canvas canDropObjects:aCollectionOfDropObjects
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6210
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6211
    "Created: / 13-10-2006 / 16:08:31 / cg"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6212
!
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6213
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6214
canDropObjects:aCollectionOfDropObjects at:aPoint
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6215
    "can drop ? -> delegate to canvas"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6216
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6217
    ^ self canvas canDropObjects:aCollectionOfDropObjects at:aPoint
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6218
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6219
    "Created: / 13-10-2006 / 16:08:35 / cg"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6220
!
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6221
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6222
drop:aDropContext
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6223
    "drop objects -> delegate to canvas"
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6224
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6225
    self canvas drop:aDropContext
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6226
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6227
    "Created: / 13-10-2006 / 12:35:59 / cg"
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6228
    "Modified: / 13-10-2006 / 16:09:04 / cg"
2114
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6229
!
eca72652fa9e drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2077
diff changeset
  6230
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6231
drop:aDropContext at:aPoint
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6232
    "drop objects -> delegate to canvas"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6233
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  6234
    self canvas drop:aDropContext at:nil
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6235
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6236
    "Modified: / 13-10-2006 / 16:09:07 / cg"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6237
!
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6238
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6239
dropObjects:aCollectionOfDropObjects
1953
3b5022bccca4 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
  6240
    "drop objects -> delegate to canvas"
3b5022bccca4 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
  6241
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6242
    self canvas dropObjects:aCollectionOfDropObjects
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6243
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6244
    "Created: / 13-10-2006 / 16:08:51 / cg"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6245
!
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6246
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6247
dropObjects:aCollectionOfDropObjects at:aPoint
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6248
    "drop objects -> delegate to canvas"
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6249
2378
6db49934cd0e drop fixed
Claus Gittinger <cg@exept.de>
parents: 2372
diff changeset
  6250
    self canvas dropObjects:aCollectionOfDropObjects at:nil
2117
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6251
3d456b890124 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 2114
diff changeset
  6252
    "Created: / 13-10-2006 / 16:08:56 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6253
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6254
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6255
!UIPainter::TreeView methodsFor:'enumerating'!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6256
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6257
allItemsDo:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6258
    "evaluates the argument a block on each item other than the canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6259
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6260
    model root allChildrenDo:aOneArgBlock
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6261
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6262
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6263
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6264
1719
735984d47d9b method category rename
Claus Gittinger <cg@exept.de>
parents: 1718
diff changeset
  6265
!UIPainter::TreeView methodsFor:'event handling'!
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6266
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6267
canvasEventsDisabledDo:aBlock
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6268
    "evaluates the block without raising selection changed notifications to canvas"
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6269
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6270
    |restoreCanvasEvents|
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6271
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6272
    restoreCanvasEvents  := canvasEventsDisabled.
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6273
    canvasEventsDisabled := true.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6274
    aBlock value.
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6275
    canvasEventsDisabled := restoreCanvasEvents.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6276
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6277
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6278
doubleClicked
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6279
    "disables collapsing of the root item"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6280
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6281
    self selectedNode == model root ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6282
        super doubleClicked
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6283
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6284
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6285
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6286
!
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6287
852
c24c7584abe4 replace reimplememented method:
ca
parents: 851
diff changeset
  6288
redrawLabelAt:x y:yTop index:anIndex
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6289
    "draws a tiny rectangle for indicating the master node (first selected node)"
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6290
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6291
    |dX|
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6292
852
c24c7584abe4 replace reimplememented method:
ca
parents: 851
diff changeset
  6293
    super redrawLabelAt:x y:yTop index:anIndex.
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6294
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6295
    ((selection size > 1) and: [selection first == anIndex]) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6296
        dX := textInset - 1.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6297
        self paint:(Color red). "/ self application painter handleMasterColor.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6298
        self fillRectangleX:(x - dX - 2)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6299
                          y:yTop + ((fontHeight - dX) // 2)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6300
                      width:dX
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6301
                     height:dX
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  6302
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6303
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6304
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6305
!UIPainter::TreeView methodsFor:'initialization'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6306
2511
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6307
iconForNode:aNode
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6308
    |spec|       
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6309
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6310
    spec := aNode contents spec.
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6311
    spec isNil ifTrue: [
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6312
        ^ WindowSpec icon
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6313
    ] ifFalse:[
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6314
        ^ spec icon
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6315
    ]
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6316
!
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6317
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6318
initialize
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6319
    "initialize the tree view; multiple select and tree item actions"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6320
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6321
    super initialize.
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  6322
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6323
    self multipleSelectOk:true.
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6324
    canvasEventsDisabled := false.
440
1198f19712ff spec items have got individual icons
tz
parents: 437
diff changeset
  6325
    self showDirectoryIndicator: true.
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  6326
    self showDirectoryIndicatorForRoot: false.
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  6327
2220
ff2b5cb004c2 sort aspects in generateAspectsMethods dialog;
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  6328
    self model 
2511
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6329
        iconAction:[:aNode| self iconForNode:aNode];
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6330
        labelAction: [:aNode | self labelForNode:aNode].
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6331
!
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6332
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6333
labelForNode:aNode
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6334
    |spec|
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6335
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6336
    spec := aNode contents spec.
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6337
    spec notNil ifTrue: [
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6338
        ^ self nameForSpecInList:spec
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6339
    ] ifFalse:[
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6340
        ^ aNode name
b1590fc1debb code cleanup
Claus Gittinger <cg@exept.de>
parents: 2507
diff changeset
  6341
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6342
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6343
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6344
!UIPainter::TreeView methodsFor:'private'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6345
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6346
nameForSpecInList:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6347
    "returns the tree item label for aSpec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6348
2230
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  6349
    |aspect|
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  6350
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  6351
    aspect := aSpec nameOfMainAspect.
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  6352
    aspect notNil ifTrue:[
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  6353
        ^ '(',aspect allBold ,') ', aSpec name, ': [', aSpec viewClass name , ']' 
2220
ff2b5cb004c2 sort aspects in generateAspectsMethods dialog;
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  6354
    ].
2230
33c98cefa7e6 refactorings
Claus Gittinger <cg@exept.de>
parents: 2227
diff changeset
  6355
    ^ aSpec name "allBold", ': [', aSpec viewClass name , ']' 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6356
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6357
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6358
selectionChangedFrom:oldSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6359
    "selection has changed. update master selection and raise notification
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6360
     to canvas in case of enabled cvs events
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6361
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6362
    |sel size|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6363
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6364
    super selectionChangedFrom:oldSelection.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6365
    size := selection size.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6366
2256
2bd9e855e6ac code beautification; reasonable methodNames;
Claus Gittinger <cg@exept.de>
parents: 2251
diff changeset
  6367
    canvasEventsDisabled ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6368
        (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
  6369
            sel := OrderedCollection new.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6370
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6371
            selection do:[:i|
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6372
                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
  6373
            ]
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6374
        ].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6375
        self canvas updateSelectionFromModel:sel
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  6376
    ].             
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6377
    size = 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6378
        oldSelection size > 1 ifTrue: [
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6379
            (listOfNodes at:lastDrawnMaster) retrieveLabel.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6380
            self redrawLine: lastDrawnMaster. 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6381
            lastDrawnMaster := selection first
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6382
        ]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6383
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6384
    size > 1 ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6385
        selection first ~~ lastDrawnMaster ifTrue: [
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6386
            (listOfNodes at:selection first) retrieveLabel.
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6387
            lastDrawnMaster notNil ifTrue: [(listOfNodes at:lastDrawnMaster) retrieveLabel].
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6388
            self redrawLine: lastDrawnMaster. 
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6389
            self redrawLine: (lastDrawnMaster := selection first)
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6390
        ]
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  6391
    ]         
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  6392
    ifFalse: [
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6393
        lastDrawnMaster := nil
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  6394
    ] 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6395
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6396
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6397
!UIPainter::TreeView methodsFor:'queries'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6398
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  6399
canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  6400
    "returns true if any selection exists and all widgets in the selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6401
     can change their layout through to a move or align operation"
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  6402
889
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  6403
    ^(selection size == 1)  and: 
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  6404
    [(selection at: 1) ~~ 1 and:   
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  6405
    [self selectedNode parent children size > 1]] 
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  6406
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  6407
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  6408
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  6409
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6410
canExchangeSelectionLayouts 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6411
    "returns true if the selections size is exactly 2
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6412
     and all widgets in the selection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6413
     can change their layout through to a move or align operation"
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6414
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6415
    selection size == 2 ifFalse:[
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6416
        ^ false
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6417
    ].
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6418
    ^ self canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6419
!
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  6420
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6421
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6422
    "returns true if any selection exists and all widgets in the selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6423
     can change their layout through to a move or align operation"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6424
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6425
    selection isEmptyOrNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6426
        ^ false
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6427
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6428
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6429
    selection do:[:i|
2361
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6430
        |node view|
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6431
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6432
        i == 1 ifTrue:[
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6433
            "/ the tree node for the canvas itself.
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6434
            ^ false
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6435
        ].
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6436
        node := listOfNodes at:i.
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6437
        view := node contents view.
ae171f5bc002 can resize - allow resizing all;
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
  6438
        (self canvas canChangeLayoutOfView:view) ifFalse:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6439
            ^ false
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6440
        ]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6441
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6442
    ^ true
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6443
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6444
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6445
canMoveSelectionIntoContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6446
    "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
  6447
     widget to an element below"
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6448
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6449
    |item oldParentItem newParentItem idx|
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6450
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6451
    item := self selectedNode.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6452
    (item notNil and:[(oldParentItem := item parent) notNil]) ifTrue:[
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6453
        idx := (oldParentItem indexOfChild:item) + 1.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6454
        newParentItem := oldParentItem children detect:[:eachChild|
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6455
            eachChild contents spec class supportsSubComponents
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6456
        ] startingAt:idx ifNone:nil.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6457
        ^ newParentItem notNil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6458
    ].
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6459
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6460
    ^ false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6461
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6462
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6463
canMoveSelectionOutOfContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6464
    "returns true in case that one widget is selected which is contained within
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6465
     another widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6466
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6467
    |item prnt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6468
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6469
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6470
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6471
      or:[prnt parent isNil]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6472
    ) ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6473
        ^ false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6474
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6475
    ^ true
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6476
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6477
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  6478
canResizeSelectedWidget
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  6479
    "returns true in case of one widget selected and is contained
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6480
     within a widget which allows to resize sub components"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6481
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6482
    |selectedNode|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6483
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6484
    (selectedNode := self selectedNode) notNil ifTrue:[
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6485
        (selectedNode := selectedNode parent) notNil ifTrue:[
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6486
            ^ (selectedNode parent isNil or:[selectedNode contents spec class canResizeSubComponents])
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6487
        ]
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  6488
    ].
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  6489
    ^ false
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  6490
!
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  6491
2552
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6492
canResizeSelection
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6493
    "returns true if all selected widgets can be resized"
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6494
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6495
    selection isEmptyOrNil ifTrue:[ ^ false ].
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6496
    ^ self canvas canResize:(self selectedViews)
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6497
!
6b958036f5c4 resize-button enable
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  6498
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6499
hasOneSelectionOtherThanCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6500
    "returns true in case that one selection exists other than the canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6501
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6502
    ^ selection size == 1 and:[selection first ~~ 1]
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6503
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6504
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6505
isCanvasSelected
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  6506
    "returns true in case of a single selection and the
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6507
     selection is the canvas (index 1)"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6508
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6509
    ^ selection size == 1 and:[self isInSelection:1]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6510
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6511
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6512
!UIPainter::TreeView methodsFor:'searching'!
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6513
1870
771fcc38ecb8 set selection interface changed
ca
parents: 1868
diff changeset
  6514
detectItemCorespondingToView:aView
771fcc38ecb8 set selection interface changed
ca
parents: 1868
diff changeset
  6515
    "detects the item coresponding to the view. The item of the view or the first
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6516
     subview providing the item is returned. If no property is detected nil is
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6517
     returned"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6518
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6519
    |view item|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6520
2527
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  6521
    (view := aView) isNil ifTrue:[ ^ nil ].
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  6522
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  6523
    [(item := self itemOfView:view) isNil] whileTrue:[
c953939a481e selection handling
Claus Gittinger <cg@exept.de>
parents: 2525
diff changeset
  6524
        (view := view superView) isNil ifTrue:[^ listOfNodes at:1]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6525
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6526
    ^ item
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6527
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6528
1439
540781421bbf category change
Claus Gittinger <cg@exept.de>
parents: 1432
diff changeset
  6529
!UIPainter::TreeView methodsFor:'user interaction'!
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6530
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6531
askForSelectionChangeAllowed 
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6532
    selectConditionBlock notNil ifTrue:[
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6533
        ^ selectConditionBlock value:nil 
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6534
    ].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6535
    ^ true
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6536
!
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6537
2384
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6538
doChangeParentOfSelectedItemTo:newParentItem
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6539
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6540
    |canvas|
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6541
2384
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6542
    newParentItem isNil ifTrue:[
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6543
        ^ self
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6544
    ].
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6545
    self askForSelectionChangeAllowed ifFalse:[^ self].    
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6546
    self setSelection:nil.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6547
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6548
    canvas := self canvas.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6549
    canvas deleteSelection.
2384
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6550
    canvas setSelection:(newParentItem contents view) withRedraw:false.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6551
    canvas pasteWithLayout.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6552
!
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6553
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6554
doSortItems
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6555
    "sort items by their top-left position"
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6556
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6557
    |selectedItems parent sortedItems newChildren itemList parentView|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6558
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6559
    self askForSelectionChangeAllowed ifFalse:[^ self].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6560
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6561
    selectedItems := self selectedNodes.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6562
    selectedItems size <= 1 ifTrue:[^ self].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6563
    parent := selectedItems first parent.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6564
    (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
  6565
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6566
    sortedItems := selectedItems sort:[:a :b| 
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6567
                            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
  6568
    itemList := selectedItems asIdentitySet.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6569
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6570
    newChildren := parent children collect:[:eachChild|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6571
        (itemList includes:eachChild) ifTrue:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6572
            sortedItems removeFirst.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6573
        ] ifFalse:[
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6574
            eachChild.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6575
        ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6576
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6577
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6578
    self setSelection:nil.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6579
    model remove:parent children.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6580
    model add:newChildren beforeIndex:1 below:parent.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6581
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6582
    parentView := parent contents view.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6583
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6584
    self canvas hideSelection.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6585
    newChildren keysAndValuesDo:[:idx :eachItem|
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6586
        parentView changeSequenceOrderFor:eachItem contents view to:idx.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6587
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6588
    parentView specClass isLayoutContainer ifFalse:[
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6589
        parentView components notEmptyOrNil ifTrue:[ self halt ].
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6590
        parentView subViews do:[:v| v raise ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6591
    ].
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6592
    self canvas showSelection.
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6593
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6594
    self selectNodes:itemList asOrderedCollection.
2310
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6595
!
ac9be9035f2c Support sorting of items in tree
Stefan Vogel <sv@exept.de>
parents: 2296
diff changeset
  6596
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6597
doStepIn
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6598
    "move the currently selected widget into the next available container below"
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6599
    
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6600
    |item oldParentItem newParentItem idx|
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6601
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6602
    item := self selectedNode.
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6603
    (item notNil and:[(oldParentItem := item parent) notNil]) ifTrue:[
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6604
        idx := (oldParentItem indexOfChild:item) + 1.
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6605
        newParentItem := oldParentItem children 
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6606
                    detect:[:eachChild | eachChild contents spec class supportsSubComponents]
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6607
                    startingAt:idx
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6608
                    ifNone:nil.
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6609
        newParentItem notNil ifTrue:[
2384
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6610
            self doChangeParentOfSelectedItemTo:newParentItem
2280
d9a56ee79c70 changed #canMoveSelectionIntoContainer
Stefan Vogel <sv@exept.de>
parents: 2277
diff changeset
  6611
        ].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6612
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6613
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6614
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6615
doStepOut
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6616
    |item|
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6617
2384
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6618
    item := self selectedNode.    
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6619
    (item notNil and:[(item := item parent) notNil]) ifTrue:[
4b1b8d243be1 Do not use misleading methodName
Stefan Vogel <sv@exept.de>
parents: 2378
diff changeset
  6620
        self doChangeParentOfSelectedItemTo:(item parent)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6621
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6622
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6623
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6624
doStepOver:anIndex
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6625
    "moves child 'anIndex' forward or backward in list of children"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  6626
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6627
    |item idx size parentItem parentItemsView itemsView canvas|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6628
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6629
    self askForSelectionChangeAllowed ifFalse:[^ self].
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6630
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6631
    (    (item := self selectedNode) isNil
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6632
     or:[(parentItem := item parent) isNil
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6633
     or:[(size := parentItem children size) < 2
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6634
     or:[(idx  := parentItem indexOfChild:item) == 0]]]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6635
    ) ifTrue:[
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6636
        ^ self
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6637
    ].
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6638
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6639
    idx := idx + anIndex.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6640
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6641
    idx < 1 ifTrue:[idx := size]
1621
112670159075 cg: check if selection change is allowed BEFORE changing the
tm
parents: 1608
diff changeset
  6642
           ifFalse:[idx > size ifTrue:[idx := 1]].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6643
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6644
    self setSelection:nil.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  6645
    model remove:item.
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6646
    model add:item beforeIndex:idx below:parentItem.
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6647
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6648
    idx := parentItem indexOfChild:item.
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6649
    itemsView := item contents view.
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6650
    parentItemsView := parentItem contents view.
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6651
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6652
    canvas := self canvas.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6653
    canvas hideSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6654
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6655
    itemsView isView ifFalse:[
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6656
        "/ a component - has its own collection (and therefore indexing) - sigh
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6657
        idx := idx - ((1 to:idx-1) count:[:i | (parentItem children at:i) contents view isView]).
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6658
        parentItemsView changeSequenceOrderFor:itemsView to:idx.
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6659
    ] ifTrue:[
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6660
        "/ a view - has its own collection (and therefore indexing) - sigh
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6661
        idx := idx - ((1 to:idx-1) count:[:i | (parentItem children at:i) contents view isView not]).
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6662
        parentItemsView changeSequenceOrderFor:itemsView to:idx.
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6663
    ].
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6664
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6665
    parentItemsView specClass isLayoutContainer ifFalse:[
2500
3e2feb544801 cleaned up the code and fixed bugs;
Claus Gittinger <cg@exept.de>
parents: 2479
diff changeset
  6666
        "/ spVw components notEmptyOrNil ifTrue:[ self halt ].
2523
1f315c18f4da component handling
Claus Gittinger <cg@exept.de>
parents: 2522
diff changeset
  6667
        parentItemsView subViews do:[:v| v raise ].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6668
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6669
    canvas showSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  6670
    self selectNode:item.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6671
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  6672
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  6673
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  6674
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  6675
version
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  6676
    ^ '$Header$'
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  6677
! !
2217
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6678
b54632779619 Use class var for SelectionPanel
Stefan Vogel <sv@exept.de>
parents: 2213
diff changeset
  6679
UIPainter initialize!