[Hdrflow-svn] SF.net SVN: hdrflow: [219] trunk/app/HDRFlow
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-07-29 22:02:42
|
Revision: 219 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=219&view=rev Author: glslang Date: 2007-07-29 15:02:38 -0700 (Sun, 29 Jul 2007) Log Message: ----------- +OutlineView in Plugins Preferences Modified Paths: -------------- 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/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-29 18:17:40 UTC (rev 218) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-29 22:02:38 UTC (rev 219) @@ -17,10 +17,10 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>10</integer> <integer>33</integer> <integer>5</integer> <integer>12</integer> - <integer>10</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> 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 18:17:40 UTC (rev 218) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-07-29 22:02:38 UTC (rev 219) @@ -10,7 +10,7 @@ @interface PlugInsPreferencesController : NSObject { NSMutableArray* rootItems; - NSObject* selectedItem; + PlugInsPreferencesOutlineViewNode* selectedItem; } - ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item; Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-29 18:17:40 UTC (rev 218) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-29 22:02:38 UTC (rev 219) @@ -28,22 +28,28 @@ - ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item { - return item == nil ? [ rootItems count ] : [ item numberOfChildren ]; + return item == nil ? 1 : [ item numberOfChildren ]; } - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView isItemExpandable: ( id ) item { - return item == nil ? YES : [ item numberOfChildren ] != 0; + return [ selectedItem numberOfChildren ] != 0; } - ( id ) outlineView: ( NSOutlineView* ) outlineView child: ( int ) index ofItem: ( id ) item { - return nil; + if( item == nil ) + return selectedItem; + else + return [ item childAtIndex: index ]; } - ( id ) outlineView: ( NSOutlineView* ) outlineView objectValueForTableColumn: ( NSTableColumn* ) tableColumn byItem: ( id ) item { - return nil; + if( item == nil ) + return [ selectedItem itemName ]; + else + return [ item itemName ]; } - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldEditTableColumn: ( NSTableColumn* ) tableColumn item: ( id ) item @@ -53,7 +59,7 @@ - ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldSelectItem: ( id ) item { - return NO; + return YES; } - ( void ) initRootItems Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 18:17:40 UTC (rev 218) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 22:02:38 UTC (rev 219) @@ -19,4 +19,6 @@ - ( int ) numberOfChildren; - ( id ) childAtIndex: ( int ) index; +- ( NSString* ) itemName; + @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-29 18:17:40 UTC (rev 218) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-29 22:02:38 UTC (rev 219) @@ -14,7 +14,7 @@ [ super init ]; children = [ [ NSMutableArray alloc ] init ]; itemName = [ [ NSString alloc ] initWithString: name ]; - + return self; } @@ -40,4 +40,9 @@ return [ [ [ children objectAtIndex: index ] retain ] autorelease ]; } +- ( NSString* ) itemName +{ + return itemName; +} + @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |