UILayoutTool.st
changeset 2207 7f16eb639cc1
parent 2022 746cc87a768e
child 2214 c31fd43cbac3
equal deleted inserted replaced
2206:1a7921b6c104 2207:7f16eb639cc1
     7  inclusion of the above copyright notice.   This software may not
     7  inclusion of the above copyright notice.   This software may not
     8  be provided or otherwise made available to, or used by, any
     8  be provided or otherwise made available to, or used by, any
     9  other person.  No title to or ownership of the software is
     9  other person.  No title to or ownership of the software is
    10  hereby transferred.
    10  hereby transferred.
    11 "
    11 "
    12 
       
    13 
       
    14 
       
    15 
       
    16 "{ Package: 'stx:libtool2' }"
    12 "{ Package: 'stx:libtool2' }"
    17 
    13 
    18 ApplicationModel subclass:#UILayoutTool
    14 ApplicationModel subclass:#UILayoutTool
    19 	instanceVariableNames:'modifiedHolder aspects selection currentTool layoutView tabList
    15 	instanceVariableNames:'modifiedHolder aspects selection currentTool layoutView tabList
    20 		layoutSpec toolsDictionary'
    16 		layoutSpec toolsDictionary'
   200         window: 
   196         window: 
   201        (WindowSpec
   197        (WindowSpec
   202           label: 'UILayoutTool'
   198           label: 'UILayoutTool'
   203           name: 'UILayoutTool'
   199           name: 'UILayoutTool'
   204           min: (Point 10 10)
   200           min: (Point 10 10)
   205           bounds: (Rectangle 14 46 359 228)
   201           bounds: (Rectangle 0 0 345 107)
   206         )
   202         )
   207         component: 
   203         component: 
   208        (SpecCollection
   204        (SpecCollection
   209           collection: (
   205           collection: (
   210            (FramedBoxSpec
   206            (FramedBoxSpec
   211               label: 'Origin'
   207               label: 'Origin'
   212               name: 'FramedBox'
   208               name: 'FramedBox'
   213               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 108 0)
   209               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 108 0)
   214               labelPosition: topLeft
   210               labelPosition: topLeft
   215                     translateLabel: true
   211               translateLabel: true
   216               component: 
   212               component: 
   217              (SpecCollection
   213              (SpecCollection
   218                 collection: (
   214                 collection: (
   219                  (LabelSpec
   215                  (LabelSpec
   220                     label: 'Relative:'
   216                     label: 'Relative:'
   243                     tabable: true
   239                     tabable: true
   244                     model: relativeLeft
   240                     model: relativeLeft
   245                   )
   241                   )
   246                  (InputFieldSpec
   242                  (InputFieldSpec
   247                     name: 'fieldLeftFraction'
   243                     name: 'fieldLeftFraction'
   248                     layout: (LayoutFrame 103 0 24 0 153 0 46 0)
   244                     layout: (LayoutFrame 102 0 25 0 152 0 47 0)
   249                     activeHelpKey: leftRelative
   245                     activeHelpKey: leftRelative
   250                     tabable: true
   246                     tabable: true
   251                     model: leftFraction
   247                     model: leftFraction
   252                     group: inputGroup
   248                     group: inputGroup
   253                     type: numberOrNil
   249                     type: numberOrNil
   254                     acceptChannel: acceptChannel
   250                     acceptChannel: acceptChannel
   255                     modifiedChannel: modifiedChannel
   251                     modifiedChannel: modifiedChannel
   256                     acceptOnPointerLeave: false
   252                     acceptOnPointerLeave: false
   257                   )
   253                   )
   258                  (ActionButtonSpec
   254                  (ActionButtonSpec
   259                     label: 'imageAbsXFromRight'
   255                     label: 'imageAbsX'
   260                     name: 'actionRightRelativeLeft'
   256                     name: 'actionAbsoluteLeft'
   261                     layout: (LayoutFrame 257 0 24 0 279 0 46 0)
   257                     layout: (LayoutFrame 178 0 24 0 200 0 46 0)
   262                     activeHelpKey: makeLeftRelativeFromRight
   258                     activeHelpKey: makeLeftAbsolute
   263                     hasCharacterOrientedLabel: false
   259                     hasCharacterOrientedLabel: false
   264                     tabable: true
   260                     tabable: true
   265                     model: rightRelativeLeft
   261                     model: absoluteLeft
   266                   )
   262                   )
   267                  (InputFieldSpec
   263                  (InputFieldSpec
   268                     name: 'fieldLeftOffset'
   264                     name: 'fieldLeftOffset'
   269                     layout: (LayoutFrame 203 0 24 0 253 0 46 0)
   265                     layout: (LayoutFrame 203 0 24 0 253 0 46 0)
   270                     activeHelpKey: leftAbsolute
   266                     activeHelpKey: leftAbsolute
   275                     acceptChannel: acceptChannel
   271                     acceptChannel: acceptChannel
   276                     modifiedChannel: modifiedChannel
   272                     modifiedChannel: modifiedChannel
   277                     acceptOnPointerLeave: false
   273                     acceptOnPointerLeave: false
   278                   )
   274                   )
   279                  (ActionButtonSpec
   275                  (ActionButtonSpec
   280                     label: 'imageAbsX'
   276                     label: 'imageAbsXFromRight'
   281                     name: 'actionAbsoluteLeft'
   277                     name: 'actionRightRelativeLeft'
   282                     layout: (LayoutFrame 178 0 24 0 200 0 46 0)
   278                     layout: (LayoutFrame 257 0 24 0 279 0 46 0)
   283                     activeHelpKey: makeLeftAbsolute
   279                     activeHelpKey: makeLeftRelativeFromRight
   284                     hasCharacterOrientedLabel: false
   280                     hasCharacterOrientedLabel: false
   285                     tabable: true
   281                     tabable: true
   286                     model: absoluteLeft
   282                     model: rightRelativeLeft
   287                   )
   283                   )
   288                  (LabelSpec
   284                  (LabelSpec
   289                     label: 'Top:'
   285                     label: 'Top:'
   290                     name: 'labelTop'
   286                     name: 'labelTop'
   291                     layout: (AlignmentOrigin 68 0 54 0 1 0)
   287                     layout: (AlignmentOrigin 68 0 54 0 1 0)
   311                     acceptChannel: acceptChannel
   307                     acceptChannel: acceptChannel
   312                     modifiedChannel: modifiedChannel
   308                     modifiedChannel: modifiedChannel
   313                     acceptOnPointerLeave: false
   309                     acceptOnPointerLeave: false
   314                   )
   310                   )
   315                  (ActionButtonSpec
   311                  (ActionButtonSpec
   316                     label: 'imageAbsYFromBottom'
   312                     label: 'imageAbsY'
   317                     name: 'actionBottomRelativeTop'
   313                     name: 'actionAbsoluteTop'
   318                     layout: (LayoutFrame 257 0 51 0 279 0 73 0)
   314                     layout: (LayoutFrame 178 0 51 0 200 0 73 0)
   319                     activeHelpKey: makeTopRelativeFromBottom
   315                     activeHelpKey: makeTopAbsolute
   320                     hasCharacterOrientedLabel: false
   316                     hasCharacterOrientedLabel: false
   321                     tabable: true
   317                     tabable: true
   322                     model: bottomRelativeTop
   318                     model: absoluteTop
   323                   )
   319                   )
   324                  (InputFieldSpec
   320                  (InputFieldSpec
   325                     name: 'fieldTopOffset'
   321                     name: 'fieldTopOffset'
   326                     layout: (LayoutFrame 203 0 51 0 253 0 73 0)
   322                     layout: (LayoutFrame 203 0 51 0 253 0 73 0)
   327                     activeHelpKey: topAbsolute
   323                     activeHelpKey: topAbsolute
   332                     acceptChannel: acceptChannel
   328                     acceptChannel: acceptChannel
   333                     modifiedChannel: modifiedChannel
   329                     modifiedChannel: modifiedChannel
   334                     acceptOnPointerLeave: false
   330                     acceptOnPointerLeave: false
   335                   )
   331                   )
   336                  (ActionButtonSpec
   332                  (ActionButtonSpec
   337                     label: 'imageAbsY'
   333                     label: 'imageAbsYFromBottom'
   338                     name: 'actionAbsoluteTop'
   334                     name: 'actionBottomRelativeTop'
   339                     layout: (LayoutFrame 178 0 51 0 200 0 73 0)
   335                     layout: (LayoutFrame 257 0 51 0 279 0 73 0)
   340                     activeHelpKey: makeTopAbsolute
   336                     activeHelpKey: makeTopRelativeFromBottom
   341                     hasCharacterOrientedLabel: false
   337                     hasCharacterOrientedLabel: false
   342                     tabable: true
   338                     tabable: true
   343                     model: absoluteTop
   339                     model: bottomRelativeTop
   344                   )
   340                   )
   345                  )
   341                  )
   346                
   342                
   347               )
   343               )
   348             )
   344             )
  2118         window: 
  2114         window: 
  2119        (WindowSpec
  2115        (WindowSpec
  2120           label: 'UILayoutTool-LayoutFrame'
  2116           label: 'UILayoutTool-LayoutFrame'
  2121           name: 'UILayoutTool-LayoutFrame'
  2117           name: 'UILayoutTool-LayoutFrame'
  2122           min: (Point 10 10)
  2118           min: (Point 10 10)
  2123           bounds: (Rectangle 14 46 413 349)
  2119           bounds: (Rectangle 0 0 399 303)
  2124           forceRecursiveBackground: false
  2120           forceRecursiveBackground: false
  2125         )
  2121         )
  2126         component: 
  2122         component: 
  2127        (SpecCollection
  2123        (SpecCollection
  2128           collection: (
  2124           collection: (
  2135            (FramedBoxSpec
  2131            (FramedBoxSpec
  2136               label: 'Corner'
  2132               label: 'Corner'
  2137               name: 'FramedBox'
  2133               name: 'FramedBox'
  2138               layout: (LayoutFrame 1 0.0 113 0 0 1.0 214 0)
  2134               layout: (LayoutFrame 1 0.0 113 0 0 1.0 214 0)
  2139               labelPosition: topLeft
  2135               labelPosition: topLeft
  2140                     translateLabel: true
  2136               translateLabel: true
  2141               component: 
  2137               component: 
  2142              (SpecCollection
  2138              (SpecCollection
  2143                 collection: (
  2139                 collection: (
  2144                  (LabelSpec
  2140                  (LabelSpec
  2145                     label: 'Right:'
  2141                     label: 'Right:'
  2168                     acceptChannel: acceptChannel
  2164                     acceptChannel: acceptChannel
  2169                     modifiedChannel: modifiedChannel
  2165                     modifiedChannel: modifiedChannel
  2170                     acceptOnPointerLeave: false
  2166                     acceptOnPointerLeave: false
  2171                   )
  2167                   )
  2172                  (ActionButtonSpec
  2168                  (ActionButtonSpec
  2173                     label: 'imageAbsXFromRight'
  2169                     label: 'imageAbsX'
  2174                     name: 'actionRightRelativeRight'
  2170                     name: 'actionAbsoluteRight'
  2175                     layout: (LayoutFrame 257 0 14 0 279 0 36 0)
  2171                     layout: (LayoutFrame 178 0 14 0 200 0 36 0)
  2176                     activeHelpKey: makeRightRelativeFromRight
  2172                     activeHelpKey: makeRightAbsolute
  2177                     hasCharacterOrientedLabel: false
  2173                     hasCharacterOrientedLabel: false
  2178                     tabable: true
  2174                     tabable: true
  2179                     model: rightRelativeRight
  2175                     model: absoluteRight
  2180                   )
  2176                   )
  2181                  (InputFieldSpec
  2177                  (InputFieldSpec
  2182                     name: 'fieldRightOffset'
  2178                     name: 'fieldRightOffset'
  2183                     layout: (LayoutFrame 203 0 14 0 253 0 36 0)
  2179                     layout: (LayoutFrame 203 0 14 0 253 0 36 0)
  2184                     activeHelpKey: rightAbsolute
  2180                     activeHelpKey: rightAbsolute
  2190                     acceptChannel: acceptChannel
  2186                     acceptChannel: acceptChannel
  2191                     modifiedChannel: modifiedChannel
  2187                     modifiedChannel: modifiedChannel
  2192                     acceptOnPointerLeave: false
  2188                     acceptOnPointerLeave: false
  2193                   )
  2189                   )
  2194                  (ActionButtonSpec
  2190                  (ActionButtonSpec
  2195                     label: 'imageAbsX'
  2191                     label: 'imageAbsXFromRight'
  2196                     name: 'actionAbsoluteRight'
  2192                     name: 'actionRightRelativeRight'
  2197                     layout: (LayoutFrame 178 0 14 0 200 0 36 0)
  2193                     layout: (LayoutFrame 257 0 14 0 279 0 36 0)
  2198                     activeHelpKey: makeRightAbsolute
  2194                     activeHelpKey: makeRightRelativeFromRight
  2199                     hasCharacterOrientedLabel: false
  2195                     hasCharacterOrientedLabel: false
  2200                     tabable: true
  2196                     tabable: true
  2201                     model: absoluteRight
  2197                     model: rightRelativeRight
  2202                   )
  2198                   )
  2203                  (LabelSpec
  2199                  (LabelSpec
  2204                     label: 'Bottom:'
  2200                     label: 'Bottom:'
  2205                     name: 'labelBottom'
  2201                     name: 'labelBottom'
  2206                     layout: (AlignmentOrigin 68 0 53 0 1 0.5)
  2202                     layout: (AlignmentOrigin 68 0 53 0 1 0.5)
  2227                     acceptChannel: acceptChannel
  2223                     acceptChannel: acceptChannel
  2228                     modifiedChannel: modifiedChannel
  2224                     modifiedChannel: modifiedChannel
  2229                     acceptOnPointerLeave: false
  2225                     acceptOnPointerLeave: false
  2230                   )
  2226                   )
  2231                  (ActionButtonSpec
  2227                  (ActionButtonSpec
  2232                     label: 'imageAbsYFromBottom'
  2228                     label: 'imageAbsY'
  2233                     name: 'actionBottomRelativeBottom'
  2229                     name: 'actionAbsoluteBottom'
  2234                     layout: (LayoutFrame 257 0 42 0 279 0 64 0)
  2230                     layout: (LayoutFrame 178 0 42 0 200 0 64 0)
  2235                     activeHelpKey: makeBottomRelativeFromBottom
  2231                     activeHelpKey: makeBottomAbsolute
  2236                     hasCharacterOrientedLabel: false
  2232                     hasCharacterOrientedLabel: false
  2237                     tabable: true
  2233                     tabable: true
  2238                     model: bottomRelativeBottom
  2234                     model: absoluteBottom
  2239                   )
  2235                   )
  2240                  (InputFieldSpec
  2236                  (InputFieldSpec
  2241                     name: 'fieldBottomOffset'
  2237                     name: 'fieldBottomOffset'
  2242                     layout: (LayoutFrame 203 0 42 0 253 0 64 0)
  2238                     layout: (LayoutFrame 203 0 42 0 253 0 64 0)
  2243                     activeHelpKey: bottomAbsolute
  2239                     activeHelpKey: bottomAbsolute
  2249                     acceptChannel: acceptChannel
  2245                     acceptChannel: acceptChannel
  2250                     modifiedChannel: modifiedChannel
  2246                     modifiedChannel: modifiedChannel
  2251                     acceptOnPointerLeave: false
  2247                     acceptOnPointerLeave: false
  2252                   )
  2248                   )
  2253                  (ActionButtonSpec
  2249                  (ActionButtonSpec
  2254                     label: 'imageAbsY'
  2250                     label: 'imageAbsYFromBottom'
  2255                     name: 'actionAbsoluteBottom'
  2251                     name: 'actionBottomRelativeBottom'
  2256                     layout: (LayoutFrame 178 0 42 0 200 0 64 0)
  2252                     layout: (LayoutFrame 257 0 42 0 279 0 64 0)
  2257                     activeHelpKey: makeBottomAbsolute
  2253                     activeHelpKey: makeBottomRelativeFromBottom
  2258                     hasCharacterOrientedLabel: false
  2254                     hasCharacterOrientedLabel: false
  2259                     tabable: true
  2255                     tabable: true
  2260                     model: absoluteBottom
  2256                     model: bottomRelativeBottom
  2261                   )
  2257                   )
  2262                  )
  2258                  )
  2263                
  2259                
  2264               )
  2260               )
  2265             )
  2261             )
  2277               level: 0
  2273               level: 0
  2278               tabable: true
  2274               tabable: true
  2279               menu: commonFrameLayoutsMenu2
  2275               menu: commonFrameLayoutsMenu2
  2280               textDefault: true
  2276               textDefault: true
  2281             )
  2277             )
  2282            #(#MenuPanelSpec
  2278            (MenuPanelSpec
  2283               #name: 'commonLayoutToolBar3'
  2279               name: 'commonLayoutToolBar3'
  2284               #layout: #(LayoutFrame 6 0.0 295 0 -4 1.0 327 0)
  2280               layout: (LayoutFrame 6 0.0 295 0 -4 1.0 327 0)
  2285               #level: 0
  2281               level: 0
  2286               #tabable: true
  2282               tabable: true
  2287               #menu: #commonFrameLayoutsMenu3
  2283               menu: commonFrameLayoutsMenu3
  2288               #textDefault: true
  2284               textDefault: true
  2289 
       
  2290 
       
  2291 
       
  2292 
       
  2293 
       
  2294 
       
  2295 
       
  2296 
       
  2297             )
  2285             )
  2298            )
  2286            )
  2299          
  2287          
  2300         )
  2288         )
  2301       )
  2289       )