DataSetBuilder.st
changeset 370 c90e57ac04a5
parent 357 076b7eb71bcf
child 377 5cbb117efc19
equal deleted inserted replaced
369:9d34f1ff4d29 370:c90e57ac04a5
    77      
    77      
    78        #(#FullSpec
    78        #(#FullSpec
    79           #'window:' 
    79           #'window:' 
    80            #(#WindowSpec
    80            #(#WindowSpec
    81               #'name:' 'DataSet Basic'
    81               #'name:' 'DataSet Basic'
    82               #'layout:' #(#LayoutFrame 197 0 172 0 485 0 427 0)
    82               #'layout:' #(#LayoutFrame 350 0 22 0 638 0 277 0)
    83               #'label:' 'DataSet Basic'
    83               #'label:' 'DataSet Basic'
    84               #'min:' #(#Point 10 10)
    84               #'min:' #(#Point 10 10)
    85               #'max:' #(#Point 1280 1024)
    85               #'max:' #(#Point 1280 1024)
    86               #'bounds:' #(#Rectangle 197 172 486 428)
    86               #'bounds:' #(#Rectangle 350 22 639 278)
       
    87               #'usePreferredExtent:' false
    87           )
    88           )
    88           #'component:' 
    89           #'component:' 
    89            #(#SpecCollection
    90            #(#SpecCollection
    90               #'collection:' 
    91               #'collection:' 
    91                #(
    92                #(
    92                  #(#LabelSpec
    93                  #(#LabelSpec
    93                     #'name:' 'labelLabel'
    94                     #'name:' 'labelLabel'
    94                     #'layout:' #(#AlignmentOrigin 84 0 29 0 1 0.5)
    95                     #'layout:' #(#AlignmentOrigin 70 0 30 0 1 0.5)
    95                     #'label:' 'Label:'
    96                     #'label:' 'Label:'
    96                     #'adjust:' #right
    97                     #'adjust:' #right
    97                     #'resizeForLabel:' true
    98                     #'resizeForLabel:' true
    98                 )
    99                 )
    99                  #(#InputFieldSpec
   100                  #(#InputFieldSpec
   100                     #'name:' 'labelField'
   101                     #'name:' 'labelField'
   101                     #'layout:' #(#LayoutFrame 86 0 20 0 -12 1.0 40 0)
   102                     #'layout:' #(#LayoutFrame 74 0 22 0 -12 1.0 40 0)
   102                     #'activeHelpKey:' #label
   103                     #'activeHelpKey:' #label
   103                     #'model:' #label
   104                     #'model:' #label
   104                 )
   105                 )
   105                  #(#FramedBoxSpec
   106                  #(#FramedBoxSpec
   106                     #'name:' 'typesFrame'
   107                     #'name:' 'typesFrame'
   107                     #'layout:' #(#LayoutFrame 0 0.0 51 0 0 1.0 131 0)
   108                     #'layout:' #(#LayoutFrame 8 0.0 51 0 0 1.0 131 0)
   108                     #'component:' 
   109                     #'component:' 
   109                      #(#SpecCollection
   110                      #(#SpecCollection
   110                         #'collection:' 
   111                         #'collection:' 
   111                          #(
   112                          #(
   112                            #(#LabelSpec
   113                            #(#LabelSpec
   141                         )
   142                         )
   142                     )
   143                     )
   143                     #'label:' 'Types:'
   144                     #'label:' 'Types:'
   144                     #'labelPosition:' #topLeft
   145                     #'labelPosition:' #topLeft
   145                 )
   146                 )
   146                  #(#FramedBoxSpec
   147                  #(#CheckBoxSpec
   147                     #'name:' 'selectorsFrame'
   148                     #'name:' 'canSelect'
   148                     #'layout:' #(#LayoutFrame 0 0.0 143 0 0 1.0 245 0)
   149                     #'layout:' #(#LayoutOrigin 9 0 145 0)
   149                     #'component:' 
   150                     #'activeHelpKey:' #canSelect
   150                      #(#SpecCollection
   151                     #'model:' #canSelect
   151                         #'collection:' 
   152                     #'label:' 'Is Selectable'
   152                          #(
   153                 )
   153                            #(#LabelSpec
   154                  #(#CheckBoxSpec
   154                               #'name:' 'readLabel'
   155                     #'name:' 'labelIsImage'
   155                               #'layout:' #(#AlignmentOrigin 84 0 25 0 1 0.5)
   156                     #'layout:' #(#LayoutOrigin 9 0 169 0)
   156                               #'label:' 'Read:'
   157                     #'activeHelpKey:' #labelIsImage
   157                               #'adjust:' #right
   158                     #'model:' #labelIsImage
   158                               #'resizeForLabel:' true
   159                     #'label:' 'Label Is Image'
   159                           )
       
   160                            #(#InputFieldSpec
       
   161                               #'name:' 'readSelector'
       
   162                               #'layout:' #(#LayoutFrame 86 0 16 0 17 1.0 36 0)
       
   163                               #'activeHelpKey:' #readSelector
       
   164                               #'model:' #readSelector
       
   165                               #'type:' #symbolOrNil
       
   166                           )
       
   167                            #(#LabelSpec
       
   168                               #'name:' 'menuLabel'
       
   169                               #'layout:' #(#AlignmentOrigin 84 0 51 0 1 0.5)
       
   170                               #'label:' 'Menu:'
       
   171                               #'adjust:' #right
       
   172                               #'resizeForLabel:' true
       
   173                           )
       
   174                            #(#InputFieldSpec
       
   175                               #'name:' 'menuField'
       
   176                               #'layout:' #(#LayoutFrame 86 0 41 0 17 1.0 61 0)
       
   177                               #'activeHelpKey:' #menuSelector
       
   178                               #'model:' #menu
       
   179                               #'type:' #symbolOrNil
       
   180                           )
       
   181                            #(#LabelSpec
       
   182                               #'name:' 'printLabel'
       
   183                               #'layout:' #(#AlignmentOrigin 84 0 75 0 1 0.5)
       
   184                               #'label:' 'Print:'
       
   185                               #'adjust:' #right
       
   186                               #'resizeForLabel:' true
       
   187                           )
       
   188                            #(#InputFieldSpec
       
   189                               #'name:' 'printSelector'
       
   190                               #'layout:' #(#LayoutFrame 86 0 66 0 17 1.0 86 0)
       
   191                               #'activeHelpKey:' #printSelector
       
   192                               #'model:' #printSelector
       
   193                               #'type:' #symbolOrNil
       
   194                           )
       
   195                         )
       
   196                     )
       
   197                     #'label:' 'Selectors:'
       
   198                     #'labelPosition:' #topLeft
       
   199                 )
   160                 )
   200               )
   161               )
   201           )
   162           )
   202       )
   163       )
   203 !
   164 !
   204 
   165 
   205 detailsEditSpec
   166 colorEditSpec
   206     "this window spec was automatically generated by the ST/X UIPainter"
   167     "this window spec was automatically generated by the ST/X UIPainter"
   207 
   168 
   208     "do not manually edit this - the painter/builder may not be able to
   169     "do not manually edit this - the painter/builder may not be able to
   209      handle the specification if its corrupted."
   170      handle the specification if its corrupted."
   210 
   171 
   211     "
   172     "
   212      UIPainter new openOnClass:DataSetBuilder andSelector:#detailsEditSpec
   173      UIPainter new openOnClass:DataSetBuilder andSelector:#colorEditSpec
   213      DataSetBuilder new openInterface:#detailsEditSpec
   174      DataSetBuilder new openInterface:#colorEditSpec
   214     "
   175     "
   215 
   176 
   216     <resource: #canvas>
   177     <resource: #canvas>
   217 
   178 
   218     ^
   179     ^
   219      
   180      
   220        #(#FullSpec
   181        #(#FullSpec
   221           #'window:' 
   182           #'window:' 
   222            #(#WindowSpec
   183            #(#WindowSpec
   223               #'name:' 'DataSet Details'
   184               #'name:' 'DataSet Misc'
   224               #'layout:' #(#LayoutFrame 327 0 282 0 617 0 495 0)
   185               #'layout:' #(#LayoutFrame 219 0 193 0 496 0 423 0)
   225               #'label:' 'DataSet Details'
   186               #'label:' 'DataSet Misc'
   226               #'min:' #(#Point 10 10)
   187               #'min:' #(#Point 10 10)
   227               #'max:' #(#Point 1280 1024)
   188               #'max:' #(#Point 1280 1024)
   228               #'bounds:' #(#Rectangle 327 282 618 496)
   189               #'bounds:' #(#Rectangle 219 193 497 424)
       
   190               #'usePreferredExtent:' false
   229           )
   191           )
   230           #'component:' 
   192           #'component:' 
   231            #(#SpecCollection
   193            #(#SpecCollection
   232               #'collection:' 
   194               #'collection:' 
   233                #(
   195                #(
   234                  #(#LabelSpec
   196                  #(#FramedBoxSpec
   235                     #'name:' 'textDescription'
   197                     #'name:' 'colorsBox'
   236                     #'layout:' #(#Point 10 15)
   198                     #'layout:' #(#LayoutFrame 0 0.0 24 0 0 1.0 121 0)
   237                     #'label:' 'Text Description:'
   199                     #'component:' 
   238                     #'resizeForLabel:' true
   200                      #(#SpecCollection
   239                 )
   201                         #'collection:' 
   240                  #(#LabelSpec
   202                          #(
   241                     #'name:' 'formatLabel'
   203                            #(#ColorMenuSpec
   242                     #'layout:' #(#AlignmentOrigin 83 0 47 0 1 0.5)
   204                               #'name:' 'fgMenu'
   243                     #'label:' 'Format:'
   205                               #'layout:' #(#LayoutFrame 101 0 17 0 10 1.0 45 0)
   244                     #'resizeForLabel:' true
   206                               #'activeHelpKey:' #foregroundColor
   245                 )
   207                               #'model:' #foregroundColor
   246                  #(#InputFieldSpec
   208                           )
   247                     #'name:' 'formatField'
   209                            #(#LabelSpec
   248                     #'layout:' #(#LayoutFrame 87 0 37 0 -19 1.0 59 0)
   210                               #'name:' 'fgLabel'
   249                     #'activeHelpKey:' #formatString
   211                               #'layout:' #(#AlignmentOrigin 100 0 32 0 1 0.5)
   250                     #'model:' #formatString
   212                               #'label:' 'FG-Color:'
   251                 )
   213                               #'adjust:' #right
   252                  #(#LabelSpec
   214                               #'resizeForLabel:' true
   253                     #'name:' 'inpFieldDescription'
   215                           )
   254                     #'layout:' #(#Point 10 80)
   216                            #(#LabelSpec
   255                     #'label:' 'InputField Description:'
   217                               #'name:' 'bgLabel'
   256                     #'resizeForLabel:' true
   218                               #'layout:' #(#AlignmentOrigin 100 0 66 0 1 0.5)
   257                 )
   219                               #'label:' 'BG-Color:'
   258                  #(#LabelSpec
   220                               #'adjust:' #right
   259                     #'name:' 'typeLabel'
   221                               #'resizeForLabel:' true
   260                     #'layout:' #(#AlignmentOrigin 83 0 111 0 1 0.5)
   222                           )
   261                     #'label:' 'Type:'
   223                            #(#ColorMenuSpec
   262                     #'resizeForLabel:' true
   224                               #'name:' 'bgMenu'
   263                 )
   225                               #'layout:' #(#LayoutFrame 101 0 52 0 10 1.0 80 0)
   264                  #(#ComboListSpec
   226                               #'activeHelpKey:' #backgroundColor
   265                     #'name:' 'typeCombo'
   227                               #'model:' #backgroundColor
   266                     #'layout:' #(#LayoutFrame 87 0 102 0 289 0 122 0)
   228                           )
   267                     #'activeHelpKey:' #type
   229                         )
   268                     #'model:' #type
   230                     )
   269                     #'comboList:' #typeList
   231                     #'label:' 'Colors:'
   270                     #'useIndex:' false
   232                     #'labelPosition:' #topLeft
   271                 )
   233                 )
   272                  #(#LabelSpec
   234                  #(#FramedBoxSpec
   273                     #'name:' 'sizeLabel'
   235                     #'name:' 'separatorBox'
   274                     #'layout:' #(#AlignmentOrigin 83 0 136 0 1 0.5)
   236                     #'layout:' #(#LayoutFrame 0 0.0 131 0 0 1.0 217 0)
   275                     #'label:' 'Size:'
   237                     #'component:' 
   276                     #'resizeForLabel:' true
   238                      #(#SpecCollection
   277                 )
   239                         #'collection:' 
   278                  #(#InputFieldSpec
   240                          #(
   279                     #'name:' 'sizeField'
   241                            #(#CheckBoxSpec
   280                     #'layout:' #(#LayoutFrame 87 0 126 0 -19 1.0 148 0)
   242                               #'name:' 'showRowSeparator'
   281                     #'activeHelpKey:' #size
   243                               #'layout:' #(#AlignmentOrigin 39 0 30 0 0 0.5)
   282                     #'model:' #size
   244                               #'activeHelpKey:' #showRowSeparator
   283                     #'type:' #numberOrNil
   245                               #'model:' #showRowSeparator
   284                 )
   246                               #'label:' 'Show Row-Separator'
   285                  #(#LabelSpec
   247                           )
   286                     #'name:' 'choicesLabel'
   248                            #(#CheckBoxSpec
   287                     #'layout:' #(#Point 10 165)
   249                               #'name:' 'showColSeparator'
   288                     #'label:' 'Choices:'
   250                               #'layout:' #(#AlignmentOrigin 39 0 56 0 0 0.5)
   289                     #'resizeForLabel:' true
   251                               #'activeHelpKey:' #showColumnSeparator
   290                 )
   252                               #'model:' #showColSeparator
   291                  #(#LabelSpec
   253                               #'label:' 'Show Column-Separator'
   292                     #'name:' 'selectorLabel'
   254                           )
   293                     #'layout:' #(#AlignmentOrigin 83 0 198 0 1 0.5)
   255                         )
   294                     #'label:' 'Selector:'
   256                     )
   295                     #'resizeForLabel:' true
   257                     #'label:' 'Separators'
   296                 )
   258                     #'labelPosition:' #topLeft
   297                  #(#InputFieldSpec
       
   298                     #'name:' 'choiceField'
       
   299                     #'layout:' #(#LayoutFrame 87 0 188 0 -19 1.0 210 0)
       
   300                     #'activeHelpKey:' #choices
       
   301                     #'model:' #choices
       
   302                     #'type:' #symbolOrNil
       
   303                 )
   259                 )
   304               )
   260               )
   305           )
   261           )
   306       )
   262       )
   307 !
   263 !
   401               )
   357               )
   402           )
   358           )
   403       )
   359       )
   404 !
   360 !
   405 
   361 
   406 miscEditSpec
   362 formatEditSpec
   407     "this window spec was automatically generated by the ST/X UIPainter"
   363     "this window spec was automatically generated by the ST/X UIPainter"
   408 
   364 
   409     "do not manually edit this - the painter/builder may not be able to
   365     "do not manually edit this - the painter/builder may not be able to
   410      handle the specification if its corrupted."
   366      handle the specification if its corrupted."
   411 
   367 
   412     "
   368     "
   413      UIPainter new openOnClass:DataSetBuilder andSelector:#miscEditSpec
   369      UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec
   414      DataSetBuilder new openInterface:#miscEditSpec
   370      DataSetBuilder new openInterface:#formatEditSpec
   415     "
   371     "
   416 
   372 
   417     <resource: #canvas>
   373     <resource: #canvas>
   418 
   374 
   419     ^
   375     ^
   420      
   376      
   421        #(#FullSpec
   377        #(#FullSpec
   422           #'window:' 
   378           #'window:' 
   423            #(#WindowSpec
   379            #(#WindowSpec
   424               #'name:' 'DataSet Misc'
   380               #'name:' 'DataSet Details'
   425               #'layout:' #(#LayoutFrame 219 0 193 0 509 0 406 0)
   381               #'layout:' #(#LayoutFrame 327 0 282 0 617 0 495 0)
   426               #'label:' 'DataSet Misc'
   382               #'label:' 'DataSet Details'
   427               #'min:' #(#Point 10 10)
   383               #'min:' #(#Point 10 10)
   428               #'max:' #(#Point 1280 1024)
   384               #'max:' #(#Point 1280 1024)
   429               #'bounds:' #(#Rectangle 219 193 510 407)
   385               #'bounds:' #(#Rectangle 327 282 618 496)
   430           )
   386           )
   431           #'component:' 
   387           #'component:' 
   432            #(#SpecCollection
   388            #(#SpecCollection
   433               #'collection:' 
   389               #'collection:' 
   434                #(
   390                #(
   435                  #(#LabelSpec
   391                  #(#LabelSpec
   436                     #'name:' 'foregroundLabel'
   392                     #'name:' 'textDescription'
   437                     #'layout:' #(#AlignmentOrigin 100 0 40 0 1 0.5)
   393                     #'layout:' #(#Point 10 15)
   438                     #'label:' 'foreground:'
   394                     #'label:' 'Text Description:'
       
   395                     #'resizeForLabel:' true
       
   396                 )
       
   397                  #(#LabelSpec
       
   398                     #'name:' 'formatLabel'
       
   399                     #'layout:' #(#AlignmentOrigin 83 0 47 0 1 0.5)
       
   400                     #'label:' 'Format:'
       
   401                     #'resizeForLabel:' true
       
   402                 )
       
   403                  #(#InputFieldSpec
       
   404                     #'name:' 'formatField'
       
   405                     #'layout:' #(#LayoutFrame 87 0 37 0 -19 1.0 59 0)
       
   406                     #'activeHelpKey:' #formatString
       
   407                     #'model:' #formatString
       
   408                 )
       
   409                  #(#LabelSpec
       
   410                     #'name:' 'inpFieldDescription'
       
   411                     #'layout:' #(#Point 10 80)
       
   412                     #'label:' 'InputField Description:'
       
   413                     #'resizeForLabel:' true
       
   414                 )
       
   415                  #(#LabelSpec
       
   416                     #'name:' 'typeLabel'
       
   417                     #'layout:' #(#AlignmentOrigin 83 0 111 0 1 0.5)
       
   418                     #'label:' 'Type:'
       
   419                     #'resizeForLabel:' true
       
   420                 )
       
   421                  #(#ComboListSpec
       
   422                     #'name:' 'typeCombo'
       
   423                     #'layout:' #(#LayoutFrame 87 0 102 0 289 0 122 0)
       
   424                     #'activeHelpKey:' #type
       
   425                     #'model:' #type
       
   426                     #'comboList:' #typeList
       
   427                     #'useIndex:' false
       
   428                 )
       
   429                  #(#LabelSpec
       
   430                     #'name:' 'sizeLabel'
       
   431                     #'layout:' #(#AlignmentOrigin 83 0 136 0 1 0.5)
       
   432                     #'label:' 'Size:'
       
   433                     #'resizeForLabel:' true
       
   434                 )
       
   435                  #(#InputFieldSpec
       
   436                     #'name:' 'sizeField'
       
   437                     #'layout:' #(#LayoutFrame 87 0 126 0 -19 1.0 148 0)
       
   438                     #'activeHelpKey:' #size
       
   439                     #'model:' #size
       
   440                     #'type:' #numberOrNil
       
   441                 )
       
   442               )
       
   443           )
       
   444       )
       
   445 !
       
   446 
       
   447 selectorsEditSpec
       
   448     "this window spec was automatically generated by the ST/X UIPainter"
       
   449 
       
   450     "do not manually edit this - the painter/builder may not be able to
       
   451      handle the specification if its corrupted."
       
   452 
       
   453     "
       
   454      UIPainter new openOnClass:DataSetBuilder andSelector:#selectorsEditSpec
       
   455      DataSetBuilder new openInterface:#selectorsEditSpec
       
   456     "
       
   457 
       
   458     <resource: #canvas>
       
   459 
       
   460     ^
       
   461      
       
   462        #(#FullSpec
       
   463           #'window:' 
       
   464            #(#WindowSpec
       
   465               #'name:' 'DataSet Basic'
       
   466               #'layout:' #(#LayoutFrame 219 0 193 0 507 0 448 0)
       
   467               #'label:' 'DataSet Basic'
       
   468               #'min:' #(#Point 10 10)
       
   469               #'max:' #(#Point 1280 1024)
       
   470               #'bounds:' #(#Rectangle 219 193 508 449)
       
   471               #'usePreferredExtent:' false
       
   472           )
       
   473           #'component:' 
       
   474            #(#SpecCollection
       
   475               #'collection:' 
       
   476                #(
       
   477                  #(#LabelSpec
       
   478                     #'name:' 'labelLabel'
       
   479                     #'layout:' #(#AlignmentOrigin 84 0 29 0 1 0.5)
       
   480                     #'label:' 'Label:'
   439                     #'adjust:' #right
   481                     #'adjust:' #right
   440                     #'resizeForLabel:' true
   482                     #'resizeForLabel:' true
   441                 )
   483                 )
   442                  #(#ColorMenuSpec
   484                  #(#InputFieldSpec
   443                     #'name:' 'colorMenuFG'
   485                     #'name:' 'labelField'
   444                     #'layout:' #(#LayoutFrame 101 0 25 0 0 1.0 53 0)
   486                     #'layout:' #(#LayoutFrame 86 0 20 0 -12 1.0 40 0)
   445                     #'activeHelpKey:' #foregroundColor
   487                     #'activeHelpKey:' #label
   446                     #'model:' #foregroundColor
   488                     #'model:' #label
   447                 )
   489                 )
   448                  #(#LabelSpec
   490                  #(#FramedBoxSpec
   449                     #'name:' 'backgroundLabel'
   491                     #'name:' 'valuesBox'
   450                     #'layout:' #(#AlignmentOrigin 100 0 74 0 1 0.5)
   492                     #'layout:' #(#LayoutFrame 0 0.0 20 0 0 1.0 101 0)
   451                     #'label:' 'background:'
   493                     #'component:' 
   452                     #'adjust:' #right
   494                      #(#SpecCollection
   453                     #'resizeForLabel:' true
   495                         #'collection:' 
   454                 )
   496                          #(
   455                  #(#ColorMenuSpec
   497                            #(#LabelSpec
   456                     #'name:' 'colorMenuBG'
   498                               #'name:' 'readLabel'
   457                     #'layout:' #(#LayoutFrame 101 0 60 0 0 1.0 88 0)
   499                               #'layout:' #(#AlignmentOrigin 84 0 25 0 1 0.5)
   458                     #'activeHelpKey:' #backgroundColor
   500                               #'label:' 'Read:'
   459                     #'model:' #backgroundColor
   501                               #'adjust:' #right
   460                 )
   502                               #'resizeForLabel:' true
   461                  #(#CheckBoxSpec
   503                           )
   462                     #'name:' 'canSelect'
   504                            #(#InputFieldSpec
   463                     #'layout:' #(#Point 17 102)
   505                               #'name:' 'readSelector'
   464                     #'activeHelpKey:' #canSelect
   506                               #'layout:' #(#LayoutFrame 86 0 16 0 17 1.0 36 0)
   465                     #'model:' #canSelect
   507                               #'activeHelpKey:' #readSelector
   466                     #'label:' 'Is Selectable'
   508                               #'model:' #readSelector
   467                 )
   509                               #'type:' #symbolOrNil
   468                  #(#LabelSpec
   510                           )
   469                     #'name:' 'separatorsLabel'
   511                            #(#LabelSpec
   470                     #'layout:' #(#AlignmentOrigin 84 0 154 0 1 0.5)
   512                               #'name:' 'printLabel'
   471                     #'label:' 'Separators:'
   513                               #'layout:' #(#AlignmentOrigin 84 0 51 0 1 0.5)
   472                     #'resizeForLabel:' true
   514                               #'label:' 'Print:'
   473                 )
   515                               #'adjust:' #right
   474                  #(#CheckBoxSpec
   516                               #'resizeForLabel:' true
   475                     #'name:' 'showRowSeparator'
   517                           )
   476                     #'layout:' #(#AlignmentOrigin 86 0 156 0 0 0.5)
   518                            #(#InputFieldSpec
   477                     #'activeHelpKey:' #showRowSeparator
   519                               #'name:' 'printSelector'
   478                     #'model:' #showRowSeparator
   520                               #'layout:' #(#LayoutFrame 86 0 42 0 17 1.0 62 0)
   479                     #'label:' 'Show Row-Separator'
   521                               #'activeHelpKey:' #printSelector
   480                 )
   522                               #'model:' #printSelector
   481                  #(#CheckBoxSpec
   523                               #'type:' #symbolOrNil
   482                     #'name:' 'showColSeparator'
   524                           )
   483                     #'layout:' #(#AlignmentOrigin 86 0 182 0 0 0.5)
   525                         )
   484                     #'activeHelpKey:' #showColumnSeparator
   526                     )
   485                     #'model:' #showColSeparator
   527                     #'label:' 'Values:'
   486                     #'label:' 'Show Column-Separator'
   528                     #'labelPosition:' #topLeft
       
   529                 )
       
   530                  #(#FramedBoxSpec
       
   531                     #'name:' 'menusBox'
       
   532                     #'layout:' #(#LayoutFrame 0 0.0 115 0 0 1.0 195 0)
       
   533                     #'component:' 
       
   534                      #(#SpecCollection
       
   535                         #'collection:' 
       
   536                          #(
       
   537                            #(#LabelSpec
       
   538                               #'name:' 'menuLabel'
       
   539                               #'layout:' #(#AlignmentOrigin 84 0 25 0 1 0.5)
       
   540                               #'label:' 'Menu:'
       
   541                               #'adjust:' #right
       
   542                               #'resizeForLabel:' true
       
   543                           )
       
   544                            #(#InputFieldSpec
       
   545                               #'name:' 'menuSelector'
       
   546                               #'layout:' #(#LayoutFrame 86 0 16 0 17 1.0 36 0)
       
   547                               #'activeHelpKey:' #menuSelector
       
   548                               #'model:' #menu
       
   549                               #'type:' #symbolOrNil
       
   550                           )
       
   551                            #(#LabelSpec
       
   552                               #'name:' 'choicesLabel'
       
   553                               #'layout:' #(#AlignmentOrigin 84 0 51 0 1 0.5)
       
   554                               #'label:' 'Choices:'
       
   555                               #'adjust:' #right
       
   556                               #'resizeForLabel:' true
       
   557                           )
       
   558                            #(#InputFieldSpec
       
   559                               #'name:' 'choicesSelector'
       
   560                               #'layout:' #(#LayoutFrame 86 0 42 0 17 1.0 62 0)
       
   561                               #'activeHelpKey:' #choices
       
   562                               #'model:' #choices
       
   563                               #'type:' #symbolOrNil
       
   564                           )
       
   565                         )
       
   566                     )
       
   567                     #'label:' 'Menus:'
       
   568                     #'labelPosition:' #topLeft
   487                 )
   569                 )
   488               )
   570               )
   489           )
   571           )
   490       )
   572       )
   491 ! !
   573 ! !
   500     UIHelpTool openOnClass:DataSetBuilder    
   582     UIHelpTool openOnClass:DataSetBuilder    
   501     "
   583     "
   502 
   584 
   503   ^ super helpSpec addPairsFrom:#(
   585   ^ super helpSpec addPairsFrom:#(
   504 
   586 
       
   587 #backgroundColor
       
   588 'set the background color of the column if the color-checkBox is turned on. Otherwise, the column uses its default background color (which is specified in the styleSheet).'
       
   589 
       
   590 #canSelect
       
   591 'if true, each cell in the column can be selected. In case of having a menu, the menu can be opened by selecting the cell and pressing down the right or middle button of the mouse. if false, the whole line is selected. The menu opened derives from the DataSetView, which is specified in the window specification (Basics).'
       
   592 
       
   593 #choices
       
   594 'selector to get the collection of choices for a column which is selectable and its editor is kind of a ComboBox or ComboList. If a cell in the column is selected, the visual editor is opened and in case of having choices, the choices are assigned to the widget.'
       
   595 
       
   596 #editorField
       
   597 'type of visual editor (using default editors) or a selector, which will return an visual editor. If the cell is selected, a visual editor is opened in in the cell. In case of an unsupported selector (user defined editor), the row object is asked for the visual editor by performing the selector on the row. A widget instance must be returned which is opened in the cell.'
       
   598 
       
   599 #foregroundColor
       
   600 'set the foreground color of the column  if the color-checkBox is turned on. Otherwise, the column uses its default foreground color (which is specified in the styleSheet).'
       
   601 
       
   602 #formatString
       
   603 'format string, which specifies the output format of a text in a cell. \ At the moment only numbers are supported. \ \ for example: 0.0000'
       
   604 
       
   605 #height
       
   606 'preferred height (optional)'
       
   607 
       
   608 #label
       
   609 'the label of the column. If ''label is image'' is off, this is the label string. Otherwise, it specifies the applications selector, which returns the label - either a string or a bitmap image.'
       
   610 
       
   611 #labelIsImage
       
   612 'if ''label is image'' is off (the default), the columns label is the string as entered in the label aspect. Otherwise, its the name of the message sent to the application - this should return a string or bitmap image, which is used as logo in the column.'
       
   613 
   505 #menuSelector
   614 #menuSelector
   506 'a selector to access the middleButton menu or nil'
   615 'a selector to access the middleButton menu or nil. If a cell is selected. The menu will be opened by selecting the cell and pressing down the right or middle button of the mouse.'
   507 
   616 
   508 #canSelect
   617 #minWidth
   509 'are cells in column selectable'
   618 'makes sense if the width is set to 0 or nil. This is the minimum size required; no computation dependent on the contents. When resizing the view the column may grow or shrink to the minimum width.'
   510 
   619 
   511 #formatString
   620 #printSelector
   512 'string describing special formatting for an input field { #InputField #ComboBox #ComboList }.'
   621 'a selector with one argument, the DataSetView. Used to access a drawable display object. In case of nil, the value derived from the readSelector is shown in the unselected cell.\ \ Using bitmaps, the DataSetView offers three important methods:\ \ #registerImage:anImage key:aSymbol\ register an image with an unique symbol. This symbol can be used by the row object to access the image, using #registeredImageAt:. The image will be associated to the device.\ \ #registeredImageAt:aSymbol\ returns an image assigned to the symbol or nil. The image returned is associated to the device.\ \ #releaseAllRegisteredImages\ relaese all registered images'
       
   622 
       
   623 #readSelector
       
   624 'a selector, which is used to get or set the value of a cell. The value returned by the method can be a string object or a bitmap. The set operation only is performed if the column is selectable.'
       
   625 
       
   626 #rendererType
       
   627 'This type specifies, how the text of an unselected cell should be shown. As Text, CheckToggle, ComboBox, ComboList or as a RowSelector.'
       
   628 
       
   629 #showColumnSeparator
       
   630 'show or hide the column separator (right vertical separator).'
       
   631 
       
   632 #showRowSeparator
       
   633 'show or hide the row separator (bottom horizontal separator)'
   513 
   634 
   514 #size
   635 #size
   515 'max size of an InputField, ComboBox or ComboList. 0 or nil means unlimited.'
   636 'max size of an InputField, ComboBox or ComboList. 0 or nil means unlimited.'
   516 
   637 
   517 #rendererType
       
   518 'text description type: how the text should be shown in the cell'
       
   519 
       
   520 #minWidth
       
   521 'makes sense if the width is set to 0 or nil. This is the minimum size required; no computation dependent on the contents. When resizing the view the column may grow or shrink to the minimum width.'
       
   522 
       
   523 #type
   638 #type
   524 'a type converter symbol used by the input field'
   639 'a type converter symbol used by the input field'
   525 
   640 
   526 #label
       
   527 'the label of the column'
       
   528 
       
   529 #choices
       
   530 'selector to get the collection of choices for a #ComboBox or #ComboList (optional).'
       
   531 
       
   532 #showRowSeparator
       
   533 'show or hide row separator (bottom horizontal separator)'
       
   534 
       
   535 #width
   641 #width
   536 'the width of a fixed column; in case of nil or 0 the column width will be computed dependent on the contents.'
   642 'the width of a fixed column; in case of nil or 0 the column width will be computed dependent on the contents.'
   537 
       
   538 #printSelector
       
   539 'a selector with one argument the gc. Used to access a drawable display object (optional). In case of nil, the value derived from the readSelector is shown in the unselected cell.'
       
   540 
       
   541 #showColumnSeparator
       
   542 'show or hide column separator (right vertical separator).'
       
   543 
       
   544 #height
       
   545 'preferred height (optional)'
       
   546 
       
   547 #editorField
       
   548 'type of visual editor (using default editors) or a selector, which will return an visual editor'
       
   549 
       
   550 #readSelector
       
   551 'selector used to get and set a value'
       
   552 
   643 
   553 )
   644 )
   554 ! !
   645 ! !
   555 
   646 
   556 !DataSetBuilder class methodsFor:'images'!
   647 !DataSetBuilder class methodsFor:'images'!
   659       )
   750       )
   660 !
   751 !
   661 
   752 
   662 slices
   753 slices
   663     ^  #(       (Basics         basicsEditSpec)
   754     ^  #(       (Basics         basicsEditSpec)
   664                 (Details        detailsEditSpec)
   755                 (Selectors      selectorsEditSpec)
   665                 (Misc           miscEditSpec)
   756                 (Format         formatEditSpec)
       
   757                 (Colors         colorEditSpec)
   666                 (Dimension      dimensionEditSpec)
   758                 (Dimension      dimensionEditSpec)
   667         )
   759         )
   668 !
   760 !
   669 
   761 
   670 windowSpec
   762 windowSpec
   685      
   777      
   686        #(#FullSpec
   778        #(#FullSpec
   687           #'window:' 
   779           #'window:' 
   688            #(#WindowSpec
   780            #(#WindowSpec
   689               #'name:' 'unnamed canvas'
   781               #'name:' 'unnamed canvas'
   690               #'layout:' #(#LayoutFrame 197 0 172 0 668 0 512 0)
   782               #'layout:' #(#LayoutFrame 219 0 193 0 690 0 533 0)
   691               #'label:' 'unnamed canvas'
   783               #'label:' 'unnamed canvas'
   692               #'min:' #(#Point 10 10)
   784               #'min:' #(#Point 10 10)
   693               #'max:' #(#Point 1152 900)
   785               #'max:' #(#Point 1152 900)
   694               #'bounds:' #(#Rectangle 197 172 669 513)
   786               #'bounds:' #(#Rectangle 219 193 691 534)
       
   787               #'usePreferredExtent:' false
   695           )
   788           )
   696           #'component:' 
   789           #'component:' 
   697            #(#SpecCollection
   790            #(#SpecCollection
   698               #'collection:' 
   791               #'collection:' 
   699                #(
   792                #(
   721                                         #'menu:' #subMenu
   814                                         #'menu:' #subMenu
   722                                     )
   815                                     )
   723                                      #(#SequenceViewSpec
   816                                      #(#SequenceViewSpec
   724                                         #'name:' 'columnView'
   817                                         #'name:' 'columnView'
   725                                         #'layout:' #(#LayoutFrame 0 0.0 35 0.0 0 1.0 0 1.0)
   818                                         #'layout:' #(#LayoutFrame 0 0.0 35 0.0 0 1.0 0 1.0)
       
   819                                         #'enableChannel:' #isNotModified
   726                                         #'model:' #selectedColumnModel
   820                                         #'model:' #selectedColumnModel
   727                                         #'menu:' #columnMenu
   821                                         #'menu:' #columnMenu
       
   822                                         #'hasHorizontalScrollBar:' true
   728                                         #'hasVerticalScrollBar:' true
   823                                         #'hasVerticalScrollBar:' true
       
   824                                         #'miniScrollerHorizontal:' true
   729                                         #'useIndex:' true
   825                                         #'useIndex:' true
   730                                         #'sequenceList:' #seqList
   826                                         #'sequenceList:' #seqList
   731                                     )
   827                                     )
   732                                   )
   828                                   )
   733                               )
   829                               )
   926                 #'label:' '-'
  1022                 #'label:' '-'
   927             )
  1023             )
   928              #(#MenuItem
  1024              #(#MenuItem
   929                 #'label:' 'stepDown'
  1025                 #'label:' 'stepDown'
   930                 #'value:' #'doMoveColumn:'
  1026                 #'value:' #'doMoveColumn:'
   931                 #'enabled:' #notModified
  1027                 #'enabled:' #isNotModified
   932                 #'argument:' #down
  1028                 #'argument:' #down
   933                 #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepDown)
  1029                 #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepDown)
   934             )
  1030             )
   935              #(#MenuItem
  1031              #(#MenuItem
   936                 #'label:' '-'
  1032                 #'label:' '-'
  1211            formatString type size height canSelect
  1307            formatString type size height canSelect
  1212          ) do:[:aKey| (aspects at:aKey) value:nil ].
  1308          ) do:[:aKey| (aspects at:aKey) value:nil ].
  1213     ].
  1309     ].
  1214         
  1310         
  1215     aspects keysAndValuesDo:[:aKey :aModel|
  1311     aspects keysAndValuesDo:[:aKey :aModel|
  1216         column perform:(aKey , ':') asSymbol with:(aModel value)
  1312         column perform:(aKey , ':') asSymbol with:(aModel value).
  1217     ].
  1313     ].
  1218     self seqList at:selectedColumnIndex put:((aspects at:#label) value).
  1314     self seqList at:selectedColumnIndex put:((aspects at:#label) value).
  1219     self updateColumnView.
  1315     self updateColumnView.
  1220     self cancel
  1316     self cancel
  1221 !
  1317 !
  1526         label
  1622         label
  1527         canSelect
  1623         canSelect
  1528         choices
  1624         choices
  1529         editorType
  1625         editorType
  1530         formatString
  1626         formatString
       
  1627         labelIsImage
  1531         size
  1628         size
  1532         type
  1629         type
  1533         width
  1630         width
  1534         minWidth
  1631         minWidth
  1535         height
  1632         height