ImageEditor.st
changeset 3811 1c02ea1990b5
parent 3765 4443157a398a
child 3830 bf667c58b12e
equal deleted inserted replaced
3810:d4f7c137ffc4 3811:1c02ea1990b5
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "
     3 "
     2  COPYRIGHT (c) 1997-1998 by eXept Software AG
     4  COPYRIGHT (c) 1997-1998 by 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
  5839     resourceClass notNil ifTrue:[
  5841     resourceClass notNil ifTrue:[
  5840         resourceSelector := imageEditView resourceSelector.
  5842         resourceSelector := imageEditView resourceSelector.
  5841         resourceSelector notNil ifTrue:[
  5843         resourceSelector notNil ifTrue:[
  5842             ^ resources 
  5844             ^ resources 
  5843                     string:(self modified 
  5845                     string:(self modified 
  5844                             ifTrue:['ImageEditor (modified): %1 » %2']
  5846                             ifTrue:['ImageEditor (modified): %1 » %2']
  5845                             ifFalse:['ImageEditor: %1 » %2'])
  5847                             ifFalse:['ImageEditor: %1 » %2'])
  5846                     with:resourceClass name
  5848                     with:resourceClass name
  5847                     with:resourceSelector
  5849                     with:resourceSelector
  5848         ].
  5850         ].
  5849     ].
  5851     ].
  5850     
  5852     
  5873     resourceClass notNil ifTrue:[
  5875     resourceClass notNil ifTrue:[
  5874         resourceSelector := imageEditView resourceSelector.
  5876         resourceSelector := imageEditView resourceSelector.
  5875         resourceSelector notNil ifTrue:[
  5877         resourceSelector notNil ifTrue:[
  5876             ^ resources 
  5878             ^ resources 
  5877                     string:(self modified 
  5879                     string:(self modified 
  5878                             ifTrue:['Image (modified) from: %1 » %2']
  5880                             ifTrue:['Image (modified) from: %1 » %2']
  5879                             ifFalse:['Image from: %1 » %2'])
  5881                             ifFalse:['Image from: %1 » %2'])
  5880                     with:resourceClass name
  5882                     with:resourceClass name
  5881                     with:resourceSelector
  5883                     with:resourceSelector
  5882         ].
  5884         ].
  5883     ].
  5885     ].
  5884     
  5886     
  5896     "Modified: / 29-08-2017 / 19:47:25 / cg"
  5898     "Modified: / 29-08-2017 / 19:47:25 / cg"
  5897 !
  5899 !
  5898 
  5900 
  5899 openDocumentation
  5901 openDocumentation
  5900     "opens the documentation file of the Image Editor"
  5902     "opens the documentation file of the Image Editor"
       
  5903     "Called when <F1> is pressed"
  5901 
  5904 
  5902     self openHTMLDocument: 'tools/uipainter/ImageEditor.html'
  5905     self openHTMLDocument: 'tools/uipainter/ImageEditor.html'
  5903 
       
  5904 ! !
  5906 ! !
  5905 
  5907 
  5906 !ImageEditor methodsFor:'loading'!
  5908 !ImageEditor methodsFor:'loading'!
  5907 
  5909 
  5908 loadFromClass:aClass andSelector:aSelector
  5910 loadFromClass:aClass andSelector:aSelector