1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
/*
SubprojectsManager.h
Interface declaration of the SubprojectsManager class for the
ProjectManager application.
Copyright (C) 2005, 2006 Saso Kiselkov
This program 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 program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#import "../../ProjectModule.h"
@class NSDictionary,
NSMutableDictionary,
NSBox,
NSNotification,
NSOutlineView,
NSTableColumn,
NSFileManager;
@class ProjectDocument;
@protocol SubprojectsManagerDelegate;
@interface SubprojectsManager : NSObject <ProjectModule>
{
// weak references
ProjectDocument * document;
id <SubprojectsManagerDelegate> delegate;
id bogusWindow, view;
id outline;
/**
* This array contains the subprojects hierarchy.
* It's contents are NSDictionary's of the following structure:
*
* {
* Type = "Category";
* Name = "<subcategory-name>";
* Contents = ( contents-array );
* }
*
* if the entry is a subcategory of subprojects, or:
*
* {
* Type = "Subproject";
* Name = "<subproject-name>";
* ProjectFile = "<subproject-project-file-name>";
* }
*
* if the entry is a subproject.
*/
NSMutableArray * subprojects;
// an unsorted list of names of all subproject names
NSMutableArray * subprojectNames;
// file operation errors from the file manager
NSDictionary * fileOpErrorDict;
}
- (NSArray *) subprojectNames;
- (id)outlineView: (NSOutlineView *)outlineView
child: (int)index
ofItem: (id)item;
- (BOOL)outlineView: (NSOutlineView *)outlineView
isItemExpandable: (id)item;
- (int)outlineView: (NSOutlineView *)outlineView
numberOfChildrenOfItem: (id)item;
- (id)outlineView: (NSOutlineView *)outlineView
objectValueForTableColumn:(NSTableColumn *)tableColumn
byItem:(id)item;
- (void)outlineView: (NSOutlineView *)outlineView
setObjectValue: (id)object
forTableColumn: (NSTableColumn *)tableColumn
byItem: (id)item;
- (BOOL) fileManager: (NSFileManager*)fileManager
shouldProceedAfterError: (NSDictionary*)errorDictionary;
- (void) fileManager: (NSFileManager*)fileManager
willProcessPath: (NSString*)path;
- (void) newSubprojectAction: sender;
- (void) addSubprojectAction: sender;
- (void) removeSubprojectAction: sender;
- (void) openSubprojectAction: sender;
- (void) newSubprojectCategoryAction: sender;
- (void) removeSubprojectCategoryAction: sender;
@end
|