apps-projectcenter/PCLib/PCEditor.h
Philippe C.D. Robert 6180a9b078 Updated the AUTHORS file and applied David Ayers' patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@14658 72102866-910b-0410-8b05-ffd578937521
2002-10-06 13:45:02 +00:00

69 lines
1.3 KiB
Objective-C

/*
* 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 <AppKit/AppKit.h>
@class PCEditorView;
@class PCProjectEditor;
@interface PCEditor : NSObject
{
PCEditorView *_iView; // internal (embedded) view
PCEditorView *_eView; // external (window) view
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)saveFileIfNeeded;
- (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_