apps-projectcenter/PCLib/PCEditorController.h
Philippe C.D. Robert 050cf77b3d The timed safe mechanism now also saves all project files, if needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@12951 72102866-910b-0410-8b05-ffd578937521
2002-03-02 13:11:05 +00:00

65 lines
1.5 KiB
Objective-C

/*
* PCEditorController.h created by probert on 2002-02-02 15:28:33 +0000
*
* Project ProjectCenter
*
* Created with ProjectCenter - http://www.gnustep.org
*
* $Id$
*/
#ifndef _PCEDITORCONTROLLER_H_
#define _PCEDITORCONTROLLER_H_
#import <Foundation/Foundation.h>
@class PCProject;
@class PCEditor;
@interface PCEditorController : NSObject
{
PCProject *project;
NSMutableDictionary *editorDict;
}
// ===========================================================================
// ==== Class Methods
// ===========================================================================
+ (void)openFileInEditor:(NSString *)path;
// ===========================================================================
// ==== Initialisation
// ===========================================================================
- (id)init;
- (void)dealloc;
// ===========================================================================
// ==== Project and Editor handling
// ===========================================================================
- (void)setProject:(PCProject *)aProject;
- (PCEditor *)internalEditorForFile:(NSString *)path;
- (PCEditor *)editorForFile:(NSString *)path;
- (NSArray *)allEditors;
- (void)closeAllEditors;
- (void)editorDidClose:(id)sender;
// ===========================================================================
// ==== File handling
// ===========================================================================
- (BOOL)saveAllFiles;
- (BOOL)saveFile;
- (BOOL)revertFile;
@end
#endif // _PCEDITORCONTROLLER_H_