Minor bugfixes for NSView stuff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4883 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-09-13 06:51:23 +00:00
parent 3512fef231
commit af23dcaaff
3 changed files with 26 additions and 10 deletions

View file

@ -1,3 +1,13 @@
iMon Sep 13 1999 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSImageView.m ([-setImage:]): Added update of the cell.
([-setImageAlignment:]): idem.
([-setImageScaling:]): idem.
([-setImageFrameStyle:]): idem.
* Source/NSView.m ([-encodeWithCoder:]): added encoding of the
autoresizingMask ([-initWithCoder:]): added decoding of the same
variable.
Sun Sep 12 1999 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSView.m ([-resizeWithOldSuperviewSize:]): Fixed

View file

@ -59,52 +59,56 @@
- (void) setImage: (NSImage *)image
{
[[self cell] setImage: image];
[cell setImage: image];
[self updateCell: cell];
}
- (void) setImageAlignment: (NSImageAlignment)align
{
[[self cell] setImageAlignment: align];
[cell setImageAlignment: align];
[self updateCell: cell];
}
- (void) setImageScaling: (NSImageScaling)scaling
{
[[self cell] setImageScaling: scaling];
[cell setImageScaling: scaling];
[self updateCell: cell];
}
- (void) setImageFrameStyle: (NSImageFrameStyle)style
{
[[self cell] setImageFrameStyle: style];
[cell setImageFrameStyle: style];
[self updateCell: cell];
}
- (void) setEditable: (BOOL)flag
{
[[self cell] setEditable: flag];
[cell setEditable: flag];
}
- (NSImage *) image
{
return [[self cell] image];
return [cell image];
}
- (NSImageAlignment) imageAlignment
{
return [[self cell] imageAlignment];
return [cell imageAlignment];
}
- (NSImageScaling) imageScaling
{
return [[self cell] imageScaling];
return [cell imageScaling];
}
- (NSImageFrameStyle) imageFrameStyle
{
return [[self cell] imageFrameStyle];
return [cell imageFrameStyle];
}
- (BOOL) isEditable
{
return [[self cell] isEditable];
return [cell isEditable];
}
@end

View file

@ -2254,6 +2254,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &disable_autodisplay];
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &post_frame_changes];
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &autoresize_subviews];
[aCoder encodeValueOfObjCType: @encode(unsigned int) at: &autoresizingMask];
NSDebugLLog(@"NSView", @"NSView: finish encoding\n");
}
@ -2275,6 +2276,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &disable_autodisplay];
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &post_frame_changes];
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &autoresize_subviews];
[aDecoder decodeValueOfObjCType: @encode(unsigned int) at: &autoresizingMask];
NSDebugLLog(@"NSView", @"NSView: finish decoding\n");
frameMatrix = [NSAffineTransform new];