Tools__NewClassWizardDialog.st
changeset 13941 f3193680050b
parent 11224 6f7da28fcedd
child 14394 2fbd45bcf5ac
equal deleted inserted replaced
13940:352ed7a67f83 13941:f3193680050b
   280     "
   280     "
   281 
   281 
   282     <resource: #canvas>
   282     <resource: #canvas>
   283 
   283 
   284     ^ 
   284     ^ 
   285      #(FullSpec
   285     #(FullSpec
   286         name: windowSpec
   286        name: windowSpec
   287         window: 
   287        window: 
   288        (WindowSpec
   288       (WindowSpec
   289           label: 'Class Creation Wizard'
   289          label: 'Class Creation Wizard'
   290           name: 'Class Creation Wizard'
   290          name: 'Class Creation Wizard'
   291           min: (Point 10 10)
   291          min: (Point 10 10)
   292           bounds: (Rectangle 0 0 506 600)
   292          bounds: (Rectangle 0 0 558 609)
   293         )
   293        )
   294         component: 
   294        component: 
   295        (SpecCollection
   295       (SpecCollection
   296           collection: (
   296          collection: (
   297            (LabelSpec
   297           (LabelSpec
   298               label: 'wizardIcon'
   298              label: 'wizardIcon'
   299               name: 'Label10'
   299              name: 'Label10'
   300               layout: (LayoutFrame 0 0 0 0 100 0 90 0)
   300              layout: (LayoutFrame 0 0 0 0 100 0 90 0)
   301               hasCharacterOrientedLabel: false
   301              hasCharacterOrientedLabel: false
   302               translateLabel: true
   302              translateLabel: true
   303             )
   303            )
   304            (LabelSpec
   304           (LabelSpec
   305               label: 'Class Creation Wizard'
   305              label: 'Class Creation Wizard'
   306               name: 'Label11'
   306              name: 'Label11'
   307               layout: (LayoutFrame 100 0 10 0 390 0 50 0)
   307              layout: (LayoutFrame 100 0 10 0 390 0 50 0)
   308               translateLabel: true
   308              translateLabel: true
   309             )
   309            )
   310            (LabelSpec
   310           (LabelSpec
   311               label: 'Programming Language:'
   311              label: 'Programming Language:'
   312               name: 'Label9'
   312              name: 'Label9'
   313               layout: (LayoutFrame 10 0 90 0 180 0 112 0)
   313              layout: (LayoutFrame 10 0 90 0 180 0 112 0)
   314               activeHelpKey: programmingLanguage
   314              activeHelpKey: programmingLanguage
   315               translateLabel: true
   315              translateLabel: true
   316               adjust: right
   316              adjust: right
   317             )
   317            )
   318            (ComboListSpec
   318           (ComboListSpec
   319               name: 'ComboList1'
   319              name: 'ComboList1'
   320               layout: (LayoutFrame 190 0 90 0 -32 1 112 0)
   320              layout: (LayoutFrame 190 0 90 0 -32 1 112 0)
   321               activeHelpKey: programmingLanguage
   321              activeHelpKey: programmingLanguage
   322               model: languageHolder
   322              model: languageHolder
   323               comboList: listOfLanguages
   323              comboList: listOfLanguages
   324               useIndex: true
   324              useIndex: true
   325             )
   325            )
   326            (LabelSpec
   326           (LabelSpec
   327               label: 'Stereotype:'
   327              label: 'Stereotype:'
   328               name: 'Label13'
   328              name: 'Label13'
   329               layout: (LayoutFrame 10 0 120 0 180 0 142 0)
   329              layout: (LayoutFrame 10 0 120 0 180 0 142 0)
   330               activeHelpKey: stereotype
   330              activeHelpKey: stereotype
   331               translateLabel: true
   331              translateLabel: true
   332               adjust: right
   332              adjust: right
   333             )
   333            )
   334            (ComboListSpec
   334           (ComboListSpec
   335               name: 'ComboList3'
   335              name: 'ComboList3'
   336               layout: (LayoutFrame 190 0 119 0 -32 1 141 0)
   336              layout: (LayoutFrame 190 0 119 0 -32 1 141 0)
   337               activeHelpKey: stereotype
   337              activeHelpKey: stereotype
   338               model: stereotypeHolder
   338              model: stereotypeHolder
   339               comboList: listOfStereotypes
   339              comboList: listOfStereotypes
   340               useIndex: true
   340              useIndex: true
   341             )
   341            )
   342            (LabelSpec
   342           (LabelSpec
   343               label: 'Class Name:'
   343              label: 'Class Name:'
   344               name: 'Label1'
   344              name: 'Label1'
   345               layout: (LayoutFrame 10 0 149 0 180 0 171 0)
   345              layout: (LayoutFrame 10 0 149 0 180 0 171 0)
   346               activeHelpKey: className
   346              activeHelpKey: className
   347               translateLabel: true
   347              translateLabel: true
   348               adjust: right
   348              adjust: right
   349             )
   349            )
   350            (InputFieldSpec
   350           (InputFieldSpec
   351               name: 'EntryField1'
   351              name: 'EntryField1'
   352               layout: (LayoutFrame 190 0 149 0 -32 1 171 0)
   352              layout: (LayoutFrame 190 0 149 0 -32 1 171 0)
   353               activeHelpKey: className
   353              activeHelpKey: className
   354               model: classNameHolder
   354              model: classNameHolder
   355               acceptOnReturn: true
   355              acceptOnReturn: true
   356               acceptOnTab: true
   356              acceptOnTab: true
   357               acceptOnLostFocus: true
   357              acceptOnLostFocus: true
   358               acceptOnPointerLeave: true
   358              acceptOnPointerLeave: true
   359             )
   359            )
   360            (LabelSpec
   360           (LabelSpec
   361               label: '*'
   361              label: '*'
   362               name: 'Label14'
   362              name: 'Label14'
   363               layout: (LayoutFrame 180 0 150 0 190 0 172 0)
   363              layout: (LayoutFrame 180 0 150 0 190 0 172 0)
   364               translateLabel: true
   364              translateLabel: true
   365             )
   365            )
   366            (LabelSpec
   366           (LabelSpec
   367               label: 'Superclass:'
   367              label: 'Superclass:'
   368               name: 'Label2'
   368              name: 'Label2'
   369               layout: (LayoutFrame 10 0 179 0 180 0 201 0)
   369              layout: (LayoutFrame 10 0 179 0 180 0 201 0)
   370               activeHelpKey: superclass
   370              activeHelpKey: superclass
   371               translateLabel: true
   371              translateLabel: true
   372               adjust: right
   372              adjust: right
   373             )
   373            )
   374            (ComboBoxSpec
   374           (ComboBoxSpec
   375               name: 'ComboBox1'
   375              name: 'ComboBox1'
   376               layout: (LayoutFrame 190 0 179 0 -32 1 201 0)
   376              layout: (LayoutFrame 190 0 179 0 -32 1 201 0)
   377               activeHelpKey: superclass
   377              activeHelpKey: superclass
   378               model: superclassNameHolder
   378              model: superclassNameHolder
   379               acceptOnLostFocus: true
   379              acceptOnLostFocus: true
   380               comboList: listOfSuperclasses
   380              comboList: listOfSuperclasses
   381               useIndex: false
   381              useIndex: false
   382             )
   382            )
   383            (LabelSpec
   383           (LabelSpec
   384               label: '*'
   384              label: '*'
   385               name: 'Label15'
   385              name: 'Label15'
   386               layout: (LayoutFrame 180 0 179 0 190 0 201 0)
   386              layout: (LayoutFrame 180 0 179 0 190 0 201 0)
   387               translateLabel: true
   387              translateLabel: true
   388             )
   388            )
   389            (ActionButtonSpec
   389           (ActionButtonSpec
   390               label: '...'
   390              label: '...'
   391               name: 'Button1'
   391              name: 'Button1'
   392               layout: (LayoutFrame -22 1 179 0 -2 1 201 0)
   392              layout: (LayoutFrame -22 1 179 0 -2 1 201 0)
   393               activeHelpKey: chooseSuperclass
   393              activeHelpKey: chooseSuperclass
   394               translateLabel: true
   394              translateLabel: true
   395               model: openSuperClassChooser
   395              model: openSuperClassChooser
   396             )
   396            )
   397            (LabelSpec
   397           (LabelSpec
   398               label: 'Project ID:'
   398              label: 'Project ID:'
   399               name: 'Label3'
   399              name: 'Label3'
   400               layout: (LayoutFrame 10 0 220 0 180 0 242 0)
   400              layout: (LayoutFrame 10 0 220 0 180 0 242 0)
   401               activeHelpKey: package
   401              activeHelpKey: package
   402               translateLabel: true
   402              translateLabel: true
   403               adjust: right
   403              adjust: right
   404             )
   404            )
   405            (ComboBoxSpec
   405           (ComboBoxSpec
   406               name: 'ComboBox2'
   406              name: 'ComboBox2'
   407               layout: (LayoutFrame 190 0 219 0 -32 1 241 0)
   407              layout: (LayoutFrame 190 0 219 0 -32 1 241 0)
   408               activeHelpKey: package
   408              activeHelpKey: package
   409               model: packageHolder
   409              model: packageHolder
   410               acceptOnReturn: true
   410              acceptOnReturn: true
   411               acceptOnTab: true
   411              acceptOnTab: true
   412               acceptOnLostFocus: true
   412              acceptOnLostFocus: true
   413               acceptOnPointerLeave: true
   413              acceptOnPointerLeave: true
   414               comboList: listOfPackages
   414              comboList: listOfPackages
   415             )
   415            )
   416            (ActionButtonSpec
   416           (ActionButtonSpec
   417               label: '...'
   417              label: '...'
   418               name: 'Button4'
   418              name: 'Button4'
   419               layout: (LayoutFrame -22 1 219 0 -2 1 241 0)
   419              layout: (LayoutFrame -22 1 219 0 -2 1 241 0)
   420               activeHelpKey: packageChooser
   420              activeHelpKey: packageChooser
   421               translateLabel: true
   421              translateLabel: true
   422               model: openPackageChooser
   422              model: openPackageChooser
   423             )
   423            )
   424            (LabelSpec
   424           (LabelSpec
   425               label: 'Namespace:'
   425              label: 'Namespace:'
   426               name: 'Label4'
   426              name: 'Label4'
   427               layout: (LayoutFrame 10 0 249 0 180 0 271 0)
   427              layout: (LayoutFrame 10 0 249 0 180 0 271 0)
   428               activeHelpKey: namespace
   428              activeHelpKey: namespace
   429               translateLabel: true
   429              translateLabel: true
   430               adjust: right
   430              adjust: right
   431             )
   431            )
   432            (ComboListSpec
   432           (ComboListSpec
   433               name: 'ComboList2'
   433              name: 'ComboList2'
   434               layout: (LayoutFrame 190 0 249 0 -32 1 271 0)
   434              layout: (LayoutFrame 190 0 249 0 -32 1 271 0)
   435               activeHelpKey: namespace
   435              activeHelpKey: namespace
   436               model: nameSpaceHolder
   436              model: nameSpaceHolder
   437               comboList: listOfNamespaces
   437              comboList: listOfNamespaces
   438             )
   438            )
   439            (ActionButtonSpec
   439           (ActionButtonSpec
   440               label: '...'
   440              label: '...'
   441               name: 'Button5'
   441              name: 'Button5'
   442               layout: (LayoutFrame -22 1 249 0 -2 1 271 0)
   442              layout: (LayoutFrame -22 1 249 0 -2 1 271 0)
   443               activeHelpKey: namespaceChooser
   443              activeHelpKey: namespaceChooser
   444               translateLabel: true
   444              translateLabel: true
   445               model: openNamespaceChooser
   445              model: openNamespaceChooser
   446             )
   446            )
   447            (LabelSpec
   447           (LabelSpec
   448               label: 'Category:'
   448              label: 'Category:'
   449               name: 'Label12'
   449              name: 'Label12'
   450               layout: (LayoutFrame 10 0 279 0 180 0 301 0)
   450              layout: (LayoutFrame 10 0 279 0 180 0 301 0)
   451               activeHelpKey: category
   451              activeHelpKey: category
   452               translateLabel: true
   452              translateLabel: true
   453               adjust: right
   453              adjust: right
   454             )
   454            )
   455            (ComboBoxSpec
   455           (ComboBoxSpec
   456               name: 'ComboBox3'
   456              name: 'ComboBox3'
   457               layout: (LayoutFrame 190 0 279 0 -32 1 301 0)
   457              layout: (LayoutFrame 190 0 279 0 -32 1 301 0)
   458               activeHelpKey: category
   458              activeHelpKey: category
   459               model: categoryHolder
   459              model: categoryHolder
   460               acceptOnLostFocus: true
   460              acceptOnLostFocus: true
   461               comboList: listOfCategories
   461              comboList: listOfCategories
   462             )
   462            )
   463            (ActionButtonSpec
   463           (ActionButtonSpec
   464               label: '...'
   464              label: '...'
   465               name: 'Button6'
   465              name: 'Button6'
   466               layout: (LayoutFrame -22 1 279 0 -2 1 301 0)
   466              layout: (LayoutFrame -22 1 279 0 -2 1 301 0)
   467               activeHelpKey: categoryChooser
   467              activeHelpKey: categoryChooser
   468               translateLabel: true
   468              translateLabel: true
   469               model: openCategoryChooser
   469              model: openCategoryChooser
   470             )
   470            )
   471            (LabelSpec
   471           (LabelSpec
   472               label: 'Instance Variables:'
   472              label: 'Instance Variables:'
   473               name: 'Label5'
   473              name: 'Label5'
   474               layout: (LayoutFrame 10 0 319 0 180 0 341 0)
   474              layout: (LayoutFrame 10 0 319 0 180 0 341 0)
   475               activeHelpKey: instanceVariableNames
   475              activeHelpKey: instanceVariableNames
   476               translateLabel: true
   476              translateLabel: true
   477               adjust: right
   477              adjust: right
   478             )
   478            )
   479            (InputFieldSpec
   479           (InputFieldSpec
   480               name: 'EntryField4'
   480              name: 'EntryField4'
   481               layout: (LayoutFrame 190 0 319 0 -32 1 341 0)
   481              layout: (LayoutFrame 190 0 319 0 -32 1 341 0)
   482               activeHelpKey: instanceVariableNames
   482              activeHelpKey: instanceVariableNames
   483               model: instVarNamesHolder
   483              model: instVarNamesHolder
   484               acceptOnReturn: true
   484              acceptOnReturn: true
   485               acceptOnTab: true
   485              acceptOnTab: true
   486               acceptOnLostFocus: true
   486              acceptOnLostFocus: true
   487               acceptOnPointerLeave: true
   487              acceptOnPointerLeave: true
   488             )
   488            )
   489            (LabelSpec
   489           (LabelSpec
   490               label: 'Class Variables:'
   490              label: 'Class Variables:'
   491               name: 'Label6'
   491              name: 'Label6'
   492               layout: (LayoutFrame 10 0 349 0 180 0 371 0)
   492              layout: (LayoutFrame 10 0 349 0 180 0 371 0)
   493               activeHelpKey: classVariableNames
   493              activeHelpKey: classVariableNames
   494               translateLabel: true
   494              translateLabel: true
   495               adjust: right
   495              adjust: right
   496             )
   496            )
   497            (InputFieldSpec
   497           (InputFieldSpec
   498               name: 'EntryField5'
   498              name: 'EntryField5'
   499               layout: (LayoutFrame 190 0 349 0 -32 1 371 0)
   499              layout: (LayoutFrame 190 0 349 0 -32 1 371 0)
   500               activeHelpKey: classVariableNames
   500              activeHelpKey: classVariableNames
   501               model: classVarNamesHolder
   501              model: classVarNamesHolder
   502               acceptOnReturn: true
   502              acceptOnReturn: true
   503               acceptOnTab: true
   503              acceptOnTab: true
   504               acceptOnLostFocus: true
   504              acceptOnLostFocus: true
   505               acceptOnPointerLeave: true
   505              acceptOnPointerLeave: true
   506             )
   506            )
   507            (LabelSpec
   507           (LabelSpec
   508               label: 'Class Instance Variables:'
   508              label: 'Class Instance Variables:'
   509               name: 'Label7'
   509              name: 'Label7'
   510               layout: (LayoutFrame 10 0 379 0 180 0 401 0)
   510              layout: (LayoutFrame 10 0 379 0 180 0 401 0)
   511               activeHelpKey: classInstVariableNames
   511              activeHelpKey: classInstVariableNames
   512               translateLabel: true
   512              translateLabel: true
   513               adjust: right
   513              adjust: right
   514             )
   514            )
   515            (InputFieldSpec
   515           (InputFieldSpec
   516               name: 'EntryField6'
   516              name: 'EntryField6'
   517               layout: (LayoutFrame 190 0 379 0 -32 1 401 0)
   517              layout: (LayoutFrame 190 0 379 0 -32 1 401 0)
   518               activeHelpKey: classInstVariableNames
   518              activeHelpKey: classInstVariableNames
   519               model: classInstVarNamesHolder
   519              model: classInstVarNamesHolder
   520               acceptOnReturn: true
   520              acceptOnReturn: true
   521               acceptOnTab: true
   521              acceptOnTab: true
   522               acceptOnLostFocus: true
   522              acceptOnLostFocus: true
   523               acceptOnPointerLeave: true
   523              acceptOnPointerLeave: true
   524             )
   524            )
   525            (LabelSpec
   525           (LabelSpec
   526               label: 'Create:'
   526              label: 'Create:'
   527               name: 'Label8'
   527              name: 'Label8'
   528               layout: (LayoutFrame 10 0 419 0 110 0 441 0)
   528              layout: (LayoutFrame 10 0 419 0 110 0 441 0)
   529               translateLabel: true
   529              translateLabel: true
   530               adjust: right
   530              adjust: right
   531             )
   531            )
   532            (CheckBoxSpec
   532           (CheckBoxSpec
   533               label: 'Accessors'
   533              label: 'Accessors'
   534               name: 'CheckBox1'
   534              name: 'CheckBox1'
   535               layout: (LayoutFrame 120 0 419 0 280 0 441 0)
   535              layout: (LayoutFrame 120 0 419 0 280 0 441 0)
   536               activeHelpKey: createAccessors
   536              activeHelpKey: createAccessors
   537               model: createAccessorsHolder
   537              model: createAccessorsHolder
   538               translateLabel: true
   538              translateLabel: true
   539             )
   539            )
   540            (CheckBoxSpec
   540           (CheckBoxSpec
   541               label: 'Initial Template Code'
   541              label: 'Initial Template Code'
   542               name: 'CheckBox6'
   542              name: 'CheckBox6'
   543               layout: (LayoutFrame 310 0 419 0 470 0 441 0)
   543              layout: (LayoutFrame 310 0 419 0 -36 1 441 0)
   544               activeHelpKey: createInitialGUICode
   544              activeHelpKey: createInitialGUICode
   545               model: createInitialGUICodeHolder
   545              model: createInitialGUICodeHolder
   546               translateLabel: true
   546              translateLabel: true
   547             )
   547            )
   548            (CheckBoxSpec
   548           (CheckBoxSpec
   549               label: 'Initializer'
   549              label: 'Initializer'
   550               name: 'CheckBox2'
   550              name: 'CheckBox2'
   551               layout: (LayoutFrame 120 0 449 0 280 0 471 0)
   551              layout: (LayoutFrame 120 0 449 0 280 0 471 0)
   552               activeHelpKey: createInitializer
   552              activeHelpKey: createInitializer
   553               model: createInitializerHolder
   553              model: createInitializerHolder
   554               translateLabel: true
   554              translateLabel: true
   555             )
   555            )
   556            (CheckBoxSpec
   556           (CheckBoxSpec
   557               label: 'Update Method'
   557              label: 'Update Method'
   558               name: 'CheckBox5'
   558              name: 'CheckBox5'
   559               layout: (LayoutFrame 120 0 479 0 280 0 501 0)
   559              layout: (LayoutFrame 120 0 479 0 280 0 501 0)
   560               activeHelpKey: createUpdateMethod
   560              activeHelpKey: createUpdateMethod
   561               model: createUpdateMethodHolder
   561              model: createUpdateMethodHolder
   562               translateLabel: true
   562              translateLabel: true
   563             )
   563            )
   564            (CheckBoxSpec
   564           (CheckBoxSpec
   565               label: 'Required Methods (Subclass responsibilities)'
   565              label: 'Required Methods (Subclass responsibilities)'
   566               name: 'CheckBox3'
   566              name: 'CheckBox3'
   567               layout: (LayoutFrame 120 0 509 0 400 0 531 0)
   567              layout: (LayoutFrame 120 0 509 0 451 0 531 0)
   568               activeHelpKey: createRequiredMethods
   568              activeHelpKey: createRequiredMethods
   569               model: createRequiredMethodsHolder
   569              model: createRequiredMethodsHolder
   570               translateLabel: true
   570              translateLabel: true
   571             )
   571            )
   572            (CheckBoxSpec
   572           (CheckBoxSpec
   573               label: 'Print Method'
   573              label: 'Print Method'
   574               name: 'CheckBox4'
   574              name: 'CheckBox4'
   575               layout: (LayoutFrame 120 0 539 0 280 0 561 0)
   575              layout: (LayoutFrame 120 0 539 0 280 0 561 0)
   576               activeHelpKey: createPrintMethod
   576              activeHelpKey: createPrintMethod
   577               visibilityChannel: false
   577              visibilityChannel: false
   578               model: createPrintMethodHolder
   578              model: createPrintMethodHolder
   579               translateLabel: true
   579              translateLabel: true
   580             )
   580            )
   581            (HorizontalPanelViewSpec
   581           (HorizontalPanelViewSpec
   582               name: 'HorizontalPanel1'
   582              name: 'HorizontalPanel1'
   583               layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
   583              layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
   584               horizontalLayout: center
   584              horizontalLayout: center
   585               verticalLayout: center
   585              verticalLayout: center
   586               horizontalSpace: 3
   586              horizontalSpace: 3
   587               verticalSpace: 3
   587              verticalSpace: 3
   588               reverseOrderIfOKAtLeft: true
   588              reverseOrderIfOKAtLeft: true
   589               component: 
   589              component: 
   590              (SpecCollection
   590             (SpecCollection
   591                 collection: (
   591                collection: (
   592                  (ActionButtonSpec
   592                 (ActionButtonSpec
   593                     label: 'Cancel'
   593                    label: 'Cancel'
   594                     name: 'Button3'
   594                    name: 'Button3'
   595                     translateLabel: true
   595                    translateLabel: true
   596                     model: doCancel
   596                    model: doCancel
   597                     extent: (Point 125 22)
   597                    extent: (Point 125 22)
   598                   )
       
   599                  (ActionButtonSpec
       
   600                     label: 'OK'
       
   601                     name: 'Button2'
       
   602                     translateLabel: true
       
   603                     model: doAccept
       
   604                     extent: (Point 125 22)
       
   605                   )
       
   606                  )
   598                  )
   607                
   599                 (ActionButtonSpec
   608               )
   600                    label: 'OK'
   609             )
   601                    name: 'Button2'
   610            )
   602                    translateLabel: true
   611          
   603                    model: doAccept
   612         )
   604                    extent: (Point 125 22)
   613       )
   605                  )
       
   606                 )
       
   607               
       
   608              )
       
   609            )
       
   610           )
       
   611         
       
   612        )
       
   613      )
   614 ! !
   614 ! !
   615 
   615 
   616 !NewClassWizardDialog class methodsFor:'menu specs'!
   616 !NewClassWizardDialog class methodsFor:'menu specs'!
   617 
   617 
   618 mainMenu
   618 mainMenu
  1245 ! !
  1245 ! !
  1246 
  1246 
  1247 !NewClassWizardDialog class methodsFor:'documentation'!
  1247 !NewClassWizardDialog class methodsFor:'documentation'!
  1248 
  1248 
  1249 version_CVS
  1249 version_CVS
  1250     ^ '$Header: /cvs/stx/stx/libtool/Tools__NewClassWizardDialog.st,v 1.17 2012-01-27 13:55:52 cg Exp $'
  1250     ^ '$Header: /cvs/stx/stx/libtool/Tools__NewClassWizardDialog.st,v 1.18 2014-02-14 14:09:25 cg Exp $'
  1251 ! !
  1251 ! !
       
  1252