2002-02-02 17:56:44 +00:00
|
|
|
/*
|
|
|
|
* 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_
|
|
|
|
|
2003-04-21 13:46:10 +00:00
|
|
|
#include <Foundation/Foundation.h>
|
2002-02-02 17:56:44 +00:00
|
|
|
|
|
|
|
@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;
|
|
|
|
|
2002-02-21 10:15:17 +00:00
|
|
|
- (PCEditor *)internalEditorForFile:(NSString *)path;
|
2002-02-02 17:56:44 +00:00
|
|
|
- (PCEditor *)editorForFile:(NSString *)path;
|
2003-05-23 09:11:07 +00:00
|
|
|
- (PCEditor *)activeEditor;
|
2002-02-02 17:56:44 +00:00
|
|
|
- (NSArray *)allEditors;
|
2003-05-29 08:23:43 +00:00
|
|
|
- (void)closeEditorForFile:(NSString *)file;
|
2002-02-02 17:56:44 +00:00
|
|
|
- (void)closeAllEditors;
|
|
|
|
|
|
|
|
|
2002-02-02 19:21:00 +00:00
|
|
|
// ===========================================================================
|
|
|
|
// ==== File handling
|
|
|
|
// ===========================================================================
|
|
|
|
|
2002-03-02 13:11:05 +00:00
|
|
|
- (BOOL)saveAllFiles;
|
2002-02-02 19:21:00 +00:00
|
|
|
- (BOOL)saveFile;
|
2003-05-23 09:11:07 +00:00
|
|
|
- (BOOL)saveFileAs:(NSString *)file;
|
|
|
|
- (BOOL)saveFileTo:(NSString *)file;
|
|
|
|
- (void)closeFile:(id)sender;
|
|
|
|
- (BOOL)revertFileToSaved;
|
|
|
|
|
|
|
|
// ===========================================================================
|
|
|
|
// ==== Delegate
|
|
|
|
// ===========================================================================
|
|
|
|
|
|
|
|
- (void)editorDidClose:(id)sender;
|
2003-05-30 07:21:21 +00:00
|
|
|
- (void)setBrowserPath:(NSString *)file category:(NSString *)category;
|
2002-02-02 19:21:00 +00:00
|
|
|
|
2002-02-02 17:56:44 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif // _PCEDITORCONTROLLER_H_
|
|
|
|
|