apps-projectcenter/PCLib/PCEditor.h
Philippe C.D. Robert 396f6b9751 Began to work on support for an integrated editor, thus much has been rewritten
related to editor handling. This is work in progress... Every PCProject
component now has to conform to the ProjectComponent protocol.
Syntax highlighting is disabled for now, this will undergo a major rewrite soon.
Furthermore I separated the component handling stuff from the main class file
and put it into PCProject+ComponentHandling.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@12499 72102866-910b-0410-8b05-ffd578937521
2002-02-11 22:19:39 +00:00

68 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)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_