Thread: [Hdrflow-svn] SF.net SVN: hdrflow: [215] trunk/app/HDRFlow (Page 2)
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-07-28 23:17:27
|
Revision: 215 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=215&view=rev Author: glslang Date: 2007-07-28 16:17:23 -0700 (Sat, 28 Jul 2007) Log Message: ----------- +initial Preferences plugins pane implementation 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/HDRFlow.xcodeproj/project.pbxproj Added Paths: ----------- trunk/app/HDRFlow/HDRFlowController.mm trunk/app/HDRFlow/PlugInsPreferencesController.h trunk/app/HDRFlow/PlugInsPreferencesController.mm trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm Removed Paths: ------------- trunk/app/HDRFlow/HDRFlowController.m Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-28 18:46:38 UTC (rev 214) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-28 23:17:23 UTC (rev 215) @@ -2,6 +2,11 @@ IBClasses = ( {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, { + CLASS = PlugInsPreferencesController; + 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-28 18:46:38 UTC (rev 214) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 23:17:23 UTC (rev 215) @@ -3,13 +3,13 @@ <plist version="1.0"> <dict> <key>IBDocumentLocation</key> - <string>69 54 356 240 0 0 1440 878 </string> + <string>59 71 356 240 0 0 1440 878 </string> <key>IBEditorPositions</key> <dict> <key>10</key> <string>514 465 412 270 0 0 1440 878 </string> <key>12</key> - <string>500 476 439 314 0 0 1440 878 </string> + <string>500 443 439 314 0 0 1440 878 </string> <key>33</key> <string>519 453 401 293 0 0 1440 878 </string> </dict> @@ -17,10 +17,10 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>12</integer> <integer>33</integer> <integer>5</integer> <integer>10</integer> - <integer>12</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/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-28 18:46:38 UTC (rev 214) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-28 23:17:23 UTC (rev 215) @@ -11,12 +11,14 @@ 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; }; 673D04500C522C980096513A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 673D044F0C522C980096513A /* PreferencesController.m */; }; 674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; }; + 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */; }; 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; }; 67A8A6EA0C41836600DB3F1B /* Python.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67A8A6E90C41836600DB3F1B /* Python.framework */; }; 67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 67A8A73D0C4183C500DB3F1B /* ScriptEngine.cpp */; }; - 67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */; }; 67C064EE0C52231A00E9ED8E /* Preferences.nib in Resources */ = {isa = PBXBuildFile; fileRef = 67C064EC0C52231A00E9ED8E /* Preferences.nib */; }; 67C0BA2B0C5B69C600E0E258 /* Viewer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 67C0BA2A0C5B69C600E0E258 /* Viewer.cpp */; }; + 67C0BED90C5BCD4600E0E258 /* HDRFlowController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 67C0BED80C5BCD4600E0E258 /* HDRFlowController.mm */; }; + 67C0BEFB0C5BED8500E0E258 /* PlugInsPreferencesController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 67C0BEFA0C5BED8500E0E258 /* PlugInsPreferencesController.mm */; }; 67C3D3220C53A71000136EE8 /* ToolbarHolder.m in Sources */ = {isa = PBXBuildFile; fileRef = 67C3D3210C53A71000136EE8 /* ToolbarHolder.m */; }; 67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; }; 67CF88AA0C53D62E005B6662 /* AdvancedPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */; }; @@ -45,15 +47,19 @@ 673D04450C522A610096513A /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = "<group>"; }; 673D044F0C522C980096513A /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = "<group>"; }; 674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; }; + 6777402D0C5C0022005FF29D /* PlugInsPreferencesOutlineViewNode.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PlugInsPreferencesOutlineViewNode.h; sourceTree = "<group>"; }; + 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = PlugInsPreferencesOutlineViewNode.mm; sourceTree = "<group>"; }; 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; sourceTree = "<group>"; }; 67A8A6E40C4181C600DB3F1B /* ScriptEngine.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = ScriptEngine.hpp; sourceTree = "<group>"; }; 67A8A6E90C41836600DB3F1B /* Python.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; }; 67A8A73D0C4183C500DB3F1B /* ScriptEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptEngine.cpp; sourceTree = "<group>"; }; 67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HDRFlowController.h; sourceTree = "<group>"; }; - 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = HDRFlowController.m; sourceTree = "<group>"; }; 67C064ED0C52231A00E9ED8E /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/Preferences.nib; sourceTree = "<group>"; }; 67C0BA220C5B69AF00E0E258 /* Viewer.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Viewer.hpp; sourceTree = "<group>"; }; 67C0BA2A0C5B69C600E0E258 /* Viewer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Viewer.cpp; sourceTree = "<group>"; }; + 67C0BED80C5BCD4600E0E258 /* HDRFlowController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = HDRFlowController.mm; sourceTree = "<group>"; }; + 67C0BEF40C5BED2C00E0E258 /* PlugInsPreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PlugInsPreferencesController.h; sourceTree = "<group>"; }; + 67C0BEFA0C5BED8500E0E258 /* PlugInsPreferencesController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = PlugInsPreferencesController.mm; sourceTree = "<group>"; }; 67C3D3170C5361C600136EE8 /* ToolbarHolder.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ToolbarHolder.h; sourceTree = "<group>"; }; 67C3D3210C53A71000136EE8 /* ToolbarHolder.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ToolbarHolder.m; sourceTree = "<group>"; }; 67C8D8B70C4AD8340006B871 /* bootstrap.py */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.script.python; name = bootstrap.py; path = Scripts/bootstrap.py; sourceTree = "<group>"; }; @@ -91,7 +97,11 @@ 67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */, 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */, 67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */, - 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */, + 67C0BED80C5BCD4600E0E258 /* HDRFlowController.mm */, + 67C0BEF40C5BED2C00E0E258 /* PlugInsPreferencesController.h */, + 67C0BEFA0C5BED8500E0E258 /* PlugInsPreferencesController.mm */, + 6777402D0C5C0022005FF29D /* PlugInsPreferencesOutlineViewNode.h */, + 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */, 673D04450C522A610096513A /* PreferencesController.h */, 673D044F0C522C980096513A /* PreferencesController.m */, 671E22910C41652E00CA1860 /* ScriptEditorController.h */, @@ -259,12 +269,14 @@ 8D11072D0486CEB800E47090 /* main.m in Sources */, 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */, 67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */, - 67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */, 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */, 67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */, 673D04500C522C980096513A /* PreferencesController.m in Sources */, 67C3D3220C53A71000136EE8 /* ToolbarHolder.m in Sources */, 67C0BA2B0C5B69C600E0E258 /* Viewer.cpp in Sources */, + 67C0BED90C5BCD4600E0E258 /* HDRFlowController.mm in Sources */, + 67C0BEFB0C5BED8500E0E258 /* PlugInsPreferencesController.mm in Sources */, + 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; Deleted: trunk/app/HDRFlow/HDRFlowController.m =================================================================== --- trunk/app/HDRFlow/HDRFlowController.m 2007-07-28 18:46:38 UTC (rev 214) +++ trunk/app/HDRFlow/HDRFlowController.m 2007-07-28 23:17:23 UTC (rev 215) @@ -1,84 +0,0 @@ - -// HDRFlow - A image processing application - -// Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. - -#import "HDRFlowController.h" -#import "ViewportOpenGLView.h" -#import "PreferencesController.h" - -@implementation HDRFlowController - -#pragma mark ---- IB actions ---- - -- ( void ) openPanelDidEnd: ( NSOpenPanel* ) panel returnCode: ( int ) rc contextInfo: ( void* ) ctx -{ - if( rc == NSOKButton ) - { - } -} - -- ( IBAction ) fileOpen: ( id ) sender -{ - NSOpenPanel* openPanel = [ NSOpenPanel openPanel ]; - - [ openPanel setCanChooseDirectories: YES ]; - [ openPanel setCanChooseFiles: YES ]; - [ openPanel setAllowsMultipleSelection: YES ]; - - NSArray* fileTypes = [ NSArray arrayWithObjects:@"exr", @"jpg", nil ]; - - [ openPanel beginSheetForDirectory: nil - file: nil - types: fileTypes - modalForWindow: [ NSApp mainWindow ] - modalDelegate: self - didEndSelector: @selector( openPanelDidEnd: returnCode: contextInfo: ) - contextInfo: nil ]; -} - -- ( IBAction ) scriptEditor: ( id ) sender -{ - if( scriptEditor == nil ) - scriptEditor = [ [ ScriptEditorController alloc ] initWithWindowNibName: @"ScriptEditor" ]; - - [ scriptEditor showWindow: self ]; -} - -- ( IBAction ) viewFullscreen: ( id ) sender -{ - [ openGLView fullscreen ]; -} - -- ( IBAction ) preferences: ( id ) sender -{ - if( preferences == nil ) - preferences = [ [ PreferencesController alloc ] initWithWindowNibName: @"Preferences" ]; - - [ preferences showWindow: self ]; -} - -- ( BOOL ) acceptsFirstResponder -{ - return YES; -} - -- ( BOOL ) becomesFirstResponder -{ - return YES; -} - -- ( BOOL ) resignFirstResponder -{ - return YES; -} - -- ( void ) dealloc -{ - [ scriptEditor dealloc ]; - [ super dealloc ]; -} - -@end Added: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm (rev 0) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-07-28 23:17:23 UTC (rev 215) @@ -0,0 +1,84 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#import "HDRFlowController.h" +#import "ViewportOpenGLView.h" +#import "PreferencesController.h" + +@implementation HDRFlowController + +#pragma mark ---- IB actions ---- + +- ( void ) openPanelDidEnd: ( NSOpenPanel* ) panel returnCode: ( int ) rc contextInfo: ( void* ) ctx +{ + if( rc == NSOKButton ) + { + } +} + +- ( IBAction ) fileOpen: ( id ) sender +{ + NSOpenPanel* openPanel = [ NSOpenPanel openPanel ]; + + [ openPanel setCanChooseDirectories: YES ]; + [ openPanel setCanChooseFiles: YES ]; + [ openPanel setAllowsMultipleSelection: YES ]; + + NSArray* fileTypes = [ NSArray arrayWithObjects:@"exr", @"jpg", nil ]; + + [ openPanel beginSheetForDirectory: nil + file: nil + types: fileTypes + modalForWindow: [ NSApp mainWindow ] + modalDelegate: self + didEndSelector: @selector( openPanelDidEnd: returnCode: contextInfo: ) + contextInfo: nil ]; +} + +- ( IBAction ) scriptEditor: ( id ) sender +{ + if( scriptEditor == nil ) + scriptEditor = [ [ ScriptEditorController alloc ] initWithWindowNibName: @"ScriptEditor" ]; + + [ scriptEditor showWindow: self ]; +} + +- ( IBAction ) viewFullscreen: ( id ) sender +{ + [ openGLView fullscreen ]; +} + +- ( IBAction ) preferences: ( id ) sender +{ + if( preferences == nil ) + preferences = [ [ PreferencesController alloc ] initWithWindowNibName: @"Preferences" ]; + + [ preferences showWindow: self ]; +} + +- ( BOOL ) acceptsFirstResponder +{ + return YES; +} + +- ( BOOL ) becomesFirstResponder +{ + return YES; +} + +- ( BOOL ) resignFirstResponder +{ + return YES; +} + +- ( void ) dealloc +{ + [ scriptEditor dealloc ]; + [ super dealloc ]; +} + +@end Added: trunk/app/HDRFlow/PlugInsPreferencesController.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.h (rev 0) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-07-28 23:17:23 UTC (rev 215) @@ -0,0 +1,17 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#import "PlugInsPreferencesOutlineViewNode.h" + +@interface PlugInsPreferencesController : NSObject +{ +} + +- ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item; +- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView isItemExpandable: ( id ) item; + +@end Added: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm (rev 0) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-28 23:17:23 UTC (rev 215) @@ -0,0 +1,22 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#import "PlugInsPreferencesController.h" + +@implementation PlugInsPreferencesController + +- ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item +{ + return item == nil ? 1 : [ item numberOfChildren ]; +} + +- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView isItemExpandable: ( id ) item +{ + return item == nil ? YES : [ item numberOfChildren ] != 0; +} + +@end Added: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h (rev 0) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-28 23:17:23 UTC (rev 215) @@ -0,0 +1,16 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#import <Cocoa/Cocoa.h> + +@interface PlugInsPreferencesOutlineViewNode : NSObject +{ +} + +- ( int ) numberOfChildren; + +@end Added: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm (rev 0) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-28 23:17:23 UTC (rev 215) @@ -0,0 +1,17 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#import "PlugInsPreferencesOutlineViewNode.h" + +@implementation PlugInsPreferencesOutlineViewNode + +- ( int ) numberOfChildren +{ + return 0; +} + +@end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-07-29 08:31:16
|
Revision: 216 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=216&view=rev Author: glslang Date: 2007-07-29 01:31:14 -0700 (Sun, 29 Jul 2007) Log Message: ----------- + eol-style to native Property Changed: ---------------- trunk/app/HDRFlow/HDRFlowController.mm trunk/app/HDRFlow/PlugInsPreferencesController.h trunk/app/HDRFlow/PlugInsPreferencesController.mm trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm trunk/app/HDRFlow/Viewer.cpp trunk/app/HDRFlow/Viewer.hpp Property changes on: trunk/app/HDRFlow/HDRFlowController.mm ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/PlugInsPreferencesController.h ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/PlugInsPreferencesController.mm ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/Viewer.cpp ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/Viewer.hpp ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
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. |
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. |
From: <gl...@us...> - 2007-07-30 22:22:37
|
Revision: 220 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=220&view=rev Author: glslang Date: 2007-07-30 15:22:35 -0700 (Mon, 30 Jul 2007) Log Message: ----------- +Initial table view bindings Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib 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 22:02:38 UTC (rev 219) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-30 22:22:35 UTC (rev 220) @@ -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>33</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/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-29 22:02:38 UTC (rev 219) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-30 22:22:35 UTC (rev 220) @@ -18,7 +18,8 @@ - ( void ) addChildObject: ( id ) childObject; - ( int ) numberOfChildren; - ( id ) childAtIndex: ( int ) index; - - ( NSString* ) itemName; +- ( void ) indexPath; + @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-29 22:02:38 UTC (rev 219) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-30 22:22:35 UTC (rev 220) @@ -45,4 +45,8 @@ return itemName; } +- ( void ) indexPath +{ +} + @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-03 21:29:45
|
Revision: 221 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=221&view=rev Author: glslang Date: 2007-08-03 14:29:44 -0700 (Fri, 03 Aug 2007) Log Message: ----------- +Plugins Preferences Popup button and Outline view synchronised update 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-30 22:22:35 UTC (rev 220) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-03 21:29:44 UTC (rev 221) @@ -17,10 +17,10 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> - <integer>5</integer> <integer>12</integer> + <integer>10</integer> <integer>33</integer> - <integer>10</integer> + <integer>5</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-30 22:22:35 UTC (rev 220) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-08-03 21:29:44 UTC (rev 221) @@ -13,13 +13,6 @@ PlugInsPreferencesOutlineViewNode* selectedItem; } -- ( 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; - - ( void ) initRootItems; @end Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-07-30 22:22:35 UTC (rev 220) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-08-03 21:29:44 UTC (rev 221) @@ -26,42 +26,6 @@ [ super dealloc ]; } -- ( int ) outlineView: ( NSOutlineView* ) outlineView numberOfChildrenOfItem: ( id ) item -{ - return item == nil ? 1 : [ item numberOfChildren ]; -} - -- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView isItemExpandable: ( id ) item -{ - return [ selectedItem numberOfChildren ] != 0; -} - -- ( id ) outlineView: ( NSOutlineView* ) outlineView child: ( int ) index ofItem: ( id ) item -{ - if( item == nil ) - return selectedItem; - else - return [ item childAtIndex: index ]; -} - -- ( id ) outlineView: ( NSOutlineView* ) outlineView objectValueForTableColumn: ( NSTableColumn* ) tableColumn byItem: ( id ) item -{ - if( item == nil ) - return [ selectedItem itemName ]; - else - return [ item itemName ]; -} - -- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldEditTableColumn: ( NSTableColumn* ) tableColumn item: ( id ) item -{ - return NO; -} - -- ( BOOL ) outlineView: ( NSOutlineView* ) outlineView shouldSelectItem: ( id ) item -{ - return YES; -} - - ( void ) initRootItems { [ rootItems addObject: [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: @"All" ] ]; Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-07-30 22:22:35 UTC (rev 220) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-08-03 21:29:44 UTC (rev 221) @@ -17,9 +17,8 @@ - ( void ) addChildObject: ( id ) childObject; - ( int ) numberOfChildren; -- ( id ) childAtIndex: ( int ) index; - ( NSString* ) itemName; +- ( NSArray* ) children; +- ( BOOL ) isLeaf; -- ( void ) indexPath; - @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-07-30 22:22:35 UTC (rev 220) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-08-03 21:29:44 UTC (rev 221) @@ -35,18 +35,19 @@ return [ children count ]; } -- ( id ) childAtIndex: ( int ) index +- ( NSString* ) itemName { - return [ [ [ children objectAtIndex: index ] retain ] autorelease ]; + return itemName; } -- ( NSString* ) itemName +- ( NSArray* ) children { - return itemName; + return children; } -- ( void ) indexPath +- ( BOOL ) isLeaf { + return [ self numberOfChildren ] == 0; } @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-04 13:10:58
|
Revision: 222 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=222&view=rev Author: glslang Date: 2007-08-04 06:10:53 -0700 (Sat, 04 Aug 2007) Log Message: ----------- + Preferences plugins filling of Outline view 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-08-03 21:29:44 UTC (rev 221) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-04 13:10:53 UTC (rev 222) @@ -17,10 +17,10 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> - <integer>12</integer> <integer>10</integer> + <integer>5</integer> <integer>33</integer> - <integer>5</integer> + <integer>12</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-08-03 21:29:44 UTC (rev 221) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-08-04 13:10:53 UTC (rev 222) @@ -9,10 +9,11 @@ @interface PlugInsPreferencesController : NSObject { - NSMutableArray* rootItems; + NSMutableArray* plugIns; PlugInsPreferencesOutlineViewNode* selectedItem; } -- ( void ) initRootItems; +- ( void ) initPlugIns; +- ( void ) initNodeMetadata: ( NSString* ) name library: ( NSString* ) library type: ( NSString* ) type; @end Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-08-03 21:29:44 UTC (rev 221) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-08-04 13:10:53 UTC (rev 222) @@ -5,34 +5,87 @@ // Released under the GPL. // For more information, see http://www.cryogenicgraphics.com/hdrflow. +#import <HDRFlow/openlibraries.hpp> + #import "PlugInsPreferencesController.h" +namespace opl = olib::openpluginlib; + +namespace +{ + struct query_traits + { + explicit query_traits( const opl::wstring& libname, const opl::wstring& type ) + : libname_( libname ) + , type_( type ) + { } + + opl::wstring libname( ) const + { return libname_; } + + opl::wstring to_match( ) const + { return L""; } + + opl::wstring type( ) const + { return type_; } + + int merit( ) const + { return 0; } + + opl::wstring libname_; + opl::wstring type_; + }; +} + @implementation PlugInsPreferencesController - ( id ) init { [ super init ]; - rootItems = [ [ NSMutableArray alloc ] init ]; - [ self initRootItems ]; - selectedItem = [ rootItems objectAtIndex: 0 ]; + opl::init( ); + plugIns = [ [ NSMutableArray alloc ] init ]; + + [ self initPlugIns ]; + selectedItem = [ plugIns objectAtIndex: 0 ]; + return self; } - ( void ) dealloc { - [ rootItems release ]; + [ plugIns release ]; [ super dealloc ]; } -- ( void ) initRootItems +- ( void ) initPlugIns { - [ 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" ] ]; + [ self initNodeMetadata: @"All" library: @"" type: @"" ]; + [ self initNodeMetadata: @"Image" library: @"openimagelib" type: @"" ]; + [ self initNodeMetadata: @"Media" library: @"openmedialib" type: @"" ]; + [ self initNodeMetadata: @"Effects" library: @"openeffectslib" type: @"" ]; + [ self initNodeMetadata: @"OFX" library: @"" type: @"ofx" ]; } +- ( void ) initNodeMetadata: ( NSString* ) name library: ( NSString* ) library type: ( NSString* ) type +{ + typedef opl::discovery<query_traits> discovery; + + discovery plugins( query_traits( opl::to_wstring( [ library UTF8String ] ), opl::to_wstring( [ type UTF8String ] ) ) ); + if( !plugins.empty( ) ) + { + PlugInsPreferencesOutlineViewNode* node = [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: name ]; + + for( discovery::const_iterator I = plugins.begin( ); I != plugins.end( ); ++I ) + { + PlugInsPreferencesOutlineViewNode* child = + [ [ PlugInsPreferencesOutlineViewNode alloc ] initWithString: [ [ NSString alloc ] initWithUTF8String: opl::to_string( I->name( ) ).c_str( ) ] ]; + [ node addChildObject: child ]; + } + + [ plugIns addObject: node ]; + } +} + @end Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-08-03 21:29:44 UTC (rev 221) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-08-04 13:10:53 UTC (rev 222) @@ -16,8 +16,9 @@ - ( id ) initWithString: ( NSString* ) name; - ( void ) addChildObject: ( id ) childObject; +- ( NSString* ) itemName; + - ( int ) numberOfChildren; -- ( NSString* ) itemName; - ( NSArray* ) children; - ( BOOL ) isLeaf; Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-08-03 21:29:44 UTC (rev 221) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-08-04 13:10:53 UTC (rev 222) @@ -13,6 +13,7 @@ { [ super init ]; children = [ [ NSMutableArray alloc ] init ]; + itemName = [ [ NSString alloc ] initWithString: name ]; return self; @@ -30,14 +31,16 @@ [ children addObject: childObject ]; } -- ( int ) numberOfChildren +- ( NSString* ) itemName { - return [ children count ]; + return itemName; } -- ( NSString* ) itemName +#pragma mark ---- NSTreeController and Bindings ---- + +- ( int ) numberOfChildren { - return itemName; + return [ children count ]; } - ( NSArray* ) children This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-04 18:12:59
|
Revision: 226 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=226&view=rev Author: glslang Date: 2007-08-04 11:12:56 -0700 (Sat, 04 Aug 2007) Log Message: ----------- + small refactoring of ScriptEngine to support a bootstrap py script Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlowController.h trunk/app/HDRFlow/HDRFlowController.mm trunk/app/HDRFlow/ScriptEditorController.h trunk/app/HDRFlow/ScriptEditorController.mm Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/HDRFlowController.h =================================================================== --- trunk/app/HDRFlow/HDRFlowController.h 2007-08-04 15:50:45 UTC (rev 225) +++ trunk/app/HDRFlow/HDRFlowController.h 2007-08-04 18:12:56 UTC (rev 226) @@ -12,13 +12,21 @@ @class ViewportOpenGLView; @class PreferencesController; +// forward declaration +namespace hdrflow { class ScriptEngine; } + @interface HDRFlowController : NSObject { ScriptEditorController* scriptEditor; + PreferencesController* preferences; + IBOutlet ViewportOpenGLView* openGLView; - PreferencesController* preferences; + + hdrflow::ScriptEngine* engine; } +- ( id ) init; + - ( BOOL ) acceptsFirstResponder; - ( BOOL ) becomesFirstResponder; - ( BOOL ) resignFirstResponder; Modified: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm 2007-08-04 15:50:45 UTC (rev 225) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-08-04 18:12:56 UTC (rev 226) @@ -5,12 +5,29 @@ // Released under the GPL. // For more information, see http://www.cryogenicgraphics.com/hdrflow. +#import "ScriptEngine.hpp" + #import "HDRFlowController.h" #import "ViewportOpenGLView.h" #import "PreferencesController.h" +#import "ScriptEditorController.h" @implementation HDRFlowController +- ( id ) init +{ + [ super init ]; + engine = new hdrflow::ScriptEngine( ); + return self; +} + +- ( void ) dealloc +{ + delete engine; + [ scriptEditor dealloc ]; + [ super dealloc ]; +} + #pragma mark ---- IB actions ---- - ( void ) openPanelDidEnd: ( NSOpenPanel* ) panel returnCode: ( int ) rc contextInfo: ( void* ) ctx @@ -42,7 +59,10 @@ - ( IBAction ) scriptEditor: ( id ) sender { if( scriptEditor == nil ) + { scriptEditor = [ [ ScriptEditorController alloc ] initWithWindowNibName: @"ScriptEditor" ]; + [ scriptEditor setScriptEngine: engine ]; + } [ scriptEditor showWindow: self ]; } @@ -75,10 +95,4 @@ return YES; } -- ( void ) dealloc -{ - [ scriptEditor dealloc ]; - [ super dealloc ]; -} - @end Modified: trunk/app/HDRFlow/ScriptEditorController.h =================================================================== --- trunk/app/HDRFlow/ScriptEditorController.h 2007-08-04 15:50:45 UTC (rev 225) +++ trunk/app/HDRFlow/ScriptEditorController.h 2007-08-04 18:12:56 UTC (rev 226) @@ -16,9 +16,11 @@ IBOutlet NSTextView* scriptOutput_; IBOutlet NSTextField* scriptStatus_; - hdrflow::ScriptEngine* engine_; + hdrflow::ScriptEngine* engine; } +- ( void ) setScriptEngine: ( hdrflow::ScriptEngine* ) scriptEngine; + - ( void ) executeScript; - ( void ) clearScript; Modified: trunk/app/HDRFlow/ScriptEditorController.mm =================================================================== --- trunk/app/HDRFlow/ScriptEditorController.mm 2007-08-04 15:50:45 UTC (rev 225) +++ trunk/app/HDRFlow/ScriptEditorController.mm 2007-08-04 18:12:56 UTC (rev 226) @@ -11,6 +11,11 @@ @implementation ScriptEditorController +- ( void ) setScriptEngine: ( hdrflow::ScriptEngine* ) scriptEngine +{ + engine = scriptEngine; +} + #pragma mark ---- IB actions ---- - ( IBAction ) executeScript: ( id ) sender @@ -25,13 +30,11 @@ - ( id ) initWithWindowNibName: ( NSString* ) windowNibName { - engine_ = new hdrflow::ScriptEngine( ); return [ super initWithWindowNibName: windowNibName ]; } - ( void ) dealloc { - delete engine_; [ super dealloc ]; } @@ -39,12 +42,12 @@ { NSString* script = [ scriptEdit_ string ]; - if( engine_->eval( [ script UTF8String ] ) ) + if( engine->eval( [ script UTF8String ] ) ) [ scriptStatus_ setStringValue: @"Script successful." ]; else [ scriptStatus_ setStringValue: @"Script failed." ]; - NSString* out = [ [ [ NSString alloc ] initWithUTF8String: engine_->result( ).c_str( ) ] autorelease ]; + NSString* out = [ [ [ NSString alloc ] initWithUTF8String: engine->result( ).c_str( ) ] autorelease ]; [ scriptOutput_ setEditable: YES ]; [ scriptOutput_ insertText: out ]; [ scriptOutput_ setEditable: NO ]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-05 15:23:47
|
Revision: 229 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=229&view=rev Author: glslang Date: 2007-08-05 08:23:45 -0700 (Sun, 05 Aug 2007) Log Message: ----------- + Viewer settings bindings Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlowController.h trunk/app/HDRFlow/HDRFlowController.mm Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-04 22:33:23 UTC (rev 228) +++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-05 15:23:45 UTC (rev 229) @@ -15,9 +15,9 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> - <integer>29</integer> <integer>266</integer> <integer>21</integer> + <integer>29</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-04 22:33:23 UTC (rev 228) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-05 15:23:45 UTC (rev 229) @@ -9,7 +9,7 @@ <key>10</key> <string>514 465 412 270 0 0 1440 878 </string> <key>12</key> - <string>435 427 594 345 0 0 1440 878 </string> + <string>423 427 594 345 0 0 1440 878 </string> <key>33</key> <string>519 453 401 293 0 0 1440 878 </string> </dict> @@ -18,8 +18,8 @@ <key>IBOpenObjects</key> <array> <integer>33</integer> + <integer>10</integer> <integer>12</integer> - <integer>10</integer> <integer>5</integer> </array> <key>IBSystem Version</key> Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/HDRFlowController.h =================================================================== --- trunk/app/HDRFlow/HDRFlowController.h 2007-08-04 22:33:23 UTC (rev 228) +++ trunk/app/HDRFlow/HDRFlowController.h 2007-08-05 15:23:45 UTC (rev 229) @@ -17,6 +17,9 @@ @interface HDRFlowController : NSObject { + NSMutableArray* channels; + NSMutableArray* alpha; + ScriptEditorController* scriptEditor; PreferencesController* preferences; @@ -27,6 +30,7 @@ - ( id ) init; - ( void ) initScriptEngine; +- ( void ) initChannelsAndAlpha; - ( BOOL ) acceptsFirstResponder; - ( BOOL ) becomesFirstResponder; Modified: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm 2007-08-04 22:33:23 UTC (rev 228) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-08-05 15:23:45 UTC (rev 229) @@ -16,6 +16,8 @@ - ( id ) init { [ super init ]; + + [ self initChannelsAndAlpha ]; [ self initScriptEngine ]; return self; @@ -34,10 +36,30 @@ engine->eval( [ bootstrap UTF8String ] ); } +- ( void ) initChannelsAndAlpha +{ + channels = [ [ NSMutableArray alloc ] init ]; + [ channels addObject: [ [ NSString alloc ] initWithString: @"RGBA" ] ]; + [ channels addObject: [ [ NSString alloc ] initWithString: @"Red" ] ]; + [ channels addObject: [ [ NSString alloc ] initWithString: @"Green" ] ]; + [ channels addObject: [ [ NSString alloc ] initWithString: @"Blue" ] ]; + [ channels addObject: [ [ NSString alloc ] initWithString: @"Alpha" ] ]; + + alpha = [ [ NSMutableArray alloc ] init ]; + [ alpha addObject: [ [ NSString alloc ] initWithString: @"Alpha" ] ]; + [ alpha addObject: [ [ NSString alloc ] initWithString: @"Red" ] ]; + [ alpha addObject: [ [ NSString alloc ] initWithString: @"Green" ] ]; + [ alpha addObject: [ [ NSString alloc ] initWithString: @"Blue" ] ]; +} + - ( void ) dealloc { delete engine; + + [ channels release ]; + [ alpha release ]; [ scriptEditor dealloc ]; + [ super dealloc ]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-05 18:46:15
|
Revision: 230 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=230&view=rev Author: glslang Date: 2007-08-05 11:46:12 -0700 (Sun, 05 Aug 2007) Log Message: ----------- + initial setup cache code Modified Paths: -------------- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj trunk/app/HDRFlow/Viewer.hpp Added Paths: ----------- trunk/app/HDRFlow/Bucket.cpp trunk/app/HDRFlow/Bucket.hpp trunk/app/HDRFlow/Cache.cpp trunk/app/HDRFlow/Cache.hpp Added: trunk/app/HDRFlow/Bucket.cpp =================================================================== --- trunk/app/HDRFlow/Bucket.cpp (rev 0) +++ trunk/app/HDRFlow/Bucket.cpp 2007-08-05 18:46:12 UTC (rev 230) @@ -0,0 +1,11 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#include "Bucket.hpp" + +namespace hdrflow { +} Added: trunk/app/HDRFlow/Bucket.hpp =================================================================== --- trunk/app/HDRFlow/Bucket.hpp (rev 0) +++ trunk/app/HDRFlow/Bucket.hpp 2007-08-05 18:46:12 UTC (rev 230) @@ -0,0 +1,24 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#ifndef BUCKET_INC_ +#define BUCKET_INC_ + +#include <HDRFlow/openlibraries.hpp> + +namespace hdrflow { + +class Bucket +{ +public: + explicit Bucket( ); +}; + +} + +#endif + Added: trunk/app/HDRFlow/Cache.cpp =================================================================== --- trunk/app/HDRFlow/Cache.cpp (rev 0) +++ trunk/app/HDRFlow/Cache.cpp 2007-08-05 18:46:12 UTC (rev 230) @@ -0,0 +1,11 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#include "Cache.hpp" + +namespace hdrflow { +} Added: trunk/app/HDRFlow/Cache.hpp =================================================================== --- trunk/app/HDRFlow/Cache.hpp (rev 0) +++ trunk/app/HDRFlow/Cache.hpp 2007-08-05 18:46:12 UTC (rev 230) @@ -0,0 +1,23 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#ifndef CACHE_INC_ +#define CACHE_INC_ + +#include <HDRFlow/openlibraries.hpp> + +namespace hdrflow { + +class Cache +{ +public: + explicit Cache( ); +}; + +} + +#endif Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-05 15:23:45 UTC (rev 229) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-05 18:46:12 UTC (rev 230) @@ -11,6 +11,8 @@ 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; }; 673D04500C522C980096513A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 673D044F0C522C980096513A /* PreferencesController.m */; }; 674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; }; + 676191B60C6643570076713C /* Bucket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 676191B50C6643570076713C /* Bucket.cpp */; }; + 676191BF0C6643B20076713C /* Cache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 676191BE0C6643B20076713C /* Cache.cpp */; }; 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */; }; 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; }; 67A8A6EA0C41836600DB3F1B /* Python.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67A8A6E90C41836600DB3F1B /* Python.framework */; }; @@ -47,6 +49,10 @@ 673D04450C522A610096513A /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = "<group>"; }; 673D044F0C522C980096513A /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = "<group>"; }; 674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; }; + 676191810C663D100076713C /* Cache.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Cache.hpp; sourceTree = "<group>"; }; + 676191A40C6642CC0076713C /* Bucket.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Bucket.hpp; sourceTree = "<group>"; }; + 676191B50C6643570076713C /* Bucket.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Bucket.cpp; sourceTree = "<group>"; }; + 676191BE0C6643B20076713C /* Cache.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Cache.cpp; sourceTree = "<group>"; }; 6777402D0C5C0022005FF29D /* PlugInsPreferencesOutlineViewNode.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PlugInsPreferencesOutlineViewNode.h; sourceTree = "<group>"; }; 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = PlugInsPreferencesOutlineViewNode.mm; sourceTree = "<group>"; }; 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; sourceTree = "<group>"; }; @@ -92,6 +98,10 @@ 080E96DDFE201D6D7F000001 /* Classes */ = { isa = PBXGroup; children = ( + 676191A40C6642CC0076713C /* Bucket.hpp */, + 676191B50C6643570076713C /* Bucket.cpp */, + 676191810C663D100076713C /* Cache.hpp */, + 676191BE0C6643B20076713C /* Cache.cpp */, 67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */, 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */, 67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */, @@ -277,6 +287,8 @@ 67C0BED90C5BCD4600E0E258 /* HDRFlowController.mm in Sources */, 67C0BEFB0C5BED8500E0E258 /* PlugInsPreferencesController.mm in Sources */, 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */, + 676191B60C6643570076713C /* Bucket.cpp in Sources */, + 676191BF0C6643B20076713C /* Cache.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; Modified: trunk/app/HDRFlow/Viewer.hpp =================================================================== --- trunk/app/HDRFlow/Viewer.hpp 2007-08-05 15:23:45 UTC (rev 229) +++ trunk/app/HDRFlow/Viewer.hpp 2007-08-05 18:46:12 UTC (rev 230) @@ -8,4 +8,19 @@ #ifndef VIEWER_INC_ #define VIEWER_INC_ +#include <HDRFlow/openlibraries.hpp> + +namespace hdrflow { + +class Viewer +{ +public: + explicit Viewer( ); + + void initialise( ); + void display( il::image_type_ptr im ); +}; + +} + #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-05 18:50:00
|
Revision: 231 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=231&view=rev Author: glslang Date: 2007-08-05 11:49:59 -0700 (Sun, 05 Aug 2007) Log Message: ----------- + eol-style to native Property Changed: ---------------- trunk/app/HDRFlow/Bucket.cpp trunk/app/HDRFlow/Bucket.hpp trunk/app/HDRFlow/Cache.cpp trunk/app/HDRFlow/Cache.hpp Property changes on: trunk/app/HDRFlow/Bucket.cpp ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/Bucket.hpp ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/Cache.cpp ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/app/HDRFlow/Cache.hpp ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-06 19:39:31
|
Revision: 233 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=233&view=rev Author: glslang Date: 2007-08-06 12:38:42 -0700 (Mon, 06 Aug 2007) Log Message: ----------- + Adds bindings to lut popup button Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlowController.h trunk/app/HDRFlow/HDRFlowController.mm Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-05 20:08:01 UTC (rev 232) +++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-06 19:38:42 UTC (rev 233) @@ -15,9 +15,9 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> - <integer>266</integer> <integer>21</integer> <integer>29</integer> + <integer>266</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/HDRFlowController.h =================================================================== --- trunk/app/HDRFlow/HDRFlowController.h 2007-08-05 20:08:01 UTC (rev 232) +++ trunk/app/HDRFlow/HDRFlowController.h 2007-08-06 19:38:42 UTC (rev 233) @@ -19,6 +19,7 @@ { NSMutableArray* channels; NSMutableArray* alpha; + NSMutableArray* lut; ScriptEditorController* scriptEditor; PreferencesController* preferences; @@ -30,7 +31,7 @@ - ( id ) init; - ( void ) initScriptEngine; -- ( void ) initChannelsAndAlpha; +- ( void ) initDrawer; - ( BOOL ) acceptsFirstResponder; - ( BOOL ) becomesFirstResponder; Modified: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm 2007-08-05 20:08:01 UTC (rev 232) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-08-06 19:38:42 UTC (rev 233) @@ -17,7 +17,7 @@ { [ super init ]; - [ self initChannelsAndAlpha ]; + [ self initDrawer ]; [ self initScriptEngine ]; return self; @@ -36,7 +36,7 @@ engine->eval( [ bootstrap UTF8String ] ); } -- ( void ) initChannelsAndAlpha +- ( void ) initDrawer { channels = [ [ NSMutableArray alloc ] init ]; [ channels addObject: [ [ NSString alloc ] initWithString: @"RGBA" ] ]; @@ -50,6 +50,10 @@ [ alpha addObject: [ [ NSString alloc ] initWithString: @"Red" ] ]; [ alpha addObject: [ [ NSString alloc ] initWithString: @"Green" ] ]; [ alpha addObject: [ [ NSString alloc ] initWithString: @"Blue" ] ]; + + lut = [ [ NSMutableArray alloc ] init ]; + [ lut addObject: [ [ NSString alloc ] initWithString: @"sRGB" ] ]; + [ lut addObject: [ [ NSString alloc ] initWithString: @"Linear" ] ]; } - ( void ) dealloc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-06 21:34:55
|
Revision: 235 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=235&view=rev Author: glslang Date: 2007-08-06 14:34:53 -0700 (Mon, 06 Aug 2007) Log Message: ----------- + initial view for dual monitor and fullscreen preferences Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib trunk/app/HDRFlow/PreferencesController.m Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-06 20:40:06 UTC (rev 234) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-06 21:34:53 UTC (rev 235) @@ -10,6 +10,8 @@ <string>514 465 412 270 0 0 1440 878 </string> <key>12</key> <string>423 427 594 345 0 0 1440 878 </string> + <key>173</key> + <string>642 546 155 107 0 0 1440 878 </string> <key>33</key> <string>519 453 401 293 0 0 1440 878 </string> </dict> @@ -17,10 +19,11 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>12</integer> <integer>33</integer> <integer>10</integer> - <integer>12</integer> <integer>5</integer> + <integer>173</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/PreferencesController.m =================================================================== --- trunk/app/HDRFlow/PreferencesController.m 2007-08-06 20:40:06 UTC (rev 234) +++ trunk/app/HDRFlow/PreferencesController.m 2007-08-06 21:34:53 UTC (rev 235) @@ -26,6 +26,8 @@ preferencesView = [ [ [ self window ] contentView ] retain ]; [ [ self window ] setToolbar: [ toolbarHolder toolbar ] ]; + + [ self setActiveView: generalView animate: YES ]; } - ( void ) dealloc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-12 20:39:18
|
Revision: 240 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=240&view=rev Author: glslang Date: 2007-08-12 13:39:16 -0700 (Sun, 12 Aug 2007) Log Message: ----------- +initial Cache implementation Modified Paths: -------------- trunk/app/HDRFlow/Bucket.hpp trunk/app/HDRFlow/Cache.cpp trunk/app/HDRFlow/Cache.hpp trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj Removed Paths: ------------- trunk/app/HDRFlow/Bucket.cpp Deleted: trunk/app/HDRFlow/Bucket.cpp =================================================================== --- trunk/app/HDRFlow/Bucket.cpp 2007-08-09 22:22:55 UTC (rev 239) +++ trunk/app/HDRFlow/Bucket.cpp 2007-08-12 20:39:16 UTC (rev 240) @@ -1,11 +0,0 @@ - -// HDRFlow - A image processing application - -// Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. - -#include "Bucket.hpp" - -namespace hdrflow { -} Modified: trunk/app/HDRFlow/Bucket.hpp =================================================================== --- trunk/app/HDRFlow/Bucket.hpp 2007-08-09 22:22:55 UTC (rev 239) +++ trunk/app/HDRFlow/Bucket.hpp 2007-08-12 20:39:16 UTC (rev 240) @@ -10,14 +10,37 @@ #include <HDRFlow/openlibraries.hpp> +namespace ml = olib::openmedialib::ml; + namespace hdrflow { class Bucket { public: - explicit Bucket( ); + explicit Bucket( int position, ml::frame_type_ptr frame ) + : position_( position ) + , frame_( frame ) + { } + + int position( ) const + { return position_; } + void set_position( int position ) + { position_ = position; } + + ml::frame_type_ptr frame( ) const + { return frame_; } + void set_frame( ml::frame_type_ptr frame ) + { frame_ = frame; } + + bool is_loaded( ) { return frame_ != 0; } + +private: + int position_; + ml::frame_type_ptr frame_; }; +typedef boost::shared_ptr<Bucket> BucketPtr; + } #endif Modified: trunk/app/HDRFlow/Cache.cpp =================================================================== --- trunk/app/HDRFlow/Cache.cpp 2007-08-09 22:22:55 UTC (rev 239) +++ trunk/app/HDRFlow/Cache.cpp 2007-08-12 20:39:16 UTC (rev 240) @@ -7,5 +7,59 @@ #include "Cache.hpp" +namespace pl = olib::openpluginlib; +namespace ml = olib::openmedialib::ml; + namespace hdrflow { + +bool Cache::connect( const pl::string& media, bool fill ) +{ + pl::string in( media + "/sequence: " ); + input_ = ml::create_input( in ); + if( input_ == 0 ) + return false; + + if( fill ) + { + for( int i = 0; i < buckets_.size( ); ++i ) + { + input_->seek( i, false ); + buckets_.push_back( BucketPtr( new Bucket( i, input_->fetch( ) ) ) ); + } + } + + return true; } + +BucketPtr Cache::reserve_bucket( int position ) +{ + const_iterator b = find_bucket( position ); + if( b == buckets_.end( ) ) + { + b = acquire_bucket( ); + if( b != buckets_.end( ) ) + { + input_->seek( position, false ); + + ( *b )->set_position( position ); + ( *b )->set_frame( input_->fetch( ) ); + } + } + else + { + + } + + return *b; +} + +int Cache::length( ) const +{ + if( input_ ) + return input_->get_frames( ); + + return 0; +} + + +} Modified: trunk/app/HDRFlow/Cache.hpp =================================================================== --- trunk/app/HDRFlow/Cache.hpp 2007-08-09 22:22:55 UTC (rev 239) +++ trunk/app/HDRFlow/Cache.hpp 2007-08-12 20:39:16 UTC (rev 240) @@ -8,16 +8,52 @@ #ifndef CACHE_INC_ #define CACHE_INC_ +#include <list> + #include <HDRFlow/openlibraries.hpp> +#include "Bucket.hpp" + +namespace pl = olib::openpluginlib; +namespace ml = olib::openmedialib::ml; + namespace hdrflow { class Cache { public: - explicit Cache( ); + typedef std::list<BucketPtr> container; + typedef container::iterator iterator; + typedef container::const_iterator const_iterator; + typedef container::reverse_iterator reverse_iterator; + typedef container::const_reverse_iterator const_reverse_iterator; + +public: + explicit Cache( int n ) + : buckets_( n ) + { } + + bool connect( const pl::string& media, bool fill = true ); + void disconnect( ); + void flush( ); + void clear( ); + + BucketPtr reserve_bucket( int position ); + + int length( ) const; + bool valid( ) const { return input_ != 0; } + +private: + const_iterator find_bucket( int position ) const; + const_iterator acquire_bucket( ); + +private: + container buckets_; + ml::input_type_ptr input_; }; +typedef boost::shared_ptr<Cache> CachePtr; + } #endif Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-09 22:22:55 UTC (rev 239) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-12 20:39:16 UTC (rev 240) @@ -11,7 +11,6 @@ 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; }; 673D04500C522C980096513A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 673D044F0C522C980096513A /* PreferencesController.m */; }; 674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; }; - 676191B60C6643570076713C /* Bucket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 676191B50C6643570076713C /* Bucket.cpp */; }; 676191BF0C6643B20076713C /* Cache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 676191BE0C6643B20076713C /* Cache.cpp */; }; 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */; }; 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; }; @@ -51,7 +50,6 @@ 674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; }; 676191810C663D100076713C /* Cache.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Cache.hpp; sourceTree = "<group>"; }; 676191A40C6642CC0076713C /* Bucket.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Bucket.hpp; sourceTree = "<group>"; }; - 676191B50C6643570076713C /* Bucket.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Bucket.cpp; sourceTree = "<group>"; }; 676191BE0C6643B20076713C /* Cache.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Cache.cpp; sourceTree = "<group>"; }; 6777402D0C5C0022005FF29D /* PlugInsPreferencesOutlineViewNode.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PlugInsPreferencesOutlineViewNode.h; sourceTree = "<group>"; }; 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = PlugInsPreferencesOutlineViewNode.mm; sourceTree = "<group>"; }; @@ -99,7 +97,6 @@ isa = PBXGroup; children = ( 676191A40C6642CC0076713C /* Bucket.hpp */, - 676191B50C6643570076713C /* Bucket.cpp */, 676191810C663D100076713C /* Cache.hpp */, 676191BE0C6643B20076713C /* Cache.cpp */, 67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */, @@ -287,7 +284,6 @@ 67C0BED90C5BCD4600E0E258 /* HDRFlowController.mm in Sources */, 67C0BEFB0C5BED8500E0E258 /* PlugInsPreferencesController.mm in Sources */, 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */, - 676191B60C6643570076713C /* Bucket.cpp in Sources */, 676191BF0C6643B20076713C /* Cache.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-12 21:10:47
|
Revision: 241 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=241&view=rev Author: glslang Date: 2007-08-12 14:10:41 -0700 (Sun, 12 Aug 2007) Log Message: ----------- + adds Source node header file. TBD Modified Paths: -------------- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj Added Paths: ----------- trunk/app/HDRFlow/Source.hpp Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-12 20:39:16 UTC (rev 240) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-12 21:10:41 UTC (rev 241) @@ -57,6 +57,7 @@ 67A8A6E40C4181C600DB3F1B /* ScriptEngine.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = ScriptEngine.hpp; sourceTree = "<group>"; }; 67A8A6E90C41836600DB3F1B /* Python.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; }; 67A8A73D0C4183C500DB3F1B /* ScriptEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptEngine.cpp; sourceTree = "<group>"; }; + 67B58EC60C6FAC2100A1C748 /* Source.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Source.hpp; sourceTree = "<group>"; }; 67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HDRFlowController.h; sourceTree = "<group>"; }; 67C064ED0C52231A00E9ED8E /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/Preferences.nib; sourceTree = "<group>"; }; 67C0BA220C5B69AF00E0E258 /* Viewer.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Viewer.hpp; sourceTree = "<group>"; }; @@ -158,6 +159,7 @@ 29B97317FDCFA39411CA2CEA /* Resources */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, + 67B58EC60C6FAC2100A1C748 /* Source.hpp */, ); name = HDRFlow; sourceTree = "<group>"; Added: trunk/app/HDRFlow/Source.hpp =================================================================== --- trunk/app/HDRFlow/Source.hpp (rev 0) +++ trunk/app/HDRFlow/Source.hpp 2007-08-12 21:10:41 UTC (rev 241) @@ -0,0 +1,30 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#ifndef SOURCE_INC_ +#define SOURCE_INC_ + +#include "Cache.hpp" + +namespace hdrflow { + +class Source +{ +public: + explicit Source( ) + { } + + + +private: +}; + +typedef boost::shared_ptr<Source> SourcePtr; + +} + +#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-12 22:53:36
|
Revision: 243 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=243&view=rev Author: glslang Date: 2007-08-12 15:53:34 -0700 (Sun, 12 Aug 2007) Log Message: ----------- + add rendering order and source popups to viewer drawer Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlowController.h trunk/app/HDRFlow/HDRFlowController.mm Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-12 21:11:42 UTC (rev 242) +++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-12 22:53:34 UTC (rev 243) @@ -15,9 +15,9 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>266</integer> + <integer>29</integer> <integer>21</integer> - <integer>29</integer> - <integer>266</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/HDRFlowController.h =================================================================== --- trunk/app/HDRFlow/HDRFlowController.h 2007-08-12 21:11:42 UTC (rev 242) +++ trunk/app/HDRFlow/HDRFlowController.h 2007-08-12 22:53:34 UTC (rev 243) @@ -19,6 +19,8 @@ { NSMutableArray* channels; NSMutableArray* alpha; + NSMutableArray* source; + NSMutableArray* order; NSMutableArray* lut; ScriptEditorController* scriptEditor; Modified: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm 2007-08-12 21:11:42 UTC (rev 242) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-08-12 22:53:34 UTC (rev 243) @@ -51,6 +51,16 @@ [ alpha addObject: [ [ NSString alloc ] initWithString: @"Green" ] ]; [ alpha addObject: [ [ NSString alloc ] initWithString: @"Blue" ] ]; + source = [ [ NSMutableArray alloc ] init ]; + [ source addObject: [ [ NSString alloc ] initWithString: @"A" ] ]; + [ source addObject: [ [ NSString alloc ] initWithString: @"B" ] ]; + [ source addObject: [ [ NSString alloc ] initWithString: @"AB" ] ]; + + order = [ [ NSMutableArray alloc ] init ]; + [ order addObject: [ [ NSString alloc ] initWithString: @"Top to Bottom" ] ]; + [ order addObject: [ [ NSString alloc ] initWithString: @"Left to Right" ] ]; + [ order addObject: [ [ NSString alloc ] initWithString: @"Spiral" ] ]; + lut = [ [ NSMutableArray alloc ] init ]; [ lut addObject: [ [ NSString alloc ] initWithString: @"sRGB" ] ]; [ lut addObject: [ [ NSString alloc ] initWithString: @"Linear" ] ]; @@ -62,6 +72,9 @@ [ channels release ]; [ alpha release ]; + [ source release ]; + [ order release ]; + [ lut release ]; [ scriptEditor dealloc ]; [ super dealloc ]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-13 20:48:47
|
Revision: 244 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=244&view=rev Author: glslang Date: 2007-08-13 13:48:45 -0700 (Mon, 13 Aug 2007) Log Message: ----------- + small changes to Source Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj trunk/app/HDRFlow/Source.hpp Added Paths: ----------- trunk/app/HDRFlow/Sink.hpp Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-12 22:53:34 UTC (rev 243) +++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-08-13 20:48:45 UTC (rev 244) @@ -15,9 +15,9 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>21</integer> + <integer>29</integer> <integer>266</integer> - <integer>29</integer> - <integer>21</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-12 22:53:34 UTC (rev 243) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-13 20:48:45 UTC (rev 244) @@ -45,6 +45,7 @@ 67032E9D0C46DB9C00FA55E2 /* HDRFlow.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HDRFlow.framework; path = /Library/Frameworks/HDRFlow.framework; sourceTree = "<absolute>"; }; 671E22910C41652E00CA1860 /* ScriptEditorController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ScriptEditorController.h; sourceTree = "<group>"; }; 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ScriptEditorController.mm; sourceTree = "<group>"; }; + 67399AE90C70F9DD007536EA /* Sink.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Sink.hpp; sourceTree = "<group>"; }; 673D04450C522A610096513A /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = "<group>"; }; 673D044F0C522C980096513A /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = "<group>"; }; 674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; }; @@ -160,6 +161,7 @@ 29B97317FDCFA39411CA2CEA /* Resources */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, + 67399AE90C70F9DD007536EA /* Sink.hpp */, ); name = HDRFlow; sourceTree = "<group>"; Added: trunk/app/HDRFlow/Sink.hpp =================================================================== --- trunk/app/HDRFlow/Sink.hpp (rev 0) +++ trunk/app/HDRFlow/Sink.hpp 2007-08-13 20:48:45 UTC (rev 244) @@ -0,0 +1,26 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. + +#ifndef SINK_INC_ +#define SINK_INC_ + +#include "Cache.hpp" + +namespace hdrflow { + +class Sink +{ +public: + explicit Sink( ) + { } +}; + +typedef boost::shared_ptr<Sink> SinkPtr; + +} + +#endif Modified: trunk/app/HDRFlow/Source.hpp =================================================================== --- trunk/app/HDRFlow/Source.hpp 2007-08-12 22:53:34 UTC (rev 243) +++ trunk/app/HDRFlow/Source.hpp 2007-08-13 20:48:45 UTC (rev 244) @@ -10,6 +10,8 @@ #include "Cache.hpp" +namespace pl = olib::openpluginlib; + namespace hdrflow { class Source @@ -18,9 +20,11 @@ explicit Source( ) { } + pl::string uri( ) const; + void set_uri( const pl::string& uri ); - private: + CachePtr cache_; }; typedef boost::shared_ptr<Source> SourcePtr; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-15 22:47:30
|
Revision: 247 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=247&view=rev Author: glslang Date: 2007-08-15 15:46:33 -0700 (Wed, 15 Aug 2007) Log Message: ----------- + changes to plugins preferences view Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj Added Paths: ----------- trunk/app/HDRFlow/Images/minusbutton.tiff trunk/app/HDRFlow/Images/plusbutton.tiff Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-14 21:53:44 UTC (rev 246) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-15 22:46:33 UTC (rev 247) @@ -7,9 +7,9 @@ <key>IBEditorPositions</key> <dict> <key>10</key> - <string>285 339 412 270 0 0 1440 878 </string> + <string>514 465 412 270 0 0 1440 878 </string> <key>12</key> - <string>665 397 594 345 0 0 1440 878 </string> + <string>423 427 594 345 0 0 1440 878 </string> <key>33</key> <string>519 453 401 293 0 0 1440 878 </string> </dict> @@ -17,10 +17,10 @@ <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>5</integer> + <integer>12</integer> <integer>10</integer> <integer>33</integer> - <integer>12</integer> - <integer>5</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/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-14 21:53:44 UTC (rev 246) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-15 22:46:33 UTC (rev 247) @@ -8,6 +8,8 @@ /* Begin PBXBuildFile section */ 67032E9E0C46DB9C00FA55E2 /* HDRFlow.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67032E9D0C46DB9C00FA55E2 /* HDRFlow.framework */; }; + 670E3BEC0C73AE93001D542B /* minusbutton.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 670E3BEA0C73AE93001D542B /* minusbutton.tiff */; }; + 670E3BED0C73AE93001D542B /* plusbutton.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 670E3BEB0C73AE93001D542B /* plusbutton.tiff */; }; 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; }; 673D04500C522C980096513A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 673D044F0C522C980096513A /* PreferencesController.m */; }; 674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; }; @@ -43,6 +45,8 @@ 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; }; 32CA4F630368D1EE00C91783 /* HDRFlow_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HDRFlow_Prefix.pch; sourceTree = "<group>"; }; 67032E9D0C46DB9C00FA55E2 /* HDRFlow.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HDRFlow.framework; path = /Library/Frameworks/HDRFlow.framework; sourceTree = "<absolute>"; }; + 670E3BEA0C73AE93001D542B /* minusbutton.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = minusbutton.tiff; path = Images/minusbutton.tiff; sourceTree = "<group>"; }; + 670E3BEB0C73AE93001D542B /* plusbutton.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = plusbutton.tiff; path = Images/plusbutton.tiff; sourceTree = "<group>"; }; 671E22910C41652E00CA1860 /* ScriptEditorController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ScriptEditorController.h; sourceTree = "<group>"; }; 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ScriptEditorController.mm; sourceTree = "<group>"; }; 67399AE90C70F9DD007536EA /* Sink.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Sink.hpp; sourceTree = "<group>"; }; @@ -211,6 +215,8 @@ 67F7A3EC0C52A1F900172987 /* Images */ = { isa = PBXGroup; children = ( + 670E3BEA0C73AE93001D542B /* minusbutton.tiff */, + 670E3BEB0C73AE93001D542B /* plusbutton.tiff */, 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */, 67F7A3ED0C52A21600172987 /* GeneralPreferences.tiff */, 67CF88AB0C53EFB8005B6662 /* PlugInsPreferences.tiff */, @@ -267,6 +273,8 @@ 67F7A3EE0C52A21600172987 /* GeneralPreferences.tiff in Resources */, 67CF88AA0C53D62E005B6662 /* AdvancedPreferences.tiff in Resources */, 67CF88AC0C53EFB8005B6662 /* PlugInsPreferences.tiff in Resources */, + 670E3BEC0C73AE93001D542B /* minusbutton.tiff in Resources */, + 670E3BED0C73AE93001D542B /* plusbutton.tiff in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; Added: trunk/app/HDRFlow/Images/minusbutton.tiff =================================================================== (Binary files differ) Property changes on: trunk/app/HDRFlow/Images/minusbutton.tiff ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/app/HDRFlow/Images/plusbutton.tiff =================================================================== (Binary files differ) Property changes on: trunk/app/HDRFlow/Images/plusbutton.tiff ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-16 21:05:33
|
Revision: 249 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=249&view=rev Author: glslang Date: 2007-08-16 14:05:26 -0700 (Thu, 16 Aug 2007) Log Message: ----------- +build updates Modified Paths: -------------- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj Removed Paths: ------------- trunk/app/HDRFlow/Sink.hpp trunk/app/HDRFlow/Source.hpp Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-16 20:36:02 UTC (rev 248) +++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-08-16 21:05:26 UTC (rev 249) @@ -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/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-16 20:36:02 UTC (rev 248) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-16 21:05:26 UTC (rev 249) @@ -49,7 +49,6 @@ 670E3BEB0C73AE93001D542B /* plusbutton.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = plusbutton.tiff; path = Images/plusbutton.tiff; sourceTree = "<group>"; }; 671E22910C41652E00CA1860 /* ScriptEditorController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ScriptEditorController.h; sourceTree = "<group>"; }; 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ScriptEditorController.mm; sourceTree = "<group>"; }; - 67399AE90C70F9DD007536EA /* Sink.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Sink.hpp; sourceTree = "<group>"; }; 673D04450C522A610096513A /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = "<group>"; }; 673D044F0C522C980096513A /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = "<group>"; }; 674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; }; @@ -62,7 +61,6 @@ 67A8A6E40C4181C600DB3F1B /* ScriptEngine.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = ScriptEngine.hpp; sourceTree = "<group>"; }; 67A8A6E90C41836600DB3F1B /* Python.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; }; 67A8A73D0C4183C500DB3F1B /* ScriptEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptEngine.cpp; sourceTree = "<group>"; }; - 67B58EC60C6FAC2100A1C748 /* Source.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Source.hpp; sourceTree = "<group>"; }; 67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HDRFlowController.h; sourceTree = "<group>"; }; 67C064ED0C52231A00E9ED8E /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/Preferences.nib; sourceTree = "<group>"; }; 67C0BA220C5B69AF00E0E258 /* Viewer.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Viewer.hpp; sourceTree = "<group>"; }; @@ -117,7 +115,6 @@ 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */, 673D04450C522A610096513A /* PreferencesController.h */, 673D044F0C522C980096513A /* PreferencesController.m */, - 67B58EC60C6FAC2100A1C748 /* Source.hpp */, 671E22910C41652E00CA1860 /* ScriptEditorController.h */, 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */, 67C3D3170C5361C600136EE8 /* ToolbarHolder.h */, @@ -165,7 +162,6 @@ 29B97317FDCFA39411CA2CEA /* Resources */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, - 67399AE90C70F9DD007536EA /* Sink.hpp */, ); name = HDRFlow; sourceTree = "<group>"; Deleted: trunk/app/HDRFlow/Sink.hpp =================================================================== --- trunk/app/HDRFlow/Sink.hpp 2007-08-16 20:36:02 UTC (rev 248) +++ trunk/app/HDRFlow/Sink.hpp 2007-08-16 21:05:26 UTC (rev 249) @@ -1,26 +0,0 @@ - -// HDRFlow - A image processing application - -// Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. - -#ifndef SINK_INC_ -#define SINK_INC_ - -#include "Cache.hpp" - -namespace hdrflow { - -class Sink -{ -public: - explicit Sink( ) - { } -}; - -typedef boost::shared_ptr<Sink> SinkPtr; - -} - -#endif Deleted: trunk/app/HDRFlow/Source.hpp =================================================================== --- trunk/app/HDRFlow/Source.hpp 2007-08-16 20:36:02 UTC (rev 248) +++ trunk/app/HDRFlow/Source.hpp 2007-08-16 21:05:26 UTC (rev 249) @@ -1,34 +0,0 @@ - -// HDRFlow - A image processing application - -// Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. - -#ifndef SOURCE_INC_ -#define SOURCE_INC_ - -#include "Cache.hpp" - -namespace pl = olib::openpluginlib; - -namespace hdrflow { - -class Source -{ -public: - explicit Source( ) - { } - - pl::string uri( ) const; - void set_uri( const pl::string& uri ); - -private: - CachePtr cache_; -}; - -typedef boost::shared_ptr<Source> SourcePtr; - -} - -#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-27 15:47:45
|
Revision: 269 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=269&view=rev Author: glslang Date: 2007-08-25 07:52:35 -0700 (Sat, 25 Aug 2007) Log Message: ----------- + icons file updates Modified Paths: -------------- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj trunk/app/HDRFlow/Info.plist Added Paths: ----------- trunk/app/HDRFlow/Images/hdrflow.icns Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-25 14:27:50 UTC (rev 268) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-08-25 14:52:35 UTC (rev 269) @@ -14,6 +14,7 @@ 673D04500C522C980096513A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 673D044F0C522C980096513A /* PreferencesController.m */; }; 674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; }; 676191BF0C6643B20076713C /* Cache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 676191BE0C6643B20076713C /* Cache.cpp */; }; + 6768C7300C8079370055FC2F /* hdrflow.icns in Resources */ = {isa = PBXBuildFile; fileRef = 6768C72F0C8079370055FC2F /* hdrflow.icns */; }; 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */; }; 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; }; 67A8A6EA0C41836600DB3F1B /* Python.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67A8A6E90C41836600DB3F1B /* Python.framework */; }; @@ -55,6 +56,7 @@ 676191810C663D100076713C /* Cache.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Cache.hpp; sourceTree = "<group>"; }; 676191A40C6642CC0076713C /* Bucket.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = Bucket.hpp; sourceTree = "<group>"; }; 676191BE0C6643B20076713C /* Cache.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Cache.cpp; sourceTree = "<group>"; }; + 6768C72F0C8079370055FC2F /* hdrflow.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = hdrflow.icns; path = Images/hdrflow.icns; sourceTree = "<group>"; }; 6777402D0C5C0022005FF29D /* PlugInsPreferencesOutlineViewNode.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PlugInsPreferencesOutlineViewNode.h; sourceTree = "<group>"; }; 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = PlugInsPreferencesOutlineViewNode.mm; sourceTree = "<group>"; }; 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; sourceTree = "<group>"; }; @@ -211,6 +213,7 @@ 67F7A3EC0C52A1F900172987 /* Images */ = { isa = PBXGroup; children = ( + 6768C72F0C8079370055FC2F /* hdrflow.icns */, 670E3BEA0C73AE93001D542B /* minusbutton.tiff */, 670E3BEB0C73AE93001D542B /* plusbutton.tiff */, 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */, @@ -271,6 +274,7 @@ 67CF88AC0C53EFB8005B6662 /* PlugInsPreferences.tiff in Resources */, 670E3BEC0C73AE93001D542B /* minusbutton.tiff in Resources */, 670E3BED0C73AE93001D542B /* plusbutton.tiff in Resources */, + 6768C7300C8079370055FC2F /* hdrflow.icns in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; Added: trunk/app/HDRFlow/Images/hdrflow.icns =================================================================== (Binary files differ) Property changes on: trunk/app/HDRFlow/Images/hdrflow.icns ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/app/HDRFlow/Info.plist =================================================================== --- trunk/app/HDRFlow/Info.plist 2007-08-25 14:27:50 UTC (rev 268) +++ trunk/app/HDRFlow/Info.plist 2007-08-25 14:52:35 UTC (rev 269) @@ -7,7 +7,7 @@ <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleIconFile</key> - <string></string> + <string>hdrflow.icns</string> <key>CFBundleIdentifier</key> <string>com.cryogenicgraphics.hdrflow</string> <key>CFBundleInfoDictionaryVersion</key> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-08-27 18:21:53
|
Revision: 265 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=265&view=rev Author: glslang Date: 2007-08-25 07:13:08 -0700 (Sat, 25 Aug 2007) Log Message: ----------- + HDRFlow license Added Paths: ----------- trunk/app/HDRFlow/COPYING trunk/app/HDRFlow/COPYING.rtf Added: trunk/app/HDRFlow/COPYING =================================================================== --- trunk/app/HDRFlow/COPYING (rev 0) +++ trunk/app/HDRFlow/COPYING 2007-08-25 14:13:08 UTC (rev 265) @@ -0,0 +1,622 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + Property changes on: trunk/app/HDRFlow/COPYING ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/app/HDRFlow/COPYING.rtf =================================================================== --- trunk/app/HDRFlow/COPYING.rtf (rev 0) +++ trunk/app/HDRFlow/COPYING.rtf 2007-08-25 14:13:08 UTC (rev 265) @@ -0,0 +1,626 @@ +{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}} +{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang2057\f0\fs20 GNU GENERAL PUBLIC LICENSE\par + Version 3, 29 June 2007\par +\par + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\par + Everyone is permitted to copy and distribute verbatim copies\par + of this license document, but changing it is not allowed.\par +\par + Preamble\par +\par + The GNU General Public License is a free, copyleft license for\par +software and other kinds of works.\par +\par + The licenses for most software and other practical works are designed\par +to take away your freedom to share and change the works. By contrast,\par +the GNU General Public License is intended to guarantee your freedom to\par +share and change all versions of a program--to make sure it remains free\par +software for all its users. We, the Free Software Foundation, use the\par +GNU General Public License for most of our software; it applies also to\par +any other work released this way by its authors. You can apply it to\par +your programs, too.\par +\par + When we speak of free software, we are referring to freedom, not\par +price. Our General Public Licenses are designed to make sure that you\par +have the freedom to distribute copies of free software (and charge for\par +them if you wish), that you receive source code or can get it if you\par +want it, that you can change the software or use pieces of it in new\par +free programs, and that you know you can do these things.\par +\par + To protect your rights, we need to prevent others from denying you\par +these rights or asking you to surrender the rights. Therefore, you have\par +certain responsibilities if you distribute copies of the software, or if\par +you modify it: responsibilities to respect the freedom of others.\par +\par + For example, if you distribute copies of such a program, whether\par +gratis or for a fee, you must pass on to the recipients the same\par +freedoms that you received. You must make sure that they, too, receive\par +or can get the source code. And you must show them these terms so they\par +know their rights.\par +\par + Developers that use the GNU GPL protect your rights with two steps:\par +(1) assert copyright on the software, and (2) offer you this License\par +giving you legal permission to copy, distribute and/or modify it.\par +\par + For the developers' and authors' protection, the GPL clearly explains\par +that there is no warranty for this free software. For both users' and\par +authors' sake, the GPL requires that modified versions be marked as\par +changed, so that their problems will not be attributed erroneously to\par +authors of previous versions.\par +\par + Some devices are designed to deny users access to install or run\par +modified versions of the software inside them, although the manufacturer\par +can do so. This is fundamentally incompatible with the aim of\par +protecting users' freedom to change the software. The systematic\par +pattern of such abuse occurs in the area of products for individuals to\par +use, which is precisely where it is most unacceptable. Therefore, we\par +have designed this version of the GPL to prohibit the practice for those\par +products. If such problems arise substantially in other domains, we\par +stand ready to extend this provision to those domains in future versions\par +of the GPL, as needed to protect the freedom of users.\par +\par + Finally, every program is threatened constantly by software patents.\par +States should not allow patents to restrict development and use of\par +software on general-purpose computers, but in those that do, we wish to\par +avoid the special danger that patents applied to a free program could\par +make it effectively proprietary. To prevent this, the GPL assures that\par +patents cannot be used to render the program non-free.\par +\par + The precise terms and conditions for copying, distribution and\par +modification follow.\par +\par + TERMS AND CONDITIONS\par +\par + 0. Definitions.\par +\par + "This License" refers to version 3 of the GNU General Public License.\par +\par + "Copyright" also means copyright-like laws that apply to other kinds of\par +works, such as semiconductor masks.\par +\par + "The Program" refers to any copyrightable work licensed under this\par +License. Each licensee is addressed as "you". "Licensees" and\par +"recipients" may be individuals or organizations.\par +\par + To "modify" a work means to copy from or adapt all or part of the work\par +in a fashion requiring copyright permission, other than the making of an\par +exact copy. The resulting work is called a "modified version" of the\par +earlier work or a work "based on" the earlier work.\par +\par + A "covered work" means either the unmodified Program or a work based\par +on the Program.\par +\par + To "propagate" a work means to do anything with it that, without\par +permission, would make you directly or secondarily liable for\par +infringement under applicable copyright law, except executing it on a\par +computer or modifying a private copy. Propagation includes copying,\par +distribution (with or without modification), making available to the\par +public, and in some countries other activities as well.\par +\par + To "convey" a work means any kind of propagation that enables other\par +parties to make or receive copies. Mere interaction with a user through\par +a computer network, with no transfer of a copy, is not conveying.\par +\par + An interactive user interface displays "Appropriate Legal Notices"\par +to the extent that it includes a convenient and prominently visible\par +feature that (1) displays an appropriate copyright notice, and (2)\par +tells the user that there is no warranty for the work (except to the\par +extent that warranties are provided), that licensees may convey the\par +work under this License, and how to view a copy of this License. If\par +the interface presents a list of user commands or options, such as a\par +menu, a prominent item in the list meets this criterion.\par +\par + 1. Source Code.\par +\par + The "source code" for a work means the preferred form of the work\par +for making modifications to it. "Object code" means any non-source\par +form of a work.\par +\par + A "Standard Interface" means an interface that either is an official\par +standard defined by a recognized standards body, or, in the case of\par +interfaces specified for a particular programming language, one that\par +is widely used among developers working in that language.\par +\par + The "System Libraries" of an executable work include anything, other\par +than the work as a whole, that (a) is included in the normal form of\par +packaging a Major Component, but which is not part of that Major\par +Component, and (b) serves only to enable use of the work with that\par +Major Component, or to implement a Standard Interface for which an\par +implementation is available to the public in source code form. A\par +"Major Component", in this context, means a major essential component\par +(kernel, window system, and so on) of the specific operating system\par +(if any) on which the executable work runs, or a compiler used to\par +produce the work, or an object code interpreter used to run it.\par +\par + The "Corresponding Source" for a work in object code form means all\par +the source code needed to generate, install, and (for an executable\par +work) run the object code and to modify the work, including scripts to\par +control those activities. However, it does not include the work's\par +System Libraries, or general-purpose tools or generally available free\par +programs which are used unmodified in performing those activities but\par +which are not part of the work. For example, Corresponding Source\par +includes interface definition files associated with source files for\par +the work, and the source code for shared libraries and dynamically\par +linked subprograms that the work is specifically designed to require,\par +such as by intimate data communication or control flow between those\par +subprograms and other parts of the work.\par +\par + The Corresponding Source need not include anything that users\par +can regenerate automatically from other parts of the Corresponding\par +Source.\par +\par + The Corresponding Source for a work in source code form is that\par +same work.\par +\par + 2. Basic Permissions.\par +\par + All rights granted under this License are granted for the term of\par +copyright on the Program, and are irrevocable provided the stated\par +conditions are met. This License explicitly affirms your unlimited\par +permission to run the unmodified Program. The output from running a\par +covered work is covered by this License only if the output, given its\par +content, constitutes a covered work. This License acknowledges your\par +rights of fair use or other equivalent, as provided by copyright law.\par +\par + You may make, run and propagate covered works that you do not\par +convey, without conditions so long as your license otherwise remains\par +in force. You may convey covered works to others for the sole purpose\par +of having them make modifications exclusively for you, or provide you\par +with facilities for running those works, provided that you comply with\par +the terms of this License in conveying all material for which you do\par +not control copyright. Those thus making or running the covered works\par +for you must do so exclusively on your behalf, under your direction\par +and control, on terms that prohibit them from making any copies of\par +your copyrighted material outside their relationship with you.\par +\par + Conveying under any other circumstances is permitted solely under\par +the conditions stated below. Sublicensing is not allowed; section 10\par +makes it unnecessary.\par +\par + 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\par +\par + No covered work shall be deemed part of an effective technological\par +measure under any applicable law fulfilling obligations under article\par +11 of the WIPO copyright treaty adopted on 20 December 1996, or\par +similar laws prohibiting or restricting circumvention of such\par +measures.\par +\par + When you convey a covered work, you waive any legal power to forbid\par +circumvention of technological measures to the extent such circumvention\par +is effected by exercising rights under this License with respect to\par +the covered work, and you disclaim any intention to limit operation or\par +modification of the work as a means of enforcing, against the work's\par +users, your or third parties' legal rights to forbid circumvention of\par +technological measures.\par +\par + 4. Conveying Verbatim Copies.\par +\par + You may convey verbatim copies of the Program's source code as you\par +receive it, in any medium, provided that you conspicuously and\par +appropriately publish on each copy an appropriate copyright notice;\par +keep intact all notices stating that this License and any\par +non-permissive terms added in accord with section 7 apply to the code;\par +keep intact all notices of the absence of any warranty; and give all\par +recipients a copy of this License along with the Program.\par +\par + You may charge any price or no price for each copy that you convey,\par +and you may offer support or warranty protection for a fee.\par +\par + 5. Conveying Modified Source Versions.\par +\par + You may convey a work based on the Program, or the modifications to\par +produce it from the Program, in the form of source code under the\par +terms of section 4, provided that you also meet all of these conditions:\par +\par + a) The work must carry prominent notices stating that you modified\par + it, and giving a relevant date.\par +\par + b) The work must carry prominent notices stating that it is\par + released under this License and any conditions added under section\par + 7. This requirement modifies the requirement in section 4 to\par + "keep intact all notices".\par +\par + c) You must license the entire work, as a whole, under this\par + License to anyone who comes into possession of a copy. This\par + License will therefore apply, along with any applicable section 7\par + additional terms, to the whole of the work, and all its parts,\par + regardless of how they are packaged. This License gives no\par + permission to license the work in any other way, but it does not\par + invalidate such permission if you have separately received it.\par +\par + d) If the work has interactive user interfaces, each must display\par + Appropriate Legal Notices; however, if the Program has interactive\par + interfaces that do not display Appropriate Legal Notices, your\par + work need not make them do so.\par +\par + A compilation of a covered work with other separate and independent\par +works, which are not by their nature extensions of the covered work,\par +and which are not combined with it such as to form a larger program,\par +in or on a volume of a storage or distribution medium, is called an\par +"aggregate" if the compilation and its resulting copyright are not\par +used to limit the access or legal rights of the compilation's users\par +beyond what the individual works permit. Inclusion of a covered work\par +in an aggregate does not cause this License to apply to the other\par +parts of the aggregate.\par +\par + 6. Conveying Non-Source Forms.\par +\par + You may convey a covered work in object code form under the terms\par +of sections 4 and 5, provided that you also convey the\par +machine-readable Corresponding Source under the terms of this License,\par +in one of these ways:\par +\par + a) Convey the object code in, or embodied in, a physical product\par + (including a physical distribution medium), accompanied by the\par + Corresponding Source fixed on a durable physical medium\par + customarily used for software interchange.\par +\par + b) Convey the object code in, or embodied in, a physical product\par + (including a physical distribution medium), accompanied by a\par + written offer, valid for at least three years and valid for as\par + long as you offer spare parts or customer support for that product\par + model, to give anyone who possesses the object code either (1) a\par + copy of the Corresponding Source for all the software in the\par + product that is covered by this License, on a durable physical\par + medium customarily used for software interchange, for a price no\par + more than your reasonable cost of physically performing this\par + conveying of source, or (2) access to copy the\par + Corresponding Source from a network server at no charge.\par +\par + c) Convey individual copies of the object code with a copy of the\par + written offer to provide the Corresponding Source. This\par + alternative is allowed only occasionally and noncommercially, and\par + only if you received the object code with such an offer, in accord\par + with subsection 6b.\par +\par + d) Convey the object code by offering access from a designated\par + place (gratis or for a charge), and offer equivalent access to the\par + Corresponding Source in the same way through the same place at no\par + further charge. You need not require recipients to copy the\par + Corresponding Source along with the object code. If the place to\par + copy the object code is a network server, the Corresponding Source\par + may be on a different server (operated by you or a third party)\par + that supports equivalent copying facilities, provided you maintain\par + clear directions next to the object code saying where to find the\par + Corresponding Source. Regardless of what server hosts the\par + Corresponding Source, you remain obligated to ensure that it is\par + available for as long as needed to satisfy these requirements.\par +\par + e) Convey the object code using peer-to-peer transmission, provided\par + you inform other peers where the object code and Corresponding\par + Source of the work are being offered to the general public at no\par + charge under subsection 6d.\par +\par + A separable portion of the object code, whose source code is excluded\par +from the Corresponding Source as a System Library, need not be\par +included in conveying the object code work.\par +\par + A "User Product" is either (1) a "consumer product", which means any\par +tangible personal property which is normally used for personal, family,\par +or household purposes, or (2) anything designed or sold for incorporation\par +into a dwelling. In determining whether a product is a consumer product,\par +doubtful cases shall be resolved in favor of coverage. For a particular\par +product received by a particular user, "normally used" refers to a\par +typical or common use of that class of product, regardless of the status\par +of the particular user or of the way in which the particular user\par +actually uses, or expects or is expected to use, the product. A product\par +is a consumer product regardless of whether the product has substantial\par +commercial, industrial or non-consumer uses, unless such uses represent\par +the only significant mode of use of the product.\par +\par + "Installation Information" for a User Product means any methods,\par +procedures, authorization keys, or other information required to install\par +and execute modified versions of a covered work in that User Product from\par +a modified version of its Corresponding Source. The information must\par +suffice to ensure that the continued functioning of the modified object\par +code is in no case prevented or interfered with solely because\par +modification has been made.\par +\par + If you convey an object code work under this section in, or with, or\par +specifically for use in, a User Product, and the conveying occurs as\par +part of a transaction in which the right of possession and use of the\par +User Product is transferred to the recipient in perpetuity or for a\par +fixed term (regardless of how the transaction is characterized), the\par +Corresponding Source conveyed under this section must be accompanied\par +by the Installation Information. But this requirement does not apply\par +if neither you nor any third party retains the ability to install\par +modified object code on the User Product (for example, the work has\par +been installed in ROM).\par +\par + The requirement to provide Installation Information does not include a\par +requirement to continue to provide support service, warranty, or updates\par +for a work that has been modified or installed by the recipient, or for\par +the User Product in which it has been modified or installed. Access to a\par +network may be denied when the modification itself materially and\par +adversely affects the operation of the network or violates the rules and\par +protocols for communication across the network.\par +\par + Corresponding Source conveyed, and Installation Information provided,\par +in accord with this section must be in a format that is publicly\par +documented (and with an implementation available to the public in\par +source code form), and must require no special password or key for\par +unpacking, reading or copying.\par +\par + 7. Additional Terms.\par +\par + "Additional permissions" are terms that supplement the terms of this\par +License by making exceptions from one or more of its conditions.\par +Additional permissions that are applicable to the entire Program shall\par +be treated as though they were included in this License, to the extent\par +that they are valid under applicable law. If additional permissions\par +apply only to part of the Program, that part may be used separately\par +under those permissions, but the entire Program remains governed by\par +this License without regard to the additional permissions.\par +\par + When you convey a copy of a covered work, you may at your option\par +remove any additional permissions from that copy, or from any part of\par +it. (Additional permissions may be written to require their own\par +removal in certain cases when you modify the work.) You may place\par +additional permissions on material, added by you to a covered work,\par +for which you have or can give appropriate copyright permission.\par +\par + Notwithstanding any other provision of this License, for material you\par +add to a covered work, you may (if authorized by the copyright holders of\par +that material) supplement the terms of this License with terms:\par +\par + a) Disclaiming warranty or limiting liability differently from the\par + terms of sections 15 and 16 of this License; or\par +\par + b) Requiring preservation of specified reasonable legal notices or\par + author attributions in that material or in the Appropriate Legal\par + Notices displayed by works containing it; or\par +\par + c) Prohibiting misrepresentation of the origin of that material, or\par + requiring that modified versions of such material be marked in\par + reasonable ways as different from the original version; or\par +\par + d) Limiting the use for publicity purposes of names of licensors or\par + authors of the material; or\par +\par + e) Declining to grant rights under trademark law for use of some\par + trade names, trademarks, or service marks; or\par +\par + f) Requiring indemnification of licensors and authors of that\par + material by anyone who conveys the material (or modified versions of\par + it) with contractual assumptions of liability to the recipient, for\par + any liability that these contractual assumptions directly impose on\par + those licensors and authors.\par +\par + All other non-permissive additional terms are considered "further\par +restrictions" within the meaning of section 10. If the Program as you\par +received it, or any part of it, contains a notice stating that it is\par +governed by this License along with a term that is a further\par +restriction, you may remove that term. If a license document contains\par +a further restriction but permits relicensing or conveying under this\par +License, you may add to a covered work material governed by the terms\par +of that license document, provided that the further restriction does\par +not survive such relicensing or conveying.\par +\par + If you add terms to a covered work in accord with this section, you\par +must place, in the relevant source files, a statement of the\par +additional terms that apply to those files, or a notice indicating\par +where to find the applicable terms.\par +\par + Additional terms, permissive or non-permissive, may be stated in the\par +form of a separately written license, or stated as exceptions;\par +the above requirements apply either way.\par +\par + 8. Termination.\par +\par + You may not propagate or modify a covered work except as expressly\par +provided under this License. Any attempt otherwise to propagate or\par +modify it is void, and will automatically terminate your rights under\par +this License (including any patent licenses granted under the third\par +paragraph of section 11).\par +\par + However, if you cease all violation of this License, then your\par +license from a particular copyright holder is reinstated (a)\par +provisionally, unless and until the copyright holder explicitly and\par +finally terminates your license, and (b) permanently, if the copyright\par +holder fails to notify you of the violation by some reasonable means\par +prior to 60 days after the cessation.\par +\par + Moreover, your license from a particular copyright holder is\par +reinstated permanently if the copyright holder notifies you of the\par +violation by some reasonable means, this is the first time you have\par +received notice of violation of this License (for any work) from that\par +copyright holder, and you cure the violation prior to 30 days after\par +your receipt of the notice.\par +\par + Termination of your rights under this section does not terminate the\par +licenses of parties who have received copies or rights from you under\par +this License. If your rights have been terminated and not permanently\par +reinstated, you do not qualify to receive new licenses for the same\par +material under section 10.\par +\par + 9. Acceptance Not Required for Having Copies.\par +\par + You are not required to accept this License in order to receive or\par +run a copy of the Program. Ancillary propagation of a covered work\par +occurring solely as a consequence of using peer-to-peer transmission\par +to receive a copy likewise does not require acceptance. However,\par +nothing other than this License grants you permission to propagate or\par +modify any covered work. These actions infringe copyright if you do\par +not accept this License. Therefore, by modifying or propagating a\par +covered work, you indicate your acceptance of this License to do so.\par +\par + 10. Automatic Licensing of Downstream Recipients.\par +\par + Each time you convey a covered work, the recipient automatically\par +receives a license from the original licensors, to run, modify and\par +propagate that work, subject to this License. You are not responsible\par +for enforcing compliance by third parties with this License.\par +\par + An "entity transaction" is a transaction transferring control of an\par +organization, or substantially all assets of one, or subdividing an\par +organization, or merging organizations. If propagation of a covered\par +work results from an entity transaction, each party to that\par +transaction who receives a copy of the work also receives whatever\par +licenses to the work the party's predecessor in interest had or could\par +give under the previous paragraph, plus a right to possession of the\par +Corresponding Source of the work from the predecessor in interest, if\par +the predecessor has it or can get it with reasonable efforts.\par +\par + You may not impose any further restrictions on the exercise of the\par +rights granted or affirmed under this License. For example, you may\par +not impose a license fee, royalty, or other charge for exercise of\par +rights granted under this License, and you may not initiate litigation\par +(including a... [truncated message content] |
From: <gl...@us...> - 2007-09-12 16:53:01
|
Revision: 299 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=299&view=rev Author: glslang Date: 2007-09-12 09:52:46 -0700 (Wed, 12 Sep 2007) Log Message: ----------- + interface changes to better reflect architecture. initial playback hook-ups code Modified Paths: -------------- trunk/app/HDRFlow/Bucket.hpp trunk/app/HDRFlow/Cache.cpp trunk/app/HDRFlow/Cache.hpp trunk/app/HDRFlow/CustomOpenGLView.h trunk/app/HDRFlow/CustomOpenGLView.m trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj trunk/app/HDRFlow/HDRFlowController.h trunk/app/HDRFlow/HDRFlowController.mm trunk/app/HDRFlow/PlugInsPreferencesController.h trunk/app/HDRFlow/PlugInsPreferencesController.mm trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm trunk/app/HDRFlow/PreferencesController.h trunk/app/HDRFlow/PreferencesController.m trunk/app/HDRFlow/ScriptEditorController.h trunk/app/HDRFlow/ScriptEditorController.mm trunk/app/HDRFlow/ScriptEngine.cpp trunk/app/HDRFlow/ScriptEngine.hpp trunk/app/HDRFlow/Scripts/bootstrap.py trunk/app/HDRFlow/ToolbarHolder.h trunk/app/HDRFlow/ToolbarHolder.m trunk/app/HDRFlow/Viewer.cpp trunk/app/HDRFlow/Viewer.hpp trunk/app/HDRFlow/ViewportOpenGLView.h trunk/app/HDRFlow/main.m Added Paths: ----------- trunk/app/HDRFlow/Bucket.cpp trunk/app/HDRFlow/Images/HDRFlow.tif trunk/app/HDRFlow/Track.cpp trunk/app/HDRFlow/Track.hpp trunk/app/HDRFlow/ViewportOpenGLView.mm Removed Paths: ------------- trunk/app/HDRFlow/ViewportOpenGLView.m Added: trunk/app/HDRFlow/Bucket.cpp =================================================================== --- trunk/app/HDRFlow/Bucket.cpp (rev 0) +++ trunk/app/HDRFlow/Bucket.cpp 2007-09-12 16:52:46 UTC (rev 299) @@ -0,0 +1,46 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#include "Bucket.hpp" + +namespace hdrflow { + +namespace +{ + il::image_type_ptr frame_image( ml::frame_type_ptr frame ) + { + if( frame ) + return frame->get_image( ); + + return il::image_type_ptr( ); + } +} + +il::image_type_ptr Bucket::get_image( ) const +{ + return frame_image( frame_ ); +} + +int Bucket::frame_width( ) const +{ + il::image_type_ptr im = frame_image( frame_ ); + if( im ) + return im->width( ); + + return 0; +} + +int Bucket::frame_height( ) const +{ + il::image_type_ptr im = frame_image( frame_ ); + if( im ) + return im->height( ); + + return 0; +} + +} Property changes on: trunk/app/HDRFlow/Bucket.cpp ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/app/HDRFlow/Bucket.hpp =================================================================== --- trunk/app/HDRFlow/Bucket.hpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/Bucket.hpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,13 +3,14 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #ifndef BUCKET_INC_ #define BUCKET_INC_ #include <HDRFlow/openlibraries.hpp> +namespace il = olib::openimagelib::il; namespace ml = olib::openmedialib::ml; namespace hdrflow { @@ -32,8 +33,11 @@ void set_frame( ml::frame_type_ptr frame ) { frame_ = frame; } - bool is_loaded( ) { return frame_ != 0; } + il::image_type_ptr get_image( ) const; + int frame_width( ) const; + int frame_height( ) const; + private: int position_; ml::frame_type_ptr frame_; Modified: trunk/app/HDRFlow/Cache.cpp =================================================================== --- trunk/app/HDRFlow/Cache.cpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/Cache.cpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #include "Cache.hpp" @@ -14,14 +14,17 @@ bool Cache::connect( const pl::string& media, bool fill ) { - pl::string in( media + "/sequence: " ); + clear( ); + + pl::string in( media + "/sequence:" ); input_ = ml::create_input( in ); if( input_ == 0 ) return false; if( fill ) { - for( int i = 0; i < buckets_.size( ); ++i ) + int siz( std::min( size_, input_->get_frames( ) ) ); + for( int i = 0; i < siz; ++i ) { input_->seek( i, false ); buckets_.push_back( BucketPtr( new Bucket( i, input_->fetch( ) ) ) ); @@ -31,6 +34,16 @@ return true; } +void Cache::disconnect( ) +{ + clear( ); +} + +void Cache::clear( ) +{ + buckets_.clear( ); +} + BucketPtr Cache::reserve_bucket( int position ) { const_iterator b = find_bucket( position ); @@ -57,9 +70,24 @@ { if( input_ ) return input_->get_frames( ); - + return 0; } +Cache::const_iterator Cache::find_bucket( int position ) const +{ + for( const_iterator I = buckets_.begin( ); I != buckets_.end( ); ++I ) + { + if( ( *I )->position( ) == position ) + return I; + } + + return buckets_.end( ); +} +Cache::const_iterator Cache::acquire_bucket( ) +{ + return buckets_.end( ); } + +} Modified: trunk/app/HDRFlow/Cache.hpp =================================================================== --- trunk/app/HDRFlow/Cache.hpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/Cache.hpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #ifndef CACHE_INC_ #define CACHE_INC_ @@ -30,7 +30,7 @@ public: explicit Cache( int n ) - : buckets_( n ) + : size_( n ) { } bool connect( const pl::string& media, bool fill = true ); @@ -50,6 +50,7 @@ private: container buckets_; ml::input_type_ptr input_; + const int size_; }; typedef boost::shared_ptr<Cache> CachePtr; Modified: trunk/app/HDRFlow/CustomOpenGLView.h =================================================================== --- trunk/app/HDRFlow/CustomOpenGLView.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/CustomOpenGLView.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/CustomOpenGLView.m =================================================================== --- trunk/app/HDRFlow/CustomOpenGLView.m 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/CustomOpenGLView.m 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <OpenGL/OpenGL.h> #import <OpenGL/gl.h> Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib =================================================================== --- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-09-12 16:52:46 UTC (rev 299) @@ -7,17 +7,17 @@ <key>IBEditorPositions</key> <dict> <key>266</key> - <string>567 402 306 396 0 0 1440 878 </string> + <string>487 333 306 396 0 0 1280 778 </string> <key>29</key> - <string>2 829 338 44 0 0 1440 878 </string> + <string>2 730 338 44 0 0 1280 778 </string> </dict> <key>IBFramework Version</key> <string>446.1</string> <key>IBOpenObjects</key> <array> + <integer>266</integer> <integer>21</integer> <integer>29</integer> - <integer>266</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-09-12 16:52:46 UTC (rev 299) @@ -11,11 +11,15 @@ 670E3BEC0C73AE93001D542B /* minusbutton.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 670E3BEA0C73AE93001D542B /* minusbutton.tiff */; }; 670E3BED0C73AE93001D542B /* plusbutton.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 670E3BEB0C73AE93001D542B /* plusbutton.tiff */; }; 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; }; + 672C0AAE0C95590300BA76DB /* Bucket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 672C0AAD0C95590300BA76DB /* Bucket.cpp */; }; 673D04500C522C980096513A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 673D044F0C522C980096513A /* PreferencesController.m */; }; 674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; }; 676191BF0C6643B20076713C /* Cache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 676191BE0C6643B20076713C /* Cache.cpp */; }; 6768C7300C8079370055FC2F /* hdrflow.icns in Resources */ = {isa = PBXBuildFile; fileRef = 6768C72F0C8079370055FC2F /* hdrflow.icns */; }; 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */; }; + 678014890C946B4200D49569 /* Track.hpp in Resources */ = {isa = PBXBuildFile; fileRef = 678014880C946B4200D49569 /* Track.hpp */; }; + 678014AB0C946D3E00D49569 /* Track.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 678014AA0C946D3E00D49569 /* Track.cpp */; }; + 6780153F0C9485DC00D49569 /* ViewportOpenGLView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6780153E0C9485DC00D49569 /* ViewportOpenGLView.mm */; }; 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; }; 67A8A6EA0C41836600DB3F1B /* Python.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67A8A6E90C41836600DB3F1B /* Python.framework */; }; 67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 67A8A73D0C4183C500DB3F1B /* ScriptEngine.cpp */; }; @@ -27,8 +31,8 @@ 67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; }; 67CF88AA0C53D62E005B6662 /* AdvancedPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */; }; 67CF88AC0C53EFB8005B6662 /* PlugInsPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67CF88AB0C53EFB8005B6662 /* PlugInsPreferences.tiff */; }; - 67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; }; 67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; }; + 67E0C6970C96B8FE00852E53 /* HDRFlow.tif in Resources */ = {isa = PBXBuildFile; fileRef = 67E0C6960C96B8FE00852E53 /* HDRFlow.tif */; }; 67F7A3EE0C52A21600172987 /* GeneralPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67F7A3ED0C52A21600172987 /* GeneralPreferences.tiff */; }; 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; }; 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; @@ -50,6 +54,7 @@ 670E3BEB0C73AE93001D542B /* plusbutton.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = plusbutton.tiff; path = Images/plusbutton.tiff; sourceTree = "<group>"; }; 671E22910C41652E00CA1860 /* ScriptEditorController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ScriptEditorController.h; sourceTree = "<group>"; }; 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ScriptEditorController.mm; sourceTree = "<group>"; }; + 672C0AAD0C95590300BA76DB /* Bucket.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Bucket.cpp; sourceTree = "<group>"; }; 673D04450C522A610096513A /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = "<group>"; }; 673D044F0C522C980096513A /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = "<group>"; }; 674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; }; @@ -59,6 +64,9 @@ 6768C72F0C8079370055FC2F /* hdrflow.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = hdrflow.icns; path = Images/hdrflow.icns; sourceTree = "<group>"; }; 6777402D0C5C0022005FF29D /* PlugInsPreferencesOutlineViewNode.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PlugInsPreferencesOutlineViewNode.h; sourceTree = "<group>"; }; 677740350C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = PlugInsPreferencesOutlineViewNode.mm; sourceTree = "<group>"; }; + 678014880C946B4200D49569 /* Track.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Track.hpp; sourceTree = "<group>"; }; + 678014AA0C946D3E00D49569 /* Track.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Track.cpp; sourceTree = "<group>"; }; + 6780153E0C9485DC00D49569 /* ViewportOpenGLView.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ViewportOpenGLView.mm; sourceTree = "<group>"; }; 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; sourceTree = "<group>"; }; 67A8A6E40C4181C600DB3F1B /* ScriptEngine.hpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.h; path = ScriptEngine.hpp; sourceTree = "<group>"; }; 67A8A6E90C41836600DB3F1B /* Python.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; }; @@ -76,8 +84,8 @@ 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = AdvancedPreferences.tiff; path = Images/AdvancedPreferences.tiff; sourceTree = "<group>"; }; 67CF88AB0C53EFB8005B6662 /* PlugInsPreferences.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = PlugInsPreferences.tiff; path = Images/PlugInsPreferences.tiff; sourceTree = "<group>"; }; 67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewportOpenGLView.h; sourceTree = "<group>"; }; - 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewportOpenGLView.m; sourceTree = "<group>"; }; 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = "<absolute>"; }; + 67E0C6960C96B8FE00852E53 /* HDRFlow.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = HDRFlow.tif; path = Images/HDRFlow.tif; sourceTree = "<group>"; }; 67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CustomOpenGLView.h; sourceTree = "<group>"; }; 67F7A3ED0C52A21600172987 /* GeneralPreferences.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = GeneralPreferences.tiff; path = Images/GeneralPreferences.tiff; sourceTree = "<group>"; }; 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; }; @@ -102,13 +110,16 @@ 080E96DDFE201D6D7F000001 /* Classes */ = { isa = PBXGroup; children = ( + 678014AA0C946D3E00D49569 /* Track.cpp */, + 678014880C946B4200D49569 /* Track.hpp */, 676191A40C6642CC0076713C /* Bucket.hpp */, + 672C0AAD0C95590300BA76DB /* Bucket.cpp */, 676191810C663D100076713C /* Cache.hpp */, 676191BE0C6643B20076713C /* Cache.cpp */, 67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */, 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */, 67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */, - 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */, + 6780153E0C9485DC00D49569 /* ViewportOpenGLView.mm */, 67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */, 67C0BED80C5BCD4600E0E258 /* HDRFlowController.mm */, 67C0BEF40C5BED2C00E0E258 /* PlugInsPreferencesController.h */, @@ -213,6 +224,7 @@ 67F7A3EC0C52A1F900172987 /* Images */ = { isa = PBXGroup; children = ( + 67E0C6960C96B8FE00852E53 /* HDRFlow.tif */, 6768C72F0C8079370055FC2F /* hdrflow.icns */, 670E3BEA0C73AE93001D542B /* minusbutton.tiff */, 670E3BEB0C73AE93001D542B /* plusbutton.tiff */, @@ -275,6 +287,8 @@ 670E3BEC0C73AE93001D542B /* minusbutton.tiff in Resources */, 670E3BED0C73AE93001D542B /* plusbutton.tiff in Resources */, 6768C7300C8079370055FC2F /* hdrflow.icns in Resources */, + 678014890C946B4200D49569 /* Track.hpp in Resources */, + 67E0C6970C96B8FE00852E53 /* HDRFlow.tif in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -287,7 +301,6 @@ files = ( 8D11072D0486CEB800E47090 /* main.m in Sources */, 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */, - 67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */, 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */, 67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */, 673D04500C522C980096513A /* PreferencesController.m in Sources */, @@ -297,6 +310,9 @@ 67C0BEFB0C5BED8500E0E258 /* PlugInsPreferencesController.mm in Sources */, 677740360C5C0184005FF29D /* PlugInsPreferencesOutlineViewNode.mm in Sources */, 676191BF0C6643B20076713C /* Cache.cpp in Sources */, + 678014AB0C946D3E00D49569 /* Track.cpp in Sources */, + 6780153F0C9485DC00D49569 /* ViewportOpenGLView.mm in Sources */, + 672C0AAE0C95590300BA76DB /* Bucket.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; Modified: trunk/app/HDRFlow/HDRFlowController.h =================================================================== --- trunk/app/HDRFlow/HDRFlowController.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/HDRFlowController.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "ScriptEngine.hpp" #import "HDRFlowController.h" Added: trunk/app/HDRFlow/Images/HDRFlow.tif =================================================================== (Binary files differ) Property changes on: trunk/app/HDRFlow/Images/HDRFlow.tif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/app/HDRFlow/PlugInsPreferencesController.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "PlugInsPreferencesOutlineViewNode.h" Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <HDRFlow/openlibraries.hpp> Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "PlugInsPreferencesOutlineViewNode.h" Modified: trunk/app/HDRFlow/PreferencesController.h =================================================================== --- trunk/app/HDRFlow/PreferencesController.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/PreferencesController.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/PreferencesController.m =================================================================== --- trunk/app/HDRFlow/PreferencesController.m 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/PreferencesController.m 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "PreferencesController.h" #import "ToolbarHolder.h" Modified: trunk/app/HDRFlow/ScriptEditorController.h =================================================================== --- trunk/app/HDRFlow/ScriptEditorController.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ScriptEditorController.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/ScriptEditorController.mm =================================================================== --- trunk/app/HDRFlow/ScriptEditorController.mm 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ScriptEditorController.mm 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "ScriptEditorController.h" Modified: trunk/app/HDRFlow/ScriptEngine.cpp =================================================================== --- trunk/app/HDRFlow/ScriptEngine.cpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #include <HDRFlow/openlibraries.hpp> Modified: trunk/app/HDRFlow/ScriptEngine.hpp =================================================================== --- trunk/app/HDRFlow/ScriptEngine.hpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ScriptEngine.hpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #ifndef SCRIPT_ENGINE_INC_ #define SCRIPT_ENGINE_INC_ Modified: trunk/app/HDRFlow/Scripts/bootstrap.py =================================================================== --- trunk/app/HDRFlow/Scripts/bootstrap.py 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/Scripts/bootstrap.py 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ # Copyright (c) 2007 Goncalo N. M. de Carvalho # Released under the GPL. -# For more information, see http://www.cryogenicgraphics.com/hdrflow. +# For more information, see http://www.hdrflow.com. import platform import sys @@ -24,8 +24,4 @@ except: sys.setdlopenflags( 257 ) -if platform.system( ) == "Darwin": - HDRFlowPlugin.init( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowImage.framework/PlugIns" ) - HDRFlowPlugin.init( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowMedia.framework/PlugIns" ) -else: - HDRFlowPlugin.init( ) +HDRFlowPlugin.init( ) Modified: trunk/app/HDRFlow/ToolbarHolder.h =================================================================== --- trunk/app/HDRFlow/ToolbarHolder.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ToolbarHolder.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/ToolbarHolder.m =================================================================== --- trunk/app/HDRFlow/ToolbarHolder.m 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ToolbarHolder.m 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "ToolbarHolder.h" Added: trunk/app/HDRFlow/Track.cpp =================================================================== --- trunk/app/HDRFlow/Track.cpp (rev 0) +++ trunk/app/HDRFlow/Track.cpp 2007-09-12 16:52:46 UTC (rev 299) @@ -0,0 +1,23 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#include "Track.hpp" + +namespace hdrflow { + +Track::Track( const pl::string& uri ) + : source_( new Cache( 100 ) ) +{ + source_->connect( uri ); +} + +BucketPtr Track::media( int position ) +{ + return source_->reserve_bucket( position ); +} + +} Property changes on: trunk/app/HDRFlow/Track.cpp ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/app/HDRFlow/Track.hpp =================================================================== --- trunk/app/HDRFlow/Track.hpp (rev 0) +++ trunk/app/HDRFlow/Track.hpp 2007-09-12 16:52:46 UTC (rev 299) @@ -0,0 +1,34 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#ifndef TRACK_INC_ +#define TRACK_INC_ + +#include <HDRFlow/openlibraries.hpp> + +#include "Cache.hpp" + +namespace pl = olib::openpluginlib; + +namespace hdrflow { + +class Track +{ +public: + explicit Track( const pl::string& uri ); + + BucketPtr media( int position ); + +private: + CachePtr source_; +}; + +typedef boost::shared_ptr<Track> TrackPtr; + +} + +#endif Modified: trunk/app/HDRFlow/Viewer.cpp =================================================================== --- trunk/app/HDRFlow/Viewer.cpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/Viewer.cpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,56 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. -#include <HDRFlow/openlibraries.hpp> +#include "Viewer.hpp" +namespace hdrflow { + +Viewer::Viewer( const pl::string& uri ) + : default_( new Track( uri ) ) +{ +} + +void Viewer::initialise( ) +{ + glClearColor( 0.0, 0.0, 0.0, 0.0 ); +} + +void Viewer::display( int width, int height ) +{ + glViewport( 0, 0, width, height ); + glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT ); + + BucketPtr media = default_->media( 0 ); + if( !media ) return; + + il::image_type_ptr im = media->get_image( ); + if( !im ) return; + + int phy_w = im->width( ); + int phy_h = im->height( ); + + GLenum target; + float tex_w, tex_h; + if( !pl::texture_target( phy_w, phy_h, target, tex_w, tex_h ) ) + return; + + GLint internal_format; + GLenum format, type; + + if( !pl::pf_to_gl_format( im->pf( ), internal_format, format, type ) ) + { + im = il::convert( im, L"b8g8r8a8" ); + + internal_format = GL_RGBA; + format = GL_BGRA_EXT; + } + + glPixelStorei( GL_UNPACK_ALIGNMENT, 4 ); + glEnable( target ); + + +} + +} Modified: trunk/app/HDRFlow/Viewer.hpp =================================================================== --- trunk/app/HDRFlow/Viewer.hpp 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/Viewer.hpp 2007-09-12 16:52:46 UTC (rev 299) @@ -3,22 +3,25 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #ifndef VIEWER_INC_ #define VIEWER_INC_ -#include <HDRFlow/openlibraries.hpp> +#include "Track.hpp" namespace hdrflow { class Viewer { public: - explicit Viewer( ); + explicit Viewer( const pl::string& uri ); void initialise( ); - void display( il::image_type_ptr im ); + void display( int width, int height ); + +private: + TrackPtr default_; }; } Modified: trunk/app/HDRFlow/ViewportOpenGLView.h =================================================================== --- trunk/app/HDRFlow/ViewportOpenGLView.h 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-09-12 16:52:46 UTC (rev 299) @@ -3,12 +3,15 @@ // Copyright (c) 2007 Goncalo N. M. de Carvalho // Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. +// For more information, see http://www.hdrflow.com. #import "CustomOpenGLView.h" +#include "Viewer.hpp" + @interface ViewportOpenGLView : CustomOpenGLView { + hdrflow::Viewer* viewer_; } + ( NSOpenGLPixelFormat* ) viewportPixelFormat; Deleted: trunk/app/HDRFlow/ViewportOpenGLView.m =================================================================== --- trunk/app/HDRFlow/ViewportOpenGLView.m 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-09-12 16:52:46 UTC (rev 299) @@ -1,145 +0,0 @@ - -// HDRFlow - A image processing application - -// Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. -// For more information, see http://www.cryogenicgraphics.com/hdrflow. - -#import <OpenGL/OpenGL.h> -#import <OpenGL/gl.h> - -#import "ViewportOpenGLView.h" - -@implementation ViewportOpenGLView - -+ ( NSOpenGLPixelFormat* ) viewportPixelFormat -{ - NSOpenGLPixelFormatAttribute attribs[ ] = - { - NSOpenGLPFANoRecovery, - NSOpenGLPFADoubleBuffer, - NSOpenGLPFAAccelerated, - NSOpenGLPFAColorSize, 24, - NSOpenGLPFADepthSize, 16, - 0 - }; - - return [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ]; -} - -- ( id ) initWithFrame: ( NSRect ) theFrame -{ - [ super initWithFrame: theFrame pixelFormat: [ ViewportOpenGLView viewportPixelFormat ] ]; - [ [ super openGLContext ] makeCurrentContext ]; - - return self; -} - -- ( void ) awakeFromNib -{ -} - -- ( void ) dealloc -{ - [ super dealloc ]; -} - -- ( void ) renewGState -{ - NSWindow* window; - [ super renewGState ]; - window = [ self window ]; - - if( [ window respondsToSelector: @selector( disableScreenUpdatesUntilFlush ) ] ) - [ window disableScreenUpdatesUntilFlush ]; -} - -- ( void ) drawRect: ( NSRect ) theRect -{ - NSRect bounds = [ self bounds ]; - - glViewport( 0, 0, NSWidth( bounds ), NSHeight( bounds ) ); - glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT ); - - [ [ self openGLContext ] flushBuffer ]; -} - -- ( void ) prepareOpenGL -{ - glClearColor( 0.0, 0.0, 0.0, 0.0 ); - - // Sync to vertical retrace - long VBL = 1; - [ [ self openGLContext ] setValues: &VBL forParameter: NSOpenGLCPSwapInterval ]; -} - -- ( void ) update -{ - [ super update ]; - if( ![ self inLiveResize ] ) - ; -} - -- ( void ) fullscreen -{ - NSOpenGLPixelFormatAttribute attribs[ ] = - { - NSOpenGLPFAFullScreen, - NSOpenGLPFAAccelerated, - NSOpenGLPFAScreenMask, - CGDisplayIDToOpenGLDisplayMask( kCGDirectMainDisplay ), - NSOpenGLPFADoubleBuffer, - NSOpenGLPFAColorSize, 24, - NSOpenGLPFADepthSize, 16, - 0 - }; - - NSOpenGLPixelFormat* pixelFormat = [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ]; - NSOpenGLContext* fullScreenContext = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat shareContext: [ self openGLContext ] ]; - - if( fullScreenContext == nil ) return; - - CGDisplayErr err = CGCaptureAllDisplays( ); - if( err != CGDisplayNoErr ) return; - - [ fullScreenContext setFullScreen ]; - [ fullScreenContext makeCurrentContext ]; - - glViewport( 0, 0, CGDisplayPixelsWide( kCGDirectMainDisplay ), CGDisplayPixelsHigh( kCGDirectMainDisplay ) ); - - BOOL stayInFullScreenMode = YES; - while( stayInFullScreenMode ) - { - NSEvent* event; - while( event = [ NSApp nextEventMatchingMask: NSAnyEventMask untilDate: [ NSDate distantPast ] inMode: NSDefaultRunLoopMode dequeue: YES ] ) - { - switch( [ event type ] ) - { - case NSKeyDown: - stayInFullScreenMode = NO; - break; - - default: - break; - } - } - - [ fullScreenContext flushBuffer ]; - } - - glClearColor( 0.0, 0.0, 0.0, 0.0 ); - glClear( GL_COLOR_BUFFER_BIT ); - [ fullScreenContext flushBuffer ]; - glClear( GL_COLOR_BUFFER_BIT ); - [ fullScreenContext flushBuffer ]; - - [ NSOpenGLContext clearCurrentContext ]; - [ fullScreenContext clearDrawable ]; - [ fullScreenContext release ]; - - CGReleaseAllDisplays( ); - - [ self setNeedsDisplay: YES ]; -} - -@end Copied: trunk/app/HDRFlow/ViewportOpenGLView.mm (from rev 297, trunk/app/HDRFlow/ViewportOpenGLView.m) =================================================================== --- trunk/app/HDRFlow/ViewportOpenGLView.mm (rev 0) +++ trunk/app/HDRFlow/ViewportOpenGLView.mm 2007-09-12 16:52:46 UTC (rev 299) @@ -0,0 +1,146 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#import "ViewportOpenGLView.h" + +@implementation ViewportOpenGLView + ++ ( NSOpenGLPixelFormat* ) viewportPixelFormat +{ + NSOpenGLPixelFormatAttribute attribs[ ] = + { + NSOpenGLPFANoRecovery, + NSOpenGLPFADoubleBuffer, + NSOpenGLPFAAccelerated, + NSOpenGLPFAColorSize, ( NSOpenGLPixelFormatAttribute ) 24, + NSOpenGLPFADepthSize, ( NSOpenGLPixelFormatAttribute ) 16, + ( NSOpenGLPixelFormatAttribute ) 0 + }; + + return [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ]; +} + +- ( id ) initWithFrame: ( NSRect ) theFrame +{ + [ super initWithFrame: theFrame pixelFormat: [ ViewportOpenGLView viewportPixelFormat ] ]; + [ [ super openGLContext ] makeCurrentContext ]; + + return self; +} + +- ( void ) awakeFromNib +{ + NSBundle* bundle = [ NSBundle bundleForClass: [ self class ] ]; + NSString* logo = [ bundle pathForResource: @"HDRFlow" ofType: @"tif" ]; + + viewer_ = new hdrflow::Viewer( [ logo UTF8String ] ); +} + +- ( void ) dealloc +{ + [ super dealloc ]; + delete viewer_; +} + +- ( void ) renewGState +{ + NSWindow* window; + [ super renewGState ]; + window = [ self window ]; + + if( [ window respondsToSelector: @selector( disableScreenUpdatesUntilFlush ) ] ) + [ window disableScreenUpdatesUntilFlush ]; +} + +- ( void ) drawRect: ( NSRect ) theRect +{ + NSRect bounds = [ self bounds ]; + + viewer_->display( NSWidth( bounds ), NSHeight( bounds ) ); + + [ [ self openGLContext ] flushBuffer ]; +} + +- ( void ) prepareOpenGL +{ + viewer_->initialise( ); + + // Sync to vertical retrace + long VBL = 1; + [ [ self openGLContext ] setValues: &VBL forParameter: NSOpenGLCPSwapInterval ]; +} + +- ( void ) update +{ + [ super update ]; + if( ![ self inLiveResize ] ) + ; +} + +- ( void ) fullscreen +{ + NSOpenGLPixelFormatAttribute attribs[ ] = + { + NSOpenGLPFAFullScreen, + NSOpenGLPFAAccelerated, + NSOpenGLPFAScreenMask, + ( NSOpenGLPixelFormatAttribute ) CGDisplayIDToOpenGLDisplayMask( kCGDirectMainDisplay ), + NSOpenGLPFADoubleBuffer, + NSOpenGLPFAColorSize, ( NSOpenGLPixelFormatAttribute ) 24, + NSOpenGLPFADepthSize, ( NSOpenGLPixelFormatAttribute ) 16, + ( NSOpenGLPixelFormatAttribute ) 0 + }; + + NSOpenGLPixelFormat* pixelFormat = [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ]; + NSOpenGLContext* fullScreenContext = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat shareContext: [ self openGLContext ] ]; + + if( fullScreenContext == nil ) return; + + CGDisplayErr err = CGCaptureAllDisplays( ); + if( err != CGDisplayNoErr ) return; + + [ fullScreenContext setFullScreen ]; + [ fullScreenContext makeCurrentContext ]; + + glViewport( 0, 0, CGDisplayPixelsWide( kCGDirectMainDisplay ), CGDisplayPixelsHigh( kCGDirectMainDisplay ) ); + + BOOL stayInFullScreenMode = YES; + while( stayInFullScreenMode ) + { + NSEvent* event; + while( event = [ NSApp nextEventMatchingMask: NSAnyEventMask untilDate: [ NSDate distantPast ] inMode: NSDefaultRunLoopMode dequeue: YES ] ) + { + switch( [ event type ] ) + { + case NSKeyDown: + stayInFullScreenMode = NO; + break; + + default: + break; + } + } + + [ fullScreenContext flushBuffer ]; + } + + glClearColor( 0.0, 0.0, 0.0, 0.0 ); + glClear( GL_COLOR_BUFFER_BIT ); + [ fullScreenContext flushBuffer ]; + glClear( GL_COLOR_BUFFER_BIT ); + [ fullScreenContext flushBuffer ]; + + [ NSOpenGLContext clearCurrentContext ]; + [ fullScreenContext clearDrawable ]; + [ fullScreenContext release ]; + + CGReleaseAllDisplays( ); + + [ self setNeedsDisplay: YES ]; +} + +@end Modified: trunk/app/HDRFlow/main.m =================================================================== --- trunk/app/HDRFlow/main.m 2007-09-12 16:34:07 UTC (rev 298) +++ trunk/app/HDRFlow/main.m 2007-09-12 16:52:46 UTC (rev 299) @@ -3,7 +3,7 @@ // HDRFlow // // Created by Goncalo Carvalho on 28/05/2007. -// Copyright __MyCompanyName__ 2007. All rights reserved. +// Copyright Goncalo Carvalho 2007. All rights reserved. // #import <Cocoa/Cocoa.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-09-23 12:08:32
|
Revision: 311 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=311&view=rev Author: glslang Date: 2007-09-23 05:08:24 -0700 (Sun, 23 Sep 2007) Log Message: ----------- + clarify the terms of the license Modified Paths: -------------- trunk/app/HDRFlow/Bucket.cpp trunk/app/HDRFlow/Bucket.hpp trunk/app/HDRFlow/Cache.cpp trunk/app/HDRFlow/Cache.hpp trunk/app/HDRFlow/CustomOpenGLView.h trunk/app/HDRFlow/CustomOpenGLView.m trunk/app/HDRFlow/HDRFlowController.h trunk/app/HDRFlow/HDRFlowController.mm trunk/app/HDRFlow/PlugInsPreferencesController.h trunk/app/HDRFlow/PlugInsPreferencesController.mm trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm trunk/app/HDRFlow/PreferencesController.h trunk/app/HDRFlow/PreferencesController.m trunk/app/HDRFlow/ScriptEditorController.h trunk/app/HDRFlow/ScriptEditorController.mm trunk/app/HDRFlow/ScriptEngine.cpp trunk/app/HDRFlow/ScriptEngine.hpp trunk/app/HDRFlow/ToolbarHolder.h trunk/app/HDRFlow/ToolbarHolder.m trunk/app/HDRFlow/Track.cpp trunk/app/HDRFlow/Track.hpp trunk/app/HDRFlow/Viewer.cpp trunk/app/HDRFlow/Viewer.hpp trunk/app/HDRFlow/ViewportOpenGLView.h trunk/app/HDRFlow/ViewportOpenGLView.mm Modified: trunk/app/HDRFlow/Bucket.cpp =================================================================== --- trunk/app/HDRFlow/Bucket.cpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Bucket.cpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #include "Bucket.hpp" Modified: trunk/app/HDRFlow/Bucket.hpp =================================================================== --- trunk/app/HDRFlow/Bucket.hpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Bucket.hpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifndef BUCKET_INC_ Modified: trunk/app/HDRFlow/Cache.cpp =================================================================== --- trunk/app/HDRFlow/Cache.cpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Cache.cpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #include "Cache.hpp" Modified: trunk/app/HDRFlow/Cache.hpp =================================================================== --- trunk/app/HDRFlow/Cache.hpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Cache.hpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifndef CACHE_INC_ Modified: trunk/app/HDRFlow/CustomOpenGLView.h =================================================================== --- trunk/app/HDRFlow/CustomOpenGLView.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/CustomOpenGLView.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/CustomOpenGLView.m =================================================================== --- trunk/app/HDRFlow/CustomOpenGLView.m 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/CustomOpenGLView.m 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <OpenGL/OpenGL.h> Modified: trunk/app/HDRFlow/HDRFlowController.h =================================================================== --- trunk/app/HDRFlow/HDRFlowController.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/HDRFlowController.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/HDRFlowController.mm =================================================================== --- trunk/app/HDRFlow/HDRFlowController.mm 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/HDRFlowController.mm 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "ScriptEngine.hpp" Modified: trunk/app/HDRFlow/PlugInsPreferencesController.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/PlugInsPreferencesController.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "PlugInsPreferencesOutlineViewNode.h" Modified: trunk/app/HDRFlow/PlugInsPreferencesController.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/PlugInsPreferencesController.mm 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <HDRFlow/openlibraries.hpp> Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm =================================================================== --- trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/PlugInsPreferencesOutlineViewNode.mm 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "PlugInsPreferencesOutlineViewNode.h" Modified: trunk/app/HDRFlow/PreferencesController.h =================================================================== --- trunk/app/HDRFlow/PreferencesController.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/PreferencesController.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/PreferencesController.m =================================================================== --- trunk/app/HDRFlow/PreferencesController.m 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/PreferencesController.m 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "PreferencesController.h" Modified: trunk/app/HDRFlow/ScriptEditorController.h =================================================================== --- trunk/app/HDRFlow/ScriptEditorController.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ScriptEditorController.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/ScriptEditorController.mm =================================================================== --- trunk/app/HDRFlow/ScriptEditorController.mm 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ScriptEditorController.mm 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "ScriptEditorController.h" Modified: trunk/app/HDRFlow/ScriptEngine.cpp =================================================================== --- trunk/app/HDRFlow/ScriptEngine.cpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #include <HDRFlow/openlibraries.hpp> Modified: trunk/app/HDRFlow/ScriptEngine.hpp =================================================================== --- trunk/app/HDRFlow/ScriptEngine.hpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ScriptEngine.hpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifndef SCRIPT_ENGINE_INC_ Modified: trunk/app/HDRFlow/ToolbarHolder.h =================================================================== --- trunk/app/HDRFlow/ToolbarHolder.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ToolbarHolder.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import <Cocoa/Cocoa.h> Modified: trunk/app/HDRFlow/ToolbarHolder.m =================================================================== --- trunk/app/HDRFlow/ToolbarHolder.m 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ToolbarHolder.m 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "ToolbarHolder.h" Modified: trunk/app/HDRFlow/Track.cpp =================================================================== --- trunk/app/HDRFlow/Track.cpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Track.cpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #include "Track.hpp" Modified: trunk/app/HDRFlow/Track.hpp =================================================================== --- trunk/app/HDRFlow/Track.hpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Track.hpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifndef TRACK_INC_ Modified: trunk/app/HDRFlow/Viewer.cpp =================================================================== --- trunk/app/HDRFlow/Viewer.cpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Viewer.cpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #include "Viewer.hpp" @@ -11,6 +11,10 @@ namespace { + void calculate_dimensions( ml::frame_type_ptr frame, int& phy_w, int& phy_h, int& req_w, int& req_h ) + { + } + void paint_image( il::image_type_ptr im, int width, int height ) { int phy_w = im->width( ); Modified: trunk/app/HDRFlow/Viewer.hpp =================================================================== --- trunk/app/HDRFlow/Viewer.hpp 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/Viewer.hpp 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifndef VIEWER_INC_ Modified: trunk/app/HDRFlow/ViewportOpenGLView.h =================================================================== --- trunk/app/HDRFlow/ViewportOpenGLView.h 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "CustomOpenGLView.h" Modified: trunk/app/HDRFlow/ViewportOpenGLView.mm =================================================================== --- trunk/app/HDRFlow/ViewportOpenGLView.mm 2007-09-22 11:27:54 UTC (rev 310) +++ trunk/app/HDRFlow/ViewportOpenGLView.mm 2007-09-23 12:08:24 UTC (rev 311) @@ -2,7 +2,7 @@ // HDRFlow - A image processing application // Copyright (c) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #import "ViewportOpenGLView.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-09-23 16:54:03
|
Revision: 313 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=313&view=rev Author: glslang Date: 2007-09-23 09:53:57 -0700 (Sun, 23 Sep 2007) Log Message: ----------- + trying to find a better abstraction to manipulate media and effects Modified Paths: -------------- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj trunk/app/HDRFlow/Track.cpp trunk/app/HDRFlow/Track.hpp Added Paths: ----------- trunk/app/HDRFlow/TrackSource.cpp trunk/app/HDRFlow/TrackSource.hpp Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj =================================================================== --- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-09-23 13:00:10 UTC (rev 312) +++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-09-23 16:53:57 UTC (rev 313) @@ -29,6 +29,7 @@ 67C0BEFB0C5BED8500E0E258 /* PlugInsPreferencesController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 67C0BEFA0C5BED8500E0E258 /* PlugInsPreferencesController.mm */; }; 67C3D3220C53A71000136EE8 /* ToolbarHolder.m in Sources */ = {isa = PBXBuildFile; fileRef = 67C3D3210C53A71000136EE8 /* ToolbarHolder.m */; }; 67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; }; + 67CF5AD90CA6B85A00B84C55 /* TrackSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 67CF5AD80CA6B85A00B84C55 /* TrackSource.cpp */; }; 67CF88AA0C53D62E005B6662 /* AdvancedPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */; }; 67CF88AC0C53EFB8005B6662 /* PlugInsPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67CF88AB0C53EFB8005B6662 /* PlugInsPreferences.tiff */; }; 67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; }; @@ -81,6 +82,8 @@ 67C3D3170C5361C600136EE8 /* ToolbarHolder.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ToolbarHolder.h; sourceTree = "<group>"; }; 67C3D3210C53A71000136EE8 /* ToolbarHolder.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ToolbarHolder.m; sourceTree = "<group>"; }; 67C8D8B70C4AD8340006B871 /* bootstrap.py */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.script.python; name = bootstrap.py; path = Scripts/bootstrap.py; sourceTree = "<group>"; }; + 67CF5AD00CA6B74700B84C55 /* TrackSource.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = TrackSource.hpp; sourceTree = "<group>"; }; + 67CF5AD80CA6B85A00B84C55 /* TrackSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TrackSource.cpp; sourceTree = "<group>"; }; 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = AdvancedPreferences.tiff; path = Images/AdvancedPreferences.tiff; sourceTree = "<group>"; }; 67CF88AB0C53EFB8005B6662 /* PlugInsPreferences.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = PlugInsPreferences.tiff; path = Images/PlugInsPreferences.tiff; sourceTree = "<group>"; }; 67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewportOpenGLView.h; sourceTree = "<group>"; }; @@ -110,6 +113,8 @@ 080E96DDFE201D6D7F000001 /* Classes */ = { isa = PBXGroup; children = ( + 67CF5AD80CA6B85A00B84C55 /* TrackSource.cpp */, + 67CF5AD00CA6B74700B84C55 /* TrackSource.hpp */, 678014AA0C946D3E00D49569 /* Track.cpp */, 678014880C946B4200D49569 /* Track.hpp */, 676191A40C6642CC0076713C /* Bucket.hpp */, @@ -313,6 +318,7 @@ 678014AB0C946D3E00D49569 /* Track.cpp in Sources */, 6780153F0C9485DC00D49569 /* ViewportOpenGLView.mm in Sources */, 672C0AAE0C95590300BA76DB /* Bucket.cpp in Sources */, + 67CF5AD90CA6B85A00B84C55 /* TrackSource.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; Modified: trunk/app/HDRFlow/Track.cpp =================================================================== --- trunk/app/HDRFlow/Track.cpp 2007-09-23 13:00:10 UTC (rev 312) +++ trunk/app/HDRFlow/Track.cpp 2007-09-23 16:53:57 UTC (rev 313) @@ -10,14 +10,13 @@ namespace hdrflow { Track::Track( const pl::string& uri ) - : source_( new Cache( 100 ) ) + : source_( TrackSourcePtr( new TrackSource( uri ) ) ) { - source_->connect( uri ); } BucketPtr Track::media( int position ) { - return source_->reserve_bucket( position ); + return source_->media( position ); } } Modified: trunk/app/HDRFlow/Track.hpp =================================================================== --- trunk/app/HDRFlow/Track.hpp 2007-09-23 13:00:10 UTC (rev 312) +++ trunk/app/HDRFlow/Track.hpp 2007-09-23 16:53:57 UTC (rev 313) @@ -8,10 +8,8 @@ #ifndef TRACK_INC_ #define TRACK_INC_ -#include <HDRFlow/openlibraries.hpp> +#include "TrackSource.hpp" -#include "Cache.hpp" - namespace pl = olib::openpluginlib; namespace hdrflow { @@ -24,7 +22,7 @@ BucketPtr media( int position ); private: - CachePtr source_; + TrackSourcePtr source_; }; typedef boost::shared_ptr<Track> TrackPtr; Added: trunk/app/HDRFlow/TrackSource.cpp =================================================================== --- trunk/app/HDRFlow/TrackSource.cpp (rev 0) +++ trunk/app/HDRFlow/TrackSource.cpp 2007-09-23 16:53:57 UTC (rev 313) @@ -0,0 +1,23 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPLv3 or later. +// For more information, see http://www.hdrflow.com. + +#include "TrackSource.hpp" + +namespace hdrflow { + +TrackSource::TrackSource( const pl::string& uri ) + : source_( new Cache( 100 ) ) +{ + source_->connect( uri ); +} + +BucketPtr TrackSource::media( int position ) +{ + return source_->reserve_bucket( position ); +} + +} Added: trunk/app/HDRFlow/TrackSource.hpp =================================================================== --- trunk/app/HDRFlow/TrackSource.hpp (rev 0) +++ trunk/app/HDRFlow/TrackSource.hpp 2007-09-23 16:53:57 UTC (rev 313) @@ -0,0 +1,34 @@ + +// HDRFlow - A image processing application + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPLv3 or later. +// For more information, see http://www.hdrflow.com. + +#ifndef TRACK_SOURCE_INC_ +#define TRACK_SOURCE_INC_ + +#include <HDRFlow/openlibraries.hpp> + +#include "Cache.hpp" + +namespace pl = olib::openpluginlib; + +namespace hdrflow { + +class TrackSource +{ +public: + explicit TrackSource( const pl::string& uri ); + + BucketPtr media( int position ); + +private: + CachePtr source_; +}; + +typedef boost::shared_ptr<TrackSource> TrackSourcePtr; + +} + +#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |