mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:10:47 +00:00
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:
parent
8878d77f92
commit
f55436adab
3 changed files with 26 additions and 10 deletions
10
ChangeLog
10
ChangeLog
|
@ -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>
|
Sun Sep 12 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Source/NSView.m ([-resizeWithOldSuperviewSize:]): Fixed
|
* Source/NSView.m ([-resizeWithOldSuperviewSize:]): Fixed
|
||||||
|
|
|
@ -59,52 +59,56 @@
|
||||||
|
|
||||||
- (void) setImage: (NSImage *)image
|
- (void) setImage: (NSImage *)image
|
||||||
{
|
{
|
||||||
[[self cell] setImage: image];
|
[cell setImage: image];
|
||||||
|
[self updateCell: cell];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setImageAlignment: (NSImageAlignment)align
|
- (void) setImageAlignment: (NSImageAlignment)align
|
||||||
{
|
{
|
||||||
[[self cell] setImageAlignment: align];
|
[cell setImageAlignment: align];
|
||||||
|
[self updateCell: cell];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setImageScaling: (NSImageScaling)scaling
|
- (void) setImageScaling: (NSImageScaling)scaling
|
||||||
{
|
{
|
||||||
[[self cell] setImageScaling: scaling];
|
[cell setImageScaling: scaling];
|
||||||
|
[self updateCell: cell];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setImageFrameStyle: (NSImageFrameStyle)style
|
- (void) setImageFrameStyle: (NSImageFrameStyle)style
|
||||||
{
|
{
|
||||||
[[self cell] setImageFrameStyle: style];
|
[cell setImageFrameStyle: style];
|
||||||
|
[self updateCell: cell];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setEditable: (BOOL)flag
|
- (void) setEditable: (BOOL)flag
|
||||||
{
|
{
|
||||||
[[self cell] setEditable: flag];
|
[cell setEditable: flag];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSImage *) image
|
- (NSImage *) image
|
||||||
{
|
{
|
||||||
return [[self cell] image];
|
return [cell image];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSImageAlignment) imageAlignment
|
- (NSImageAlignment) imageAlignment
|
||||||
{
|
{
|
||||||
return [[self cell] imageAlignment];
|
return [cell imageAlignment];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSImageScaling) imageScaling
|
- (NSImageScaling) imageScaling
|
||||||
{
|
{
|
||||||
return [[self cell] imageScaling];
|
return [cell imageScaling];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSImageFrameStyle) imageFrameStyle
|
- (NSImageFrameStyle) imageFrameStyle
|
||||||
{
|
{
|
||||||
return [[self cell] imageFrameStyle];
|
return [cell imageFrameStyle];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isEditable
|
- (BOOL) isEditable
|
||||||
{
|
{
|
||||||
return [[self cell] isEditable];
|
return [cell isEditable];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -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: &disable_autodisplay];
|
||||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &post_frame_changes];
|
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &post_frame_changes];
|
||||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &autoresize_subviews];
|
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &autoresize_subviews];
|
||||||
|
[aCoder encodeValueOfObjCType: @encode(unsigned int) at: &autoresizingMask];
|
||||||
NSDebugLLog(@"NSView", @"NSView: finish encoding\n");
|
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: &disable_autodisplay];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &post_frame_changes];
|
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &post_frame_changes];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &autoresize_subviews];
|
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &autoresize_subviews];
|
||||||
|
[aDecoder decodeValueOfObjCType: @encode(unsigned int) at: &autoresizingMask];
|
||||||
NSDebugLLog(@"NSView", @"NSView: finish decoding\n");
|
NSDebugLLog(@"NSView", @"NSView: finish decoding\n");
|
||||||
|
|
||||||
frameMatrix = [NSAffineTransform new];
|
frameMatrix = [NSAffineTransform new];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue