Mercurial > emacs
comparison src/nsterm.h @ 97198:cf43f4e3ecc8
clear warnings and clean up NS port
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Fri, 01 Aug 2008 14:01:08 +0000 |
parents | 30f1368d9cf6 |
children | 9ca52564cbea |
comparison
equal
deleted
inserted
replaced
97197:406ac82acbcc | 97198:cf43f4e3ecc8 |
---|---|
34 | 34 |
35 /* We override sendEvent: as a means to stop/start the event loop */ | 35 /* We override sendEvent: as a means to stop/start the event loop */ |
36 @interface EmacsApp : NSApplication | 36 @interface EmacsApp : NSApplication |
37 { | 37 { |
38 } | 38 } |
39 - (void)logNotification: (NSNotification *)notification; | |
39 - (void)sendEvent: (NSEvent *)theEvent; | 40 - (void)sendEvent: (NSEvent *)theEvent; |
40 - (void)showPreferencesWindow: (id)sender; | 41 - (void)showPreferencesWindow: (id)sender; |
42 - (BOOL) openFile: (NSString *)fileName; | |
43 - (void)fd_handler: (NSTimer *) fdEntry; | |
44 - (void)cursor_blink_handler: (NSTimer *)cursorEntry; | |
45 - (void)timeout_handler: (NSTimer *)timedEntry; | |
46 - (BOOL)fulfillService: (NSString *)name withArg: (NSString *)arg; | |
41 @end | 47 @end |
42 | 48 |
43 | 49 |
44 /* ========================================================================== | 50 /* ========================================================================== |
45 | 51 |
102 | 108 |
103 - initWithTitle: (NSString *)title frame: (struct frame *)f; | 109 - initWithTitle: (NSString *)title frame: (struct frame *)f; |
104 - (void)setFrame: (struct frame *)f; | 110 - (void)setFrame: (struct frame *)f; |
105 - (void)menuNeedsUpdate: (NSMenu *)menu; /* (delegate method) */ | 111 - (void)menuNeedsUpdate: (NSMenu *)menu; /* (delegate method) */ |
106 - (NSString *)parseKeyEquiv: (char *)key; | 112 - (NSString *)parseKeyEquiv: (char *)key; |
107 - (id <NSMenuItem>)addItemWithWidgetValue: (void *)wvptr; | 113 - (NSMenuItem *)addItemWithWidgetValue: (void *)wvptr; |
108 - (void)fillWithWidgetValue: (void *)wvptr; | 114 - (void)fillWithWidgetValue: (void *)wvptr; |
109 - (EmacsMenu *)addSubmenuWithTitle: (char *)title forFrame: (struct frame *)f; | 115 - (EmacsMenu *)addSubmenuWithTitle: (char *)title forFrame: (struct frame *)f; |
110 - (void) clear; | 116 - (void) clear; |
111 - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (struct frame *)f | 117 - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (struct frame *)f |
112 keymaps: (int)keymaps; | 118 keymaps: (int)keymaps; |
725 extern Lisp_Object Qfontsize; | 731 extern Lisp_Object Qfontsize; |
726 extern Lisp_Object ns_list_fonts (FRAME_PTR f, Lisp_Object pattern, | 732 extern Lisp_Object ns_list_fonts (FRAME_PTR f, Lisp_Object pattern, |
727 int size, int maxnames); | 733 int size, int maxnames); |
728 extern void ns_clear_frame (struct frame *f); | 734 extern void ns_clear_frame (struct frame *f); |
729 | 735 |
730 #ifdef __OBJC__ | |
731 extern const char *ns_font_to_xlfd (NSFont *font); | |
732 #endif | |
733 extern const char *ns_fontname_to_xlfd (const char *name); | |
734 extern const char *ns_xlfd_to_fontname (const char *xlfd); | 736 extern const char *ns_xlfd_to_fontname (const char *xlfd); |
735 | 737 |
736 extern void check_ns (void); | 738 extern void check_ns (void); |
737 extern Lisp_Object ns_map_event_to_object (); | 739 extern Lisp_Object ns_map_event_to_object (); |
738 extern Lisp_Object ns_string_from_pasteboard (); | 740 extern Lisp_Object ns_string_from_pasteboard (); |