UILayoutTool.st
changeset 259 83440731fc3d
parent 252 c7ee94ff51c1
child 260 bf00ccde13f9
equal deleted inserted replaced
258:c6f8c3e2f463 259:83440731fc3d
   166 
   166 
   167     "do not manually edit this - the painter/builder may not be able to
   167     "do not manually edit this - the painter/builder may not be able to
   168      handle the specification if its corrupted."
   168      handle the specification if its corrupted."
   169 
   169 
   170     "
   170     "
   171      UIPainter new openOnClass:self andSelector:#layoutOriginSpec
   171      UIPainter new openOnClass:UILayoutTool andSelector:#layoutOriginSpec
   172      self new openInterface:#layoutOriginSpec
   172      UILayoutTool new openInterface:#layoutOriginSpec
   173     "
   173     "
   174 
   174 
   175     <resource: #canvas>
   175     <resource: #canvas>
   176 
   176 
   177     ^
   177     ^
   178 
   178      
   179        #(#FullSpec
   179        #(#FullSpec
   180           #'window:' 
   180           #'window:' 
   181            #(#WindowSpec
   181            #(#WindowSpec
   182               #'name:' 'uIPainterView'
   182               #'name:' 'uIPainterView'
   183               #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   183               #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   203                     #'layout:' #(#AlignmentOrigin 52 0 44 0 1 0)
   203                     #'layout:' #(#AlignmentOrigin 52 0 44 0 1 0)
   204                     #'label:' 'left'
   204                     #'label:' 'left'
   205                 )
   205                 )
   206                  #(#InputFieldSpec
   206                  #(#InputFieldSpec
   207                     #'name:' 'fieldLeftFraction'
   207                     #'name:' 'fieldLeftFraction'
   208                     #'layout:' #(#LayoutFrame 57 0 44 0 114 0 62 0)
   208                     #'layout:' #(#LayoutFrame 57 0 44 0 114 0 66 0)
   209                     #'activeHelpKey:' #leftRelative
   209                     #'activeHelpKey:' #leftRelative
   210                     #'tabable:' true
   210                     #'tabable:' true
   211                     #'model:' #leftFraction
   211                     #'model:' #leftFraction
   212                     #'type:' #numberOrNil
   212                     #'type:' #numberOrNil
   213                 )
   213                 )
   217                     #'activeHelpKey:' #makeLeftRelative
   217                     #'activeHelpKey:' #makeLeftRelative
   218                     #'model:' #relativeLeft
   218                     #'model:' #relativeLeft
   219                 )
   219                 )
   220                  #(#InputFieldSpec
   220                  #(#InputFieldSpec
   221                     #'name:' 'fieldLeftOffset'
   221                     #'name:' 'fieldLeftOffset'
   222                     #'layout:' #(#LayoutFrame 154 0 44 0 212 0 62 0)
   222                     #'layout:' #(#LayoutFrame 154 0 44 0 212 0 66 0)
   223                     #'activeHelpKey:' #leftAbsolute
   223                     #'activeHelpKey:' #leftAbsolute
   224                     #'tabable:' true
   224                     #'tabable:' true
   225                     #'model:' #leftOffset
   225                     #'model:' #leftOffset
   226                     #'type:' #numberOrNil
   226                     #'type:' #numberOrNil
   227                 )
   227                 )
   236                     #'layout:' #(#AlignmentOrigin 52 0 71 0 1 0)
   236                     #'layout:' #(#AlignmentOrigin 52 0 71 0 1 0)
   237                     #'label:' 'top'
   237                     #'label:' 'top'
   238                 )
   238                 )
   239                  #(#InputFieldSpec
   239                  #(#InputFieldSpec
   240                     #'name:' 'fieldTopFraction'
   240                     #'name:' 'fieldTopFraction'
   241                     #'layout:' #(#LayoutFrame 57 0 71 0 114 0 89 0)
   241                     #'layout:' #(#LayoutFrame 57 0 71 0 114 0 93 0)
   242                     #'activeHelpKey:' #topRelative
   242                     #'activeHelpKey:' #topRelative
   243                     #'tabable:' true
   243                     #'tabable:' true
   244                     #'model:' #topFraction
   244                     #'model:' #topFraction
   245                     #'type:' #numberOrNil
   245                     #'type:' #numberOrNil
   246                 )
   246                 )
   250                     #'activeHelpKey:' #makeTopRelative
   250                     #'activeHelpKey:' #makeTopRelative
   251                     #'model:' #relativeTop
   251                     #'model:' #relativeTop
   252                 )
   252                 )
   253                  #(#InputFieldSpec
   253                  #(#InputFieldSpec
   254                     #'name:' 'fieldTopOffset'
   254                     #'name:' 'fieldTopOffset'
   255                     #'layout:' #(#LayoutFrame 154 0 71 0 212 0 89 0)
   255                     #'layout:' #(#LayoutFrame 154 0 71 0 212 0 93 0)
   256                     #'activeHelpKey:' #topAbsolute
   256                     #'activeHelpKey:' #topAbsolute
   257                     #'tabable:' true
   257                     #'tabable:' true
   258                     #'model:' #topOffset
   258                     #'model:' #topOffset
   259                     #'type:' #numberOrNil
   259                     #'type:' #numberOrNil
   260                 )
   260                 )
   266                 )
   266                 )
   267               )
   267               )
   268           )
   268           )
   269       )
   269       )
   270 
   270 
       
   271     "Modified: 28.7.1997 / 13:50:23 / cg"
   271 !
   272 !
   272 
   273 
   273 layoutPointSpec
   274 layoutPointSpec
   274     "this window spec was automatically generated by the ST/X UIPainter"
   275     "this window spec was automatically generated by the ST/X UIPainter"
   275 
   276 
   276     "do not manually edit this - the painter/builder may not be able to
   277     "do not manually edit this - the painter/builder may not be able to
   277      handle the specification if its corrupted."
   278      handle the specification if its corrupted."
   278 
   279 
   279     "
   280     "
   280      UIPainter new openOnClass:self andSelector:#layoutPointSpec
   281      UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec
   281      self new openInterface:#layoutPointSpec
   282      UILayoutTool new openInterface:#layoutPointSpec
   282     "
   283     "
       
   284 
   283     <resource: #canvas>
   285     <resource: #canvas>
   284 
   286 
   285     ^
   287     ^
   286 
   288      
   287        #(#FullSpec
   289        #(#FullSpec
   288           #'window:' 
   290           #'window:' 
   289            #(#WindowSpec
   291            #(#WindowSpec
   290               #'name:' 'uIPainterView'
   292               #'name:' 'uIPainterView'
   291               #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   293               #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   301                     #'layout:' #(#AlignmentOrigin 75 0 19 0 1 0)
   303                     #'layout:' #(#AlignmentOrigin 75 0 19 0 1 0)
   302                     #'label:' 'origin x:'
   304                     #'label:' 'origin x:'
   303                 )
   305                 )
   304                  #(#InputFieldSpec
   306                  #(#InputFieldSpec
   305                     #'name:' 'fieldOriginX'
   307                     #'name:' 'fieldOriginX'
   306                     #'layout:' #(#LayoutFrame 77 0 19 0 170 0 37 0)
   308                     #'layout:' #(#LayoutFrame 77 0 19 0 170 0 41 0)
   307                     #'activeHelpKey:' #originX
   309                     #'activeHelpKey:' #originX
   308                     #'tabable:' true
   310                     #'tabable:' true
   309                     #'model:' #leftOffset
   311                     #'model:' #leftOffset
   310                     #'type:' #numberOrNil
   312                     #'type:' #numberOrNil
   311                 )
   313                 )
   314                     #'layout:' #(#AlignmentOrigin 75 0 46 0 1 0)
   316                     #'layout:' #(#AlignmentOrigin 75 0 46 0 1 0)
   315                     #'label:' 'origin y:'
   317                     #'label:' 'origin y:'
   316                 )
   318                 )
   317                  #(#InputFieldSpec
   319                  #(#InputFieldSpec
   318                     #'name:' 'fieldOriginY'
   320                     #'name:' 'fieldOriginY'
   319                     #'layout:' #(#LayoutFrame 77 0 46 0 170 0 64 0)
   321                     #'layout:' #(#LayoutFrame 77 0 46 0 170 0 68 0)
   320                     #'activeHelpKey:' #originY
   322                     #'activeHelpKey:' #originY
   321                     #'tabable:' true
   323                     #'tabable:' true
   322                     #'model:' #topOffset
   324                     #'model:' #topOffset
   323                     #'type:' #numberOrNil
   325                     #'type:' #numberOrNil
   324                 )
   326                 )
   325               )
   327               )
   326           )
   328           )
   327       )
   329       )
   328 
   330 
       
   331     "Modified: 28.7.1997 / 14:12:22 / cg"
   329 !
   332 !
   330 
   333 
   331 slices
   334 slices
   332     ^ #(
   335     ^ #(
   333         ( 'Frame'          LayoutFrame)
   336         ( 'Frame'          LayoutFrame)
   761                     #'label:' 'align V'
   764                     #'label:' 'align V'
   762                     #'adjust:' #right
   765                     #'adjust:' #right
   763                 )
   766                 )
   764                  #(#InputFieldSpec
   767                  #(#InputFieldSpec
   765                     #'name:' 'editField5'
   768                     #'name:' 'editField5'
   766                     #'layout:' #(#LayoutFrame 89 0 106 0 146 0 124 0)
   769                     #'layout:' #(#LayoutFrame 89 0 106 0 146 0 128 0)
   767                     #'activeHelpKey:' #alignHorizontal
   770                     #'activeHelpKey:' #alignHorizontal
   768                     #'tabable:' true
   771                     #'tabable:' true
   769                     #'model:' #leftAlignmentFraction
   772                     #'model:' #leftAlignmentFraction
   770                     #'type:' #numberOrNil
   773                     #'type:' #numberOrNil
   771                 )
   774                 )
   772                  #(#InputFieldSpec
   775                  #(#InputFieldSpec
   773                     #'name:' 'editField6'
   776                     #'name:' 'editField6'
   774                     #'layout:' #(#LayoutFrame 89 0 132 0 146 0 150 0)
   777                     #'layout:' #(#LayoutFrame 89 0 132 0 146 0 154 0)
   775                     #'activeHelpKey:' #alignVertical
   778                     #'activeHelpKey:' #alignVertical
   776                     #'tabable:' true
   779                     #'tabable:' true
   777                     #'model:' #topAlignmentFraction
   780                     #'model:' #topAlignmentFraction
   778                     #'type:' #numberOrNil
   781                     #'type:' #numberOrNil
   779                 )
   782                 )
   780                  #(#DividerSpec
   783                  #(#DividerSpec
   781                     #'name:' 'separator1'
   784                     #'name:' 'separator1'
   782                     #'layout:' #(#Rectangle 175 108 224 111)
   785                     #'layout:' #(#Rectangle 175 107 224 110)
   783                     #'orientation:' #horizontal
   786                     #'orientation:' #horizontal
   784                 )
   787                 )
   785                  #(#DividerSpec
   788                  #(#DividerSpec
   786                     #'name:' 'separator2'
   789                     #'name:' 'separator2'
   787                     #'layout:' #(#Rectangle 175 140 224 143)
   790                     #'layout:' #(#Rectangle 175 139 224 142)
   788                     #'orientation:' #horizontal
   791                     #'orientation:' #horizontal
   789                 )
   792                 )
   790                  #(#DividerSpec
   793                  #(#DividerSpec
   791                     #'name:' 'separator3'
   794                     #'name:' 'separator3'
   792                     #'layout:' #(#Rectangle 168 118 171 139)
   795                     #'layout:' #(#Rectangle 167 118 170 139)
   793                     #'orientation:' #vertical
   796                     #'orientation:' #vertical
   794                 )
   797                 )
   795                  #(#DividerSpec
   798                  #(#DividerSpec
   796                     #'name:' 'separator4'
   799                     #'name:' 'separator4'
   797                     #'layout:' #(#Rectangle 223 118 226 139)
   800                     #'layout:' #(#Rectangle 222 118 225 139)
   798                     #'orientation:' #vertical
   801                     #'orientation:' #vertical
   799                 )
   802                 )
   800                  #(#ActionButtonSpec
   803                  #(#ActionButtonSpec
   801                     #'name:' 'alignBottomRight'
   804                     #'name:' 'alignBottomRight'
   802                     #'layout:' #(#Rectangle 222 138 234 150)
   805                     #'layout:' #(#Rectangle 222 138 234 150)
   852                     #'model:' #alignCenter
   855                     #'model:' #alignCenter
   853                 )
   856                 )
   854               )
   857               )
   855           )
   858           )
   856       )
   859       )
       
   860 
       
   861     "Modified: 28.7.1997 / 14:11:40 / cg"
   857 ! !
   862 ! !
   858 
   863 
   859 !UILayoutTool::AlignmentOrigin methodsFor:'accessing'!
   864 !UILayoutTool::AlignmentOrigin methodsFor:'accessing'!
   860 
   865 
   861 fetch:aView
   866 fetch:aView
  1171                     #'layout:' #(#AlignmentOrigin 52 0 98 0 1 0)
  1176                     #'layout:' #(#AlignmentOrigin 52 0 98 0 1 0)
  1172                     #'label:' 'right'
  1177                     #'label:' 'right'
  1173                 )
  1178                 )
  1174                  #(#InputFieldSpec
  1179                  #(#InputFieldSpec
  1175                     #'name:' 'fieldRightFraction'
  1180                     #'name:' 'fieldRightFraction'
  1176                     #'layout:' #(#LayoutFrame 57 0 98 0 114 0 116 0)
  1181                     #'layout:' #(#LayoutFrame 57 0 98 0 114 0 120 0)
  1177                     #'activeHelpKey:' #rightRelative
  1182                     #'activeHelpKey:' #rightRelative
  1178                     #'model:' #rightFraction
  1183                     #'model:' #rightFraction
  1179                     #'type:' #numberOrNil
  1184                     #'type:' #numberOrNil
  1180                 )
  1185                 )
  1181                  #(#ActionButtonSpec
  1186                  #(#ActionButtonSpec
  1184                     #'activeHelpKey:' #makeRightRelative
  1189                     #'activeHelpKey:' #makeRightRelative
  1185                     #'model:' #relativeRight
  1190                     #'model:' #relativeRight
  1186                 )
  1191                 )
  1187                  #(#InputFieldSpec
  1192                  #(#InputFieldSpec
  1188                     #'name:' 'fieldRightOffset'
  1193                     #'name:' 'fieldRightOffset'
  1189                     #'layout:' #(#LayoutFrame 154 0 98 0 212 0 116 0)
  1194                     #'layout:' #(#LayoutFrame 154 0 98 0 212 0 120 0)
  1190                     #'activeHelpKey:' #rightAbsolute
  1195                     #'activeHelpKey:' #rightAbsolute
  1191                     #'model:' #rightOffset
  1196                     #'model:' #rightOffset
  1192                     #'type:' #numberOrNil
  1197                     #'type:' #numberOrNil
  1193                 )
  1198                 )
  1194                  #(#ActionButtonSpec
  1199                  #(#ActionButtonSpec
  1202                     #'layout:' #(#AlignmentOrigin 52 0 126 0 1 0)
  1207                     #'layout:' #(#AlignmentOrigin 52 0 126 0 1 0)
  1203                     #'label:' 'bottom'
  1208                     #'label:' 'bottom'
  1204                 )
  1209                 )
  1205                  #(#InputFieldSpec
  1210                  #(#InputFieldSpec
  1206                     #'name:' 'fieldBottomFraction'
  1211                     #'name:' 'fieldBottomFraction'
  1207                     #'layout:' #(#LayoutFrame 57 0 126 0 114 0 144 0)
  1212                     #'layout:' #(#LayoutFrame 57 0 126 0 114 0 148 0)
  1208                     #'activeHelpKey:' #bottomRelative
  1213                     #'activeHelpKey:' #bottomRelative
  1209                     #'model:' #bottomFraction
  1214                     #'model:' #bottomFraction
  1210                     #'type:' #numberOrNil
  1215                     #'type:' #numberOrNil
  1211                 )
  1216                 )
  1212                  #(#ActionButtonSpec
  1217                  #(#ActionButtonSpec
  1215                     #'activeHelpKey:' #makeBottomRelative
  1220                     #'activeHelpKey:' #makeBottomRelative
  1216                     #'model:' #relativeBottom
  1221                     #'model:' #relativeBottom
  1217                 )
  1222                 )
  1218                  #(#InputFieldSpec
  1223                  #(#InputFieldSpec
  1219                     #'name:' 'fieldBottomOffset'
  1224                     #'name:' 'fieldBottomOffset'
  1220                     #'layout:' #(#LayoutFrame 154 0 126 0 211 0 144 0)
  1225                     #'layout:' #(#LayoutFrame 154 0 126 0 211 0 148 0)
  1221                     #'activeHelpKey:' #bottomAbsolute
  1226                     #'activeHelpKey:' #bottomAbsolute
  1222                     #'model:' #bottomOffset
  1227                     #'model:' #bottomOffset
  1223                     #'type:' #numberOrNil
  1228                     #'type:' #numberOrNil
  1224                 )
  1229                 )
  1225                  #(#ActionButtonSpec
  1230                  #(#ActionButtonSpec
  1229                     #'model:' #absoluteBottom
  1234                     #'model:' #absoluteBottom
  1230                 )
  1235                 )
  1231               )
  1236               )
  1232           )
  1237           )
  1233       )
  1238       )
       
  1239 
       
  1240     "Modified: 28.7.1997 / 13:49:24 / cg"
  1234 ! !
  1241 ! !
  1235 
  1242 
  1236 !UILayoutTool::LayoutFrame methodsFor:'accessing'!
  1243 !UILayoutTool::LayoutFrame methodsFor:'accessing'!
  1237 
  1244 
  1238 fetch:aView
  1245 fetch:aView
  1451                     #'label:' 'corner x:'
  1458                     #'label:' 'corner x:'
  1452                     #'adjust:' #left
  1459                     #'adjust:' #left
  1453                 )
  1460                 )
  1454                  #(#InputFieldSpec
  1461                  #(#InputFieldSpec
  1455                     #'name:' 'fieldCornerX'
  1462                     #'name:' 'fieldCornerX'
  1456                     #'layout:' #(#LayoutFrame 77 0 74 0 170 0 92 0)
  1463                     #'layout:' #(#LayoutFrame 77 0 74 0 170 0 96 0)
  1457                     #'activeHelpKey:' #cornerX
  1464                     #'activeHelpKey:' #cornerX
  1458                     #'tabable:' true
  1465                     #'tabable:' true
  1459                     #'model:' #rightOffset
  1466                     #'model:' #rightOffset
  1460                     #'type:' #numberOrNil
  1467                     #'type:' #numberOrNil
  1461                 )
  1468                 )
  1465                     #'label:' 'corner y:'
  1472                     #'label:' 'corner y:'
  1466                     #'adjust:' #left
  1473                     #'adjust:' #left
  1467                 )
  1474                 )
  1468                  #(#InputFieldSpec
  1475                  #(#InputFieldSpec
  1469                     #'name:' 'fieldCornerY'
  1476                     #'name:' 'fieldCornerY'
  1470                     #'layout:' #(#LayoutFrame 77 0 101 0 170 0 119 0)
  1477                     #'layout:' #(#LayoutFrame 77 0 101 0 170 0 123 0)
  1471                     #'activeHelpKey:' #cornerY
  1478                     #'activeHelpKey:' #cornerY
  1472                     #'tabable:' true
  1479                     #'tabable:' true
  1473                     #'model:' #bottomOffset
  1480                     #'model:' #bottomOffset
  1474                     #'type:' #numberOrNil
  1481                     #'type:' #numberOrNil
  1475                 )
  1482                 )
  1476               )
  1483               )
  1477           )
  1484           )
  1478       )
  1485       )
       
  1486 
       
  1487     "Modified: 28.7.1997 / 14:12:46 / cg"
  1479 ! !
  1488 ! !
  1480 
  1489 
  1481 !UILayoutTool::Rectangle methodsFor:'accessing'!
  1490 !UILayoutTool::Rectangle methodsFor:'accessing'!
  1482 
  1491 
  1483 fetch:aView
  1492 fetch:aView