* NSView.h added specific values and comments to resize constants enum.

* NSView.m implemented resizeWithOldSuperviewSize (needs work).
	* NSMatrix.m mousedown clarified description comment.
	* NSSavePanel.m integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSSavePanel.h integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSOpenPanel.m integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSOpenPanel.h integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSStringDrawing.h defined NSAttributedString portion of extension.
	* NSAttributedString.h created preliminary implementation of extension.
	* Appkit.h added includes for NSAttributedString and NSStringDrawing.
	* NSPasteboard.h added extern NSRTFDPboardType define.
	* externs.m defined NSRTFDPboardType.
	* NSText.h integrated source from Daniel B�hringer
	* NSTextView.m preliminary implementation from Daniel B�hringer
	* NSTextView.h preliminary implementation from Daniel B�hringer
	* NSSplitView.m in drawRect use NSRectFill()


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2934 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Felipe A. Rodriguez 1998-08-19 09:00:26 +00:00
parent 80825f3b17
commit fd64d9ffb9
18 changed files with 606 additions and 297 deletions

View file

@ -7,10 +7,11 @@
Author: Scott Christley <scottc@net-community.com>
Date: 1996
Heavily changed and extended by Ovidiu Predescu <ovidiu@net-community.com>.
Date: 1997
Author: Felipe A. Rodriguez <far@ix.netcom.com>
Date: August 1998
This file is part of the GNUstep GUI Library.
This library is free software; you can redistribute it and/or
@ -161,6 +162,7 @@ static NSRecursiveLock *gnustep_gui_nsview_lock = nil;
needs_display = YES;
post_frame_changes = NO;
autoresize_subviews = YES;
autoresizingMask = NSViewNotSizable;
return self;
}
@ -710,7 +712,28 @@ static NSRecursiveLock *gnustep_gui_nsview_lock = nil;
}
- (void)resizeWithOldSuperviewSize:(NSSize)oldSize
{}
{ // preliminary implementation FIX ME
if(autoresizingMask == NSViewNotSizable) // view is not resizable
return;
if(autoresizingMask & NSViewWidthSizable) // width resizable?
{
frame.size.width = [super_view frame].size.width;
}
else // width is not resizable, so check
{ // if left margin can be stretched
if(autoresizingMask & NSViewMinXMargin)
frame.origin.x += [super_view frame].size.width - oldSize.width;
}
if(autoresizingMask & NSViewHeightSizable) // height resizable?
{
frame.size.height = [super_view frame].size.height;
}
else // height is not resizable so check
{ // if right margin can be stretched
if(autoresizingMask & NSViewMinYMargin)
frame.origin.y += [super_view frame].size.height - oldSize.height;
}
}
- (void)allocateGState
{}