mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
For resize, get new fram origin in event location field
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13160 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
85c795331a
commit
6af0d271a6
7 changed files with 42 additions and 25 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2002-03-19 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSWindow.m ([NSWindow -sendEvent:]): In resize event, get
|
||||
new origin from event location field.
|
||||
|
||||
* Source/GSFontInfo.m ([GSFontInfo
|
||||
+encodingForRegistry:encoding:]): Handle big5 encoding (patch from
|
||||
Yen-Ju Chen)
|
||||
|
||||
* Documentation/news.texi: Update.
|
||||
|
||||
Mon Mar 18 16:00:34 2002 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Source/NSTableView.m ([-draggingUpdated:sender]): Make the gui
|
||||
|
|
|
@ -26,20 +26,12 @@ the library can be easily ported to other display systems.
|
|||
|
||||
The GNUstep GUI Library requires the GNU Objective-C compiler, the
|
||||
GNUstep Base Library, the TIFF Graphics library, and a back-end
|
||||
component like the GNUstep X/DPS GUI Backend.
|
||||
component like the GNUstep X/GPS GUI Backend.
|
||||
|
||||
@set ANNOUNCE-ONLY
|
||||
@include news.texi
|
||||
@clear ANNOUNCE-ONLY
|
||||
|
||||
@section How can I get support for this software?
|
||||
|
||||
We currently do not have a mailing list setup explicitly for the
|
||||
GNUstep GUI Library; however, you may wish to use the GNUstep
|
||||
discussion mailing list for general questions and discussion. Look at
|
||||
the GNUstep Web Pages for more information regarding GNUstep resources
|
||||
@url{http://www.gnustep.org/}
|
||||
|
||||
@section Where can you get it? How can you compile it?
|
||||
|
||||
@ifset GNUSTEP-GUI-FTP-MACHINE
|
||||
|
@ -47,12 +39,6 @@ The gstep-gui-@value{GNUSTEP-GUI-VERSION}.tar.gz distribution
|
|||
file has been placed on @samp{@value{GNUSTEP-GUI-FTP-MACHINE}} in
|
||||
@samp{@value{GNUSTEP-GUI-FTP-DIRECTORY}}.
|
||||
@end ifset
|
||||
@ifclear GNUSTEP-GUI-FTP-MACHINE
|
||||
The gstep-gui-@value{GNUSTEP-GUI-VERSION}.tar.gz distribution
|
||||
file has not been made available by anonymous ftp.
|
||||
@end ifclear
|
||||
|
||||
The program requires gcc @value{GNUSTEP-GUI-GCC} or higher.
|
||||
|
||||
the TIFF Graphics library version
|
||||
@value{GNUSTEP-GUI-LIBTIFF} is required.
|
||||
|
|
|
@ -25,6 +25,8 @@ and in the gnustep-make package (which you should install first).
|
|||
You must have installed gnustep-base and gnustep-make
|
||||
before building this library.
|
||||
|
||||
After installing this library, install gnustep-xgps.
|
||||
|
||||
@node Configuration, Compilation, Introduction, Top
|
||||
@section Configuration
|
||||
|
||||
|
|
|
@ -9,6 +9,20 @@
|
|||
The currently released version of the library is @samp{@value{GNUSTEP-GUI-VERSION}}.
|
||||
@end ifclear
|
||||
|
||||
@section Noteworthy changes in version @samp{0.7.6}
|
||||
|
||||
@itemize @bullet
|
||||
@item NSOutlineView implemented.
|
||||
@item Improvements to NSTableView, NSPopUpButton, NSTextView, NSFontPanel
|
||||
@item Scroll wheel support.
|
||||
@item Fully-functional keybindings, including multi-stroke keybindings.
|
||||
@item Memory panel available from Info Panel.
|
||||
@end itemize
|
||||
|
||||
@c ====================================================================
|
||||
@c Keep the next line just below the list of changes in most recent version.
|
||||
@ifclear ANNOUNCE-ONLY
|
||||
|
||||
@section Noteworthy changes in version @samp{0.7.5}
|
||||
|
||||
@itemize @bullet
|
||||
|
@ -28,10 +42,6 @@ The currently released version of the library is @samp{@value{GNUSTEP-GUI-VERSIO
|
|||
@item Gmodel code compiled as a separate bundle.
|
||||
@end itemize
|
||||
|
||||
@c ====================================================================
|
||||
@c Keep the next line just below the list of changes in most recent version.
|
||||
@ifclear ANNOUNCE-ONLY
|
||||
|
||||
@section Noteworthy changes in version @samp{0.7.0}
|
||||
|
||||
@itemize @bullet
|
||||
|
|
|
@ -31,7 +31,7 @@ to such a degree to be unusable.
|
|||
@item NSHelpPanel, NSHelpManager
|
||||
@end itemize
|
||||
|
||||
Classses that need work (well every class needs work!)
|
||||
Classes that need work (well every class needs work!)
|
||||
|
||||
@itemize @bullet
|
||||
@item NSComboBox, NSComboBoxCell
|
||||
|
|
|
@ -248,6 +248,11 @@ static GSFontEnumerator *sharedEnumerator = nil;
|
|||
if ([encoding isEqualToString: @"0"])
|
||||
return NSGB2312StringEncoding;
|
||||
}
|
||||
else if ([registry isEqualToString: @"big5"])
|
||||
{
|
||||
if ([encoding isEqualToString: @"0"])
|
||||
return NSBIG5StringEncoding;
|
||||
}
|
||||
|
||||
return NSASCIIStringEncoding;
|
||||
}
|
||||
|
|
|
@ -732,8 +732,6 @@ static NSNotificationCenter *nc = nil;
|
|||
backing: (NSBackingStoreType)bufferingType
|
||||
defer: (BOOL)flag
|
||||
{
|
||||
NSDebugLog(@"NSWindow -initWithContentRect: \n");
|
||||
|
||||
return [self initWithContentRect: contentRect
|
||||
styleMask: aStyle
|
||||
backing: bufferingType
|
||||
|
@ -771,11 +769,10 @@ static NSNotificationCenter *nc = nil;
|
|||
{
|
||||
NSRect cframe;
|
||||
|
||||
NSDebugLog(@"NSWindow default initializer\n");
|
||||
if (!NSApp)
|
||||
NSLog(@"No application!\n");
|
||||
|
||||
NSDebugLog(@"NSWindow start of init\n");
|
||||
NSDebugLLog(@"NSWindow", @"NSWindow start of init\n");
|
||||
if (!windowmaps)
|
||||
windowmaps = NSCreateMapTable(NSIntMapKeyCallBacks,
|
||||
NSNonRetainedObjectMapValueCallBacks, 20);
|
||||
|
@ -824,7 +821,7 @@ static NSNotificationCenter *nc = nil;
|
|||
else
|
||||
NSDebugLLog(@"NSWindow", @"Defering NSWindow creation\n");
|
||||
|
||||
NSDebugLog(@"NSWindow end of init\n");
|
||||
NSDebugLLog(@"NSWindow", @"NSWindow end of init\n");
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -2642,6 +2639,9 @@ resetCursorRectsForView(NSView *theView)
|
|||
// Quietly discard an unused mouse down.
|
||||
}
|
||||
|
||||
/** Handles mouse and other events sent to the received by NSApplication.
|
||||
Do not invoke this method directly.
|
||||
*/
|
||||
- (void) sendEvent: (NSEvent*)theEvent
|
||||
{
|
||||
NSView *v;
|
||||
|
@ -2840,6 +2840,9 @@ resetCursorRectsForView(NSView *theView)
|
|||
case GSAppKitWindowResized:
|
||||
_frame.size.width = (float)[theEvent data1];
|
||||
_frame.size.height = (float)[theEvent data2];
|
||||
/* Resize events always move the frame origin. The new origin
|
||||
is stored in the event location field */
|
||||
_frame.origin = [theEvent locationInWindow];
|
||||
if (_autosaveName != nil)
|
||||
{
|
||||
[self saveFrameUsingName: _autosaveName];
|
||||
|
|
Loading…
Reference in a new issue