-
Notifications
You must be signed in to change notification settings - Fork 0
/
PBGTreeNode.h
53 lines (37 loc) · 1.18 KB
/
PBGTreeNode.h
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
//
// PGTreeNode.h
// Neurosis
//
// Created by Patrick B. Gibson on 03/04/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBGLesson.h"
#import "PBGDefines.h"
@interface PBGTreeNode : NSObject {
NSString *nodeTitle;
NSImage *nodeIcon;
PBGTreeNodeType nodeType; // Folder, Special, lesson, etc
int index;
PBGLesson *lesson;
NSMutableArray *children;
BOOL isLeaf;
}
- (id)initWithNodeType:(PBGTreeNodeType)type nodeTitle:(NSString *)title andNodeIcon:(NSImage *)icon andIndex:(int)i;
- (id)initWithNodeType:(PBGTreeNodeType)type nodeTitle:(NSString *)title andNodeIcon:(NSImage *)icon;
- (void)setNodeTitle:(NSString *)newNodeTitle;
- (NSString *)nodeTitle;
- (void)setNodeIcon:(NSImage *)icon;
- (NSImage *)nodeIcon;
- (void)setNodeType:(PBGTreeNodeType)newNodeType;
- (PBGTreeNodeType)nodeType;
- (void)setLesson:(PBGLesson *)newLesson;
- (PBGLesson *)lesson;
- (void)setChildren:(NSArray *)newChildren;
- (NSMutableArray *)children;
- (void)addChild:(PBGTreeNode *)n;
- (PBGTreeNode *)childAtIndex:(int)i;
- (NSArray *)expectedOutputsArray;
- (NSComparisonResult)compare:(PBGTreeNode *)aNode;
- (BOOL)isLeaf;
@end