/* * PCEditor.h created by probert on 2002-01-29 20:37:28 +0000 * * Project ProjectCenter * * Created with ProjectCenter - http://www.gnustep.org * * $Id$ */ #ifndef _PCEDITOR_H_ #define _PCEDITOR_H_ #import @class PCEditorView; @class PCProjectEditor; @interface PCEditor : NSObject { PCEditorView *iView; PCEditorView *eView; NSTextStorage *storage; NSWindow *window; NSMutableString *path; id delegate; BOOL isEdited; } - (id)initWithPath:(NSString*)file; - (void)dealloc; - (void)setDelegate:(id)aDelegate; - (id)delegate; - (NSWindow *)editorWindow; - (NSString *)path; - (void)setIsEdited:(BOOL)yn; - (void)showInProjectEditor:(PCProjectEditor *)pe; - (void)show; - (void)close; - (BOOL)saveFile; - (BOOL)revertFile; - (void)windowWillClose:(NSNotification *)aNotif; - (void)windowDidBecomeKey:(NSNotification *)aNotification; - (void)windowDidResignKey:(NSNotification *)aNotification; - (void)textDidChange:(NSNotification *)aNotification; @end @interface NSObject (PCEditorDelegate ) - (void)editorDidClose:(id)sender; @end extern NSString *PCEditorDidBecomeKeyNotification; extern NSString *PCEditorDidResignKeyNotification; #endif // _PCEDITOR_H_