2000-08-27 19:11:42 +00:00
|
|
|
/*
|
2001-08-03 14:23:25 +00:00
|
|
|
GNUstep ProjectCenter - http://www.gnustep.org
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2002-11-27 18:41:07 +00:00
|
|
|
Copyright (C) 2000-2002 Free Software Foundation
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2002-11-24 12:23:47 +00:00
|
|
|
Author: Philippe C.D. Robert <probert@siggraph.org>
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2001-08-03 14:23:25 +00:00
|
|
|
This file is part of GNUstep.
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
This application is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This application is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
|
|
*/
|
|
|
|
|
2002-02-02 21:12:49 +00:00
|
|
|
#ifndef _SERVER_PROTO_H
|
|
|
|
#define _SERVER_PROTO_H
|
|
|
|
|
2003-04-21 13:46:10 +00:00
|
|
|
#include <AppKit/AppKit.h>
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2002-11-24 12:20:54 +00:00
|
|
|
@class PCProject;
|
2002-11-24 12:30:41 +00:00
|
|
|
|
2004-06-15 20:41:49 +00:00
|
|
|
/*#ifndef GNUSTEP_BASE_VERSION
|
2002-11-24 12:30:41 +00:00
|
|
|
@protocol PreferenceController;
|
|
|
|
@protocol ProjectEditor;
|
|
|
|
@protocol ProjectDebugger;
|
|
|
|
#else
|
2003-04-21 13:46:10 +00:00
|
|
|
#include <ProjectCenter/PreferenceController.h>
|
|
|
|
#include <ProjectCenter/ProjectEditor.h>
|
|
|
|
#include <ProjectCenter/ProjectDebugger.h>
|
2004-06-15 20:41:49 +00:00
|
|
|
#endif*/
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
@protocol Server
|
|
|
|
|
|
|
|
- (BOOL)registerProjectSubmenu:(NSMenu *)menu;
|
|
|
|
- (BOOL)registerFileSubmenu:(NSMenu *)menu;
|
|
|
|
- (BOOL)registerToolsSubmenu:(NSMenu *)menu;
|
2004-06-15 20:41:49 +00:00
|
|
|
/*- (BOOL)registerPrefController:(id<PreferenceController>)prefs;
|
2000-08-27 19:11:42 +00:00
|
|
|
- (BOOL)registerEditor:(id<ProjectEditor>)anEditor;
|
2004-06-15 20:41:49 +00:00
|
|
|
- (BOOL)registerDebugger:(id<ProjectDebugger>)aDebugger;*/
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
- (PCProject *)activeProject;
|
|
|
|
- (NSString*)pathToActiveProject;
|
|
|
|
|
|
|
|
- (id)activeFile;
|
|
|
|
- (NSString*)pathToActiveFile;
|
|
|
|
|
|
|
|
- (NSArray*)selectedFiles;
|
|
|
|
- (NSArray*)touchedFiles;
|
|
|
|
// Returns array of paths of files that are "unsaved" or nil if none.
|
|
|
|
|
2000-09-17 12:13:10 +00:00
|
|
|
- (BOOL)queryTouchedFiles;
|
2000-08-27 19:11:42 +00:00
|
|
|
// Prompts user to save all files and projects with dirtied buffers.
|
|
|
|
|
|
|
|
- (BOOL)addFileAt:(NSString*)filePath toProject:(PCProject *)projectPath;
|
|
|
|
- (BOOL)removeFileFromProject:(PCProject *)filePath;
|
|
|
|
|
|
|
|
@end
|
2002-02-02 21:12:49 +00:00
|
|
|
|
|
|
|
#endif
|