[Hdrflow-svn] SF.net SVN: hdrflow: [218] trunk/app/HDRFlow
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-07-29 18:17:43
|
Revision: 218 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=218&view=rev Author: glslang Date: 2007-07-29 11:17:40 -0700 (Sun, 29 Jul 2007) Log Message: ----------- + More popup menu bindings Modified Paths: -------------- 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/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/PlugInsPreferencesController.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-07-29 17:57:59 UTC (rev 217) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-07-29 18:17:40 UTC (rev 218) @@ -20,4 +20,6 @@ - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldEditTableColumn: ( NSTableColumn* ) tableColumn item: ( id ) item; - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldSelectItem: ( id ) item; +- ( void ) initRootItems; + @end Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-29 17:57:59 UTC (rev 217) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-29 18:17:40 UTC (rev 218) @@ -14,6 +14,9 @@ [ super init ]; rootItems = [ [ NSMutableArray alloc ] init ]; + [ self initRootItems ]; + selectedItem = [ rootItems objectAtIndex: 0 ]; + return self; } @@ -53,4 +56,13 @@ return NO; } +- ( void ) initRootItems +{ + [ rootItems addObject: [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: @"All" ] ]; + [ rootItems addObject: [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: @"Image" ] ]; + [ rootItems addObject: [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: @"Media" ] ]; + [ rootItems addObject: [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: @"Effects" ] ]; + [ rootItems addObject: [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: @"OFX" ] ]; +} + @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 17:57:59 UTC (rev 217) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 18:17:40 UTC (rev 218) @@ -13,10 +13,10 @@ NSString* itemName; } +- ( id ) initWithString: ( NSString* ) name; + - ( 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 17:57:59 UTC (rev 217) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-29 18:17:40 UTC (rev 218) @@ -9,10 +9,11 @@ @implementation PlugInsPreferencesOutlineViewNode -- ( id ) init +- ( id ) initWithString: ( NSString* ) name { [ super init ]; children = [ [ NSMutableArray alloc ] init ]; + itemName = [ [ NSString alloc ] initWithString: name ]; return self; } @@ -39,14 +40,4 @@ 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. |