apps-projectcenter/PCLib/PCEditor.h
Philippe C.D. Robert 50112a3cb8 Using saveFileIfNeeded instead of saveFile.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@12952 72102866-910b-0410-8b05-ffd578937521
2002-03-02 13:15:59 +00:00

69 lines
1.2 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;
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)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_