mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:50:48 +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
84c9e9edc0
commit
c2cf81db12
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>
|
Tue Jul 6 16:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* NSMenuView.m: In ([-trackWithEvent:]) fixed indexing bug when mouse
|
* Source/NSMenuView.m: In ([-trackWithEvent:]) fixed indexing bug
|
||||||
dragged off bottom of menu and released, also reformatted to GNU
|
when mouse dragged off bottom of menu and released, also
|
||||||
coding style. Added copyright notice.
|
reformatted to GNU coding style. Added copyright notice.
|
||||||
* NSMenu.m: Added copyright notice.
|
* Source/NSMenu.m: Added copyright notice.
|
||||||
* NSMenuItemCell.m: Added copyright notice.
|
* Source/NSMenuItemCell.m: Added copyright notice.
|
||||||
|
|
||||||
Tue Jul 6 14:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Tue Jul 6 14:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,9 @@ NSGraphicsContext *GSCurrentContext();
|
||||||
* Misc window management support.
|
* Misc window management support.
|
||||||
*/
|
*/
|
||||||
- (BOOL) _setFrame: (NSRect)frameRect forWindow: (int)winNum;
|
- (BOOL) _setFrame: (NSRect)frameRect forWindow: (int)winNum;
|
||||||
|
- (void) _orderWindow: (NSWindowOrderingMode)place
|
||||||
|
relativeTo: (int)otherWin
|
||||||
|
forWindow: (int)winNum;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -332,6 +332,13 @@ NSGraphicsContext *GSCurrentContext()
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) _orderWindow: (NSWindowOrderingMode)place
|
||||||
|
relativeTo: (int)otherWin
|
||||||
|
forWindow: (int)winNum
|
||||||
|
{
|
||||||
|
[self subclassResponsibility: _cmd];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSGraphicsContext (Private)
|
@implementation NSGraphicsContext (Private)
|
||||||
|
|
|
@ -550,19 +550,33 @@ static NSRecursiveLock *windowsLock;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) orderBack: (id)sender
|
- (void) orderBack: (id)sender
|
||||||
{} // implemented in back end
|
{
|
||||||
|
[self orderWindow: NSWindowBelow relativeTo: 0];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) orderFront: (id)sender
|
- (void) orderFront: (id)sender
|
||||||
{}
|
{
|
||||||
|
if ([NSApp isActive] == YES)
|
||||||
|
{
|
||||||
|
[self orderWindow: NSWindowAbove relativeTo: 0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void) orderFrontRegardless
|
- (void) orderFrontRegardless
|
||||||
{}
|
{
|
||||||
|
[self orderWindow: NSWindowAbove relativeTo: 0];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) orderOut: (id)sender
|
- (void) orderOut: (id)sender
|
||||||
{}
|
{
|
||||||
|
[self orderWindow: NSWindowOut relativeTo: 0];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
|
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
|
||||||
{
|
{
|
||||||
|
[GSCurrentContext() _orderWindow: place
|
||||||
|
relativeTo: otherWin
|
||||||
|
forWindow: [self windowNumber]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) resignKeyWindow
|
- (void) resignKeyWindow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue