mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-21 19:01:18 +00:00
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
68 lines
1.2 KiB
Objective-C
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_
|
|
|