mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 08:00:58 +00:00
Moved the method [NSApplication orderFrontDataLinkPanel:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba63a0123b
commit
c996f959e8
2 changed files with 20 additions and 0 deletions
|
@ -29,12 +29,17 @@
|
||||||
#ifndef _GNUstep_H_NSDataLinkPanel
|
#ifndef _GNUstep_H_NSDataLinkPanel
|
||||||
#define _GNUstep_H_NSDataLinkPanel
|
#define _GNUstep_H_NSDataLinkPanel
|
||||||
|
|
||||||
|
#include <AppKit/NSApplication.h>
|
||||||
#include <AppKit/NSPanel.h>
|
#include <AppKit/NSPanel.h>
|
||||||
|
|
||||||
@class NSDataLink;
|
@class NSDataLink;
|
||||||
@class NSDataLinkManager;
|
@class NSDataLinkManager;
|
||||||
@class NSView;
|
@class NSView;
|
||||||
|
|
||||||
|
@interface NSApplication (NSDataLinkPanel)
|
||||||
|
- (void) orderFrontDataLinkPanel: (id)sender;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NSDataLinkPanel : NSPanel <NSCoding>
|
@interface NSDataLinkPanel : NSPanel <NSCoding>
|
||||||
{
|
{
|
||||||
// Attributes
|
// Attributes
|
||||||
|
|
|
@ -26,6 +26,21 @@
|
||||||
#include <gnustep/gui/config.h>
|
#include <gnustep/gui/config.h>
|
||||||
#include <AppKit/NSDataLinkPanel.h>
|
#include <AppKit/NSDataLinkPanel.h>
|
||||||
|
|
||||||
|
|
||||||
|
@implementation NSApplication (NSDataLinkPanel)
|
||||||
|
|
||||||
|
- (void) orderFrontDataLinkPanel: sender
|
||||||
|
{
|
||||||
|
NSDataLinkPanel *dataLinkPanel = [NSDataLinkPanel sharedDataLinkPanel];
|
||||||
|
|
||||||
|
if (dataLinkPanel)
|
||||||
|
[dataLinkPanel orderFront: nil];
|
||||||
|
else
|
||||||
|
NSBeep();
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation NSDataLinkPanel
|
@implementation NSDataLinkPanel
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue