mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:01:22 +00:00
Removed methods that belong to other files. Added types and method
definitions for MacOSX. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14405 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4f17c96dc2
commit
08a0b57a5e
1 changed files with 50 additions and 10 deletions
|
@ -58,6 +58,23 @@ enum {
|
||||||
NSRunContinuesResponse
|
NSRunContinuesResponse
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
#define NSUpdateWindowsRunLoopOrdering 600000
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
NSTerminateCancel = NO,
|
||||||
|
NSTerminateNow = YES,
|
||||||
|
NSTerminateLater
|
||||||
|
} NSApplicationTerminateReply;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
NSCriticalRequest,
|
||||||
|
NSInformationalRequest
|
||||||
|
} NSRequestUserAttentionType;
|
||||||
|
|
||||||
|
#define NSAppKitVersionNumber10_0 0
|
||||||
|
#endif
|
||||||
|
|
||||||
APPKIT_EXPORT NSString *NSModalPanelRunLoopMode;
|
APPKIT_EXPORT NSString *NSModalPanelRunLoopMode;
|
||||||
APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
|
|
||||||
|
@ -72,7 +89,7 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
id _listener;
|
id _listener;
|
||||||
NSMenu *_main_menu;
|
NSMenu *_main_menu;
|
||||||
NSMenu *_windows_menu;
|
NSMenu *_windows_menu;
|
||||||
// 8 bits
|
// 5 bits
|
||||||
BOOL _app_is_running;
|
BOOL _app_is_running;
|
||||||
BOOL _app_is_active;
|
BOOL _app_is_active;
|
||||||
BOOL _app_is_hidden;
|
BOOL _app_is_hidden;
|
||||||
|
@ -97,7 +114,9 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STRICT_OPENSTEP
|
#ifndef STRICT_OPENSTEP
|
||||||
+ (void)detachDrawingThread:(SEL)selector toTarget:(id)target withObject:(id)argument;
|
+ (void) detachDrawingThread: (SEL)selector
|
||||||
|
toTarget: (id)target
|
||||||
|
withObject: (id)argument;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -212,21 +231,20 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
/*
|
/*
|
||||||
* Showing Standard Panels
|
* Showing Standard Panels
|
||||||
*/
|
*/
|
||||||
- (void) orderFrontColorPanel: (id)sender;
|
#ifndef NO_GNUSTEP
|
||||||
- (void) orderFrontDataLinkPanel: (id)sender;
|
|
||||||
- (void) orderFrontHelpPanel: (id)sender;
|
|
||||||
- (void) runPageLayout: (id)sender;
|
|
||||||
/* GNUstep extensions displaying an infoPanel, title is 'Info' */
|
/* GNUstep extensions displaying an infoPanel, title is 'Info' */
|
||||||
/* For a list of the useful values in the dictionary, see GSInfoPanel.h.
|
/* For a list of the useful values in the dictionary, see GSInfoPanel.h.
|
||||||
The entries are mostly compatible with macosx. */
|
The entries are mostly compatible with macosx. */
|
||||||
- (void) orderFrontStandardInfoPanel: (id)sender;
|
- (void) orderFrontStandardInfoPanel: (id)sender;
|
||||||
- (void) orderFrontStandardInfoPanelWithOptions: (NSDictionary *)dictionary;
|
- (void) orderFrontStandardInfoPanelWithOptions: (NSDictionary *)dictionary;
|
||||||
|
#endif
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
/* macosx extensions displaying an aboutPanel, title is 'About'.
|
/* macosx extensions displaying an aboutPanel, title is 'About'.
|
||||||
NB: These two methods do exactly the same as the two methods above,
|
NB: These two methods do exactly the same as the two methods above,
|
||||||
only the title is different. */
|
only the title is different. */
|
||||||
- (void) orderFrontStandardAboutPanel: (id)sender;
|
- (void) orderFrontStandardAboutPanel: (id)sender;
|
||||||
- (void) orderFrontStandardAboutPanelWithOptions: (NSDictionary *)dictionary;
|
- (void) orderFrontStandardAboutPanelWithOptions: (NSDictionary *)dictionary;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Getting the main menu
|
* Getting the main menu
|
||||||
|
@ -277,6 +295,9 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
/*
|
/*
|
||||||
* Terminating the application
|
* Terminating the application
|
||||||
*/
|
*/
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (void) replyToApplicationShouldTerminate: (BOOL)shouldTerminate;
|
||||||
|
#endif
|
||||||
- (void) terminate: (id)sender;
|
- (void) terminate: (id)sender;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -285,11 +306,18 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
- (id) delegate;
|
- (id) delegate;
|
||||||
- (void) setDelegate: (id)anObject;
|
- (void) setDelegate: (id)anObject;
|
||||||
|
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
/*
|
/*
|
||||||
* NSCoding protocol
|
* Methods for scripting
|
||||||
*/
|
*/
|
||||||
- (void) encodeWithCoder: (NSCoder*)aCoder;
|
- (NSArray *) orderedDocuments;
|
||||||
- (id) initWithCoder: (NSCoder*)aDecoder;
|
- (NSArray *) orderedWindows;
|
||||||
|
/*
|
||||||
|
* Methods for user attention requests
|
||||||
|
*/
|
||||||
|
- (void) cancelUserAttentionRequest: (int)request;
|
||||||
|
- (int) requestUserAttention: (NSRequestUserAttentionType)requestType;
|
||||||
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -322,7 +350,11 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
printFile:(NSString *)filename;
|
printFile:(NSString *)filename;
|
||||||
- (BOOL) applicationOpenUntitledFile: (NSApplication*)app;
|
- (BOOL) applicationOpenUntitledFile: (NSApplication*)app;
|
||||||
- (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender;
|
- (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender;
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
- (BOOL) applicationShouldTerminate: (id)sender;
|
- (BOOL) applicationShouldTerminate: (id)sender;
|
||||||
|
#else
|
||||||
|
- (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *)sender;
|
||||||
|
#endif
|
||||||
- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (id)sender;
|
- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (id)sender;
|
||||||
|
|
||||||
- (void) applicationDidBecomeActive: (NSNotification*)aNotification;
|
- (void) applicationDidBecomeActive: (NSNotification*)aNotification;
|
||||||
|
@ -338,6 +370,14 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
||||||
- (void) applicationWillTerminate:(NSNotification *)aNotification;
|
- (void) applicationWillTerminate:(NSNotification *)aNotification;
|
||||||
- (void) applicationWillUnhide: (NSNotification*)aNotification;
|
- (void) applicationWillUnhide: (NSNotification*)aNotification;
|
||||||
- (void) applicationWillUpdate: (NSNotification*)aNotification;
|
- (void) applicationWillUpdate: (NSNotification*)aNotification;
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (BOOL) application: (NSApplication *)sender
|
||||||
|
delegateHandlesKey: (NSString *)key;
|
||||||
|
- (NSMenu *) applicationDockMenu: (NSApplication *)sender;
|
||||||
|
- (BOOL) applicationShouldHandleReopen: (NSApplication *)theApplication
|
||||||
|
hasVisibleWindows: (BOOL)flag;
|
||||||
|
- (void) applicationDidChangeScreenParameters: (NSNotification *)aNotification;
|
||||||
|
#endif
|
||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue