[Hdrflow-svn] SF.net SVN: hdrflow: [217] trunk/app/HDRFlow
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-07-29 17:58:01
|
Revision: 217 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=217&view=rev Author: glslang Date: 2007-07-29 10:57:59 -0700 (Sun, 29 Jul 2007) Log Message: ----------- +initial bindings for plugins popup button in preferences Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib trunk/app/HDRFlow/PlugInsPreferencesController.h trunk/app/HDRFlow/PlugInsPreferencesController.mm trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-29 08:31:14 UTC (rev 216) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-29 17:57:59 UTC (rev 217) @@ -7,6 +7,11 @@ SUPERCLASS = NSObject; }, { + CLASS = PlugInsPreferencesOutlineViewNode; + LANGUAGE = ObjC; + SUPERCLASS = NSObject; + }, + { ACTIONS = {toolbarItem = id; }; CLASS = PreferencesController; LANGUAGE = ObjC; Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-29 08:31:14 UTC (rev 216) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-29 17:57:59 UTC (rev 217) @@ -17,9 +17,9 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> - <integer>12</integer> <integer>33</integer> <integer>5</integer> + <integer>12</integer> <integer>10</integer> </array> <key>IBSystem Version</key> Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/PlugInsPreferencesController.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-07-29 08:31:14 UTC (rev 216) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-07-29 17:57:59 UTC (rev 217) @@ -9,9 +9,15 @@ @interface PlugInsPreferencesController : NSObject { + NSMutableArray* rootItems; + NSObject* selectedItem; } -- ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item; +- ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item; - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView isItemExpandable: ( id ) item; +- ( id ) outlineView: ( NSOutlineView* ) outlineView child: ( int ) index ofItem: ( id ) item; +- ( id ) outlineView: ( NSOutlineView* ) outlineView objectValueForTableColumn: ( NSTableColumn* ) tableColumn byItem: ( id ) item; +- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldEditTableColumn: ( NSTableColumn* ) tableColumn item: ( id ) item; +- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldSelectItem: ( id ) item; @end Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-29 08:31:14 UTC (rev 216) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-29 17:57:59 UTC (rev 217) @@ -9,9 +9,23 @@ @implementation PlugInsPreferencesController +- ( id ) init +{ + [ super init ]; + rootItems = [ [ NSMutableArray alloc ] init ]; + + return self; +} + +- ( void ) dealloc +{ + [ rootItems release ]; + [ super dealloc ]; +} + - ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item { - return item == nil ? 1 : [ item numberOfChildren ]; + return item == nil ? [ rootItems count ] : [ item numberOfChildren ]; } - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView isItemExpandable: ( id ) item @@ -19,4 +33,24 @@ return item == nil ? YES : [ item numberOfChildren ] != 0; } +- ( id ) outlineView: ( NSOutlineView* ) outlineView child: ( int ) index ofItem: ( id ) item +{ + return nil; +} + +- ( id ) outlineView: ( NSOutlineView* ) outlineView objectValueForTableColumn: ( NSTableColumn* ) tableColumn byItem: ( id ) item +{ + return nil; +} + +- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldEditTableColumn: ( NSTableColumn* ) tableColumn item: ( id ) item +{ + return NO; +} + +- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldSelectItem: ( id ) item +{ + return NO; +} + @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 08:31:14 UTC (rev 216) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 17:57:59 UTC (rev 217) @@ -9,8 +9,14 @@ @interface PlugInsPreferencesOutlineViewNode : NSObject { + NSMutableArray* children; + NSString* itemName; } +- ( void ) addChildObject: ( id ) childObject; - ( int ) numberOfChildren; +- ( id ) childAtIndex: ( int ) index; +- ( void ) setName: ( NSString* ) name; +- ( NSString* ) name; @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-29 08:31:14 UTC (rev 216) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-29 17:57:59 UTC (rev 217) @@ -9,9 +9,44 @@ @implementation PlugInsPreferencesOutlineViewNode +- ( id ) init +{ + [ super init ]; + children = [ [ NSMutableArray alloc ] init ]; + + return self; +} + +- ( void ) dealloc +{ + [ children release ]; + [ itemName release ]; + [ super dealloc ]; +} + +- ( void ) addChildObject: ( id ) childObject +{ + [ children addObject: childObject ]; +} + - ( int ) numberOfChildren { - return 0; + return [ children count ]; } +- ( id ) childAtIndex: ( int ) index +{ + return [ [ [ children objectAtIndex: index ] retain ] autorelease ]; +} + +- ( void ) setName: ( NSString* ) name +{ + itemName = [ [ NSString alloc ] initWithString: name ]; +} + +- ( NSString* ) name +{ + return itemName; +} + @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |