Tools__CheckinInfoDialog.st
changeset 15853 00d7a229b2f0
parent 15849 9e9179e9f829
child 15854 2a3fc1ba9489
child 15873 45119443a715
equal deleted inserted replaced
15852:005d6c483bfa 15853:00d7a229b2f0
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "
     3 "
     2  COPYRIGHT (c) 2005 eXept Software AG
     4  COPYRIGHT (c) 2005 eXept Software AG
     3               All Rights Reserved
     5               All Rights Reserved
     4 
     6 
     5  This software is furnished under a license and may be used
     7  This software is furnished under a license and may be used
    55 
    57 
    56     [class variables:]
    58     [class variables:]
    57 "
    59 "
    58 ! !
    60 ! !
    59 
    61 
       
    62 !CheckinInfoDialog class methodsFor:'constants'!
       
    63 
       
    64 reasonBugfix
       
    65     ^ #reasonBugfix
       
    66 !
       
    67 
       
    68 reasonDocumentation
       
    69     ^ #reasonDocumentation
       
    70 !
       
    71 
       
    72 reasonFeature
       
    73     ^ #reasonFeature
       
    74 !
       
    75 
       
    76 reasonOther
       
    77     ^ #reasonOther
       
    78 !
       
    79 
       
    80 reasonRefactoring
       
    81     ^ #reasonRefactoring
       
    82 ! !
       
    83 
    60 !CheckinInfoDialog class methodsFor:'help specs'!
    84 !CheckinInfoDialog class methodsFor:'help specs'!
    61 
    85 
    62 flyByHelpSpec
    86 flyByHelpSpec
    63     "This resource specification was automatically generated
    87     "This resource specification was automatically generated
    64      by the UIHelpTool of ST/X."
    88      by the UIHelpTool of ST/X."
    91 'Perform some consistency checks before checking in. 
   115 'Perform some consistency checks before checking in. 
    92 Especially checks the correctness of the ProjectDefinition vs. the actual set of classes in the image'
   116 Especially checks the correctness of the ProjectDefinition vs. the actual set of classes in the image'
    93 
   117 
    94 #checkinReason
   118 #checkinReason
    95 'Adds a keyword to the checkin info, to allow automatic generation of revision information from the log later'
   119 'Adds a keyword to the checkin info, to allow automatic generation of revision information from the log later'
       
   120 
       
   121 #checkinReasonDocumentation
       
   122 'Only documentation, comments etc. were added/changed.\Tells others, that there is no need to test/verify/review the changes'
       
   123 
       
   124 #checkinReasonBugfix
       
   125 'Some bug was fixed.\Please describe what was changed and\if possible, add a bug identifier (issue-ID) to the checkin info'
       
   126 
       
   127 #checkinReasonFeature
       
   128 'A new feature was added.\Please describe what was changed and\if possible, add a requirement identifier (issue-ID) to the checkin info'
       
   129 
       
   130 #checkinReasonRefactoring
       
   131 'The code was refactored/improved for better structure or maintainability'
       
   132 
       
   133 #checkinReasonOther
       
   134 'Some other change, which does not fit into one of the above.\Please describe in detail what you did in the checkin info'
    96 
   135 
    97 )
   136 )
    98 ! !
   137 ! !
    99 
   138 
   100 !CheckinInfoDialog class methodsFor:'interface specs'!
   139 !CheckinInfoDialog class methodsFor:'interface specs'!
   119        name: windowSpec
   158        name: windowSpec
   120        window: 
   159        window: 
   121       (WindowSpec
   160       (WindowSpec
   122          label: 'Enter Log Message'
   161          label: 'Enter Log Message'
   123          name: 'Enter Log Message'
   162          name: 'Enter Log Message'
   124          min: (Point 10 10)
   163          min: (Point 538 387)
   125          bounds: (Rectangle 0 0 574 456)
   164          bounds: (Rectangle 0 0 579 506)
   126        )
   165        )
   127        component: 
   166        component: 
   128       (SpecCollection
   167       (SpecCollection
   129          collection: (
   168          collection: (
   130           (HorizontalPanelViewSpec
   169           (HorizontalPanelViewSpec
   168              comboList: logHistoryHeadLines
   207              comboList: logHistoryHeadLines
   169              useIndex: true
   208              useIndex: true
   170            )
   209            )
   171           (TextEditorSpec
   210           (TextEditorSpec
   172              name: 'TextEditor1'
   211              name: 'TextEditor1'
   173              layout: (LayoutFrame 2 0.0 68 0 -2 1 -250 1)
   212              layout: (LayoutFrame 2 0.0 68 0 -2 1 -275 1)
   174              activeHelpKey: logMessage
   213              activeHelpKey: logMessage
   175              model: logMessageHolder
   214              model: logMessageHolder
   176              hasHorizontalScrollBar: true
   215              hasHorizontalScrollBar: true
   177              hasVerticalScrollBar: true
   216              hasVerticalScrollBar: true
   178              hasKeyboardFocusInitially: false
   217              hasKeyboardFocusInitially: false
   179            )
   218            )
   180           (LabelSpec
   219           (LabelSpec
   181              name: 'Label4'
   220              name: 'Label4'
   182              layout: (LayoutFrame 0 0.0 -245 1 0 1.0 -223 1)
   221              layout: (LayoutFrame 0 0.0 -269 1 0 1.0 -247 1)
   183              translateLabel: true
   222              translateLabel: true
   184              labelChannel: warningMessageHolder
   223              labelChannel: warningMessageHolder
   185            )
   224            )
   186           (CheckBoxSpec
   225           (CheckBoxSpec
   187              label: 'Quick Checkin (Only Classes in ChangeSet)'
   226              label: 'Quick Checkin (Only Classes in ChangeSet)'
   188              name: 'CheckInChangedOnlyCheckbox'
   227              name: 'CheckInChangedOnlyCheckbox'
   189              layout: (LayoutFrame 3 0 -220 1 -3 1 -198 1)
   228              layout: (LayoutFrame 3 0 -244 1 -3 1 -222 1)
   190              activeHelpKey: quickCheckin
   229              activeHelpKey: quickCheckin
   191              visibilityChannel: quickCheckInVisibleHolder
   230              visibilityChannel: quickCheckInVisibleHolder
   192              enableChannel: quickCheckInEnabledHolder
   231              enableChannel: quickCheckInEnabledHolder
   193              model: quickCheckInHolder
   232              model: quickCheckInHolder
   194              translateLabel: true
   233              translateLabel: true
   195            )
   234            )
   196           (CheckBoxSpec
   235           (CheckBoxSpec
   197              label: 'Validate Package Consistency'
   236              label: 'Validate Package Consistency'
   198              name: 'CheckBox1'
   237              name: 'CheckBox1'
   199              layout: (LayoutFrame 3 0 -193 1 -3 1 -171 1)
   238              layout: (LayoutFrame 3 0 -217 1 -3 1 -195 1)
   200              activeHelpKey: validateConsistency
   239              activeHelpKey: validateConsistency
   201              visibilityChannel: validateConsistencyVisibleHolder
   240              visibilityChannel: validateConsistencyVisibleHolder
   202              enableChannel: validateConsistencyEnabledHolder
   241              enableChannel: validateConsistencyEnabledHolder
   203              model: validateConsistencyHolder
   242              model: validateConsistencyHolder
   204              translateLabel: true
   243              translateLabel: true
   205            )
   244            )
   206           (CheckBoxSpec
   245           (CheckBoxSpec
   207              label: 'Mark as Stable'
   246              label: 'Mark as Stable'
   208              name: 'MarkStableCheckBox'
   247              name: 'MarkStableCheckBox'
   209              layout: (LayoutFrame 3 0 -166 1 -3 1 -144 1)
   248              layout: (LayoutFrame 3 0 -190 1 -3 1 -168 1)
   210              activeHelpKey: markAsStable
   249              activeHelpKey: markAsStable
   211              model: isStableHolder
   250              model: isStableHolder
   212              translateLabel: true
   251              translateLabel: true
   213            )
   252            )
   214           (LabelSpec
   253           (LabelSpec
   215              label: 'Tag:'
   254              label: 'Tag:'
   216              name: 'Label3'
   255              name: 'Label3'
   217              layout: (LayoutFrame -40 0.5 -165 1 0 0.5 -143 1)
   256              layout: (LayoutFrame -40 0.5 -189 1 0 0.5 -167 1)
   218              activeHelpKey: tag
   257              activeHelpKey: tag
   219              translateLabel: true
   258              translateLabel: true
   220              adjust: right
   259              adjust: right
   221            )
   260            )
   222           (ComboBoxSpec
   261           (ComboBoxSpec
   223              name: 'ComboBox1'
   262              name: 'ComboBox1'
   224              layout: (LayoutFrame 0 0.5 -166 1 -3 1 -144 1)
   263              layout: (LayoutFrame 0 0.5 -190 1 -3 1 -168 1)
   225              activeHelpKey: tag
   264              activeHelpKey: tag
   226              enableChannel: notMarkAsStableHolder
   265              enableChannel: notMarkAsStableHolder
   227              model: tagHolder
   266              model: tagHolder
   228              acceptOnReturn: true
   267              acceptOnReturn: true
   229              acceptOnTab: true
   268              acceptOnTab: true
   232              comboList: recentTagsList
   271              comboList: recentTagsList
   233            )
   272            )
   234           (LabelSpec
   273           (LabelSpec
   235              label: 'Reason for Checkin:'
   274              label: 'Reason for Checkin:'
   236              name: 'Label6'
   275              name: 'Label6'
   237              layout: (AlignmentOrigin -126 0.5 -122 1 1 0.5)
   276              layout: (AlignmentOrigin -126 0.5 -146 1 1 0.5)
   238              activeHelpKey: checkinReason
   277              activeHelpKey: checkinReason
   239              translateLabel: true
   278              translateLabel: true
   240              resizeForLabel: true
   279              resizeForLabel: true
   241              adjust: right
   280              adjust: right
   242            )
   281            )
   243           (RadioButtonSpec
   282           (RadioButtonSpec
   244              label: 'Bugfix'
   283              label: 'Bugfix'
   245              name: 'RadioButton1'
   284              name: 'RadioButton1'
   246              layout: (LayoutFrame -123 0.5 -133 1 -126 1 -111 1)
   285              layout: (LayoutFrame -123 0.5 -157 1 -126 1 -135 1)
   247              activeHelpKey: checkinReason
   286              activeHelpKey: checkinReasonBugfix
   248              translateLabel: true
   287              translateLabel: true
   249              model: checkinReasonHolder
   288              model: checkinReasonHolder
   250              isTriggerOnDown: true
   289              isTriggerOnDown: true
   251              select: 'reasonBugfix'
   290              select: 'reasonBugfix'
   252            )
   291            )
   253           (RadioButtonSpec
   292           (RadioButtonSpec
   254              label: 'Feature / Enhancement'
   293              label: 'Feature / Enhancement'
   255              name: 'RadioButton2'
   294              name: 'RadioButton2'
   256              layout: (LayoutFrame -123 0.5 -109 1 -126 1 -87 1)
   295              layout: (LayoutFrame -123 0.5 -133 1 -126 1 -111 1)
   257              activeHelpKey: checkinReason
   296              activeHelpKey: checkinReasonFeature
   258              translateLabel: true
   297              translateLabel: true
   259              model: checkinReasonHolder
   298              model: checkinReasonHolder
   260              isTriggerOnDown: true
   299              isTriggerOnDown: true
   261              select: reasonFeature
   300              select: reasonFeature
   262            )
   301            )
   263           (RadioButtonSpec
   302           (RadioButtonSpec
   264              label: 'Refactoring / Code Cleanup'
   303              label: 'Refactoring / Code Cleanup'
   265              name: 'RadioButton3'
   304              name: 'RadioButton3'
   266              layout: (LayoutFrame -123 0.5 -85 1 -126 1 -63 1)
   305              layout: (LayoutFrame -123 0.5 -109 1 -126 1 -87 1)
   267              activeHelpKey: checkinReason
   306              activeHelpKey: checkinReasonRefactoring
   268              translateLabel: true
   307              translateLabel: true
   269              model: checkinReasonHolder
   308              model: checkinReasonHolder
   270              isTriggerOnDown: true
   309              isTriggerOnDown: true
   271              select: reasonRefactoring
   310              select: reasonRefactoring
       
   311            )
       
   312           (RadioButtonSpec
       
   313              label: 'Documentation / Comment Only'
       
   314              name: 'RadioButton5'
       
   315              layout: (LayoutFrame -123 0.5 -85 1 -126 1 -63 1)
       
   316              activeHelpKey: checkinReasonDocumentation
       
   317              translateLabel: true
       
   318              model: checkinReasonHolder
       
   319              isTriggerOnDown: true
       
   320              select: reasonDocumentation
   272            )
   321            )
   273           (RadioButtonSpec
   322           (RadioButtonSpec
   274              label: 'None of the Above'
   323              label: 'None of the Above'
   275              name: 'RadioButton4'
   324              name: 'RadioButton4'
   276              layout: (LayoutFrame -123 0.5 -61 1 -126 1 -39 1)
   325              layout: (LayoutFrame -123 0.5 -61 1 -126 1 -39 1)
   277              activeHelpKey: checkinReason
   326              activeHelpKey: checkinReasonOther
   278              translateLabel: true
   327              translateLabel: true
   279              model: checkinReasonHolder
   328              model: checkinReasonHolder
   280              isTriggerOnDown: true
   329              isTriggerOnDown: true
   281              select: reasonOther
   330              select: reasonOther
   282            )
   331            )
   294                 (ActionButtonSpec
   343                 (ActionButtonSpec
   295                    label: 'Cancel'
   344                    label: 'Cancel'
   296                    name: 'Button2'
   345                    name: 'Button2'
   297                    translateLabel: true
   346                    translateLabel: true
   298                    model: doCancel
   347                    model: doCancel
   299                    extent: (Point 274 22)
   348                    extent: (Point 277 22)
   300                  )
   349                  )
   301                 (ActionButtonSpec
   350                 (ActionButtonSpec
   302                    label: 'OK'
   351                    label: 'OK'
   303                    name: 'Button1'
   352                    name: 'Button1'
   304                    translateLabel: true
   353                    translateLabel: true
   305                    model: doAccept
   354                    model: doAccept
   306                    extent: (Point 275 22)
   355                    extent: (Point 277 22)
   307                  )
   356                  )
   308                 )
   357                 )
   309               
   358               
   310              )
   359              )
   311              keepSpaceForOSXResizeHandleH: true
   360              keepSpaceForOSXResizeHandleH: true
   422     "
   471     "
   423      self getCheckinInfoFor:'hello' initialAnswer:'bla'
   472      self getCheckinInfoFor:'hello' initialAnswer:'bla'
   424     "
   473     "
   425 
   474 
   426     "Created: / 12-03-2012 / 12:36:26 / cg"
   475     "Created: / 12-03-2012 / 12:36:26 / cg"
   427 !
       
   428 
       
   429 reasonBugfix
       
   430     ^ #reasonBugfix
       
   431 !
       
   432 
       
   433 reasonFeature
       
   434     ^ #reasonFeature
       
   435 !
       
   436 
       
   437 reasonOther
       
   438     ^ #reasonOther
       
   439 !
       
   440 
       
   441 reasonRefactoring
       
   442     ^ #reasonRefactoring
       
   443 ! !
   476 ! !
   444 
   477 
   445 !CheckinInfoDialog methodsFor:'accessing'!
   478 !CheckinInfoDialog methodsFor:'accessing'!
   446 
   479 
   447 allowEmptyLogMessage
   480 allowEmptyLogMessage
   455 
   488 
   456     "Created: / 06-07-2010 / 11:23:31 / cg"
   489     "Created: / 06-07-2010 / 11:23:31 / cg"
   457 !
   490 !
   458 
   491 
   459 checkinReason
   492 checkinReason
   460     "returns one of: #(reasonBugfix reasonFeature reasonRefactoring reasonOther)"
   493     "returns one of: #(reasonBugfix reasonFeature reasonRefactoring reasonDocumentation reasonOther)"
   461 
   494 
   462     ^ self checkinReasonHolder value
   495     ^ self checkinReasonHolder value
   463 !
   496 !
   464 
   497 
   465 checkinReason:aSymbolicReason
   498 checkinReason:aSymbolicReason
   466     self assert:( #(reasonBugfix reasonFeature reasonRefactoring reasonOther) includes:aSymbolicReason).
   499     self assert:( #(reasonBugfix reasonFeature reasonRefactoring reasonDocumentation reasonOther) includes:aSymbolicReason).
   467     self checkinReasonHolder value:aSymbolicReason
   500     self checkinReasonHolder value:aSymbolicReason
   468 !
   501 !
   469 
   502 
   470 description
   503 description
   471     ^ self descriptionHolder value
   504     ^ self descriptionHolder value