class: Tools::ViewTreeInspectorApplication
authorClaus Gittinger <cg@exept.de>
Fri, 08 May 2015 16:10:06 +0200
changeset 321333e1f779fa15
parent 3212 c973eab410cb
child 3214 eceb5d2c5526
class: Tools::ViewTreeInspectorApplication
changed: #middleButtonMenu
reorganazied to move heavily used functions to the top
Tools__ViewTreeApplication.st
     1.1 --- a/Tools__ViewTreeApplication.st	Fri May 08 16:09:36 2015 +0200
     1.2 +++ b/Tools__ViewTreeApplication.st	Fri May 08 16:10:06 2015 +0200
     1.3 @@ -1,5 +1,3 @@
     1.4 -"{ Encoding: utf8 }"
     1.5 -
     1.6  "
     1.7   COPYRIGHT (c) 2007 by eXept Software AG
     1.8                All Rights Reserved
     1.9 @@ -611,9 +609,10 @@
    1.10      "Do not manually edit this!! If it is corrupted,
    1.11       the MenuEditor may not be able to read the specification."
    1.12  
    1.13 +
    1.14      "
    1.15 -     MenuEditor new openOnClass:ViewTreeApplication andSelector:#middleButtonMenu
    1.16 -     (Menu new fromLiteralArrayEncoding:(ViewTreeApplication middleButtonMenu)) startUp
    1.17 +     MenuEditor new openOnClass:Tools::ViewTreeInspectorApplication andSelector:#middleButtonMenu
    1.18 +     (Menu new fromLiteralArrayEncoding:(Tools::ViewTreeInspectorApplication middleButtonMenu)) startUp
    1.19      "
    1.20  
    1.21      <resource: #menu>
    1.22 @@ -622,52 +621,27 @@
    1.23       #(Menu
    1.24          (
    1.25           (MenuItem
    1.26 -            label: 'Geometry'
    1.27 -            translateLabel: true
    1.28 -            submenuChannel: submenuGeometry:
    1.29 -            keepLinkedMenu: true
    1.30 -          )
    1.31 -         (MenuItem
    1.32 -            label: 'Interface'
    1.33 -            translateLabel: true
    1.34 -            submenuChannel: submenuInterface:
    1.35 -            keepLinkedMenu: true
    1.36 -          )
    1.37 -         (MenuItem
    1.38 -            label: 'Visibility'
    1.39 -            translateLabel: true
    1.40 -            submenuChannel: submenuVisibility:
    1.41 -            keepLinkedMenu: true
    1.42 -          )
    1.43 -         (MenuItem
    1.44 -            label: '-'
    1.45 -          )
    1.46 -         (MenuItem
    1.47              label: 'Browse View Class'
    1.48              itemValue: doBrowse:
    1.49 -            translateLabel: true
    1.50 -            argument: #view
    1.51 +            argument: view
    1.52            )
    1.53           (MenuItem
    1.54              label: 'Browse Model Class'
    1.55              itemValue: doBrowse:
    1.56 -            translateLabel: true
    1.57              isVisible: hasModel
    1.58 -            argument: #model
    1.59 +            argument: model
    1.60            )
    1.61           (MenuItem
    1.62              label: 'Browse Application Class'
    1.63              itemValue: doBrowse:
    1.64 -            translateLabel: true
    1.65              isVisible: hasApplication
    1.66 -            argument: #application
    1.67 +            argument: application
    1.68            )
    1.69           (MenuItem
    1.70              label: 'Browse Controller Class'
    1.71              itemValue: doBrowse:
    1.72 -            translateLabel: true
    1.73              isVisible: hasController
    1.74 -            argument: #controller
    1.75 +            argument: controller
    1.76            )
    1.77           (MenuItem
    1.78              label: '-'
    1.79 @@ -675,35 +649,30 @@
    1.80           (MenuItem
    1.81              label: 'Inspect View'
    1.82              itemValue: doInspect:
    1.83 -            translateLabel: true
    1.84 -            argument: #view
    1.85 +            argument: view
    1.86            )
    1.87           (MenuItem
    1.88              label: 'Inspect Window Group'
    1.89              itemValue: doInspect:
    1.90 -            translateLabel: true
    1.91 -            argument: #group
    1.92 +            argument: group
    1.93            )
    1.94           (MenuItem
    1.95              label: 'Inspect Model'
    1.96              itemValue: doInspect:
    1.97 -            translateLabel: true
    1.98              isVisible: hasModel
    1.99 -            argument: #model
   1.100 +            argument: model
   1.101            )
   1.102           (MenuItem
   1.103              label: 'Inspect Application'
   1.104              itemValue: doInspect:
   1.105 -            translateLabel: true
   1.106              isVisible: hasApplication
   1.107 -            argument: #application
   1.108 +            argument: application
   1.109            )
   1.110           (MenuItem
   1.111              label: 'Inspect Controller'
   1.112              itemValue: doInspect:
   1.113 -            translateLabel: true
   1.114              isVisible: hasController
   1.115 -            argument: #controller
   1.116 +            argument: controller
   1.117            )
   1.118           (MenuItem
   1.119              label: '-'
   1.120 @@ -711,7 +680,6 @@
   1.121           (MenuItem
   1.122              label: 'Flash'
   1.123              itemValue: doFlash
   1.124 -            translateLabel: true
   1.125            )
   1.126           (MenuItem
   1.127              label: '-'
   1.128 @@ -719,14 +687,28 @@
   1.129           (MenuItem
   1.130              label: 'Destroy'
   1.131              itemValue: doDestroy
   1.132 -            translateLabel: true
   1.133 +            labelImage: (ResourceRetriever ToolbarIconLibrary erase16x16Icon 'Destroy')
   1.134            )
   1.135           (MenuItem
   1.136              label: '-'
   1.137            )
   1.138           (MenuItem
   1.139 +            label: 'Geometry'
   1.140 +            submenuChannel: submenuGeometry:
   1.141 +            keepLinkedMenu: true
   1.142 +          )
   1.143 +         (MenuItem
   1.144 +            label: 'Interface'
   1.145 +            submenuChannel: submenuInterface:
   1.146 +            keepLinkedMenu: true
   1.147 +          )
   1.148 +         (MenuItem
   1.149 +            label: 'Visibility'
   1.150 +            submenuChannel: submenuVisibility:
   1.151 +            keepLinkedMenu: true
   1.152 +          )
   1.153 +         (MenuItem
   1.154              label: 'Instance Variables'
   1.155 -            translateLabel: true
   1.156              submenuChannel: submenuInspector:
   1.157              keepLinkedMenu: true
   1.158            )
   1.159 @@ -740,7 +722,6 @@
   1.160              enabled: selectedComponentHasChildren
   1.161              label: 'Applications'
   1.162              nameKey: single
   1.163 -            translateLabel: true
   1.164              submenuChannel: submenuApplications:
   1.165              keepLinkedMenu: true
   1.166            )
   1.167 @@ -748,7 +729,6 @@
   1.168              enabled: selectedComponentHasChildren
   1.169              label: 'Components'
   1.170              nameKey: single
   1.171 -            translateLabel: true
   1.172              submenuChannel: submenuComponents:
   1.173              keepLinkedMenu: true
   1.174            )