Author: ericwa
Date: Sat Nov 12 00:10:15 2011
New Revision: 34160
URL: http://svn.gna.org/viewcvs/gnustep?rev=34160&view=rev
Log:
* Headers/AppKit/NSImageCell.h:
* Headers/AppKit/NSCell.h: Move NSImageScaling constants to NSCell
* Source/NSImageCell.m:
* Source/NSCell.m: Refactor the image scaling logic to a private
method in NSCell, -_scaleImageWithSize:toFitInSize:scalingType:
which can be share by NSImageCell, NSButtonCell, and any other
cell classes that need it.
* Source/NSButtonCell.m:
* Headers/AppKit/NSButtonCell.h: Implement -imageScaling and
-setImageScaling methods.
* Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Remove the
-drawImage:inButtonCell:withFrame:position: API intended
to let themes substitute images right before drawing,
as IMHO it's the wrong place to hook in new images (by
the time this method was caleld, sizing/positionging
was already done).
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Headers/Additions/GNUstepGUI/GSTheme.h
libs/gui/trunk/Headers/AppKit/NSButtonCell.h
libs/gui/trunk/Headers/AppKit/NSCell.h
libs/gui/trunk/Headers/AppKit/NSImageCell.h
libs/gui/trunk/Source/GSThemeDrawing.m
libs/gui/trunk/Source/NSButtonCell.m
libs/gui/trunk/Source/NSCell.m
libs/gui/trunk/Source/NSImageCell.m
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs