NewLauncher.st
branchjv
changeset 12401 4714b9640528
parent 12314 0cbf76168690
parent 12335 5281423297a8
child 12431 9f0c59c742d5
equal deleted inserted replaced
12330:235b77901045 12401:4714b9640528
   126         space:true
   126         space:true
   127                                                                         [exEnd]
   127                                                                         [exEnd]
   128 "
   128 "
   129 ! !
   129 ! !
   130 
   130 
       
   131 
   131 !NewLauncher class methodsFor:'accessing'!
   132 !NewLauncher class methodsFor:'accessing'!
   132 
   133 
   133 label
   134 label
   134 
   135 
   135     ^'ST/X Launcher'
   136     ^'ST/X Launcher'
   136 
   137 
   137 
   138 
   138 ! !
   139 ! !
       
   140 
   139 
   141 
   140 !NewLauncher class methodsFor:'defaults'!
   142 !NewLauncher class methodsFor:'defaults'!
   141 
   143 
   142 defaultInfoLineTemplate
   144 defaultInfoLineTemplate
   143     "available values:
   145     "available values:
   170 
   172 
   171     "Created: / 16.8.1998 / 13:11:58 / cg"
   173     "Created: / 16.8.1998 / 13:11:58 / cg"
   172     "Modified: / 17.8.1998 / 10:07:09 / cg"
   174     "Modified: / 17.8.1998 / 10:07:09 / cg"
   173 ! !
   175 ! !
   174 
   176 
       
   177 
   175 !NewLauncher class methodsFor:'help specs'!
   178 !NewLauncher class methodsFor:'help specs'!
   176 
   179 
   177 flyByHelpSpec
   180 flyByHelpSpec
   178     <resource: #help>
   181     <resource: #help>
   179 
   182 
   780 )
   783 )
   781 
   784 
   782     "Modified: / 21-09-2012 / 10:59:33 / cg"
   785     "Modified: / 21-09-2012 / 10:59:33 / cg"
   783 ! !
   786 ! !
   784 
   787 
       
   788 
   785 !NewLauncher class methodsFor:'interface specs'!
   789 !NewLauncher class methodsFor:'interface specs'!
   786 
   790 
   787 windowSpec
   791 windowSpec
   788     ^ self windowSpec_old.
   792     ^ self windowSpec_old.
   789     "/ ^ self windowSpec_new.
   793     "/ ^ self windowSpec_new.
   801      NewLauncher new openInterface:#windowSpec_new
   805      NewLauncher new openInterface:#windowSpec_new
   802     "
   806     "
   803 
   807 
   804     <resource: #canvas>
   808     <resource: #canvas>
   805 
   809 
   806     ^ 
   810     ^
   807      #(FullSpec
   811      #(FullSpec
   808         name: #'windowSpec_new'
   812 	name: #'windowSpec_new'
   809         window: 
   813 	window:
   810        (WindowSpec
   814        (WindowSpec
   811           label: 'ST/X Launcher'
   815 	  label: 'ST/X Launcher'
   812           name: 'ST/X Launcher'
   816 	  name: 'ST/X Launcher'
   813           min: (Point 374 44)
   817 	  min: (Point 374 44)
   814           bounds: (Rectangle 0 0 374 202)
   818 	  bounds: (Rectangle 0 0 374 202)
   815           menu: menu
   819 	  menu: menu
   816           icon: windowIcon
   820 	  icon: windowIcon
   817         )
   821 	)
   818         component: 
   822 	component:
   819        (SpecCollection
   823        (SpecCollection
   820           collection: (
   824 	  collection: (
   821            (MenuPanelSpec
   825 	   (MenuPanelSpec
   822               name: 'menuToolbarView'
   826 	      name: 'menuToolbarView'
   823               layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0)
   827 	      layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0)
   824               menu: menuToolbar
   828 	      menu: menuToolbar
   825             )
   829 	    )
   826            (NoteBookViewSpec
   830 	   (NoteBookViewSpec
   827               name: 'NoteBook1'
   831 	      name: 'NoteBook1'
   828               layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
   832 	      layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
   829               level: 0
   833 	      level: 0
   830               model: selectedTabHolder
   834 	      model: selectedTabHolder
   831               menu: tabList
   835 	      menu: tabList
   832               direction: bottom
   836 	      direction: bottom
   833               useIndex: true
   837 	      useIndex: true
   834               translateLabel: true
   838 	      translateLabel: true
   835               canvas: noteBookCanvasHolder
   839 	      canvas: noteBookCanvasHolder
   836               keepCanvasAlive: true
   840 	      keepCanvasAlive: true
   837             )
   841 	    )
   838            (UISubSpecification
   842 	   (UISubSpecification
   839               name: 'infoBarSubSpec'
   843 	      name: 'infoBarSubSpec'
   840               layout: (LayoutFrame 0 0.0 -26 1 0 1.0 0 1.0)
   844 	      layout: (LayoutFrame 0 0.0 -26 1 -16 1.0 0 1.0)
   841               majorKey: ToolApplicationModel
   845 	      majorKey: ToolApplicationModel
   842               minorKey: windowSpecForInfoBarWithClock
   846 	      minorKey: windowSpecForInfoBarWithClock
   843             )
   847 	      keepSpaceForOSXResizeHandleH: true
   844            )
   848 	    )
   845          
   849 	   )
   846         )
   850 
       
   851 	)
   847       )
   852       )
   848 !
   853 !
   849 
   854 
   850 windowSpec_old
   855 windowSpec_old
   851     "This resource specification was automatically generated
   856     "This resource specification was automatically generated
   859      NewLauncher new openInterface:#windowSpec_old
   864      NewLauncher new openInterface:#windowSpec_old
   860     "
   865     "
   861 
   866 
   862     <resource: #canvas>
   867     <resource: #canvas>
   863 
   868 
   864     ^ 
   869     ^
   865      #(FullSpec
   870      #(FullSpec
   866         name: #'windowSpec_old'
   871 	name: #'windowSpec_old'
   867         window: 
   872 	window:
   868        (WindowSpec
   873        (WindowSpec
   869           label: 'ST/X Launcher'
   874 	  label: 'ST/X Launcher'
   870           name: 'ST/X Launcher'
   875 	  name: 'ST/X Launcher'
   871           min: (Point 540 300)
   876 	  min: (Point 540 300)
   872           bounds: (Rectangle 0 0 291 202)
   877 	  bounds: (Rectangle 0 0 540 300)
   873           menu: menu
   878 	  menu: menu
   874           icon: windowIcon
   879 	  icon: windowIcon
   875         )
   880 	)
   876         component: 
   881 	component:
   877        (SpecCollection
   882        (SpecCollection
   878           collection: (
   883 	  collection: (
   879            (MenuPanelSpec
   884 	   (MenuPanelSpec
   880               name: 'menuToolbarView'
   885 	      name: 'menuToolbarView'
   881               layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0)
   886 	      layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0)
   882               menu: menuToolbar
   887 	      menu: menuToolbar
   883             )
   888 	    )
   884            (ViewSpec
   889 	   (ViewSpec
   885               name: 'Box1'
   890 	      name: 'Box1'
   886               layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
   891 	      layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
   887               level: 1
   892 	      level: 1
   888               component: 
   893 	      component:
   889              (SpecCollection
   894 	     (SpecCollection
   890                 collection: (
   895 		collection: (
   891                  (WorkspaceSpec
   896 		 (WorkspaceSpec
   892                     name: 'transcriptView'
   897 		    name: 'transcriptView'
   893                     layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   898 		    layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   894                     hasHorizontalScrollBar: true
   899 		    hasHorizontalScrollBar: true
   895                     hasVerticalScrollBar: true
   900 		    hasVerticalScrollBar: true
   896                     miniScrollerHorizontal: true
   901 		    miniScrollerHorizontal: true
   897                     hasKeyboardFocusInitially: false
   902 		    hasKeyboardFocusInitially: false
   898                   )
   903 		  )
   899                  )
   904 		 )
   900                
   905 
   901               )
   906 	      )
   902             )
   907 	    )
   903            (UISubSpecification
   908 	   (UISubSpecification
   904               name: 'infoBarSubSpec'
   909 	      name: 'infoBarSubSpec'
   905               layout: (LayoutFrame 0 0.0 -26 1 0 1.0 0 1.0)
   910 	      layout: (LayoutFrame 0 0.0 -26 1 0 1.0 0 1.0)
   906               majorKey: ToolApplicationModel
   911 	      majorKey: ToolApplicationModel
   907               minorKey: windowSpecForInfoBarWithClock
   912 	      minorKey: windowSpecForInfoBarWithClock
   908             )
   913 	      keepSpaceForOSXResizeHandleH: true
   909            )
   914 	    )
   910          
   915 	   )
   911         )
   916 
       
   917 	)
   912       )
   918       )
   913 !
   919 !
   914 
   920 
   915 windowSpec_pda
   921 windowSpec_pda
   916     "This resource specification was automatically generated
   922     "This resource specification was automatically generated
   965          
   971          
   966         )
   972         )
   967       )
   973       )
   968 ! !
   974 ! !
   969 
   975 
       
   976 
   970 !NewLauncher class methodsFor:'menu configuration'!
   977 !NewLauncher class methodsFor:'menu configuration'!
   971 
   978 
   972 addMenuItem:newItem from:anApplicationWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space
   979 addMenuItem:newItem from:anApplicationWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space
   973     |positionSpecOrNil itemNameOrNil before launcherApp|
   980     |positionSpecOrNil itemNameOrNil before launcherApp|
   974 
   981 
  1126      Transcript topView application
  1133      Transcript topView application
  1127         removeUserTool:'Foo' 
  1134         removeUserTool:'Foo' 
  1128     "
  1135     "
  1129 ! !
  1136 ! !
  1130 
  1137 
       
  1138 
  1131 !NewLauncher class methodsFor:'menu specs'!
  1139 !NewLauncher class methodsFor:'menu specs'!
  1132 
  1140 
  1133 aboutMenu
  1141 aboutMenu
  1134     "This resource specification was automatically generated
  1142     "This resource specification was automatically generated
  1135      by the MenuEditor of ST/X."
  1143      by the MenuEditor of ST/X."
  1181      (Menu new fromLiteralArrayEncoding:(NewLauncher classesMenu)) startUp
  1189      (Menu new fromLiteralArrayEncoding:(NewLauncher classesMenu)) startUp
  1182     "
  1190     "
  1183 
  1191 
  1184     <resource: #menu>
  1192     <resource: #menu>
  1185 
  1193 
  1186     ^ 
  1194     ^
  1187      #(Menu
  1195      #(Menu
  1188         (
  1196 	(
  1189          (MenuItem
  1197 	 (MenuItem
  1190             activeHelpKey: classesSystemBrowser
  1198 	    activeHelpKey: classesSystemBrowser
  1191             label: 'System Browser'
  1199 	    label: 'System Browser'
  1192             itemValue: openApplication:
  1200 	    itemValue: openApplication:
  1193             nameKey: systemBrowser
  1201 	    nameKey: systemBrowser
  1194             submenuChannel: menuClassHistory
  1202 	    submenuChannel: menuClassHistory
  1195             labelImage: (ResourceRetriever ToolbarIconLibrary startSystemBrowserIcon 'System Browser')
  1203 	    labelImage: (ResourceRetriever ToolbarIconLibrary startSystemBrowserIcon 'System Browser')
  1196             argument: 'Tools::NewSystemBrowser'
  1204 	    argument: 'Tools::NewSystemBrowser'
  1197             showBusyCursorWhilePerforming: true
  1205 	    showBusyCursorWhilePerforming: true
  1198           )
  1206 	  )
  1199          (MenuItem
  1207 	 (MenuItem
  1200             label: '-'
  1208 	    label: '-'
  1201           )
  1209 	  )
  1202          (MenuItem
  1210 	 (MenuItem
  1203             activeHelpKey: startChangeSetBrowser
  1211 	    activeHelpKey: startChangeSetBrowser
  1204             label: 'Recent Changes'
  1212 	    label: 'Recent Changes'
  1205             itemValue: startChangeSetBrowser
  1213 	    itemValue: startChangeSetBrowser
  1206             nameKey: startChangeSetBrowser
  1214 	    nameKey: startChangeSetBrowser
  1207             showBusyCursorWhilePerforming: true
  1215 	    showBusyCursorWhilePerforming: true
  1208           )
  1216 	  )
  1209          (MenuItem
  1217 	 (MenuItem
  1210             activeHelpKey: classesClassBrowserOnChanges
  1218 	    activeHelpKey: classesClassBrowserOnChanges
  1211             label: 'Changed Classes'
  1219 	    label: 'Changed Classes'
  1212             itemValue: startClassBrowserOnChanges
  1220 	    itemValue: startClassBrowserOnChanges
  1213             nameKey: classBrowserOnChanges
  1221 	    nameKey: classBrowserOnChanges
  1214             showBusyCursorWhilePerforming: true
  1222 	    showBusyCursorWhilePerforming: true
  1215           )
  1223 	  )
  1216          (MenuItem
  1224 	 (MenuItem
  1217             activeHelpKey: classBrowserOnChangedMethods
  1225 	    activeHelpKey: classBrowserOnChangedMethods
  1218             label: 'Changed Methods'
  1226 	    label: 'Changed Methods'
  1219             itemValue: startClassBrowserOnChangedMethods
  1227 	    itemValue: startClassBrowserOnChangedMethods
  1220             nameKey: classBrowserOnChangedMethods
  1228 	    nameKey: classBrowserOnChangedMethods
  1221             showBusyCursorWhilePerforming: true
  1229 	    showBusyCursorWhilePerforming: true
  1222           )
  1230 	  )
  1223          (MenuItem
  1231 	 (MenuItem
  1224             activeHelpKey: startSmallTeamChangeSetBrowser
  1232 	    activeHelpKey: startSmallTeamChangeSetBrowser
  1225             label: 'Recent Changes on SmallTeam Host'
  1233 	    label: 'Recent Changes on SmallTeam Host'
  1226             isVisible: smallTeamAvailable
  1234 	    isVisible: smallTeamAvailable
  1227             submenuChannel: startBrowserOnSmallTeamChangesMenu
  1235 	    submenuChannel: startBrowserOnSmallTeamChangesMenu
  1228             showBusyCursorWhilePerforming: true
  1236 	    showBusyCursorWhilePerforming: true
  1229           )
  1237 	  )
  1230          (MenuItem
  1238 	 (MenuItem
  1231             label: '-'
  1239 	    label: '-'
  1232           )
  1240 	  )
  1233          (MenuItem
  1241 	 (MenuItem
  1234             label: 'Special Browsers'
  1242 	    label: 'Special Browsers'
  1235             submenuChannel: classesSpecialBrowserMenu
  1243 	    submenuChannel: classesSpecialBrowserMenu
  1236           )
  1244 	  )
  1237          (MenuItem
  1245 	 (MenuItem
  1238             activeHelpKey: classesClassTreeBrowser
  1246 	    activeHelpKey: classesClassTreeBrowser
  1239             label: 'Class Tree'
  1247 	    label: 'Class Tree'
  1240             itemValue: openApplication:
  1248 	    itemValue: openApplication:
  1241             argument: 'ClassTreeGraphView'
  1249 	    argument: 'ClassTreeGraphView'
  1242             showBusyCursorWhilePerforming: true
  1250 	    showBusyCursorWhilePerforming: true
  1243           )
  1251 	  )
  1244          (MenuItem
  1252 	 (MenuItem
  1245             label: '-'
  1253 	    label: '-'
  1246           )
  1254 	  )
  1247          (MenuItem
  1255 	 (MenuItem
  1248             activeHelpKey: classesImplementors
  1256 	    activeHelpKey: classesImplementors
  1249             label: 'Implementors Of...'
  1257 	    label: 'Implementors Of...'
  1250             itemValue: browseImplementors
  1258 	    itemValue: browseImplementors
  1251             showBusyCursorWhilePerforming: true
  1259 	    showBusyCursorWhilePerforming: true
  1252           )
  1260 	  )
  1253          (MenuItem
  1261 	 (MenuItem
  1254             activeHelpKey: classesSenders
  1262 	    activeHelpKey: classesSenders
  1255             label: 'Senders Of...'
  1263 	    label: 'Senders Of...'
  1256             itemValue: browseSenders
  1264 	    itemValue: browseSenders
  1257             showBusyCursorWhilePerforming: true
  1265 	    showBusyCursorWhilePerforming: true
  1258           )
  1266 	  )
  1259          (MenuItem
  1267 	 (MenuItem
  1260             label: 'Method Finder'
  1268 	    label: 'Method Finder'
  1261             itemValue: openMethodFinder
  1269 	    itemValue: openMethodFinder
  1262           )
  1270 	    labelImage: (ResourceRetriever ToolbarIconLibrary methodFinder24x24Icon 'Method Finder')
  1263          (MenuItem
  1271 	  )
  1264             activeHelpKey: classesResourceMethods
  1272 	 (MenuItem
  1265             label: 'Find Resource Methods...'
  1273 	    activeHelpKey: classesResourceMethods
  1266             itemValue: browseResources
  1274 	    label: 'Find Resource Methods...'
  1267           )
  1275 	    itemValue: browseResources
  1268          (MenuItem
  1276 	  )
  1269             label: '-'
  1277 	 (MenuItem
  1270           )
  1278 	    label: '-'
  1271          (MenuItem
  1279 	  )
  1272             activeHelpKey: classesSpecial
  1280 	 (MenuItem
  1273             label: 'Special'
  1281 	    activeHelpKey: classesSpecial
  1274             nameKey: special
  1282 	    label: 'Special'
  1275             submenu: 
  1283 	    nameKey: special
  1276            (Menu
  1284 	    submenu:
  1277               (
  1285 	   (Menu
  1278                (MenuItem
  1286 	      (
  1279                   activeHelpKey: classesSpecialReferencesToUnboundGlobals
  1287 	       (MenuItem
  1280                   label: 'References to Unbound Globals'
  1288 		  activeHelpKey: classesSpecialReferencesToUnboundGlobals
  1281                   itemValue: browseUnboundGlobals
  1289 		  label: 'References to Unbound Globals'
  1282                 )
  1290 		  itemValue: browseUnboundGlobals
  1283                (MenuItem
  1291 		)
  1284                   activeHelpKey: classesSpecialReferencesToUndeclared
  1292 	       (MenuItem
  1285                   label: 'References to Undeclared'
  1293 		  activeHelpKey: classesSpecialReferencesToUndeclared
  1286                   itemValue: browseUndeclared
  1294 		  label: 'References to Undeclared'
  1287                 )
  1295 		  itemValue: browseUndeclared
  1288                (MenuItem
  1296 		)
  1289                   activeHelpKey: classesSpecialReferencesToUndeclared
  1297 	       (MenuItem
  1290                   label: 'Clear Undeclared Variables'
  1298 		  activeHelpKey: classesSpecialReferencesToUndeclared
  1291                   itemValue: clearUndeclaredVariables
  1299 		  label: 'Clear Undeclared Variables'
  1292                 )
  1300 		  itemValue: clearUndeclaredVariables
  1293                )
  1301 		)
  1294               nil
  1302 	       )
  1295               nil
  1303 	      nil
  1296             )
  1304 	      nil
  1297           )
  1305 	    )
  1298          )
  1306 	  )
  1299         nil
  1307 	 )
  1300         nil
  1308 	nil
       
  1309 	nil
  1301       )
  1310       )
  1302 !
  1311 !
  1303 
  1312 
  1304 classesSpecialBrowserMenu
  1313 classesSpecialBrowserMenu
  1305     "This resource specification was automatically generated
  1314     "This resource specification was automatically generated
  2099      by the MenuEditor of ST/X."
  2108      by the MenuEditor of ST/X."
  2100 
  2109 
  2101     "Do not manually edit this!! If it is corrupted,
  2110     "Do not manually edit this!! If it is corrupted,
  2102      the MenuEditor may not be able to read the specification."
  2111      the MenuEditor may not be able to read the specification."
  2103 
  2112 
  2104 
       
  2105     "
  2113     "
  2106      MenuEditor new openOnClass:NewLauncher andSelector:#menu
  2114      MenuEditor new openOnClass:NewLauncher andSelector:#menu
  2107      (Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp
  2115      (Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp
  2108     "
  2116     "
  2109 
  2117 
  2110     <resource: #menu>
  2118     <resource: #menu>
  2111 
  2119 
  2112     ^ 
  2120     ^
  2113      #(Menu
  2121      #(Menu
  2114         (
  2122 	(
  2115          (MenuItem
  2123 	 (MenuItem
  2116             label: 'About'
  2124 	    label: 'About'
  2117             nameKey: about
  2125 	    nameKey: about
  2118             translateLabel: true
  2126 	    translateLabel: true
  2119             submenuChannel: aboutMenu
  2127 	    submenuChannel: aboutMenu
  2120             labelImage: (ResourceRetriever nil menuIcon)
  2128 	    labelImage: (ResourceRetriever nil menuIcon)
  2121           )
  2129 	  )
  2122          (MenuItem
  2130 	 (MenuItem
  2123             label: 'File'
  2131 	    label: 'File'
  2124             nameKey: file
  2132 	    nameKey: file
  2125             translateLabel: true
  2133 	    translateLabel: true
  2126             submenuChannel: fileMenu
  2134 	    submenuChannel: fileMenu
  2127           )
  2135 	  )
  2128          (MenuItem
  2136 	 (MenuItem
  2129             label: 'Classes'
  2137 	    label: 'Classes'
  2130             nameKey: classes
  2138 	    nameKey: classes
  2131             translateLabel: true
  2139 	    translateLabel: true
  2132             submenuChannel: classesMenu
  2140 	    submenuChannel: classesMenu
  2133           )
  2141 	  )
  2134          (MenuItem
  2142 	 (MenuItem
  2135             label: 'Tools'
  2143 	    label: 'Tools'
  2136             nameKey: tools
  2144 	    nameKey: tools
  2137             translateLabel: true
  2145 	    translateLabel: true
  2138             submenuChannel: toolsMenu
  2146 	    submenuChannel: toolsMenu
  2139             "JV@2012-05-05: If not kept, installed menu items are not shown!!!!!!
  2147 	  )
  2140              Either keep it or patch it whenever popped up."
  2148 	 (MenuItem
  2141             keepLinkedMenu: true
  2149 	    label: 'System'
  2142           )
  2150 	    nameKey: system
  2143          (MenuItem
  2151 	    translateLabel: true
  2144             label: 'System'
  2152 	    submenuChannel: systemMenu
  2145             nameKey: system
  2153 	  )
  2146             translateLabel: true
  2154 	 (MenuItem
  2147             submenuChannel: systemMenu
  2155 	    label: 'Settings'
  2148           )
  2156 	    nameKey: settings
  2149          (MenuItem
  2157 	    translateLabel: true
  2150             label: 'Settings'
  2158 	    isVisible: useOldSettingsApplication
  2151             nameKey: settings
  2159 	    submenuChannel: settingsMenu
  2152             translateLabel: true
  2160 	  )
  2153             isVisible: useOldSettingsApplication
  2161 	 (MenuItem
  2154             submenuChannel: settingsMenu
  2162 	    label: 'Windows'
  2155           )
  2163 	    nameKey: windows
  2156          (MenuItem
  2164 	    translateLabel: true
  2157             label: 'Windows'
  2165 	    submenuChannel: windowsMenu
  2158             nameKey: windows
  2166 	  )
  2159             translateLabel: true
  2167 	 (MenuItem
  2160             submenuChannel: windowsMenu
  2168 	    label: 'Demos'
  2161           )
  2169 	    nameKey: demos
  2162          (MenuItem
  2170 	    translateLabel: true
  2163             label: 'Demos'
  2171 	    submenuChannel: demosMenu
  2164             nameKey: demos
  2172 	  )
  2165             translateLabel: true
  2173 	 (MenuItem
  2166             submenuChannel: demosMenu
  2174 	    label: 'MENU_Help'
  2167           )
  2175 	    nameKey: help
  2168          (MenuItem
  2176 	    translateLabel: true
  2169             label: 'MENU_Help'
  2177 	    startGroup: conditionalRight
  2170             nameKey: help
  2178 	    submenuChannel: helpMenu
  2171             translateLabel: true
  2179 	  )
  2172             startGroup: conditionalRight
  2180 	 )
  2173             submenuChannel: helpMenu
  2181 	nil
  2174           )
  2182 	nil
  2175          )
       
  2176         nil
       
  2177         nil
       
  2178       )
  2183       )
  2179 
       
  2180     "Modified (comment): / 05-05-2012 / 19:02:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
  2181 !
  2184 !
  2182 
  2185 
  2183 menuOpenWorkspaceTypes
  2186 menuOpenWorkspaceTypes
  2184     "This resource specification was automatically generated
  2187     "This resource specification was automatically generated
  2185      by the MenuEditor of ST/X."
  2188      by the MenuEditor of ST/X."
  2681      (Menu new fromLiteralArrayEncoding:(NewLauncher toolsMenu)) startUp
  2684      (Menu new fromLiteralArrayEncoding:(NewLauncher toolsMenu)) startUp
  2682     "
  2685     "
  2683 
  2686 
  2684     <resource: #menu>
  2687     <resource: #menu>
  2685 
  2688 
  2686     ^ 
  2689     ^
  2687      #(Menu
  2690      #(Menu
  2688         (
  2691 	(
  2689          (MenuItem
  2692 	 (MenuItem
  2690             activeHelpKey: toolsWorkspace
  2693 	    activeHelpKey: toolsWorkspace
  2691             label: 'Workspace'
  2694 	    label: 'Workspace'
  2692             itemValue: openWorkspace
  2695 	    itemValue: openWorkspace
  2693             nameKey: workspace
  2696 	    nameKey: workspace
  2694             labelImage: (ResourceRetriever ToolbarIconLibrary startWorkspaceIcon 'Workspace')
  2697 	    labelImage: (ResourceRetriever ToolbarIconLibrary startWorkspaceIcon 'Workspace')
  2695           )
  2698 	  )
  2696          (MenuItem
  2699 	 (MenuItem
  2697             label: '-'
  2700 	    label: '-'
  2698           )
  2701 	  )
  2699          (MenuItem
  2702 	 (MenuItem
  2700             enabled: monticelloRepositoryAvailable
  2703 	    enabled: monticelloRepositoryAvailable
  2701             label: 'Monticello Repository Browser'
  2704 	    label: 'Monticello Repository Browser'
  2702             itemValue: startMonticelloRepositoryBrowser
  2705 	    itemValue: startMonticelloRepositoryBrowser
  2703             showBusyCursorWhilePerforming: true
  2706 	    showBusyCursorWhilePerforming: true
  2704           )
  2707 	  )
  2705          (MenuItem
  2708 	 (MenuItem
  2706             label: 'Programming'
  2709 	    label: 'Programming'
  2707             nameKey: programming
  2710 	    nameKey: programming
  2708             "JV@2012-05-05: If not kept, installed menu items are not shown!!!!!!
  2711 	    submenu:
  2709              Either keep it or patch it whenever popped up."
  2712 	   (Menu
  2710             keepLinkedMenu: true
  2713 	      (
  2711             submenu: 
  2714 	       (MenuItem
  2712            (Menu
  2715 		  activeHelpKey: toolsChangesBrowser
  2713               (
  2716 		  label: 'Change File Browser'
  2714                (MenuItem
  2717 		  itemValue: startChangesBrowser
  2715                   activeHelpKey: toolsChangesBrowser
  2718 		  nameKey: changesBrowser
  2716                   label: 'Change File Browser'
  2719 		  labelImage: (ResourceRetriever ToolbarIconLibrary startChangesBrowserIcon 'Change File Browser')
  2717                   itemValue: startChangesBrowser
  2720 		)
  2718                   nameKey: changesBrowser
  2721 	       (MenuItem
  2719                   labelImage: (ResourceRetriever ToolbarIconLibrary startChangesBrowserIcon 'Change File Browser')
  2722 		  activeHelpKey: toolsSUnit
  2720                 )
  2723 		  label: 'SUnit Test Runner'
  2721                (MenuItem
  2724 		  itemValue: startSUnitTestRunner
  2722                   activeHelpKey: toolsSUnit
  2725 		  nameKey: startSUnitTestRunner
  2723                   label: 'SUnit Test Runner'
  2726 		  labelImage: (ResourceRetriever NewLauncher startSUnitIcon 'SUnit Test Runner')
  2724                   itemValue: startSUnitTestRunner
  2727 		)
  2725                   nameKey: startSUnitTestRunner
  2728 	       (MenuItem
  2726                   labelImage: (ResourceRetriever NewLauncher startSUnitIcon 'SUnit Test Runner')
  2729 		  activeHelpKey: toolsToDoList
  2727                 )
  2730 		  label: 'Programmer''s ToDo List'
  2728                (MenuItem
  2731 		  itemValue: startToDoListBrowser
  2729                   activeHelpKey: toolsToDoList
  2732 		  nameKey: startToDoListBrowser
  2730                   label: 'Programmer''s ToDo List'
  2733 		)
  2731                   itemValue: startToDoListBrowser
  2734 	       (MenuItem
  2732                   nameKey: startToDoListBrowser
  2735 		  activeHelpKey: toolsOOM
  2733                 )
  2736 		  enabled: oomPackageLoaded
  2734                (MenuItem
  2737 		  label: 'Code Metrics Browser'
  2735                   activeHelpKey: toolsOOM
  2738 		  itemValue: startOOMBrowser
  2736                   enabled: oomPackageLoaded
  2739 		  nameKey: startOOMBrowser
  2737                   label: 'Code Metrics Browser'
  2740 		)
  2738                   itemValue: startOOMBrowser
  2741 	       (MenuItem
  2739                   nameKey: startOOMBrowser
  2742 		  activeHelpKey: toolsSmaCC
  2740                 )
  2743 		  enabled: smaccPackageLoaded
  2741                (MenuItem
  2744 		  label: 'SmaCC ParserGenerator'
  2742                   activeHelpKey: toolsSmaCC
  2745 		  itemValue: startSmaCCParserGenerator
  2743                   enabled: smaccPackageLoaded
  2746 		  nameKey: startSmaCCParserGenerator
  2744                   label: 'SmaCC ParserGenerator'
  2747 		)
  2745                   itemValue: startSmaCCParserGenerator
  2748 	       (MenuItem
  2746                   nameKey: startSmaCCParserGenerator
  2749 		  activeHelpKey: toolsInternationalLanguageTranslationEditor
  2747                 )
  2750 		  label: 'International Language Translation Editor'
  2748                (MenuItem
  2751 		  itemValue: startInternationalLanguageTranslationEditor
  2749                   activeHelpKey: toolsInternationalLanguageTranslationEditor
  2752 		  labelImage: (ResourceRetriever ToolbarIconLibrary languagesIcon 'International Language Translation Editor')
  2750                   label: 'International Language Translation Editor'
  2753 		)
  2751                   itemValue: startInternationalLanguageTranslationEditor
  2754 	       )
  2752                   labelImage: (ResourceRetriever ToolbarIconLibrary languagesIcon 'International Language Translation Editor')
  2755 	      nil
  2753                 )
  2756 	      nil
  2754                )
  2757 	    )
  2755               nil
  2758 	  )
  2756               nil
  2759 	 (MenuItem
  2757             )
  2760 	    activeHelpKey: classesDebugging
  2758           )
  2761 	    label: 'Debugging'
  2759          (MenuItem
  2762 	    nameKey: debugging
  2760             activeHelpKey: classesDebugging
  2763 	    submenu:
  2761             label: 'Debugging'
  2764 	   (Menu
  2762             nameKey: debugging
  2765 	      (
  2763             submenu: 
  2766 	       (MenuItem
  2764            (Menu
  2767 		  activeHelpKey: breakPointBrowser
  2765               (
  2768 		  label: 'Breakpoint Browser'
  2766                (MenuItem
  2769 		  itemValue: openApplication:
  2767                   activeHelpKey: breakPointBrowser
  2770 		  argument: 'Tools::BreakpointBrowser'
  2768                   label: 'Breakpoint Browser'
  2771 		)
  2769                   itemValue: openApplication:
  2772 	       (MenuItem
  2770                   argument: 'Tools::BreakpointBrowser'
  2773 		  label: '-'
  2771                 )
  2774 		)
  2772                (MenuItem
  2775 	       (MenuItem
  2773                   label: '-'
  2776 		  activeHelpKey: classesShowTracePoints
  2774                 )
  2777 		  label: 'Show all Break && Trace Points'
  2775                (MenuItem
  2778 		  itemValue: browseAllBreakAndTracePoints
  2776                   activeHelpKey: classesShowTracePoints
  2779 		)
  2777                   label: 'Show all Break && Trace Points'
  2780 	       (MenuItem
  2778                   itemValue: browseAllBreakAndTracePoints
  2781 		  activeHelpKey: classesRemoveAllTracePoints
  2779                 )
  2782 		  label: 'Remove all Break && Trace Points'
  2780                (MenuItem
  2783 		  itemValue: removeAllBreakAndTracePoints
  2781                   activeHelpKey: classesRemoveAllTracePoints
  2784 		)
  2782                   label: 'Remove all Break && Trace Points'
  2785 	       (MenuItem
  2783                   itemValue: removeAllBreakAndTracePoints
  2786 		  activeHelpKey: classesStopIgnoringHalts
  2784                 )
  2787 		  enabled: debuggerHasIgnoredHalts
  2785                (MenuItem
  2788 		  label: 'Stop Ignoring Halts/Breakpoints'
  2786                   activeHelpKey: classesStopIgnoringHalts
  2789 		  itemValue: stopIgnoringHalts
  2787                   enabled: debuggerHasIgnoredHalts
  2790 		)
  2788                   label: 'Stop Ignoring Halts/Breakpoints'
  2791 	       (MenuItem
  2789                   itemValue: stopIgnoringHalts
  2792 		  label: '-'
  2790                 )
  2793 		)
  2791                (MenuItem
  2794 	       (MenuItem
  2792                   label: '-'
  2795 		  label: 'Halt when Text is Sent to Transcript...'
  2793                 )
  2796 		  itemValue: openTranscriptDebugDialog
  2794                (MenuItem
  2797 		)
  2795                   label: 'Halt when Text is Sent to Transcript...'
  2798 	       (MenuItem
  2796                   itemValue: openTranscriptDebugDialog
  2799 		  label: 'Trace when Text is Sent to Transcript...'
  2797                 )
  2800 		  itemValue: openTranscriptTraceDialog
  2798                (MenuItem
  2801 		)
  2799                   label: 'Trace when Text is Sent to Transcript...'
  2802 	       (MenuItem
  2800                   itemValue: openTranscriptTraceDialog
  2803 		  label: '-'
  2801                 )
  2804 		)
  2802                (MenuItem
  2805 	       (MenuItem
  2803                   label: '-'
  2806 		  activeHelpKey: enableGlobalCoverageAnalysis
  2804                 )
  2807 		  label: 'Clear all Coverage Info (Systemwide)'
  2805                (MenuItem
  2808 		  itemValue: clearAllCoverageInfo
  2806                   activeHelpKey: enableGlobalCoverageAnalysis
  2809 		)
  2807                   label: 'Clear all Coverage Info (Systemwide)'
  2810 	       (MenuItem
  2808                   itemValue: clearAllCoverageInfo
  2811 		  activeHelpKey: enableGlobalCoverageAnalysis
  2809                 )
  2812 		  label: 'Enable Coverage Analysis in all Processes'
  2810                (MenuItem
  2813 		  itemValue: enableGlobalCoverageAnalysis
  2811                   activeHelpKey: enableGlobalCoverageAnalysis
  2814 		)
  2812                   label: 'Enable Coverage Analysis in all Processes'
  2815 	       )
  2813                   itemValue: enableGlobalCoverageAnalysis
  2816 	      nil
  2814                 )
  2817 	      nil
  2815                )
  2818 	    )
  2816               nil
  2819 	  )
  2817               nil
  2820 	 (MenuItem
  2818             )
  2821 	    label: 'GUI'
  2819           )
  2822 	    submenu:
  2820          (MenuItem
  2823 	   (Menu
  2821             label: 'GUI'
  2824 	      (
  2822             submenu: 
  2825 	       (MenuItem
  2823            (Menu
  2826 		  activeHelpKey: toolsGUIPainter
  2824               (
  2827 		  label: 'GUI Painter'
  2825                (MenuItem
  2828 		  itemValue: openApplication:
  2826                   activeHelpKey: toolsGUIPainter
  2829 		  nameKey: guiPainter
  2827                   label: 'GUI Painter'
  2830 		  labelImage: (ResourceRetriever ToolbarIconLibrary startUIPainterIcon 'GUI Painter')
  2828                   itemValue: openApplication:
  2831 		  argument: 'UIPainter'
  2829                   nameKey: guiPainter
  2832 		)
  2830                   labelImage: (ResourceRetriever ToolbarIconLibrary startUIPainterIcon 'GUI Painter')
  2833 	       (MenuItem
  2831                   argument: 'UIPainter'
  2834 		  activeHelpKey: toolsMenuEditor
  2832                 )
  2835 		  label: 'Menu Editor'
  2833                (MenuItem
  2836 		  itemValue: openApplication:
  2834                   activeHelpKey: toolsMenuEditor
  2837 		  nameKey: menuEditor
  2835                   label: 'Menu Editor'
  2838 		  labelImage: (ResourceRetriever ToolbarIconLibrary startMenuEditorIcon 'Menu Editor')
  2836                   itemValue: openApplication:
  2839 		  argument: 'MenuEditor'
  2837                   nameKey: menuEditor
  2840 		)
  2838                   labelImage: (ResourceRetriever ToolbarIconLibrary startMenuEditorIcon 'Menu Editor')
  2841 	       (MenuItem
  2839                   argument: 'MenuEditor'
  2842 		  activeHelpKey: toolsImageEditor
  2840                 )
  2843 		  label: 'Image Editor'
  2841                (MenuItem
  2844 		  itemValue: openApplication:
  2842                   activeHelpKey: toolsImageEditor
  2845 		  nameKey: imageEditor
  2843                   label: 'Image Editor'
  2846 		  labelImage: (ResourceRetriever ToolbarIconLibrary startImageEditorIcon 'Image Editor')
  2844                   itemValue: openApplication:
  2847 		  argument: 'ImageEditor'
  2845                   nameKey: imageEditor
  2848 		)
  2846                   labelImage: (ResourceRetriever ToolbarIconLibrary startImageEditorIcon 'Image Editor')
  2849 	       )
  2847                   argument: 'ImageEditor'
  2850 	      nil
  2848                 )
  2851 	      nil
  2849                )
  2852 	    )
  2850               nil
  2853 	  )
  2851               nil
  2854 	 (MenuItem
  2852             )
  2855 	    label: '-'
  2853           )
  2856 	  )
  2854          (MenuItem
  2857 	 (MenuItem
  2855             label: '-'
  2858 	    label: 'Bug Reporter'
  2856           )
  2859 	    itemValue: startBugMessages
  2857          (MenuItem
  2860 	    nameKey: bugMessages
  2858             label: 'Bug Reporter'
  2861 	    isVisible: bugReporterAvailable
  2859             itemValue: startBugMessages
  2862 	    labelImage: (ResourceRetriever NewLauncher bugReporterIcon 'Bug Reporter')
  2860             nameKey: bugMessages
  2863 	  )
  2861             isVisible: bugReporterAvailable
  2864 	 (MenuItem
  2862             labelImage: (ResourceRetriever NewLauncher bugReporterIcon 'Bug Reporter')
  2865 	    label: 'SQL Workspace'
  2863           )
  2866 	    itemValue: startSQLWorkspace
  2864          (MenuItem
  2867 	    isVisible: sqlWorkspaceItemVisible
  2865             label: 'SQL Workspace'
  2868 	  )
  2866             itemValue: startSQLWorkspace
  2869 	 (MenuItem
  2867             isVisible: sqlWorkspaceItemVisible
  2870 	    activeHelpKey: fileApplicationBuilder
  2868           )
  2871 	    label: 'Application Packager (exe-Builder)'
  2869          (MenuItem
  2872 	    itemValue: openApplication:
  2870             activeHelpKey: fileApplicationBuilder
  2873 	    labelImage: (ResourceRetriever ToolbarIconLibrary projectBuilderIcon 'Application Packager (exe-Builder)')
  2871             label: 'Application Packager (exe-Builder)'
  2874 	    argument: 'Tools::ProjectBuilderAssistantApplication'
  2872             itemValue: openApplication:
  2875 	  )
  2873             labelImage: (ResourceRetriever ToolbarIconLibrary projectBuilderIcon 'Application Packager (exe-Builder)')
  2876 	 (MenuItem
  2874             argument: 'Tools::ProjectBuilderAssistantApplication'
  2877 	    label: '-'
  2875           )
  2878 	  )
  2876          (MenuItem
  2879 	 (MenuItem
  2877             label: '-'
  2880 	    label: 'Recently Opened'
  2878           )
  2881 	    submenuChannel: recentlyOpenedApplicationsMenu
  2879          (MenuItem
  2882 	  )
  2880             label: 'Recently Opened'
  2883 	 (MenuItem
  2881             submenuChannel: recentlyOpenedApplicationsMenu
  2884 	    label: '-'
  2882           )
  2885 	  )
  2883          (MenuItem
  2886 	 (MenuItem
  2884             label: '-'
  2887 	    activeHelpKey: toolsMisc
  2885           )
  2888 	    label: 'Misc'
  2886          (MenuItem
  2889 	    nameKey: misc
  2887             activeHelpKey: toolsMisc
  2890 	    submenu:
  2888             label: 'Misc'
  2891 	   (Menu
  2889             nameKey: misc
  2892 	      (
  2890             "JV@2012-05-05: If not kept, installed menu items are not shown!!!!!!
  2893 	       (MenuItem
  2891              Either keep it or patch it whenever popped up."
  2894 		  activeHelpKey: toolsMiscProjects
  2892             keepLinkedMenu: true
  2895 		  label: 'Projects'
  2893             submenu: 
  2896 		  isVisible: false
  2894            (Menu
  2897 		  submenu:
  2895               (
  2898 		 (Menu
  2896                (MenuItem
  2899 		    (
  2897                   activeHelpKey: toolsMiscProjects
  2900 		     (MenuItem
  2898                   label: 'Projects'
  2901 			activeHelpKey: toolsMiscProjectsNewProject
  2899                   isVisible: false
  2902 			label: 'New Project'
  2900                   submenu: 
  2903 			itemValue: newProject
  2901                  (Menu
  2904 		      )
  2902                     (
  2905 		     (MenuItem
  2903                      (MenuItem
  2906 			label: '-'
  2904                         activeHelpKey: toolsMiscProjectsNewProject
  2907 		      )
  2905                         label: 'New Project'
  2908 		     (MenuItem
  2906                         itemValue: newProject
  2909 			activeHelpKey: toolsMiscProjectsSelectProject
  2907                       )
  2910 			label: 'Select Project...'
  2908                      (MenuItem
  2911 			itemValue: selectProject
  2909                         label: '-'
  2912 		      )
  2910                       )
  2913 		     )
  2911                      (MenuItem
  2914 		    nil
  2912                         activeHelpKey: toolsMiscProjectsSelectProject
  2915 		    nil
  2913                         label: 'Select Project...'
  2916 		  )
  2914                         itemValue: selectProject
  2917 		)
  2915                       )
  2918 	       (MenuItem
  2916                      )
  2919 		  label: '-'
  2917                     nil
  2920 		  isVisible: false
  2918                     nil
  2921 		)
  2919                   )
  2922 	       (MenuItem
  2920                 )
  2923 		  activeHelpKey: toolsMiscNewLauncher
  2921                (MenuItem
  2924 		  label: 'Reopen Launcher'
  2922                   label: '-'
  2925 		  itemValue: startNewLauncher
  2923                   isVisible: false
  2926 		)
  2924                 )
  2927 	       (MenuItem
  2925                (MenuItem
  2928 		  activeHelpKey: demosRemoteLauncher
  2926                   activeHelpKey: toolsMiscNewLauncher
  2929 		  enabled: canOpenRemoteLauncher
  2927                   label: 'Reopen Launcher'
  2930 		  label: 'Remote Launcher...'
  2928                   itemValue: startNewLauncher
  2931 		  itemValue: startRemoteLauncher
  2929                 )
  2932 		)
  2930                (MenuItem
  2933 	       (MenuItem
  2931                   activeHelpKey: demosRemoteLauncher
  2934 		  activeHelpKey: demosPDALauncher
  2932                   enabled: canOpenRemoteLauncher
  2935 		  label: 'PDA Launcher...'
  2933                   label: 'Remote Launcher...'
  2936 		  itemValue: startPDALauncher
  2934                   itemValue: startRemoteLauncher
  2937 		  isVisible: hasPDALauncher
  2935                 )
  2938 		)
  2936                (MenuItem
  2939 	       (MenuItem
  2937                   activeHelpKey: demosPDALauncher
  2940 		  label: '-'
  2938                   label: 'PDA Launcher...'
  2941 		)
  2939                   itemValue: startPDALauncher
  2942 	       (MenuItem
  2940                   isVisible: hasPDALauncher
  2943 		  activeHelpKey: toolsMiscNewChangesBrowser
  2941                 )
  2944 		  label: 'New Changes Browser'
  2942                (MenuItem
  2945 		  itemValue: startNewChangesBrowser
  2943                   label: '-'
  2946 		)
  2944                 )
  2947 	       (MenuItem
  2945                (MenuItem
  2948 		  activeHelpKey: toolsMiscOldChangesBrowser
  2946                   activeHelpKey: toolsMiscNewChangesBrowser
  2949 		  label: 'Old Changes Browser'
  2947                   label: 'New Changes Browser'
  2950 		  itemValue: startOldChangesBrowser
  2948                   itemValue: startNewChangesBrowser
  2951 		)
  2949                 )
  2952 	       (MenuItem
  2950                (MenuItem
  2953 		  label: '-'
  2951                   activeHelpKey: toolsMiscOldChangesBrowser
  2954 		  isVisible: canDoTerminal
  2952                   label: 'Old Changes Browser'
  2955 		)
  2953                   itemValue: startOldChangesBrowser
  2956 	       (MenuItem
  2954                 )
  2957 		  activeHelpKey: toolsTerminal
  2955                (MenuItem
  2958 		  label: 'Terminal'
  2956                   label: '-'
  2959 		  itemValue: openTerminal
  2957                   isVisible: canDoTerminal
  2960 		  isVisible: canDoTerminal
  2958                 )
  2961 		)
  2959                (MenuItem
  2962 	       (MenuItem
  2960                   activeHelpKey: toolsTerminal
  2963 		  label: '-'
  2961                   label: 'Terminal'
  2964 		  isVisible: canDoTerminal
  2962                   itemValue: openTerminal
  2965 		)
  2963                   isVisible: canDoTerminal
  2966 	       (MenuItem
  2964                 )
  2967 		  label: 'Inspect Global Variables'
  2965                (MenuItem
  2968 		  itemValue: inspectGlobalVariables
  2966                   label: '-'
  2969 		)
  2967                   isVisible: canDoTerminal
  2970 	       (MenuItem
  2968                 )
  2971 		  label: 'Inspect Workspace Variables'
  2969                (MenuItem
  2972 		  itemValue: inspectWorkspaceVariables
  2970                   label: 'Inspect Global Variables'
  2973 		)
  2971                   itemValue: inspectGlobalVariables
  2974 	       (MenuItem
  2972                 )
  2975 		  label: 'Remove all Workspace Variables'
  2973                (MenuItem
  2976 		  itemValue: removeAllWorkspaceVariables
  2974                   label: 'Inspect Workspace Variables'
  2977 		)
  2975                   itemValue: inspectWorkspaceVariables
  2978 	       )
  2976                 )
  2979 	      nil
  2977                (MenuItem
  2980 	      nil
  2978                   label: 'Remove all Workspace Variables'
  2981 	    )
  2979                   itemValue: removeAllWorkspaceVariables
  2982 	  )
  2980                 )
  2983 	 )
  2981                )
  2984 	nil
  2982               nil
  2985 	nil
  2983               nil
       
  2984             )
       
  2985           )
       
  2986          )
       
  2987         nil
       
  2988         nil
       
  2989       )
  2986       )
  2990 !
  2987 !
  2991 
  2988 
  2992 windowsMenu
  2989 windowsMenu
  2993     "This resource specification was automatically generated
  2990     "This resource specification was automatically generated
  3185          )
  3182          )
  3186         nil
  3183         nil
  3187         nil
  3184         nil
  3188       )
  3185       )
  3189 ! !
  3186 ! !
       
  3187 
  3190 
  3188 
  3191 !NewLauncher class methodsFor:'oldstyle-menu specs'!
  3189 !NewLauncher class methodsFor:'oldstyle-menu specs'!
  3192 
  3190 
  3193 settingsMenu
  3191 settingsMenu
  3194     "This resource specification was automatically generated
  3192     "This resource specification was automatically generated
  3341          )
  3339          )
  3342         nil
  3340         nil
  3343         nil
  3341         nil
  3344       )
  3342       )
  3345 ! !
  3343 ! !
       
  3344 
  3346 
  3345 
  3347 !NewLauncher methodsFor:'accessing'!
  3346 !NewLauncher methodsFor:'accessing'!
  3348 
  3347 
  3349 errorListCanvas
  3348 errorListCanvas
  3350     errorListCanvas isNil ifTrue:[
  3349     errorListCanvas isNil ifTrue:[
  3449         ]
  3448         ]
  3450     ].
  3449     ].
  3451     ^ transcript
  3450     ^ transcript
  3452 ! !
  3451 ! !
  3453 
  3452 
       
  3453 
  3454 !NewLauncher methodsFor:'aspects'!
  3454 !NewLauncher methodsFor:'aspects'!
  3455 
  3455 
  3456 canDoTerminal
  3456 canDoTerminal
  3457     "return a 'valueHolder', which returns true if the terminal application
  3457     "return a 'valueHolder', which returns true if the terminal application
  3458      is available. For now, this is true if we run under unix"
  3458      is available. For now, this is true if we run under unix"
  3619 !
  3619 !
  3620 
  3620 
  3621 webDocumentsItemShownInHelpMenu
  3621 webDocumentsItemShownInHelpMenu
  3622     ^ false
  3622     ^ false
  3623 ! !
  3623 ! !
       
  3624 
  3624 
  3625 
  3625 !NewLauncher methodsFor:'change & update'!
  3626 !NewLauncher methodsFor:'change & update'!
  3626 
  3627 
  3627 update:something with:aParameter from:changedObject
  3628 update:something with:aParameter from:changedObject
  3628     "care for project changes & update my infoView"
  3629     "care for project changes & update my infoView"
  3741     projectInfo := self infoLineTemplate bindWithArguments:bindings.
  3742     projectInfo := self infoLineTemplate bindWithArguments:bindings.
  3742     self infoLabelHolder value:projectInfo.
  3743     self infoLabelHolder value:projectInfo.
  3743     ^projectInfo.
  3744     ^projectInfo.
  3744 ! !
  3745 ! !
  3745 
  3746 
       
  3747 
  3746 !NewLauncher methodsFor:'help'!
  3748 !NewLauncher methodsFor:'help'!
  3747 
  3749 
  3748 defaultInfoLabel
  3750 defaultInfoLabel
  3749 
  3751 
  3750     ^self updateInfo
  3752     ^self updateInfo
  3758     aKey == #fileSaveImage ifTrue:[
  3760     aKey == #fileSaveImage ifTrue:[
  3759         ^ text bindWith:(ObjectMemory nameForSnapshot)
  3761         ^ text bindWith:(ObjectMemory nameForSnapshot)
  3760     ].
  3762     ].
  3761     ^ text
  3763     ^ text
  3762 ! !
  3764 ! !
       
  3765 
  3763 
  3766 
  3764 !NewLauncher methodsFor:'menu configuration'!
  3767 !NewLauncher methodsFor:'menu configuration'!
  3765 
  3768 
  3766 addMenuItem:newItem from:anApplicationClassWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space
  3769 addMenuItem:newItem from:anApplicationClassWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space
  3767     "adds a menu item;
  3770     "adds a menu item;
  4123     ^ UserAddedToolBarItems ? #()
  4126     ^ UserAddedToolBarItems ? #()
  4124 
  4127 
  4125 
  4128 
  4126 ! !
  4129 ! !
  4127 
  4130 
       
  4131 
  4128 !NewLauncher methodsFor:'menus-dynamic'!
  4132 !NewLauncher methodsFor:'menus-dynamic'!
  4129 
  4133 
  4130 allWindowsMenu
  4134 allWindowsMenu
  4131     "returns a subMenu with one oeprations-submenu entry per open window"
  4135     "returns a subMenu with one oeprations-submenu entry per open window"
  4132 
  4136 
  4133     |menu|
  4137     |menu allViewsAndLabels|
  4134 
  4138 
  4135     menu := Menu new receiver: self.
  4139     menu := Menu new receiver: self.
  4136     (self allTopViewsAndLabelsSortedFilteringWindowGroups:nil) do:[:assoc |
  4140     allViewsAndLabels := self allTopViewsAndLabelsSortedFilteringWindowGroups:nil.
  4137         |view label submenu|
  4141     allViewsAndLabels do:[:assoc |
       
  4142         |view label submenu likeThis info|
  4138 
  4143 
  4139         view := assoc value.
  4144         view := assoc value.
  4140         label := assoc key.
  4145         label := assoc key.
  4141 
  4146 
  4142         submenu := Menu new.
  4147         submenu := Menu new.
  4143         submenu addItem:(MenuItem new
  4148         submenu addItem:(MenuItem new
  4144                             label: 'Raise Deiconified'; 
  4149                             label: 'Raise Deiconified';
  4145                             value: [view raiseDeiconified; setForegroundWindow]; 
  4150                             itemValue: [view raiseDeiconified; setForegroundWindow];
  4146                             translateLabel: true).
  4151                             translateLabel: true).
  4147         submenu addItem:(MenuItem new
  4152         submenu addItem:(MenuItem new
  4148                             label: 'Iconify'; 
  4153                             label: 'Iconify';
  4149                             value: [view collapse]; 
  4154                             itemValue: [view collapse];
  4150                             translateLabel: true).
  4155                             translateLabel: true).
  4151         submenu addItem:(MenuItem new
  4156         submenu addItem:(MenuItem new
  4152                             label: 'Migrate'; 
  4157                             label: 'Migrate';
  4153                             value: [self migrateWindow:view]; 
  4158                             itemValue: [self migrateWindow:view];
  4154                             enabled:(view windowGroup isModal not);
  4159                             enabled:(view windowGroup isModal not);
  4155                             translateLabel: true).
  4160                             translateLabel: true).
  4156 
  4161 
  4157         submenu addSeparator.
  4162         submenu addSeparator.
  4158         submenu addItem:(MenuItem new
  4163         submenu addItem:(MenuItem new
  4159                             label: 'Hardcopy'; 
  4164                             label: 'Hardcopy';
  4160                             value: [self hardcopyOfView:view]; 
  4165                             itemValue: [self hardcopyOfView:view];
  4161                             translateLabel: true).
  4166                             translateLabel: true).
  4162         submenu addItem:(MenuItem new
  4167         submenu addItem:(MenuItem new
  4163                             label: 'Inspect View'; 
  4168                             label: 'Inspect View';
  4164                             value: [view inspect]; 
  4169                             itemValue: [view inspect];
  4165                             translateLabel: true).
  4170                             translateLabel: true).
  4166         submenu addItem:(MenuItem new
  4171         submenu addItem:(MenuItem new
  4167                             label: 'Inspect Application'; 
  4172                             label: 'Inspect Application';
  4168                             value: [view application inspect]; 
  4173                             itemValue: [view application inspect];
  4169                             enabled:(view application notNil);
  4174                             enabled:(view application notNil);
  4170                             translateLabel: true).
  4175                             translateLabel: true).
  4171         submenu addSeparator.
  4176         submenu addSeparator.
  4172         submenu addItem:(MenuItem new
  4177         submenu addItem:(MenuItem new
  4173                             label: 'Browse View Class'; 
  4178                             label: 'Browse View Class';
  4174                             value: [view class browse]; 
  4179                             itemValue: [view class browse];
  4175                             translateLabel: true).
  4180                             translateLabel: true).
  4176         submenu addItem:(MenuItem new
  4181         submenu addItem:(MenuItem new
  4177                             label: 'Browse Application Class'; 
  4182                             label: 'Browse Application Class';
  4178                             value: [view application class browse]; 
  4183                             itemValue: [view application class browse];
  4179                             enabled:(view application notNil);
  4184                             enabled:(view application notNil);
  4180                             translateLabel: true).
  4185                             translateLabel: true).
  4181         submenu addItem:(MenuItem new
  4186         submenu addItem:(MenuItem new
  4182                             label: 'Debug Application'; 
  4187                             label: 'Debug Application';
  4183                             value: [Debugger openOn:view windowGroup process]; 
  4188                             itemValue: [Debugger openOn:view windowGroup process];
  4184                             translateLabel: true).
  4189                             translateLabel: true).
  4185 
  4190 
  4186         submenu addSeparator.
  4191         submenu addSeparator.
  4187         submenu addItem:(MenuItem new
  4192         submenu addItem:(MenuItem new
  4188                             label: 'Close'; 
  4193                             label: 'Close';
  4189                             value: [view destroy]; 
  4194                             itemValue: [view destroy];
  4190                             translateLabel: true).
  4195                             translateLabel: true).
  4191 
  4196 
       
  4197         likeThis :=
       
  4198             allViewsAndLabels
       
  4199                 select:[:assoc |
       
  4200                     |otherView|
       
  4201 
       
  4202                     otherView := assoc value.
       
  4203                     otherView class == view class
       
  4204                         and:[ otherView application class == view application class]
       
  4205                 ]
       
  4206                 thenCollect:[:assoc | assoc value ].
       
  4207 
       
  4208         likeThis size > 1 ifTrue:[
       
  4209             info := view application notNil
       
  4210                         ifTrue:[ view application class name ]
       
  4211                         ifFalse:[ view class name ].
       
  4212             info := ' ("',info,'")'.
       
  4213         ] ifFalse:[
       
  4214             info := ''
       
  4215         ].
       
  4216 
       
  4217         submenu addItem:(MenuItem new
       
  4218                             label: ('Close all like This%1' bindWith:info);
       
  4219                             itemValue: [likeThis do:[:eachView | eachView destroy]];
       
  4220                             translateLabel: true;
       
  4221                             enabled:(likeThis size > 1)).
       
  4222 
  4192         menu addItem:(MenuItem new
  4223         menu addItem:(MenuItem new
  4193                             label: label;                
  4224                             label: label;
  4194                             submenu: submenu; 
  4225                             submenu: submenu;
  4195                             value: [view raiseDeiconified; setForegroundWindow]; 
  4226                             itemValue: [view raiseDeiconified; setForegroundWindow];
  4196                             translateLabel: false).
  4227                             translateLabel: false).
  4197     ].
  4228     ].
  4198 
  4229 
  4199     menu findGuiResourcesIn:self.
  4230     menu findGuiResourcesIn:self.
  4200     ^menu
  4231     ^menu
  4392     ].
  4423     ].
  4393 
  4424 
  4394     "Created: / 12-11-2006 / 16:06:06 / cg"
  4425     "Created: / 12-11-2006 / 16:06:06 / cg"
  4395 ! !
  4426 ! !
  4396 
  4427 
       
  4428 
  4397 !NewLauncher methodsFor:'private-settings callBacks'!
  4429 !NewLauncher methodsFor:'private-settings callBacks'!
  4398 
  4430 
  4399 reopenLauncher
  4431 reopenLauncher
  4400     "reopen a new launcher.
  4432     "reopen a new launcher.
  4401      for now (since style & language settings currently do
  4433      for now (since style & language settings currently do
  4408     newLauncher := super reopenLauncher.
  4440     newLauncher := super reopenLauncher.
  4409     newLauncher showingHelp:wasShowingHelp.
  4441     newLauncher showingHelp:wasShowingHelp.
  4410     ^ newLauncher
  4442     ^ newLauncher
  4411 ! !
  4443 ! !
  4412 
  4444 
       
  4445 
  4413 !NewLauncher methodsFor:'queries'!
  4446 !NewLauncher methodsFor:'queries'!
  4414 
  4447 
  4415 preferredExtent
  4448 preferredExtent
  4416 
  4449 
  4417     ^ super preferredExtent min: Screen current extent // (2.5 @ 3.5)
  4450     ^ super preferredExtent min: Screen current extent // (2.5 @ 3.5)
  4427 !
  4460 !
  4428 
  4461 
  4429 windowMigrationFunctionsAreShown
  4462 windowMigrationFunctionsAreShown
  4430     ^ XWorkstation notNil
  4463     ^ XWorkstation notNil
  4431 ! !
  4464 ! !
       
  4465 
  4432 
  4466 
  4433 !NewLauncher methodsFor:'startup & release'!
  4467 !NewLauncher methodsFor:'startup & release'!
  4434 
  4468 
  4435 allButOpenInterface:anInterface
  4469 allButOpenInterface:anInterface
  4436     "sent by my superclass to open up my interface"
  4470     "sent by my superclass to open up my interface"
  4608 
  4642 
  4609     OpenLaunchers notNil ifTrue:[OpenLaunchers remove:self ifAbsent:nil].
  4643     OpenLaunchers notNil ifTrue:[OpenLaunchers remove:self ifAbsent:nil].
  4610     Project notNil ifTrue:[Project removeDependent:self]
  4644     Project notNil ifTrue:[Project removeDependent:self]
  4611 ! !
  4645 ! !
  4612 
  4646 
       
  4647 
  4613 !NewLauncher methodsFor:'user actions-classes'!
  4648 !NewLauncher methodsFor:'user actions-classes'!
  4614 
  4649 
  4615 enableGlobalCoverageAnalysis
  4650 enableGlobalCoverageAnalysis
  4616     InstrumentationContext new beActiveEverywhere.
  4651     InstrumentationContext new beActiveEverywhere.
  4617 
  4652 
  4677 !
  4712 !
  4678 
  4713 
  4679 stopIgnoringHalts
  4714 stopIgnoringHalts
  4680     DebugView stopIgnoringHalts
  4715     DebugView stopIgnoringHalts
  4681 ! !
  4716 ! !
       
  4717 
  4682 
  4718 
  4683 !NewLauncher methodsFor:'user actions-demos'!
  4719 !NewLauncher methodsFor:'user actions-demos'!
  4684 
  4720 
  4685 openDemo:className
  4721 openDemo:className
  4686     "open a demo, given its name.
  4722     "open a demo, given its name.
  4742     "opens a 2-user ticTacToe game"
  4778     "opens a 2-user ticTacToe game"
  4743 
  4779 
  4744     self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame
  4780     self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame
  4745 ! !
  4781 ! !
  4746 
  4782 
       
  4783 
  4747 !NewLauncher methodsFor:'user actions-file'!
  4784 !NewLauncher methodsFor:'user actions-file'!
  4748 
  4785 
  4749 clearTranscript
  4786 clearTranscript
  4750     Transcript current contents:''
  4787     Transcript current contents:''
  4751 
  4788 
  4780             self warn:ex description.
  4817             self warn:ex description.
  4781         ].
  4818         ].
  4782     ].
  4819     ].
  4783 ! !
  4820 ! !
  4784 
  4821 
       
  4822 
  4785 !NewLauncher methodsFor:'user actions-help'!
  4823 !NewLauncher methodsFor:'user actions-help'!
  4786 
  4824 
  4787 activeHelp
  4825 activeHelp
  4788 
  4826 
  4789     helpIsOn isNil ifTrue:[
  4827     helpIsOn isNil ifTrue:[
  4802     UserPreferences current flyByHelpActive:aBoolean.
  4840     UserPreferences current flyByHelpActive:aBoolean.
  4803 
  4841 
  4804     "Modified: / 18.8.1998 / 16:06:27 / cg"
  4842     "Modified: / 18.8.1998 / 16:06:27 / cg"
  4805 ! !
  4843 ! !
  4806 
  4844 
       
  4845 
  4807 !NewLauncher methodsFor:'user actions-system'!
  4846 !NewLauncher methodsFor:'user actions-system'!
  4808 
  4847 
  4809 initJavaVM
  4848 initJavaVM
  4810     JavaVM initializeVM
  4849     JavaVM initializeVM
  4811 
  4850 
  4848 
  4887 
  4849     "Created: / 20-06-2004 / 16:08:09 / masca"
  4888     "Created: / 20-06-2004 / 16:08:09 / masca"
  4850     "Modified: / 20-04-2005 / 18:59:28 / janfrog"
  4889     "Modified: / 20-04-2005 / 18:59:28 / janfrog"
  4851 ! !
  4890 ! !
  4852 
  4891 
       
  4892 
  4853 !NewLauncher methodsFor:'user actions-windows'!
  4893 !NewLauncher methodsFor:'user actions-windows'!
  4854 
  4894 
  4855 redrawAllWindows
  4895 redrawAllWindows
  4856     device redrawAllWindows.
  4896     device redrawAllWindows.
  4857 ! !
  4897 ! !
  4858 
  4898 
       
  4899 
  4859 !NewLauncher::AddedToolInfo methodsFor:'accessing'!
  4900 !NewLauncher::AddedToolInfo methodsFor:'accessing'!
  4860 
  4901 
  4861 before
  4902 before
  4862 
  4903 
  4863     ^ before
  4904     ^ before
  4921 
  4962 
  4922 where:something
  4963 where:something
  4923     where := something.
  4964     where := something.
  4924 ! !
  4965 ! !
  4925 
  4966 
       
  4967 
  4926 !NewLauncher class methodsFor:'documentation'!
  4968 !NewLauncher class methodsFor:'documentation'!
  4927 
  4969 
  4928 version
  4970 version
  4929     ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.448 2012/12/13 10:07:34 cg Exp $'
  4971     ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.450 2013-01-26 21:04:03 cg Exp $'
  4930 !
  4972 !
  4931 
  4973 
  4932 version_CVS
  4974 version_CVS
  4933     ^ '§Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.448 2012/12/13 10:07:34 cg Exp §'
  4975     ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.450 2013-01-26 21:04:03 cg Exp $'
  4934 !
  4976 !
  4935 
  4977 
  4936 version_SVN
  4978 version_SVN
  4937     ^ '$Id: NewLauncher.st 8083 2013-01-14 11:48:37Z vranyj1 $'
  4979     ^ '§Id: NewLauncher.st 7772 2011-06-08 21:59:15Z vranyj1 §'
  4938 ! !
  4980 ! !
       
  4981