mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-22 11:21:29 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@16840 72102866-910b-0410-8b05-ffd578937521
73 lines
2 KiB
Objective-C
73 lines
2 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_
|
|
|
|
#include <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;
|
|
- (PCEditor *)activeEditor;
|
|
- (NSArray *)allEditors;
|
|
- (void)closeEditorForFile:(NSString *)file;
|
|
- (void)closeAllEditors;
|
|
|
|
|
|
// ===========================================================================
|
|
// ==== File handling
|
|
// ===========================================================================
|
|
|
|
- (BOOL)saveAllFiles;
|
|
- (BOOL)saveFile;
|
|
- (BOOL)saveFileAs:(NSString *)file;
|
|
- (BOOL)saveFileTo:(NSString *)file;
|
|
- (void)closeFile:(id)sender;
|
|
- (BOOL)revertFileToSaved;
|
|
|
|
// ===========================================================================
|
|
// ==== Delegate
|
|
// ===========================================================================
|
|
|
|
- (void)editorDidClose:(id)sender;
|
|
- (void)setBrowserPath:(NSString *)file category:(NSString *)category;
|
|
|
|
@end
|
|
|
|
#endif // _PCEDITORCONTROLLER_H_
|
|
|