ProjectManager  0.2
ProjectTypeLoader.h
1 /*
2  ProjectTypeLoader.h
3 
4  Interface declaration of the ProjectTypeLoader class for the
5  ProjectManager application.
6 
7  Copyright (C) 2005 Saso Kiselkov
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23 
24 #import <Foundation/NSObject.h>
25 
26 @class NSDictionary, NSArray, NSString;
27 
28 @class ProjectDocument;
29 @protocol ProjectType;
30 
31 @interface ProjectTypeLoader : NSObject
32 {
33  /* A dictionary where keys are project type IDs and values
34  * are classes which handle them. */
35  NSDictionary * projectTypes;
36 }
37 
39 + shared;
40 
45 - (NSDictionary *) projectTypes;
46 
52 - (id <ProjectType>) projectTypeForTypeID: (NSString *) projectTypeID
53  project: (ProjectDocument *) project
54  infoDictionary: (NSDictionary *) infoDict
55  projectModules: (NSArray *) projectModules;
56 
57 @end
ProjectTypeLoader
Definition: ProjectTypeLoader.h:31
ProjectDocument
Definition: ProjectDocument.h:43
ProjectTypeDescription
The description of a project type.
Definition: ProjectTypeDescription.h:31
-[ProjectTypeDescription icon]
NSImage * icon()
Returns the icon of the receiver's project type.
Definition: ProjectTypeDescription.m:86
-[ProjectTypeDescription description]
NSString * description()
Returns a human-readable description of the receiver's project type.
Definition: ProjectTypeDescription.m:78
-[ProjectTypeDescription name]
NSString * name()
Returns the name of the receiver's project type.
Definition: ProjectTypeDescription.m:70
-[ProjectTypeDescription projectType]
Class projectType()
Returns the class from which this type description has been generated.
Definition: ProjectTypeDescription.m:127
ProjectTypeDescription::templates
NSArray * templates
Returns an array of template descriptions of the receiver's project type.
Definition: ProjectTypeDescription.h:35
ProjectType-p
This protocol is adopted by project type support objects.
Definition: ProjectType.h:40
ProjectTemplateDescription
A project template description.
Definition: ProjectTemplateDescription.h:31