Tools__InlineMessageDialog.st
branchjv
changeset 12405 76f9a872362b
parent 12322 6ca193e20c8e
parent 11518 0ff0a7132e35
child 12406 1fbd331e4489
equal deleted inserted replaced
12388:3efd83b86c07 12405:76f9a872362b
   104     ... executable example here ...
   104     ... executable example here ...
   105                                                                 [exEnd]
   105                                                                 [exEnd]
   106 "
   106 "
   107 ! !
   107 ! !
   108 
   108 
       
   109 
   109 !InlineMessageDialog class methodsFor:'accessing-colors'!
   110 !InlineMessageDialog class methodsFor:'accessing-colors'!
   110 
   111 
   111 defaultInformationBackground
   112 defaultInformationBackground
   112 
   113 
   113     ^(Color red:100.0 green:78.0392156862745 blue:22.7450980392157)
   114     ^(Color red:100.0 green:78.0392156862745 blue:22.7450980392157)
   119 
   120 
   120     ^(Color red:76.078431372549 green:43.1372549019608 blue:43.1372549019608)
   121     ^(Color red:76.078431372549 green:43.1372549019608 blue:43.1372549019608)
   121 
   122 
   122     "Created: / 10-04-2012 / 19:30:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   123     "Created: / 10-04-2012 / 19:30:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   123 ! !
   124 ! !
       
   125 
   124 
   126 
   125 !InlineMessageDialog class methodsFor:'interface specs'!
   127 !InlineMessageDialog class methodsFor:'interface specs'!
   126 
   128 
   127 messageInfoSpec
   129 messageInfoSpec
   128     "This resource specification was automatically generated
   130     "This resource specification was automatically generated
   313          
   315          
   314         )
   316         )
   315       )
   317       )
   316 ! !
   318 ! !
   317 
   319 
       
   320 
   318 !InlineMessageDialog class methodsFor:'others'!
   321 !InlineMessageDialog class methodsFor:'others'!
   319 
   322 
   320 version_CVS
   323 version_CVS
   321     ^ '§Header: /cvs/stx/stx/libtool/Tools__InlineMessageDialog.st,v 1.7 2012/05/17 15:31:22 vrany Exp §'
   324     ^ '$Header: /cvs/stx/stx/libtool/Tools__InlineMessageDialog.st,v 1.7 2012-05-17 15:31:22 vrany Exp $'
   322 ! !
   325 ! !
       
   326 
   323 
   327 
   324 !InlineMessageDialog methodsFor:'accessing'!
   328 !InlineMessageDialog methodsFor:'accessing'!
   325 
   329 
   326 backgroundColor: aColor
   330 backgroundColor: aColor
   327     "Sets the background color, but only iff backgroundColorHolder is
   331     "Sets the background color, but only iff backgroundColorHolder is
   356     ]
   360     ]
   357 
   361 
   358     "Created: / 28-10-2010 / 18:24:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   362     "Created: / 28-10-2010 / 18:24:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   359 ! !
   363 ! !
   360 
   364 
       
   365 
   361 !InlineMessageDialog methodsFor:'accessing-presentation'!
   366 !InlineMessageDialog methodsFor:'accessing-presentation'!
   362 
   367 
   363 changeLayoutUponShowHide: aBoolean
   368 changeLayoutUponShowHide: aBoolean
   364     "If set to false, no changes to compokent layout is done
   369     "If set to false, no changes to compokent layout is done
   365      when panel is shown/hidden. This effectively means, that
   370      when panel is shown/hidden. This effectively means, that
   369 
   374 
   370      changeLayoutUponShowHide := aBoolean
   375      changeLayoutUponShowHide := aBoolean
   371 
   376 
   372     "Modified (comment): / 17-05-2012 / 13:56:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   377     "Modified (comment): / 17-05-2012 / 13:56:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   373 ! !
   378 ! !
       
   379 
   374 
   380 
   375 !InlineMessageDialog methodsFor:'actions'!
   381 !InlineMessageDialog methodsFor:'actions'!
   376 
   382 
   377 doAbort
   383 doAbort
   378 
   384 
   405 
   411 
   406 doOK
   412 doOK
   407     <resource: #uiCallback>
   413     <resource: #uiCallback>
   408 
   414 
   409     (worker notNil and:[worker isDead not]) ifTrue:[
   415     (worker notNil and:[worker isDead not]) ifTrue:[
       
   416         worker := nil.
       
   417         worker terminate.
   410         "/ raise its prio to make it terminate quickly
   418         "/ raise its prio to make it terminate quickly
   411         worker priority:(Processor userSchedulingPriority + 1).
   419         worker priority:(Processor userSchedulingPriority + 1)
   412         worker terminate.
       
   413         worker := nil.
       
   414     ].
   420     ].
   415     self hide.
   421     self hide.
   416 
   422 
   417     "Modified: / 27-07-2012 / 15:42:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   423     "Modified: / 11-04-2012 / 13:18:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   418 ! !
   424 ! !
       
   425 
   419 
   426 
   420 !InlineMessageDialog methodsFor:'adding & removing components'!
   427 !InlineMessageDialog methodsFor:'adding & removing components'!
   421 
   428 
   422 addButton: aButton
   429 addButton: aButton
   423     | layoutView |
   430     | layoutView |
   516     ].
   523     ].
   517 
   524 
   518     "Created: / 11-04-2012 / 00:51:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   525     "Created: / 11-04-2012 / 00:51:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   519 ! !
   526 ! !
   520 
   527 
       
   528 
   521 !InlineMessageDialog methodsFor:'aspects'!
   529 !InlineMessageDialog methodsFor:'aspects'!
   522 
   530 
   523 backgroundColorHolder
   531 backgroundColorHolder
   524     "return/create the 'backgroundColorHolder' value holder (automatically generated)"
   532     "return/create the 'backgroundColorHolder' value holder (automatically generated)"
   525 
   533 
   627     ^ specHolder
   635     ^ specHolder
   628 
   636 
   629     "Modified: / 28-10-2010 / 18:29:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   637     "Modified: / 28-10-2010 / 18:29:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   630 ! !
   638 ! !
   631 
   639 
       
   640 
   632 !InlineMessageDialog methodsFor:'change & update'!
   641 !InlineMessageDialog methodsFor:'change & update'!
   633 
   642 
   634 update:aspect with:parameter from:changedObject
   643 update:aspect with:parameter from:changedObject
   635     "Invoked when an object that I depend upon sends a change notification."
   644     "Invoked when an object that I depend upon sends a change notification."
   636 
   645 
   640     ].
   649     ].
   641     super update:aspect with:parameter from:changedObject
   650     super update:aspect with:parameter from:changedObject
   642 
   651 
   643     "Modified: / 10-04-2012 / 19:36:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   652     "Modified: / 10-04-2012 / 19:36:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   644 ! !
   653 ! !
       
   654 
   645 
   655 
   646 !InlineMessageDialog methodsFor:'hooks'!
   656 !InlineMessageDialog methodsFor:'hooks'!
   647 
   657 
   648 commonPostBuild
   658 commonPostBuild
   649     panelViewComponents notEmptyOrNil ifTrue:[
   659     panelViewComponents notEmptyOrNil ifTrue:[
   669     progressView := aProgressIndicator
   679     progressView := aProgressIndicator
   670 
   680 
   671     "Created: / 10-02-2012 / 10:42:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   681     "Created: / 10-02-2012 / 10:42:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   672 ! !
   682 ! !
   673 
   683 
       
   684 
   674 !InlineMessageDialog methodsFor:'private'!
   685 !InlineMessageDialog methodsFor:'private'!
   675 
   686 
   676 getMyView
   687 getMyView
   677 
   688 
   678     | v |
   689     | v |
   766     spec == #progressInfoSpec ifTrue:[ self beProgress ].
   777     spec == #progressInfoSpec ifTrue:[ self beProgress ].
   767     self show.
   778     self show.
   768 
   779 
   769     "Created: / 29-10-2010 / 11:48:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   780     "Created: / 29-10-2010 / 11:48:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   770 ! !
   781 ! !
       
   782 
   771 
   783 
   772 !InlineMessageDialog methodsFor:'utilities'!
   784 !InlineMessageDialog methodsFor:'utilities'!
   773 
   785 
   774 reset
   786 reset
   775     "Resets the dialog to initial state, removes all
   787     "Resets the dialog to initial state, removes all
   861     worker resume.
   873     worker resume.
   862 
   874 
   863     "Created: / 11-04-2012 / 13:38:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   875     "Created: / 11-04-2012 / 13:38:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   864 ! !
   876 ! !
   865 
   877 
       
   878 
   866 !InlineMessageDialog methodsFor:'utilities-obsolete'!
   879 !InlineMessageDialog methodsFor:'utilities-obsolete'!
   867 
   880 
   868 information: message 
   881 information: message 
   869 
   882 
   870     self information: message timeout: nil
   883     self information: message timeout: nil
   929     self show
   942     self show
   930 
   943 
   931     "Created: / 13-02-2012 / 16:59:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   944     "Created: / 13-02-2012 / 16:59:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   932 ! !
   945 ! !
   933 
   946 
       
   947 
   934 !InlineMessageDialog class methodsFor:'documentation'!
   948 !InlineMessageDialog class methodsFor:'documentation'!
   935 
   949 
   936 version
   950 version
   937     ^ '$Id: Tools__InlineMessageDialog.st 8091 2013-01-18 00:03:03Z vranyj1 $'
   951     ^ '$Header: /cvs/stx/stx/libtool/Tools__InlineMessageDialog.st,v 1.7 2012-05-17 15:31:22 vrany Exp $'
   938 !
   952 !
   939 
   953 
   940 version_SVN
   954 version_SVN
   941     ^ '$Id: Tools__InlineMessageDialog.st 8091 2013-01-18 00:03:03Z vranyj1 $'
   955     ^ '§Id: Tools__InlineMessageDialog.st 7976 2012-04-11 16:14:22Z vranyj1 §'
   942 ! !
   956 ! !
       
   957