mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
iAdded window ordering code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4533 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
502a5b1642
commit
26ac1fdc3b
4 changed files with 42 additions and 9 deletions
19
ChangeLog
19
ChangeLog
|
@ -1,10 +1,19 @@
|
|||
Tue Jul 6 19:30:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Headers/AppKit/NSGraphicsContext.h: Added new method to perform
|
||||
window ordering.
|
||||
* Source/NSGraphicsContext.m: Dummy implementation of
|
||||
(_orderWindow:relativeTo:forWindow:])
|
||||
* Source/NSWindow.m: Use new method to implement all window
|
||||
ordering methods.
|
||||
|
||||
Tue Jul 6 16:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* NSMenuView.m: In ([-trackWithEvent:]) fixed indexing bug when mouse
|
||||
dragged off bottom of menu and released, also reformatted to GNU
|
||||
coding style. Added copyright notice.
|
||||
* NSMenu.m: Added copyright notice.
|
||||
* NSMenuItemCell.m: Added copyright notice.
|
||||
* Source/NSMenuView.m: In ([-trackWithEvent:]) fixed indexing bug
|
||||
when mouse dragged off bottom of menu and released, also
|
||||
reformatted to GNU coding style. Added copyright notice.
|
||||
* Source/NSMenu.m: Added copyright notice.
|
||||
* Source/NSMenuItemCell.m: Added copyright notice.
|
||||
|
||||
Tue Jul 6 14:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -143,6 +143,9 @@ NSGraphicsContext *GSCurrentContext();
|
|||
* Misc window management support.
|
||||
*/
|
||||
- (BOOL) _setFrame: (NSRect)frameRect forWindow: (int)winNum;
|
||||
- (void) _orderWindow: (NSWindowOrderingMode)place
|
||||
relativeTo: (int)otherWin
|
||||
forWindow: (int)winNum;
|
||||
|
||||
@end
|
||||
#endif
|
||||
|
|
|
@ -332,6 +332,13 @@ NSGraphicsContext *GSCurrentContext()
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (void) _orderWindow: (NSWindowOrderingMode)place
|
||||
relativeTo: (int)otherWin
|
||||
forWindow: (int)winNum
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSGraphicsContext (Private)
|
||||
|
|
|
@ -550,19 +550,33 @@ static NSRecursiveLock *windowsLock;
|
|||
}
|
||||
|
||||
- (void) orderBack: (id)sender
|
||||
{} // implemented in back end
|
||||
{
|
||||
[self orderWindow: NSWindowBelow relativeTo: 0];
|
||||
}
|
||||
|
||||
- (void) orderFront: (id)sender
|
||||
{}
|
||||
{
|
||||
if ([NSApp isActive] == YES)
|
||||
{
|
||||
[self orderWindow: NSWindowAbove relativeTo: 0];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) orderFrontRegardless
|
||||
{}
|
||||
{
|
||||
[self orderWindow: NSWindowAbove relativeTo: 0];
|
||||
}
|
||||
|
||||
- (void) orderOut: (id)sender
|
||||
{}
|
||||
{
|
||||
[self orderWindow: NSWindowOut relativeTo: 0];
|
||||
}
|
||||
|
||||
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
|
||||
{
|
||||
[GSCurrentContext() _orderWindow: place
|
||||
relativeTo: otherWin
|
||||
forWindow: [self windowNumber]];
|
||||
}
|
||||
|
||||
- (void) resignKeyWindow
|
||||
|
|
Loading…
Reference in a new issue