mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 15:21:57 +00:00
Prefixed all ivars with underscores, removed unneeded ivars and
added some missing methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8332 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9934f77470
commit
27397dd2e3
1 changed files with 42 additions and 23 deletions
|
@ -61,38 +61,36 @@ extern NSString *NSEventTrackingRunLoopMode;
|
||||||
|
|
||||||
@interface NSApplication : NSResponder <NSCoding>
|
@interface NSApplication : NSResponder <NSCoding>
|
||||||
{
|
{
|
||||||
NSEvent *current_event;
|
NSEvent *_current_event;
|
||||||
NSModalSession session;
|
NSModalSession _session;
|
||||||
NSWindow *_key_window;
|
NSWindow *_key_window;
|
||||||
NSWindow *_main_window;
|
NSWindow *_main_window;
|
||||||
id delegate;
|
id _delegate;
|
||||||
id listener;
|
id _listener;
|
||||||
NSMenu *main_menu;
|
NSMenu *_main_menu;
|
||||||
NSMenuItem *windows_menu;
|
NSMenuItem *_windows_menu;
|
||||||
unsigned current_mod;
|
|
||||||
// 8 bits
|
// 8 bits
|
||||||
BOOL app_is_running;
|
BOOL _app_is_running;
|
||||||
BOOL app_should_quit;
|
BOOL _app_is_active;
|
||||||
BOOL app_is_active;
|
BOOL _app_is_hidden;
|
||||||
BOOL app_is_hidden;
|
BOOL _unhide_on_activation;
|
||||||
BOOL unhide_on_activation;
|
BOOL _windows_need_update;
|
||||||
BOOL windows_need_update;
|
NSImage *_app_icon;
|
||||||
BOOL inTrackingLoop;
|
NSWindow *_app_icon_window;
|
||||||
NSImage *app_icon;
|
|
||||||
NSMutableArray *_hidden;
|
NSMutableArray *_hidden;
|
||||||
NSMutableArray *_inactive;
|
NSMutableArray *_inactive;
|
||||||
NSWindow *_hidden_key;
|
NSWindow *_hidden_key;
|
||||||
NSWindow *_app_icon_window;
|
|
||||||
GSInfoPanel *_infoPanel;
|
GSInfoPanel *_infoPanel;
|
||||||
|
|
||||||
// Reserved for back-end use
|
|
||||||
void *be_app_reserved;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class methods
|
* Class methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
+ (void)detachDrawingThread:(SEL)selector toTarget:(id)target withObject:(id)argument;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creating and initializing the NSApplication
|
* Creating and initializing the NSApplication
|
||||||
*/
|
*/
|
||||||
|
@ -149,6 +147,11 @@ extern NSString *NSEventTrackingRunLoopMode;
|
||||||
to: (id)aTarget
|
to: (id)aTarget
|
||||||
from: (id)sender;
|
from: (id)sender;
|
||||||
- (id) targetForAction: (SEL)aSelector;
|
- (id) targetForAction: (SEL)aSelector;
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (id)targetForAction: (SEL)theAction
|
||||||
|
to: (id)theTarget
|
||||||
|
from: (id)sender;
|
||||||
|
#endif
|
||||||
- (BOOL) tryToPerform: (SEL)aSelector
|
- (BOOL) tryToPerform: (SEL)aSelector
|
||||||
with: (id)anObject;
|
with: (id)anObject;
|
||||||
|
|
||||||
|
@ -186,6 +189,8 @@ extern NSString *NSEventTrackingRunLoopMode;
|
||||||
- (void) orderFrontColorPanel: (id)sender;
|
- (void) orderFrontColorPanel: (id)sender;
|
||||||
- (void) orderFrontDataLinkPanel: (id)sender;
|
- (void) orderFrontDataLinkPanel: (id)sender;
|
||||||
- (void) orderFrontHelpPanel: (id)sender;
|
- (void) orderFrontHelpPanel: (id)sender;
|
||||||
|
- (void)showHelp:(id)sender;
|
||||||
|
- (void)activateContextHelpMode:(id)sender;
|
||||||
- (void) runPageLayout: (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.
|
||||||
|
@ -204,6 +209,9 @@ extern NSString *NSEventTrackingRunLoopMode;
|
||||||
*/
|
*/
|
||||||
- (NSMenu*) mainMenu;
|
- (NSMenu*) mainMenu;
|
||||||
- (void) setMainMenu: (NSMenu*)aMenu;
|
- (void) setMainMenu: (NSMenu*)aMenu;
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (void) setAppleMenu: (NSMenu*)aMenu;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Managing the Windows menu
|
* Managing the Windows menu
|
||||||
|
@ -290,19 +298,24 @@ extern BOOL initialize_gnustep_backend (void);
|
||||||
openFile: (NSString*)filename;
|
openFile: (NSString*)filename;
|
||||||
- (BOOL) application: (NSApplication*)app
|
- (BOOL) application: (NSApplication*)app
|
||||||
openTempFile: (NSString*)filename;
|
openTempFile: (NSString*)filename;
|
||||||
|
- (BOOL) application: (NSApplication *)theApplication
|
||||||
|
printFile:(NSString *)filename;
|
||||||
|
- (BOOL) applicationOpenUntitledFile: (NSApplication*)app;
|
||||||
|
- (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender;
|
||||||
|
- (BOOL) applicationShouldTerminate: (id)sender;
|
||||||
|
- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (id)sender;
|
||||||
|
|
||||||
- (void) applicationDidBecomeActive: (NSNotification*)aNotification;
|
- (void) applicationDidBecomeActive: (NSNotification*)aNotification;
|
||||||
- (void) applicationDidFinishLaunching: (NSNotification*)aNotification;
|
- (void) applicationDidFinishLaunching: (NSNotification*)aNotification;
|
||||||
- (void) applicationDidHide: (NSNotification*)aNotification;
|
- (void) applicationDidHide: (NSNotification*)aNotification;
|
||||||
- (void) applicationDidResignActive: (NSNotification*)aNotification;
|
- (void) applicationDidResignActive: (NSNotification*)aNotification;
|
||||||
- (void) applicationDidUnhide: (NSNotification*)aNotification;
|
- (void) applicationDidUnhide: (NSNotification*)aNotification;
|
||||||
- (void) applicationDidUpdate: (NSNotification*)aNotification;
|
- (void) applicationDidUpdate: (NSNotification*)aNotification;
|
||||||
- (BOOL) applicationOpenUntitledFile: (NSApplication*)app;
|
|
||||||
- (BOOL) applicationShouldTerminate: (id)sender;
|
|
||||||
- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (id)sender;
|
|
||||||
- (void) applicationWillBecomeActive: (NSNotification*)aNotification;
|
- (void) applicationWillBecomeActive: (NSNotification*)aNotification;
|
||||||
- (void) applicationWillFinishLaunching: (NSNotification*)aNotification;
|
- (void) applicationWillFinishLaunching: (NSNotification*)aNotification;
|
||||||
- (void) applicationWillHide: (NSNotification*)aNotification;
|
- (void) applicationWillHide: (NSNotification*)aNotification;
|
||||||
- (void) applicationWillResignActive: (NSNotification*)aNotification;
|
- (void) applicationWillResignActive: (NSNotification*)aNotification;
|
||||||
|
- (void) applicationWillTerminate:(NSNotification *)aNotification;
|
||||||
- (void) applicationWillUnhide: (NSNotification*)aNotification;
|
- (void) applicationWillUnhide: (NSNotification*)aNotification;
|
||||||
- (void) applicationWillUpdate: (NSNotification*)aNotification;
|
- (void) applicationWillUpdate: (NSNotification*)aNotification;
|
||||||
@end
|
@end
|
||||||
|
@ -319,9 +332,9 @@ extern NSString *NSApplicationDidUnhideNotification;
|
||||||
extern NSString *NSApplicationDidUpdateNotification;
|
extern NSString *NSApplicationDidUpdateNotification;
|
||||||
extern NSString *NSApplicationWillBecomeActiveNotification;
|
extern NSString *NSApplicationWillBecomeActiveNotification;
|
||||||
extern NSString *NSApplicationWillFinishLaunchingNotification;
|
extern NSString *NSApplicationWillFinishLaunchingNotification;
|
||||||
extern NSString *NSApplicationWillTerminateNotification;
|
|
||||||
extern NSString *NSApplicationWillHideNotification;
|
extern NSString *NSApplicationWillHideNotification;
|
||||||
extern NSString *NSApplicationWillResignActiveNotification;
|
extern NSString *NSApplicationWillResignActiveNotification;
|
||||||
|
extern NSString *NSApplicationWillTerminateNotification;
|
||||||
extern NSString *NSApplicationWillUnhideNotification;
|
extern NSString *NSApplicationWillUnhideNotification;
|
||||||
extern NSString *NSApplicationWillUpdateNotification;
|
extern NSString *NSApplicationWillUpdateNotification;
|
||||||
|
|
||||||
|
@ -352,12 +365,18 @@ NSUpdateDynamicServices(void);
|
||||||
void
|
void
|
||||||
NSRegisterServicesProvider(id provider, NSString *name);
|
NSRegisterServicesProvider(id provider, NSString *name);
|
||||||
|
|
||||||
|
void
|
||||||
|
NSUnRegisterServicesProvider(NSString *name);
|
||||||
|
|
||||||
int
|
int
|
||||||
NSApplicationMain(int argc, const char **argv);
|
NSApplicationMain(int argc, const char **argv);
|
||||||
|
|
||||||
NSString*
|
NSString*
|
||||||
NSOpenStepRootDirectory(void);
|
NSOpenStepRootDirectory(void);
|
||||||
|
|
||||||
|
void
|
||||||
|
NSShowSystemInfoPanel(NSDictionary *options);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The NSApp global variable.
|
* The NSApp global variable.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue