Thread: [Hdrflow-svn] SF.net SVN: hdrflow: [158] trunk/app/HDRFlow
Status: Pre-Alpha
Brought to you by:
glslang
|
From: <gl...@us...> - 2007-06-24 15:31:55
|
Revision: 158
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=158&view=rev
Author: glslang
Date: 2007-06-24 08:31:51 -0700 (Sun, 24 Jun 2007)
Log Message:
-----------
+ Cocoa OpenGL initialisation
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
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
Added Paths:
-----------
trunk/app/HDRFlow/CustomOpenGLView.h
trunk/app/HDRFlow/CustomOpenGLView.m
trunk/app/HDRFlow/ViewportOpenGLView.h
trunk/app/HDRFlow/ViewportOpenGLView.m
Added: trunk/app/HDRFlow/CustomOpenGLView.h
===================================================================
--- trunk/app/HDRFlow/CustomOpenGLView.h (rev 0)
+++ trunk/app/HDRFlow/CustomOpenGLView.h 2007-06-24 15:31:51 UTC (rev 158)
@@ -0,0 +1,33 @@
+
+// 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>
+
+@class NSOpenGLContext, NSOpenGLPixelFormat;
+
+@interface CustomOpenGLView : NSView
+{
+@private
+ NSOpenGLContext* context_;
+ NSOpenGLPixelFormat* pixelFormat_;
+}
+
++ ( NSOpenGLPixelFormat* ) defaultPixelFormat;
+
+- ( id ) initWithFrame: ( NSRect ) frameRect pixelFormat: ( NSOpenGLPixelFormat* ) format;
+
+- ( void ) setOpenGLContext: ( NSOpenGLContext* ) context;
+- ( NSOpenGLContext* ) openGLContext;
+- ( void ) clearGLContext;
+- ( void ) prepareOpenGL;
+
+- ( void ) update;
+
+- ( void ) setPixelFormat: ( NSOpenGLPixelFormat* ) format;
+- ( NSOpenGLPixelFormat* ) pixelFormat;
+
+@end
Added: trunk/app/HDRFlow/CustomOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/CustomOpenGLView.m (rev 0)
+++ trunk/app/HDRFlow/CustomOpenGLView.m 2007-06-24 15:31:51 UTC (rev 158)
@@ -0,0 +1,143 @@
+
+// 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 "CustomOpenGLView.h"
+
+@implementation CustomOpenGLView
+
++ ( NSOpenGLPixelFormat* ) defaultPixelFormat
+{
+ NSOpenGLPixelFormatAttribute attribs[ ] = { 0 };
+ return [ [ ( NSOpenGLPixelFormat* ) [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ];
+}
+
+- ( id ) initWithFrame: ( NSRect ) frameRect pixelFormat: ( NSOpenGLPixelFormat* ) format
+{
+ self = [ super initWithFrame: frameRect ];
+ if( self != nil )
+ pixelFormat_ = [ format retain ];
+ [ [ NSNotificationCenter defaultCenter ] addObserver: self selector: @selector( _surfaceNeedsUpdate: ) name: NSViewGlobalFrameDidChangeNotification object: self ];
+ return self;
+}
+
+- ( void ) dealloc
+{
+ [ [ NSNotificationCenter defaultCenter ] removeObserver: self name: NSViewGlobalFrameDidChangeNotification object: self ];
+ [ self clearGLContext ];
+ [ pixelFormat_ release ];
+
+ [ super dealloc ];
+}
+
+- ( void ) setOpenGLContext: ( NSOpenGLContext* ) context
+{
+ [ self clearGLContext ];
+ context_ = [ context retain ];
+}
+
+- ( NSOpenGLContext* ) openGLContext
+{
+ if( context_ == NULL )
+ {
+ context_ = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat_ != nil ? pixelFormat_ : [ [ self class ] defaultPixelFormat ] shareContext: nil ];
+ [ context_ makeCurrentContext ];
+ [ self prepareOpenGL ];
+ }
+
+ return context_;
+}
+
+- ( void ) clearGLContext
+{
+ if( context_ != nil )
+ {
+ if( [ context_ view ] == self )
+ [ context_ clearDrawable ];
+
+ [ context_ release ];
+ context_ = nil;
+ }
+}
+
+- ( void ) prepareOpenGL
+{
+}
+
+- ( BOOL ) isOpaque
+{
+ return YES;
+}
+
+- ( void ) setPixelFormat: ( NSOpenGLPixelFormat* ) pixelFormat
+{
+ [ pixelFormat_ release ];
+ pixelFormat_ = [ pixelFormat retain ];
+}
+
+- ( NSOpenGLPixelFormat* ) pixelFormat
+{
+ return pixelFormat_;
+}
+
+- ( void ) lockFocus
+{
+ NSOpenGLContext* context = [ self openGLContext ];
+
+ [ super lockFocus ];
+
+ if( [ context view ] != self )
+ [ context setView: self ];
+
+ [ context makeCurrentContext ];
+}
+
+- ( void ) update
+{
+ if( [ context_ view ] == self )
+ [ context_ update ];
+}
+
+- ( void ) _surfaceNeedsUpdate: ( NSNotification* ) notification
+{
+ [ self update ];
+}
+
+- ( void ) encodeWithCoder: ( NSCoder* ) coder
+{
+ [ super encodeWithCoder: coder ];
+ if( ![ coder allowsKeyedCoding ] )
+ {
+ [ coder encodeValuesOfObjCTypes: "@iii", &pixelFormat_ ];
+ }
+ else
+ {
+ [ coder encodeObject: pixelFormat_ forKey: @"NSPixelFormat" ];
+ }
+}
+
+- ( id ) initWithCoder: ( NSCoder* ) coder
+{
+ self = [ super initWithCoder: coder ];
+
+ if( ![ coder allowsKeyedCoding ] )
+ {
+ [ coder decodeValuesOfObjCTypes: "@iii", &pixelFormat_ ];
+ }
+ else
+ {
+ pixelFormat_ = [ [ coder decodeObjectForKey: @"NSPixelFormat" ] retain ];
+ }
+
+ [ [ NSNotificationCenter defaultCenter ] addObserver: self selector: @selector( _surfaceNeedsUpdate: ) name: NSViewGlobalFrameDidChangeNotification object: self ];
+
+ return self;
+}
+
+@end
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-06-23 20:31:49 UTC (rev 157)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-06-24 15:31:51 UTC (rev 158)
@@ -1,4 +1,8 @@
{
- IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
+ IBClasses = (
+ {CLASS = CustomOpenGLView; LANGUAGE = ObjC; SUPERCLASS = NSView; },
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {CLASS = ViewportOpenGLView; LANGUAGE = ObjC; SUPERCLASS = CustomOpenGLView; }
+ );
IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-06-23 20:31:49 UTC (rev 157)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-06-24 15:31:51 UTC (rev 158)
@@ -3,20 +3,20 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>94 103 356 240 0 0 1280 1002 </string>
+ <string>472 85 356 240 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
- <string>93 343 318 44 0 0 1280 1002 </string>
+ <string>109 299 338 44 0 0 1440 878 </string>
</dict>
<key>IBFramework Version</key>
- <string>401.0</string>
+ <string>446.1</string>
<key>IBOpenObjects</key>
<array>
+ <integer>21</integer>
<integer>29</integer>
- <integer>21</integer>
</array>
<key>IBSystem Version</key>
- <string>8A259</string>
+ <string>8R2218</string>
</dict>
</plist>
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-06-23 20:31:49 UTC (rev 157)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-06-24 15:31:51 UTC (rev 158)
@@ -7,6 +7,9 @@
objects = {
/* Begin PBXBuildFile section */
+ 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; };
+ 67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
+ 67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
@@ -22,6 +25,11 @@
29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
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>"; };
+ 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; 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>"; };
+ 67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CustomOpenGLView.h; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* HDRFlow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HDRFlow.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -32,6 +40,7 @@
buildActionMask = 2147483647;
files = (
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
+ 67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -41,6 +50,10 @@
080E96DDFE201D6D7F000001 /* Classes */ = {
isa = PBXGroup;
children = (
+ 67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */,
+ 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */,
+ 67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */,
+ 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */,
);
name = Classes;
sourceTree = "<group>";
@@ -48,6 +61,7 @@
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
isa = PBXGroup;
children = (
+ 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */,
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
);
name = "Linked Frameworks";
@@ -165,6 +179,8 @@
buildActionMask = 2147483647;
files = (
8D11072D0486CEB800E47090 /* main.m in Sources */,
+ 678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */,
+ 67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/ViewportOpenGLView.h
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.h (rev 0)
+++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-06-24 15:31:51 UTC (rev 158)
@@ -0,0 +1,21 @@
+
+// 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 "CustomOpenGLView.h"
+
+@interface ViewportOpenGLView : CustomOpenGLView
+{
+}
+
++ ( NSOpenGLPixelFormat* ) pixelFormat;
+
+- ( id ) initWithFrame: ( NSRect ) theFrame;
+- ( void ) dealloc;
+- ( void ) drawRect: ( NSRect ) theRect;
+- ( void ) update;
+
+@end
Added: trunk/app/HDRFlow/ViewportOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.m (rev 0)
+++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-06-24 15:31:51 UTC (rev 158)
@@ -0,0 +1,78 @@
+
+// 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* ) pixelFormat
+{
+ NSOpenGLPixelFormatAttribute attribs[ ] =
+ {
+ NSOpenGLPFAWindow,
+ NSOpenGLPFADoubleBuffer,
+ NSOpenGLPFADepthSize, 24,
+ NSOpenGLPFAStencilSize, 8,
+ 0
+ };
+
+ return [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ];
+}
+
+- ( id ) initWithFrame: ( NSRect ) theFrame
+{
+ [ super initWithFrame: theFrame pixelFormat: [ self pixelFormat ] ];
+ [ [ super openGLContext ] makeCurrentContext ];
+
+ return self;
+}
+
+- ( 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 );
+
+ glFlush( );
+}
+
+- ( 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 ] )
+ ;
+}
+
+@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-06-30 16:50:32
|
Revision: 167
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=167&view=rev
Author: glslang
Date: 2007-06-30 09:50:29 -0700 (Sat, 30 Jun 2007)
Log Message:
-----------
+ adds a controller and open panel
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
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
Added Paths:
-----------
trunk/app/HDRFlow/HDRFlowController.h
trunk/app/HDRFlow/HDRFlowController.m
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-06-27 19:24:48 UTC (rev 166)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-06-30 16:50:29 UTC (rev 167)
@@ -1,7 +1,12 @@
{
IBClasses = (
{CLASS = CustomOpenGLView; LANGUAGE = ObjC; SUPERCLASS = NSView; },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ ACTIONS = {fileOpen = id; };
+ CLASS = HDRFlowController;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
{CLASS = ViewportOpenGLView; LANGUAGE = ObjC; SUPERCLASS = CustomOpenGLView; }
);
IBVersion = 1;
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-06-27 19:24:48 UTC (rev 166)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-06-30 16:50:29 UTC (rev 167)
@@ -3,17 +3,16 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>472 85 356 240 0 0 1440 878 </string>
+ <string>66 363 356 240 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
- <string>109 299 290 44 0 0 1440 878 </string>
+ <string>2 829 290 44 0 0 1440 878 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
- <integer>21</integer>
<integer>29</integer>
</array>
<key>IBSystem Version</key>
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-06-27 19:24:48 UTC (rev 166)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-06-30 16:50:29 UTC (rev 167)
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; };
+ 67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
@@ -26,6 +27,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>"; };
678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; 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>"; };
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>"; };
@@ -54,6 +57,8 @@
678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */,
67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */,
67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */,
+ 67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */,
+ 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */,
);
name = Classes;
sourceTree = "<group>";
@@ -181,6 +186,7 @@
8D11072D0486CEB800E47090 /* main.m in Sources */,
678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */,
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */,
+ 67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/HDRFlowController.h
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.h (rev 0)
+++ trunk/app/HDRFlow/HDRFlowController.h 2007-06-30 16:50:29 UTC (rev 167)
@@ -0,0 +1,20 @@
+
+// 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 HDRFlowController : NSObject
+{
+}
+
+- ( BOOL ) acceptsFirstResponder;
+- ( BOOL ) becomesFirstResponder;
+- ( BOOL ) resignFirstResponder;
+
+- ( IBAction ) fileOpen: ( id ) sender;
+
+@end
Added: trunk/app/HDRFlow/HDRFlowController.m
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.m (rev 0)
+++ trunk/app/HDRFlow/HDRFlowController.m 2007-06-30 16:50:29 UTC (rev 167)
@@ -0,0 +1,55 @@
+
+// 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"
+
+@implementation HDRFlowController
+
+#pragma mark ---- IB actions ----
+
+- ( 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 ];
+}
+
+- ( void ) openPanelDidEnd: ( NSOpenPanel* ) panel returnCode: ( int ) rc contextInfo: ( void* ) ctx
+{
+ if( rc == NSOKButton )
+ {
+ }
+}
+
+- ( BOOL ) acceptsFirstResponder
+{
+ return YES;
+}
+
+- ( BOOL ) becomesFirstResponder
+{
+ return YES;
+}
+
+- ( BOOL ) resignFirstResponder
+{
+ return YES;
+}
+
+@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-07 08:21:17
|
Revision: 174
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=174&view=rev
Author: glslang
Date: 2007-07-07 01:21:15 -0700 (Sat, 07 Jul 2007)
Log Message:
-----------
+NIB file for script editor
Modified Paths:
--------------
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/app/HDRFlow/ScriptEditor.nib/
trunk/app/HDRFlow/ScriptEditor.nib/classes.nib
trunk/app/HDRFlow/ScriptEditor.nib/info.nib
trunk/app/HDRFlow/ScriptEditor.nib/keyedobjects.nib
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-04 20:23:48 UTC (rev 173)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-07 08:21:15 UTC (rev 174)
@@ -11,6 +11,7 @@
67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
+ 67E9DF490C3EF24A006F4444 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 67E9DF480C3EF24A006F4444 /* ScriptEditor.nib */; };
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
@@ -32,6 +33,7 @@
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>"; };
+ 67E9DF480C3EF24A006F4444 /* ScriptEditor.nib */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; path = ScriptEditor.nib; sourceTree = "<group>"; };
67F6CCF70C285D6C00098F90 /* CustomOpenGLView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CustomOpenGLView.h; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* HDRFlow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HDRFlow.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -117,6 +119,7 @@
8D1107310486CEB800E47090 /* Info.plist */,
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
29B97318FDCFA39411CA2CEA /* MainMenu.nib */,
+ 67E9DF480C3EF24A006F4444 /* ScriptEditor.nib */,
);
name = Resources;
sourceTree = "<group>";
@@ -173,6 +176,7 @@
files = (
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */,
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
+ 67E9DF490C3EF24A006F4444 /* ScriptEditor.nib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/ScriptEditor.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/ScriptEditor.nib/classes.nib (rev 0)
+++ trunk/app/HDRFlow/ScriptEditor.nib/classes.nib 2007-07-07 08:21:15 UTC (rev 174)
@@ -0,0 +1,4 @@
+{
+ IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
+ IBVersion = 1;
+}
\ No newline at end of file
Added: trunk/app/HDRFlow/ScriptEditor.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/ScriptEditor.nib/info.nib (rev 0)
+++ trunk/app/HDRFlow/ScriptEditor.nib/info.nib 2007-07-07 08:21:15 UTC (rev 174)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IBDocumentLocation</key>
+ <string>69 49 356 240 0 0 1280 778 </string>
+ <key>IBFramework Version</key>
+ <string>446.1</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>5</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>8R2218</string>
+</dict>
+</plist>
Added: trunk/app/HDRFlow/ScriptEditor.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Property changes on: trunk/app/HDRFlow/ScriptEditor.nib/keyedobjects.nib
___________________________________________________________________
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-07-07 08:24:12
|
Revision: 175
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=175&view=rev
Author: glslang
Date: 2007-07-07 01:24:11 -0700 (Sat, 07 Jul 2007)
Log Message:
-----------
+Script Editor in Resources folder
Added Paths:
-----------
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
Removed Paths:
-------------
trunk/app/HDRFlow/ScriptEditor.nib/
Added: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib (rev 0)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-07 08:24:11 UTC (rev 175)
@@ -0,0 +1,4 @@
+{
+ IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
+ IBVersion = 1;
+}
\ No newline at end of file
Added: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib (rev 0)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib 2007-07-07 08:24:11 UTC (rev 175)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IBDocumentLocation</key>
+ <string>69 49 356 240 0 0 1280 778 </string>
+ <key>IBFramework Version</key>
+ <string>446.1</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>5</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>8R2218</string>
+</dict>
+</plist>
Added: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Property changes on: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
___________________________________________________________________
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-07-08 19:58:16
|
Revision: 177
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=177&view=rev
Author: glslang
Date: 2007-07-08 12:58:09 -0700 (Sun, 08 Jul 2007)
Log Message:
-----------
+ Script Editor and interface layout changes
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
trunk/app/HDRFlow/HDRFlowController.h
trunk/app/HDRFlow/HDRFlowController.m
Added Paths:
-----------
trunk/app/HDRFlow/ScriptEditorController.h
trunk/app/HDRFlow/ScriptEditorController.mm
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-08 19:58:09 UTC (rev 177)
@@ -2,7 +2,7 @@
IBClasses = (
{CLASS = CustomOpenGLView; LANGUAGE = ObjC; SUPERCLASS = NSView; },
{
- ACTIONS = {fileOpen = id; };
+ ACTIONS = {fileOpen = id; scriptEditor = id; };
CLASS = HDRFlowController;
LANGUAGE = ObjC;
SUPERCLASS = NSObject;
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-08 19:58:09 UTC (rev 177)
@@ -14,6 +14,7 @@
<key>IBOpenObjects</key>
<array>
<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/English.lproj/ScriptEditor.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-08 19:58:09 UTC (rev 177)
@@ -1,4 +1,11 @@
{
- IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
+ IBClasses = (
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ CLASS = ScriptEditorController;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindowController;
+ }
+ );
IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib 2007-07-08 19:58:09 UTC (rev 177)
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>69 49 356 240 0 0 1280 778 </string>
+ <string>81 58 356 240 0 0 1440 878 </string>
<key>IBFramework Version</key>
<string>446.1</string>
<key>IBOpenObjects</key>
Modified: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-08 19:58:09 UTC (rev 177)
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; };
674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; };
678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */; };
67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */; };
@@ -27,6 +28,8 @@
29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
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>"; };
+ 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>"; };
674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; sourceTree = "<group>"; };
678A4AA60C2B18B50011E9F7 /* CustomOpenGLView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = CustomOpenGLView.m; sourceTree = "<group>"; };
67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HDRFlowController.h; sourceTree = "<group>"; };
@@ -61,6 +64,8 @@
67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */,
67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */,
67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */,
+ 671E22910C41652E00CA1860 /* ScriptEditorController.h */,
+ 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */,
);
name = Classes;
sourceTree = "<group>";
@@ -191,6 +196,7 @@
678A4AA70C2B18B50011E9F7 /* CustomOpenGLView.m in Sources */,
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */,
67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */,
+ 671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Modified: trunk/app/HDRFlow/HDRFlowController.h
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.h 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/HDRFlowController.h 2007-07-08 19:58:09 UTC (rev 177)
@@ -7,8 +7,12 @@
#import <Cocoa/Cocoa.h>
+// forward declarations
+@class ScriptEditorController;
+
@interface HDRFlowController : NSObject
{
+ ScriptEditorController* scriptEditor;
}
- ( BOOL ) acceptsFirstResponder;
@@ -16,5 +20,6 @@
- ( BOOL ) resignFirstResponder;
- ( IBAction ) fileOpen: ( id ) sender;
+- ( IBAction ) scriptEditor: ( id ) sender;
@end
Modified: trunk/app/HDRFlow/HDRFlowController.m
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.m 2007-07-07 08:29:49 UTC (rev 176)
+++ trunk/app/HDRFlow/HDRFlowController.m 2007-07-08 19:58:09 UTC (rev 177)
@@ -37,6 +37,14 @@
}
}
+- ( IBAction ) scriptEditor: ( id ) sender
+{
+ if( scriptEditor == nil )
+ scriptEditor = [ [ ScriptEditorController alloc ] initWithWindowNibName:@"ScriptEditor" ];
+
+ [ scriptEditor showWindow: self ];
+}
+
- ( BOOL ) acceptsFirstResponder
{
return YES;
@@ -52,4 +60,10 @@
return YES;
}
+- ( void ) dealloc
+{
+ [ scriptEditor dealloc ];
+ [ super dealloc ];
+}
+
@end
Added: trunk/app/HDRFlow/ScriptEditorController.h
===================================================================
--- trunk/app/HDRFlow/ScriptEditorController.h (rev 0)
+++ trunk/app/HDRFlow/ScriptEditorController.h 2007-07-08 19:58:09 UTC (rev 177)
@@ -0,0 +1,14 @@
+
+// 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 ScriptEditorController : NSWindowController
+{
+}
+
+@end
Added: trunk/app/HDRFlow/ScriptEditorController.mm
===================================================================
--- trunk/app/HDRFlow/ScriptEditorController.mm (rev 0)
+++ trunk/app/HDRFlow/ScriptEditorController.mm 2007-07-08 19:58:09 UTC (rev 177)
@@ -0,0 +1,12 @@
+
+// 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 "ScriptEditorController.h"
+
+@implementation ScriptEditorController
+
+@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-08 20:52:29
|
Revision: 178
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=178&view=rev
Author: glslang
Date: 2007-07-08 13:52:19 -0700 (Sun, 08 Jul 2007)
Log Message:
-----------
+ Initial ScriptEngine classes. UI independent python scripting abstraction
Modified Paths:
--------------
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/app/HDRFlow/ScriptEngine.cpp
trunk/app/HDRFlow/ScriptEngine.hpp
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-08 19:58:09 UTC (rev 177)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-08 20:52:19 UTC (rev 178)
@@ -10,6 +10,8 @@
671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 671E22A20C4166E400CA1860 /* ScriptEditorController.mm */; };
674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */ = {isa = PBXBuildFile; fileRef = 674E44620C3F854A0036A908 /* ScriptEditor.nib */; };
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 */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
@@ -32,6 +34,9 @@
671E22A20C4166E400CA1860 /* ScriptEditorController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ScriptEditorController.mm; sourceTree = "<group>"; };
674E44630C3F854A0036A908 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ScriptEditor.nib; 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>"; };
67DC61B10C2EAB5E005CFE6E /* ViewportOpenGLView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewportOpenGLView.h; sourceTree = "<group>"; };
@@ -49,6 +54,7 @@
files = (
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */,
+ 67A8A6EA0C41836600DB3F1B /* Python.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -73,6 +79,7 @@
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
isa = PBXGroup;
children = (
+ 67A8A6E90C41836600DB3F1B /* Python.framework */,
67DC62170C2EC0D9005CFE6E /* OpenGL.framework */,
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
);
@@ -114,6 +121,8 @@
children = (
32CA4F630368D1EE00C91783 /* HDRFlow_Prefix.pch */,
29B97316FDCFA39411CA2CEA /* main.m */,
+ 67A8A6E40C4181C600DB3F1B /* ScriptEngine.hpp */,
+ 67A8A73D0C4183C500DB3F1B /* ScriptEngine.cpp */,
);
name = "Other Sources";
sourceTree = "<group>";
@@ -197,6 +206,7 @@
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */,
67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */,
671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */,
+ 67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/ScriptEngine.cpp
===================================================================
--- trunk/app/HDRFlow/ScriptEngine.cpp (rev 0)
+++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-08 20:52:19 UTC (rev 178)
@@ -0,0 +1,27 @@
+
+// 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 "ScriptEngine.hpp"
+
+namespace hdrflow {
+
+ScriptEngine::ScriptEngine( )
+{
+ Py_Initialize( );
+}
+
+ScriptEngine::~ScriptEngine( )
+{
+ Py_Finalize( );
+}
+
+bool ScriptEngine::eval( )
+{
+ return false;
+}
+
+}
Added: trunk/app/HDRFlow/ScriptEngine.hpp
===================================================================
--- trunk/app/HDRFlow/ScriptEngine.hpp (rev 0)
+++ trunk/app/HDRFlow/ScriptEngine.hpp 2007-07-08 20:52:19 UTC (rev 178)
@@ -0,0 +1,28 @@
+
+// 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 SCRIPT_ENGINE_INC_
+#define SCRIPT_ENGINE_INC_
+
+#include <Python/python.h>
+
+namespace hdrflow {
+
+class ScriptEngine
+{
+public:
+ explicit ScriptEngine( );
+ ~ScriptEngine( );
+
+ bool eval( );
+
+private:
+};
+
+}
+
+#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-10 22:19:17
|
Revision: 179
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=179&view=rev
Author: glslang
Date: 2007-07-10 15:19:16 -0700 (Tue, 10 Jul 2007)
Log Message:
-----------
+Script Editor actions
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/ScriptEditor.nib/classes.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
trunk/app/HDRFlow/HDRFlowController.m
trunk/app/HDRFlow/ScriptEditorController.h
trunk/app/HDRFlow/ScriptEditorController.mm
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-08 20:52:19 UTC (rev 178)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-10 22:19:16 UTC (rev 179)
@@ -13,8 +13,8 @@
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
+ <integer>21</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/English.lproj/ScriptEditor.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-08 20:52:19 UTC (rev 178)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-10 22:19:16 UTC (rev 179)
@@ -2,8 +2,10 @@
IBClasses = (
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
{
+ ACTIONS = {clearScript = id; executeScript = id; };
CLASS = ScriptEditorController;
LANGUAGE = ObjC;
+ OUTLETS = {"scriptEdit_" = id; };
SUPERCLASS = NSWindowController;
}
);
Modified: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/app/HDRFlow/HDRFlowController.m
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.m 2007-07-08 20:52:19 UTC (rev 178)
+++ trunk/app/HDRFlow/HDRFlowController.m 2007-07-10 22:19:16 UTC (rev 179)
@@ -11,6 +11,13 @@
#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 ];
@@ -30,13 +37,6 @@
contextInfo: nil ];
}
-- ( void ) openPanelDidEnd: ( NSOpenPanel* ) panel returnCode: ( int ) rc contextInfo: ( void* ) ctx
-{
- if( rc == NSOKButton )
- {
- }
-}
-
- ( IBAction ) scriptEditor: ( id ) sender
{
if( scriptEditor == nil )
Modified: trunk/app/HDRFlow/ScriptEditorController.h
===================================================================
--- trunk/app/HDRFlow/ScriptEditorController.h 2007-07-08 20:52:19 UTC (rev 178)
+++ trunk/app/HDRFlow/ScriptEditorController.h 2007-07-10 22:19:16 UTC (rev 179)
@@ -9,6 +9,10 @@
@interface ScriptEditorController : NSWindowController
{
+ IBOutlet NSTextView* scriptEdit_;
}
+- ( IBAction ) executeScript: ( id ) sender;
+- ( IBAction ) clearScript: ( id ) sender;
+
@end
Modified: trunk/app/HDRFlow/ScriptEditorController.mm
===================================================================
--- trunk/app/HDRFlow/ScriptEditorController.mm 2007-07-08 20:52:19 UTC (rev 178)
+++ trunk/app/HDRFlow/ScriptEditorController.mm 2007-07-10 22:19:16 UTC (rev 179)
@@ -9,4 +9,14 @@
@implementation ScriptEditorController
+- ( IBAction ) executeScript: ( id ) sender
+{
+}
+
+- ( IBAction ) clearScript: ( id ) sender
+{
+ [ scriptEdit_ setString: @""];
+ [ scriptEdit_ setNeedsDisplay: YES];
+}
+
@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-10 22:43:41
|
Revision: 181
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=181&view=rev
Author: glslang
Date: 2007-07-10 15:43:33 -0700 (Tue, 10 Jul 2007)
Log Message:
-----------
+ eol-style to native
Property Changed:
----------------
trunk/app/HDRFlow/CustomOpenGLView.h
trunk/app/HDRFlow/CustomOpenGLView.m
trunk/app/HDRFlow/HDRFlowController.h
trunk/app/HDRFlow/HDRFlowController.m
trunk/app/HDRFlow/HDRFlow_Prefix.pch
trunk/app/HDRFlow/Info.plist
trunk/app/HDRFlow/ScriptEditorController.h
trunk/app/HDRFlow/ScriptEditorController.mm
trunk/app/HDRFlow/ScriptEngine.cpp
trunk/app/HDRFlow/ScriptEngine.hpp
trunk/app/HDRFlow/ViewportOpenGLView.h
trunk/app/HDRFlow/ViewportOpenGLView.m
trunk/app/HDRFlow/main.m
Property changes on: trunk/app/HDRFlow/CustomOpenGLView.h
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/CustomOpenGLView.m
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/HDRFlowController.h
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/HDRFlowController.m
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/HDRFlow_Prefix.pch
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/Info.plist
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ScriptEditorController.h
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ScriptEditorController.mm
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ScriptEngine.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ScriptEngine.hpp
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ViewportOpenGLView.h
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ViewportOpenGLView.m
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/main.m
___________________________________________________________________
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-11 20:40:18
|
Revision: 182
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=182&view=rev
Author: glslang
Date: 2007-07-11 13:39:38 -0700 (Wed, 11 Jul 2007)
Log Message:
-----------
+more UI hookups
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
trunk/app/HDRFlow/ScriptEditorController.h
Modified: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-10 22:43:33 UTC (rev 181)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib 2007-07-11 20:39:38 UTC (rev 182)
@@ -5,7 +5,11 @@
ACTIONS = {clearScript = id; executeScript = id; };
CLASS = ScriptEditorController;
LANGUAGE = ObjC;
- OUTLETS = {"scriptEdit_" = id; };
+ OUTLETS = {
+ "scriptEdit_" = NSTextView;
+ "scriptOutput_" = NSTextView;
+ "scriptStatus_" = NSTextField;
+ };
SUPERCLASS = NSWindowController;
}
);
Modified: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib 2007-07-10 22:43:33 UTC (rev 181)
+++ trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib 2007-07-11 20:39:38 UTC (rev 182)
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>81 58 356 240 0 0 1440 878 </string>
+ <string>69 49 356 240 0 0 1280 778 </string>
<key>IBFramework Version</key>
<string>446.1</string>
<key>IBOpenObjects</key>
Modified: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/app/HDRFlow/ScriptEditorController.h
===================================================================
--- trunk/app/HDRFlow/ScriptEditorController.h 2007-07-10 22:43:33 UTC (rev 181)
+++ trunk/app/HDRFlow/ScriptEditorController.h 2007-07-11 20:39:38 UTC (rev 182)
@@ -10,6 +10,8 @@
@interface ScriptEditorController : NSWindowController
{
IBOutlet NSTextView* scriptEdit_;
+ IBOutlet NSTextView* scriptOutput_;
+ IBOutlet NSTextField* scriptStatus_;
}
- ( IBAction ) executeScript: ( id ) sender;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-15 22:39:22
|
Revision: 188
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=188&view=rev
Author: glslang
Date: 2007-07-15 15:39:16 -0700 (Sun, 15 Jul 2007)
Log Message:
-----------
+initial bootsrap script
Modified Paths:
--------------
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/app/HDRFlow/Scripts/
trunk/app/HDRFlow/Scripts/bootstrap.py
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-15 18:44:50 UTC (rev 187)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-15 22:39:16 UTC (rev 188)
@@ -14,6 +14,7 @@
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 */; };
+ 67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
@@ -41,6 +42,7 @@
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>"; };
+ 67C8D8B70C4AD8340006B871 /* bootstrap.py */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.script.python; name = bootstrap.py; path = Scripts/bootstrap.py; 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>"; };
@@ -114,6 +116,7 @@
080E96DDFE201D6D7F000001 /* Classes */,
29B97315FDCFA39411CA2CEA /* Other Sources */,
29B97317FDCFA39411CA2CEA /* Resources */,
+ 67C8D8B10C4AD7350006B871 /* Scripts */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
19C28FACFE9D520D11CA2CBB /* Products */,
);
@@ -151,6 +154,14 @@
name = Frameworks;
sourceTree = "<group>";
};
+ 67C8D8B10C4AD7350006B871 /* Scripts */ = {
+ isa = PBXGroup;
+ children = (
+ 67C8D8B70C4AD8340006B871 /* bootstrap.py */,
+ );
+ name = Scripts;
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -195,6 +206,7 @@
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */,
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */,
+ 67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/Scripts/bootstrap.py
===================================================================
--- trunk/app/HDRFlow/Scripts/bootstrap.py (rev 0)
+++ trunk/app/HDRFlow/Scripts/bootstrap.py 2007-07-15 22:39:16 UTC (rev 188)
@@ -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 sys
+
+sys.path.append( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowPlugin.framework/PlugIns" )
+sys.path.append( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowImage.framework/PlugIns" )
+sys.path.append( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowMedia.framework/PlugIns" )
+
+import HDRFlowPlugin
+import HDRFlowImage
+import HDRFlowMedia
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-16 21:47:54
|
Revision: 190
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=190&view=rev
Author: glslang
Date: 2007-07-16 14:47:28 -0700 (Mon, 16 Jul 2007)
Log Message:
-----------
+ initial fullscreen code
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
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.m
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-16 20:59:23 UTC (rev 189)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-16 21:47:28 UTC (rev 190)
@@ -2,9 +2,10 @@
IBClasses = (
{CLASS = CustomOpenGLView; LANGUAGE = ObjC; SUPERCLASS = NSView; },
{
- ACTIONS = {fileOpen = id; scriptEditor = id; };
+ ACTIONS = {fileOpen = id; scriptEditor = id; viewFullscreen = id; };
CLASS = HDRFlowController;
LANGUAGE = ObjC;
+ OUTLETS = {OpenGLView = ViewportOpenGLView; };
SUPERCLASS = NSObject;
},
{CLASS = ViewportOpenGLView; LANGUAGE = ObjC; SUPERCLASS = CustomOpenGLView; }
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-16 20:59:23 UTC (rev 189)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-16 21:47:28 UTC (rev 190)
@@ -3,11 +3,11 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>66 363 356 240 0 0 1440 878 </string>
+ <string>36 72 356 240 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
- <string>2 829 290 44 0 0 1440 878 </string>
+ <string>2 829 338 44 0 0 1440 878 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</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-07-16 20:59:23 UTC (rev 189)
+++ trunk/app/HDRFlow/HDRFlowController.h 2007-07-16 21:47:28 UTC (rev 190)
@@ -9,10 +9,12 @@
// forward declarations
@class ScriptEditorController;
+@class ViewportOpenGLView;
@interface HDRFlowController : NSObject
{
ScriptEditorController* scriptEditor;
+ IBOutlet ViewportOpenGLView* OpenGLView;
}
- ( BOOL ) acceptsFirstResponder;
@@ -21,5 +23,6 @@
- ( IBAction ) fileOpen: ( id ) sender;
- ( IBAction ) scriptEditor: ( id ) sender;
+- ( IBAction ) viewFullscreen: ( id ) sender;
@end
Modified: trunk/app/HDRFlow/HDRFlowController.m
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.m 2007-07-16 20:59:23 UTC (rev 189)
+++ trunk/app/HDRFlow/HDRFlowController.m 2007-07-16 21:47:28 UTC (rev 190)
@@ -45,6 +45,10 @@
[ scriptEditor showWindow: self ];
}
+- ( IBAction ) viewFullscreen: ( id ) sender
+{
+}
+
- ( BOOL ) acceptsFirstResponder
{
return YES;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-17 21:37:10
|
Revision: 191
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=191&view=rev
Author: glslang
Date: 2007-07-17 14:32:29 -0700 (Tue, 17 Jul 2007)
Log Message:
-----------
+beauty fixes
Modified Paths:
--------------
trunk/app/HDRFlow/ScriptEngine.cpp
trunk/app/HDRFlow/Scripts/bootstrap.py
trunk/app/HDRFlow/ViewportOpenGLView.h
trunk/app/HDRFlow/ViewportOpenGLView.m
Modified: trunk/app/HDRFlow/ScriptEngine.cpp
===================================================================
--- trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-16 21:47:28 UTC (rev 190)
+++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-17 21:32:29 UTC (rev 191)
@@ -47,9 +47,8 @@
try
{
- py::handle<> handle;
- if( !( handle =
- py::handle<>( py::allow_null( PyRun_String( str.c_str( ), Py_eval_input, main_namespace.ptr( ), main_namespace.ptr( ) ) ) ) ) )
+ py::handle<> handle( py::allow_null( PyRun_String( str.c_str( ), Py_eval_input, main_namespace.ptr( ), main_namespace.ptr( ) ) ) );
+ if( !handle )
{
// clear all errors so the call below has a chance to succeed.
PyErr_Clear( );
Modified: trunk/app/HDRFlow/Scripts/bootstrap.py
===================================================================
--- trunk/app/HDRFlow/Scripts/bootstrap.py 2007-07-16 21:47:28 UTC (rev 190)
+++ trunk/app/HDRFlow/Scripts/bootstrap.py 2007-07-17 21:32:29 UTC (rev 191)
@@ -5,7 +5,9 @@
# Released under the GPL.
# For more information, see http://www.cryogenicgraphics.com/hdrflow.
+import platform
import sys
+import os.path
sys.path.append( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowPlugin.framework/PlugIns" )
sys.path.append( "/Library/Frameworks/HDRFlow.framework/Frameworks/HDRFlowImage.framework/PlugIns" )
@@ -15,3 +17,15 @@
import HDRFlowImage
import HDRFlowMedia
+if platform.system( ) == "Linux":
+ try:
+ import dl
+ sys.setdlopenflags( dl.RTLD_NOW | dl.RTLD_GLOBAL )
+ 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( )
Modified: trunk/app/HDRFlow/ViewportOpenGLView.h
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-16 21:47:28 UTC (rev 190)
+++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-17 21:32:29 UTC (rev 191)
@@ -18,4 +18,6 @@
- ( void ) drawRect: ( NSRect ) theRect;
- ( void ) update;
+- ( BOOL ) fullscreen;
+
@end
Modified: trunk/app/HDRFlow/ViewportOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-16 21:47:28 UTC (rev 190)
+++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-17 21:32:29 UTC (rev 191)
@@ -75,4 +75,9 @@
;
}
+- ( BOOL ) fullscreen
+{
+ return NO;
+}
+
@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-19 22:24:37
|
Revision: 193
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=193&view=rev
Author: glslang
Date: 2007-07-19 15:24:34 -0700 (Thu, 19 Jul 2007)
Log Message:
-----------
+initial fullscreen code
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib
trunk/app/HDRFlow/HDRFlowController.h
trunk/app/HDRFlow/HDRFlowController.m
trunk/app/HDRFlow/ViewportOpenGLView.h
trunk/app/HDRFlow/ViewportOpenGLView.m
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-18 21:42:24 UTC (rev 192)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-19 22:24:34 UTC (rev 193)
@@ -5,7 +5,7 @@
ACTIONS = {fileOpen = id; scriptEditor = id; viewFullscreen = id; };
CLASS = HDRFlowController;
LANGUAGE = ObjC;
- OUTLETS = {OpenGLView = ViewportOpenGLView; scriptEditor = ScriptEditorController; };
+ OUTLETS = {openGLView = ViewportOpenGLView; };
SUPERCLASS = NSObject;
},
{CLASS = ViewportOpenGLView; LANGUAGE = ObjC; SUPERCLASS = CustomOpenGLView; }
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-07-18 21:42:24 UTC (rev 192)
+++ trunk/app/HDRFlow/HDRFlowController.h 2007-07-19 22:24:34 UTC (rev 193)
@@ -14,7 +14,7 @@
@interface HDRFlowController : NSObject
{
ScriptEditorController* scriptEditor;
- IBOutlet ViewportOpenGLView* OpenGLView;
+ IBOutlet ViewportOpenGLView* openGLView;
}
- ( BOOL ) acceptsFirstResponder;
Modified: trunk/app/HDRFlow/HDRFlowController.m
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.m 2007-07-18 21:42:24 UTC (rev 192)
+++ trunk/app/HDRFlow/HDRFlowController.m 2007-07-19 22:24:34 UTC (rev 193)
@@ -6,6 +6,7 @@
// For more information, see http://www.cryogenicgraphics.com/hdrflow.
#import "HDRFlowController.h"
+#import "ViewportOpenGLView.h"
@implementation HDRFlowController
@@ -47,6 +48,7 @@
- ( IBAction ) viewFullscreen: ( id ) sender
{
+ [ openGLView fullscreen ];
}
- ( BOOL ) acceptsFirstResponder
Modified: trunk/app/HDRFlow/ViewportOpenGLView.h
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-18 21:42:24 UTC (rev 192)
+++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-19 22:24:34 UTC (rev 193)
@@ -18,6 +18,6 @@
- ( void ) drawRect: ( NSRect ) theRect;
- ( void ) update;
-- ( BOOL ) fullscreen;
+- ( void ) fullscreen;
@end
Modified: trunk/app/HDRFlow/ViewportOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-18 21:42:24 UTC (rev 192)
+++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-19 22:24:34 UTC (rev 193)
@@ -75,9 +75,65 @@
;
}
-- ( BOOL ) fullscreen
+- ( void ) fullscreen
{
- return NO;
+ NSOpenGLPixelFormatAttribute attribs[ ] =
+ {
+ NSOpenGLPFAFullScreen,
+ NSOpenGLPFAScreenMask,
+ CGDisplayIDToOpenGLDisplayMask( kCGDirectMainDisplay ),
+ NSOpenGLPFADoubleBuffer,
+ NSOpenGLPFADepthSize, 24,
+ NSOpenGLPFAStencilSize, 8,
+ 0
+ };
+
+ NSOpenGLPixelFormat* pixelFormat = [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ];
+ NSOpenGLContext* fullScreenContext = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat shareContext: nil ];
+
+ 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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-21 11:21:20
|
Revision: 194
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=194&view=rev
Author: glslang
Date: 2007-07-21 04:21:18 -0700 (Sat, 21 Jul 2007)
Log Message:
-----------
+ eol-style to native
Property Changed:
----------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
trunk/app/HDRFlow/Scripts/bootstrap.py
Property changes on: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/classes.nib
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/English.lproj/ScriptEditor.nib/info.nib
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/Scripts/bootstrap.py
___________________________________________________________________
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-21 15:58:34
|
Revision: 195
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=195&view=rev
Author: glslang
Date: 2007-07-21 08:58:27 -0700 (Sat, 21 Jul 2007)
Log Message:
-----------
+ initial Preferences window and UI hookups
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.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.m
Added Paths:
-----------
trunk/app/HDRFlow/English.lproj/Preferences.nib/
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/PreferencesController.h
trunk/app/HDRFlow/PreferencesController.m
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-21 11:21:18 UTC (rev 194)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/classes.nib 2007-07-21 15:58:27 UTC (rev 195)
@@ -2,7 +2,7 @@
IBClasses = (
{CLASS = CustomOpenGLView; LANGUAGE = ObjC; SUPERCLASS = NSView; },
{
- ACTIONS = {fileOpen = id; scriptEditor = id; viewFullscreen = id; };
+ ACTIONS = {fileOpen = id; preferences = id; scriptEditor = id; viewFullscreen = id; };
CLASS = HDRFlowController;
LANGUAGE = ObjC;
OUTLETS = {openGLView = ViewportOpenGLView; };
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Added: trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib (rev 0)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-21 15:58:27 UTC (rev 195)
@@ -0,0 +1,11 @@
+{
+ IBClasses = (
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ CLASS = PreferencesController;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindowController;
+ }
+ );
+ IBVersion = 1;
+}
\ No newline at end of file
Added: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib (rev 0)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-21 15:58:27 UTC (rev 195)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IBDocumentLocation</key>
+ <string>69 54 356 240 0 0 1440 878 </string>
+ <key>IBFramework Version</key>
+ <string>446.1</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>5</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>8R2218</string>
+</dict>
+</plist>
Added: trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Property changes on: trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-21 11:21:18 UTC (rev 194)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-21 15:58:27 UTC (rev 195)
@@ -9,11 +9,13 @@
/* Begin PBXBuildFile section */
67032E9E0C46DB9C00FA55E2 /* HDRFlow.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67032E9D0C46DB9C00FA55E2 /* HDRFlow.framework */; };
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 */; };
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 */; };
67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
@@ -35,6 +37,8 @@
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>"; };
+ 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>"; };
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>"; };
@@ -42,6 +46,7 @@
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>"; };
67C8D8B70C4AD8340006B871 /* bootstrap.py */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.script.python; name = bootstrap.py; path = Scripts/bootstrap.py; 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>"; };
@@ -75,6 +80,8 @@
67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */,
67BD59C70C36BE3600F0F7DF /* HDRFlowController.h */,
67BD59C80C36BE3700F0F7DF /* HDRFlowController.m */,
+ 673D04450C522A610096513A /* PreferencesController.h */,
+ 673D044F0C522C980096513A /* PreferencesController.m */,
671E22910C41652E00CA1860 /* ScriptEditorController.h */,
671E22A20C4166E400CA1860 /* ScriptEditorController.mm */,
);
@@ -141,6 +148,7 @@
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
29B97318FDCFA39411CA2CEA /* MainMenu.nib */,
674E44620C3F854A0036A908 /* ScriptEditor.nib */,
+ 67C064EC0C52231A00E9ED8E /* Preferences.nib */,
);
name = Resources;
sourceTree = "<group>";
@@ -207,6 +215,7 @@
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */,
67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */,
+ 67C064EE0C52231A00E9ED8E /* Preferences.nib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -223,6 +232,7 @@
67BD59C90C36BE3700F0F7DF /* HDRFlowController.m in Sources */,
671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */,
67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */,
+ 673D04500C522C980096513A /* PreferencesController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -253,6 +263,14 @@
name = ScriptEditor.nib;
sourceTree = "<group>";
};
+ 67C064EC0C52231A00E9ED8E /* Preferences.nib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 67C064ED0C52231A00E9ED8E /* English */,
+ );
+ name = Preferences.nib;
+ sourceTree = "<group>";
+ };
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
Modified: trunk/app/HDRFlow/HDRFlowController.h
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.h 2007-07-21 11:21:18 UTC (rev 194)
+++ trunk/app/HDRFlow/HDRFlowController.h 2007-07-21 15:58:27 UTC (rev 195)
@@ -10,11 +10,13 @@
// forward declarations
@class ScriptEditorController;
@class ViewportOpenGLView;
+@class PreferencesController;
@interface HDRFlowController : NSObject
{
ScriptEditorController* scriptEditor;
IBOutlet ViewportOpenGLView* openGLView;
+ PreferencesController* preferences;
}
- ( BOOL ) acceptsFirstResponder;
@@ -24,5 +26,6 @@
- ( IBAction ) fileOpen: ( id ) sender;
- ( IBAction ) scriptEditor: ( id ) sender;
- ( IBAction ) viewFullscreen: ( id ) sender;
+- ( IBAction ) preferences: ( id ) sender;
@end
Modified: trunk/app/HDRFlow/HDRFlowController.m
===================================================================
--- trunk/app/HDRFlow/HDRFlowController.m 2007-07-21 11:21:18 UTC (rev 194)
+++ trunk/app/HDRFlow/HDRFlowController.m 2007-07-21 15:58:27 UTC (rev 195)
@@ -7,6 +7,7 @@
#import "HDRFlowController.h"
#import "ViewportOpenGLView.h"
+#import "PreferencesController.h"
@implementation HDRFlowController
@@ -41,7 +42,7 @@
- ( IBAction ) scriptEditor: ( id ) sender
{
if( scriptEditor == nil )
- scriptEditor = [ [ ScriptEditorController alloc ] initWithWindowNibName:@"ScriptEditor" ];
+ scriptEditor = [ [ ScriptEditorController alloc ] initWithWindowNibName: @"ScriptEditor" ];
[ scriptEditor showWindow: self ];
}
@@ -51,6 +52,14 @@
[ openGLView fullscreen ];
}
+- ( IBAction ) preferences: ( id ) sender
+{
+ if( preferences == nil )
+ preferences = [ [ PreferencesController alloc ] initWithWindowNibName: @"Preferences" ];
+
+ [ preferences showWindow: self ];
+}
+
- ( BOOL ) acceptsFirstResponder
{
return YES;
Added: trunk/app/HDRFlow/PreferencesController.h
===================================================================
--- trunk/app/HDRFlow/PreferencesController.h (rev 0)
+++ trunk/app/HDRFlow/PreferencesController.h 2007-07-21 15:58:27 UTC (rev 195)
@@ -0,0 +1,14 @@
+
+// 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 PreferencesController : NSWindowController
+{
+}
+
+@end
Added: trunk/app/HDRFlow/PreferencesController.m
===================================================================
--- trunk/app/HDRFlow/PreferencesController.m (rev 0)
+++ trunk/app/HDRFlow/PreferencesController.m 2007-07-21 15:58:27 UTC (rev 195)
@@ -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 "PreferencesController.h"
+
+@implementation PreferencesController
+
+- ( id ) initWindowWithNibName: ( NSString* ) windowNibName
+{
+ return [ super initWithWindowNibName: windowNibName ];
+}
+
+@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-21 16:00:54
|
Revision: 196
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=196&view=rev
Author: glslang
Date: 2007-07-21 09:00:50 -0700 (Sat, 21 Jul 2007)
Log Message:
-----------
+ eol-style to native
Property Changed:
----------------
trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib
trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
trunk/app/HDRFlow/PreferencesController.h
trunk/app/HDRFlow/PreferencesController.m
Property changes on: trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/PreferencesController.h
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/PreferencesController.m
___________________________________________________________________
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-21 22:31:33
|
Revision: 197
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=197&view=rev
Author: glslang
Date: 2007-07-21 15:31:30 -0700 (Sat, 21 Jul 2007)
Log Message:
-----------
+ Preferences Window initial toolbar code
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
trunk/app/HDRFlow/PreferencesController.h
trunk/app/HDRFlow/PreferencesController.m
Added Paths:
-----------
trunk/app/HDRFlow/Images/
trunk/app/HDRFlow/Images/GeneralPreferences.tiff
Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-21 16:00:50 UTC (rev 196)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-21 22:31:30 UTC (rev 197)
@@ -4,6 +4,7 @@
{
CLASS = PreferencesController;
LANGUAGE = ObjC;
+ OUTLETS = {generalView = NSView; };
SUPERCLASS = NSWindowController;
}
);
Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-21 16:00:50 UTC (rev 196)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-21 22:31:30 UTC (rev 197)
@@ -4,11 +4,17 @@
<dict>
<key>IBDocumentLocation</key>
<string>69 54 356 240 0 0 1440 878 </string>
+ <key>IBEditorPositions</key>
+ <dict>
+ <key>10</key>
+ <string>361 341 412 270 0 0 1440 878 </string>
+ </dict>
<key>IBFramework Version</key>
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
<integer>5</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-07-21 16:00:50 UTC (rev 196)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-21 22:31:30 UTC (rev 197)
@@ -19,6 +19,7 @@
67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
+ 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 */; };
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
@@ -52,6 +53,7 @@
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>"; };
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>"; };
8D1107320486CEB800E47090 /* HDRFlow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HDRFlow.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -123,7 +125,6 @@
080E96DDFE201D6D7F000001 /* Classes */,
29B97315FDCFA39411CA2CEA /* Other Sources */,
29B97317FDCFA39411CA2CEA /* Resources */,
- 67C8D8B10C4AD7350006B871 /* Scripts */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
19C28FACFE9D520D11CA2CBB /* Products */,
);
@@ -144,6 +145,8 @@
29B97317FDCFA39411CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
+ 67C8D8B10C4AD7350006B871 /* Scripts */,
+ 67F7A3EC0C52A1F900172987 /* Images */,
8D1107310486CEB800E47090 /* Info.plist */,
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
29B97318FDCFA39411CA2CEA /* MainMenu.nib */,
@@ -170,6 +173,14 @@
name = Scripts;
sourceTree = "<group>";
};
+ 67F7A3EC0C52A1F900172987 /* Images */ = {
+ isa = PBXGroup;
+ children = (
+ 67F7A3ED0C52A21600172987 /* GeneralPreferences.tiff */,
+ );
+ name = Images;
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -216,6 +227,7 @@
674E44640C3F854A0036A908 /* ScriptEditor.nib in Resources */,
67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */,
67C064EE0C52231A00E9ED8E /* Preferences.nib in Resources */,
+ 67F7A3EE0C52A21600172987 /* GeneralPreferences.tiff in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/Images/GeneralPreferences.tiff
===================================================================
(Binary files differ)
Property changes on: trunk/app/HDRFlow/Images/GeneralPreferences.tiff
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/app/HDRFlow/PreferencesController.h
===================================================================
--- trunk/app/HDRFlow/PreferencesController.h 2007-07-21 16:00:50 UTC (rev 196)
+++ trunk/app/HDRFlow/PreferencesController.h 2007-07-21 22:31:30 UTC (rev 197)
@@ -9,6 +9,17 @@
@interface PreferencesController : NSWindowController
{
+ NSMutableDictionary* items;
+
+ IBOutlet NSView* generalView;
}
+- ( NSToolbarItem* ) toolbar: ( NSToolbar* ) toolbar itemForItemIdentifier: ( NSString* ) itemIdentifier willBeInsertedIntoToolbar: ( BOOL ) flag;
+- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar;
+- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar;
+
+- ( void ) addToolbarItem: ( NSString* ) identifier label: ( NSString* ) label paletteLabel: ( NSString* ) paletteLabel tooltip: ( NSString* ) tooltip target: ( id ) target settingSelector: ( SEL ) settingSelector itemContent: ( id ) itemContent action: ( SEL ) action;
+- ( void ) toolbarItemAction: ( id ) sender;
+- ( void ) setActiveView: ( NSView* ) view;
+
@end
Modified: trunk/app/HDRFlow/PreferencesController.m
===================================================================
--- trunk/app/HDRFlow/PreferencesController.m 2007-07-21 16:00:50 UTC (rev 196)
+++ trunk/app/HDRFlow/PreferencesController.m 2007-07-21 22:31:30 UTC (rev 197)
@@ -14,4 +14,86 @@
return [ super initWithWindowNibName: windowNibName ];
}
+- ( void ) awakeFromNib
+{
+ items = [ [ NSMutableDictionary dictionary ] retain ];
+
+ NSToolbar* toolbar = [ [ [ NSToolbar alloc ] initWithIdentifier: @"HDRFlowPreferencesToolbar" ] autorelease ];
+ [ toolbar setAllowsUserCustomization: YES ];
+ [ toolbar setAutosavesConfiguration: YES ];
+ [ toolbar setSizeMode: NSToolbarSizeModeDefault ];
+ [ toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel ];
+ [ toolbar setDelegate: self ];
+
+ [ self addToolbarItem: @"General" label: @"General" paletteLabel: @"General" tooltip: @"Generic application configuration parameters" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"GeneralPreferences" ] action: @selector( toolbarItemAction: ) ];
+
+ [ [ self window ] setToolbar: toolbar ];
+}
+
+- ( void ) dealloc
+{
+ [ items release ];
+ [ super dealloc ];
+}
+
+#pragma mark ---- NSToolbar required delegate methods ----
+
+- ( NSToolbarItem* ) toolbar: ( NSToolbar* ) toolbar itemForItemIdentifier: ( NSString* ) itemIdentifier willBeInsertedIntoToolbar: ( BOOL ) flag
+{
+ NSToolbarItem* cloneItem = [ [ [ NSToolbarItem alloc ] initWithItemIdentifier: itemIdentifier ] autorelease ];
+ NSToolbarItem* originalItem = [ items objectForKey: itemIdentifier ];
+
+ [ cloneItem setLabel: [ originalItem label ] ];
+ [ cloneItem setPaletteLabel: [ originalItem paletteLabel ] ];
+ [ cloneItem setToolTip: [ originalItem toolTip ] ];
+ [ cloneItem setTarget: [ originalItem target ] ];
+ [ cloneItem setAction: [ originalItem action ] ];
+ if( [ originalItem view ] != nil )
+ {
+ [ cloneItem setView: [ originalItem view ] ];
+ [ cloneItem setMinSize: [ [ originalItem view ] bounds ].size ];
+ [ cloneItem setMaxSize: [ [ originalItem view ] bounds ].size ];
+ }
+ else
+ {
+ [ cloneItem setImage: [ originalItem image ] ];
+ }
+
+ return cloneItem;
+}
+
+- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar
+{
+ return [ NSArray arrayWithObjects: @"General", nil ];
+}
+
+- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar
+{
+ return [ NSArray arrayWithObjects: @"General", nil ];
+}
+
+#pragma mark ---- Toolbar items ----
+
+- ( void ) addToolbarItem: ( NSString* ) identifier label: ( NSString* ) label paletteLabel: ( NSString* ) paletteLabel tooltip: ( NSString* ) tooltip target: ( id ) target settingSelector: ( SEL ) settingSelector itemContent: ( id ) itemContent action: ( SEL ) action
+{
+ NSToolbarItem* item = [ [ [ NSToolbarItem alloc ] initWithItemIdentifier: identifier ] autorelease ];
+ [ item setLabel: label ];
+ [ item setPaletteLabel: paletteLabel ];
+ [ item setToolTip: tooltip ];
+ [ item setTarget: target ];
+ [ item performSelector: settingSelector withObject: itemContent ];
+ [ item setAction: action ];
+
+ [ items setObject: item forKey: identifier ];
+}
+
+- ( void ) toolbarItemAction: ( id ) sender
+{
+}
+
+- ( void ) setActiveView: ( NSView* ) view
+{
+ [ [ self window ] setContentView: view ];
+}
+
@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-22 16:48:53
|
Revision: 199
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=199&view=rev
Author: glslang
Date: 2007-07-22 09:48:49 -0700 (Sun, 22 Jul 2007)
Log Message:
-----------
+ Toolbar abstraction code
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/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
trunk/app/HDRFlow/PreferencesController.h
trunk/app/HDRFlow/PreferencesController.m
Added Paths:
-----------
trunk/app/HDRFlow/ToolbarHolder.h
trunk/app/HDRFlow/ToolbarHolder.m
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-21 22:42:43 UTC (rev 198)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-22 16:48:49 UTC (rev 199)
@@ -13,8 +13,8 @@
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
+ <integer>21</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/English.lproj/Preferences.nib/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-21 22:42:43 UTC (rev 198)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-22 16:48:49 UTC (rev 199)
@@ -2,6 +2,7 @@
IBClasses = (
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
{
+ ACTIONS = {toolbarItem = id; };
CLASS = PreferencesController;
LANGUAGE = ObjC;
OUTLETS = {generalView = NSView; };
Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-21 22:42:43 UTC (rev 198)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-22 16:48:49 UTC (rev 199)
@@ -7,7 +7,7 @@
<key>IBEditorPositions</key>
<dict>
<key>10</key>
- <string>361 341 412 270 0 0 1440 878 </string>
+ <string>514 465 412 270 0 0 1440 878 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</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-21 22:42:43 UTC (rev 198)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-22 16:48:49 UTC (rev 199)
@@ -16,6 +16,7 @@
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 */; };
+ 67C3D3220C53A71000136EE8 /* ToolbarHolder.m in Sources */ = {isa = PBXBuildFile; fileRef = 67C3D3210C53A71000136EE8 /* ToolbarHolder.m */; };
67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */ = {isa = PBXBuildFile; fileRef = 67C8D8B70C4AD8340006B871 /* bootstrap.py */; };
67DC61B90C2EAC94005CFE6E /* ViewportOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = 67DC61B80C2EAC94005CFE6E /* ViewportOpenGLView.m */; };
67DC62180C2EC0D9005CFE6E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67DC62170C2EC0D9005CFE6E /* OpenGL.framework */; };
@@ -48,6 +49,8 @@
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>"; };
+ 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>"; };
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>"; };
@@ -86,6 +89,8 @@
673D044F0C522C980096513A /* PreferencesController.m */,
671E22910C41652E00CA1860 /* ScriptEditorController.h */,
671E22A20C4166E400CA1860 /* ScriptEditorController.mm */,
+ 67C3D3170C5361C600136EE8 /* ToolbarHolder.h */,
+ 67C3D3210C53A71000136EE8 /* ToolbarHolder.m */,
);
name = Classes;
sourceTree = "<group>";
@@ -245,6 +250,7 @@
671E22A30C4166E400CA1860 /* ScriptEditorController.mm in Sources */,
67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */,
673D04500C522C980096513A /* PreferencesController.m in Sources */,
+ 67C3D3220C53A71000136EE8 /* ToolbarHolder.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Modified: trunk/app/HDRFlow/PreferencesController.h
===================================================================
--- trunk/app/HDRFlow/PreferencesController.h 2007-07-21 22:42:43 UTC (rev 198)
+++ trunk/app/HDRFlow/PreferencesController.h 2007-07-22 16:48:49 UTC (rev 199)
@@ -7,19 +7,17 @@
#import <Cocoa/Cocoa.h>
+// forward declarations
+@class ToolbarHolder;
+
@interface PreferencesController : NSWindowController
{
- NSMutableDictionary* items;
+ ToolbarHolder* toolbarHolder;
IBOutlet NSView* generalView;
}
-- ( NSToolbarItem* ) toolbar: ( NSToolbar* ) toolbar itemForItemIdentifier: ( NSString* ) itemIdentifier willBeInsertedIntoToolbar: ( BOOL ) flag;
-- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar;
-- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar;
-
-- ( void ) addToolbarItem: ( NSString* ) identifier label: ( NSString* ) label paletteLabel: ( NSString* ) paletteLabel tooltip: ( NSString* ) tooltip target: ( id ) target settingSelector: ( SEL ) settingSelector itemContent: ( id ) itemContent action: ( SEL ) action;
-- ( void ) toolbarItemAction: ( id ) sender;
+- ( IBAction ) toolbarItem: ( id ) sender;
- ( void ) setActiveView: ( NSView* ) view;
@end
Modified: trunk/app/HDRFlow/PreferencesController.m
===================================================================
--- trunk/app/HDRFlow/PreferencesController.m 2007-07-21 22:42:43 UTC (rev 198)
+++ trunk/app/HDRFlow/PreferencesController.m 2007-07-22 16:48:49 UTC (rev 199)
@@ -6,6 +6,7 @@
// For more information, see http://www.cryogenicgraphics.com/hdrflow.
#import "PreferencesController.h"
+#import "ToolbarHolder.h"
@implementation PreferencesController
@@ -16,81 +17,25 @@
- ( void ) awakeFromNib
{
- items = [ [ NSMutableDictionary dictionary ] retain ];
-
- NSToolbar* toolbar = [ [ [ NSToolbar alloc ] initWithIdentifier: @"HDRFlowPreferencesToolbar" ] autorelease ];
- [ toolbar setAllowsUserCustomization: YES ];
- [ toolbar setAutosavesConfiguration: YES ];
- [ toolbar setSizeMode: NSToolbarSizeModeDefault ];
- [ toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel ];
- [ toolbar setDelegate: self ];
+ toolbarHolder = [ [ ToolbarHolder alloc ] init: @"HDRFlowPreferencesToolbar" ];
- [ self addToolbarItem: @"General" label: @"General" paletteLabel: @"General" tooltip: @"Generic application configuration parameters" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"GeneralPreferences" ] action: @selector( toolbarItemAction: ) ];
+ [ toolbarHolder addToolbarItem: @"General" label: @"General" paletteLabel: @"General" tooltip: @"Generic application configuration parameters" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"GeneralPreferences" ] action: @selector( toolbarItem: ) ];
- [ [ self window ] setToolbar: toolbar ];
+ [ [ self window ] setToolbar: [ toolbarHolder toolbar ] ];
}
- ( void ) dealloc
{
- [ items release ];
+ [ toolbarHolder release ];
[ super dealloc ];
}
-#pragma mark ---- NSToolbar required delegate methods ----
-
-- ( NSToolbarItem* ) toolbar: ( NSToolbar* ) toolbar itemForItemIdentifier: ( NSString* ) itemIdentifier willBeInsertedIntoToolbar: ( BOOL ) flag
-{
- NSToolbarItem* cloneItem = [ [ [ NSToolbarItem alloc ] initWithItemIdentifier: itemIdentifier ] autorelease ];
- NSToolbarItem* originalItem = [ items objectForKey: itemIdentifier ];
-
- [ cloneItem setLabel: [ originalItem label ] ];
- [ cloneItem setPaletteLabel: [ originalItem paletteLabel ] ];
- [ cloneItem setToolTip: [ originalItem toolTip ] ];
- [ cloneItem setTarget: [ originalItem target ] ];
- [ cloneItem setAction: [ originalItem action ] ];
- if( [ originalItem view ] != nil )
- {
- [ cloneItem setView: [ originalItem view ] ];
- [ cloneItem setMinSize: [ [ originalItem view ] bounds ].size ];
- [ cloneItem setMaxSize: [ [ originalItem view ] bounds ].size ];
- }
- else
- {
- [ cloneItem setImage: [ originalItem image ] ];
- }
-
- return cloneItem;
-}
-
-- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar
-{
- return [ NSArray arrayWithObjects: @"General", nil ];
-}
-
-- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar
-{
- return [ NSArray arrayWithObjects: @"General", nil ];
-}
-
#pragma mark ---- Toolbar items ----
-- ( void ) addToolbarItem: ( NSString* ) identifier label: ( NSString* ) label paletteLabel: ( NSString* ) paletteLabel tooltip: ( NSString* ) tooltip target: ( id ) target settingSelector: ( SEL ) settingSelector itemContent: ( id ) itemContent action: ( SEL ) action
+- ( IBAction ) toolbarItem: ( id ) sender
{
- NSToolbarItem* item = [ [ [ NSToolbarItem alloc ] initWithItemIdentifier: identifier ] autorelease ];
- [ item setLabel: label ];
- [ item setPaletteLabel: paletteLabel ];
- [ item setToolTip: tooltip ];
- [ item setTarget: target ];
- [ item performSelector: settingSelector withObject: itemContent ];
- [ item setAction: action ];
-
- [ items setObject: item forKey: identifier ];
}
-- ( void ) toolbarItemAction: ( id ) sender
-{
-}
-
- ( void ) setActiveView: ( NSView* ) view
{
[ [ self window ] setContentView: view ];
Added: trunk/app/HDRFlow/ToolbarHolder.h
===================================================================
--- trunk/app/HDRFlow/ToolbarHolder.h (rev 0)
+++ trunk/app/HDRFlow/ToolbarHolder.h 2007-07-22 16:48:49 UTC (rev 199)
@@ -0,0 +1,25 @@
+
+// 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 ToolbarHolder : NSObject
+{
+ NSMutableDictionary* items;
+ NSToolbar* toolbar;
+}
+
+- ( ToolbarHolder* ) init: ( NSString* ) identifier;
+- ( void ) addToolbarItem: ( NSString* ) identifier label: ( NSString* ) label paletteLabel: ( NSString* ) paletteLabel tooltip: ( NSString* ) tooltip target: ( id ) target settingSelector: ( SEL ) settingSelector itemContent: ( id ) itemContent action: ( SEL ) action;
+- ( NSToolbar* ) toolbar;
+- ( NSToolbarItem* ) itemForKey: ( NSString* ) itemIdentifier;
+
+- ( NSToolbarItem* ) toolbar: ( NSToolbar* ) toolbar itemForItemIdentifier: ( NSString* ) itemIdentifier willBeInsertedIntoToolbar: ( BOOL ) flag;
+- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar;
+- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar;
+
+@end
Added: trunk/app/HDRFlow/ToolbarHolder.m
===================================================================
--- trunk/app/HDRFlow/ToolbarHolder.m (rev 0)
+++ trunk/app/HDRFlow/ToolbarHolder.m 2007-07-22 16:48:49 UTC (rev 199)
@@ -0,0 +1,94 @@
+
+// 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 "ToolbarHolder.h"
+
+@implementation ToolbarHolder
+
+- ( ToolbarHolder* ) init: ( NSString* ) identifier
+{
+ [ super init ];
+
+ items = [ [ NSMutableDictionary dictionary ] retain ];
+
+ toolbar = [ [ [ NSToolbar alloc ] initWithIdentifier: identifier ] retain ];
+ [ toolbar setAllowsUserCustomization: YES ];
+ [ toolbar setAutosavesConfiguration: YES ];
+ [ toolbar setSizeMode: NSToolbarSizeModeDefault ];
+ [ toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel ];
+ [ toolbar setDelegate: self ];
+
+ return self;
+}
+
+- ( void ) dealloc
+{
+ [ items release ];
+ [ toolbar release ];
+ [ super dealloc ];
+}
+
+- ( void ) addToolbarItem: ( NSString* ) identifier label: ( NSString* ) label paletteLabel: ( NSString* ) paletteLabel tooltip: ( NSString* ) tooltip target: ( id ) target settingSelector: ( SEL ) settingSelector itemContent: ( id ) itemContent action: ( SEL ) action
+{
+ NSToolbarItem* item = [ [ [ NSToolbarItem alloc ] initWithItemIdentifier: identifier ] autorelease ];
+ [ item setLabel: label ];
+ [ item setPaletteLabel: paletteLabel ];
+ [ item setToolTip: tooltip ];
+ [ item setTarget: target ];
+ [ item performSelector: settingSelector withObject: itemContent ];
+ [ item setAction: action ];
+
+ [ items setObject: item forKey: identifier ];
+}
+
+- ( NSToolbar* ) toolbar
+{
+ return toolbar;
+}
+
+- ( NSToolbarItem* ) itemForKey: ( NSString* ) itemIdentifier
+{
+ return [ items objectForKey: itemIdentifier ];
+}
+
+#pragma mark ---- NSToolbar required delegate methods ----
+
+- ( NSToolbarItem* ) toolbar: ( NSToolbar* ) toolbar itemForItemIdentifier: ( NSString* ) itemIdentifier willBeInsertedIntoToolbar: ( BOOL ) flag
+{
+ NSToolbarItem* cloneItem = [ [ [ NSToolbarItem alloc ] initWithItemIdentifier: itemIdentifier ] autorelease ];
+ NSToolbarItem* originalItem = [ items objectForKey: itemIdentifier ];
+
+ [ cloneItem setLabel: [ originalItem label ] ];
+ [ cloneItem setPaletteLabel: [ originalItem paletteLabel ] ];
+ [ cloneItem setToolTip: [ originalItem toolTip ] ];
+ [ cloneItem setTarget: [ originalItem target ] ];
+ [ cloneItem setAction: [ originalItem action ] ];
+ if( [ originalItem view ] != nil )
+ {
+ [ cloneItem setView: [ originalItem view ] ];
+ [ cloneItem setMinSize: [ [ originalItem view ] bounds ].size ];
+ [ cloneItem setMaxSize: [ [ originalItem view ] bounds ].size ];
+ }
+ else
+ {
+ [ cloneItem setImage: [ originalItem image ] ];
+ }
+
+ return cloneItem;
+}
+
+- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar
+{
+ return [ NSArray arrayWithObjects: @"General", nil ];
+}
+
+- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar
+{
+ return [ NSArray arrayWithObjects: @"General", nil ];
+}
+
+@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-22 16:50:50
|
Revision: 200
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=200&view=rev
Author: glslang
Date: 2007-07-22 09:50:48 -0700 (Sun, 22 Jul 2007)
Log Message:
-----------
+ eol-style to native
Property Changed:
----------------
trunk/app/HDRFlow/ToolbarHolder.h
trunk/app/HDRFlow/ToolbarHolder.m
Property changes on: trunk/app/HDRFlow/ToolbarHolder.h
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/app/HDRFlow/ToolbarHolder.m
___________________________________________________________________
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-22 20:37:24
|
Revision: 201
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=201&view=rev
Author: glslang
Date: 2007-07-22 13:37:22 -0700 (Sun, 22 Jul 2007)
Log Message:
-----------
+ Toolbar abstraction and Preferences
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/keyedobjects.nib
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
trunk/app/HDRFlow/PreferencesController.m
trunk/app/HDRFlow/ToolbarHolder.h
trunk/app/HDRFlow/ToolbarHolder.m
Added Paths:
-----------
trunk/app/HDRFlow/Images/AdvancedPreferences.tiff
trunk/app/HDRFlow/Images/PlugInsPreferences.tiff
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-22 16:50:48 UTC (rev 200)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-22 20:37:22 UTC (rev 201)
@@ -13,8 +13,8 @@
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
+ <integer>29</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/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-22 16:50:48 UTC (rev 200)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-22 20:37:22 UTC (rev 201)
@@ -18,6 +18,8 @@
67C064EE0C52231A00E9ED8E /* Preferences.nib in Resources */ = {isa = PBXBuildFile; fileRef = 67C064EC0C52231A00E9ED8E /* Preferences.nib */; };
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 */; };
+ 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 */; };
67F7A3EE0C52A21600172987 /* GeneralPreferences.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 67F7A3ED0C52A21600172987 /* GeneralPreferences.tiff */; };
@@ -52,6 +54,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>"; };
+ 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>"; };
@@ -181,7 +185,9 @@
67F7A3EC0C52A1F900172987 /* Images */ = {
isa = PBXGroup;
children = (
+ 67CF88A90C53D62E005B6662 /* AdvancedPreferences.tiff */,
67F7A3ED0C52A21600172987 /* GeneralPreferences.tiff */,
+ 67CF88AB0C53EFB8005B6662 /* PlugInsPreferences.tiff */,
);
name = Images;
sourceTree = "<group>";
@@ -233,6 +239,8 @@
67C8D8B80C4AD8340006B871 /* bootstrap.py in Resources */,
67C064EE0C52231A00E9ED8E /* Preferences.nib in Resources */,
67F7A3EE0C52A21600172987 /* GeneralPreferences.tiff in Resources */,
+ 67CF88AA0C53D62E005B6662 /* AdvancedPreferences.tiff in Resources */,
+ 67CF88AC0C53EFB8005B6662 /* PlugInsPreferences.tiff in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Added: trunk/app/HDRFlow/Images/AdvancedPreferences.tiff
===================================================================
(Binary files differ)
Property changes on: trunk/app/HDRFlow/Images/AdvancedPreferences.tiff
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/app/HDRFlow/Images/PlugInsPreferences.tiff
===================================================================
(Binary files differ)
Property changes on: trunk/app/HDRFlow/Images/PlugInsPreferences.tiff
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/app/HDRFlow/PreferencesController.m
===================================================================
--- trunk/app/HDRFlow/PreferencesController.m 2007-07-22 16:50:48 UTC (rev 200)
+++ trunk/app/HDRFlow/PreferencesController.m 2007-07-22 20:37:22 UTC (rev 201)
@@ -20,6 +20,8 @@
toolbarHolder = [ [ ToolbarHolder alloc ] init: @"HDRFlowPreferencesToolbar" ];
[ toolbarHolder addToolbarItem: @"General" label: @"General" paletteLabel: @"General" tooltip: @"Generic application configuration parameters" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"GeneralPreferences" ] action: @selector( toolbarItem: ) ];
+ [ toolbarHolder addToolbarItem: @"PlugIns" label: @"PlugIns" paletteLabel: @"PlugIns" tooltip: @"PlugIns availability" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"PlugInsPreferences" ] action: @selector( toolbarItem: ) ];
+ [ toolbarHolder addToolbarItem: @"Advanced" label: @"Advanced" paletteLabel: @"Advanced" tooltip: @"Advanced application parameters" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"AdvancedPreferences" ] action: @selector( toolbarItem: ) ];
[ [ self window ] setToolbar: [ toolbarHolder toolbar ] ];
}
Modified: trunk/app/HDRFlow/ToolbarHolder.h
===================================================================
--- trunk/app/HDRFlow/ToolbarHolder.h 2007-07-22 16:50:48 UTC (rev 200)
+++ trunk/app/HDRFlow/ToolbarHolder.h 2007-07-22 20:37:22 UTC (rev 201)
@@ -10,6 +10,7 @@
@interface ToolbarHolder : NSObject
{
NSMutableDictionary* items;
+ NSMutableArray* itemIdentifiers;
NSToolbar* toolbar;
}
Modified: trunk/app/HDRFlow/ToolbarHolder.m
===================================================================
--- trunk/app/HDRFlow/ToolbarHolder.m 2007-07-22 16:50:48 UTC (rev 200)
+++ trunk/app/HDRFlow/ToolbarHolder.m 2007-07-22 20:37:22 UTC (rev 201)
@@ -14,6 +14,7 @@
[ super init ];
items = [ [ NSMutableDictionary dictionary ] retain ];
+ itemIdentifiers = [ [ [ NSMutableArray alloc ] init ] retain ];
toolbar = [ [ [ NSToolbar alloc ] initWithIdentifier: identifier ] retain ];
[ toolbar setAllowsUserCustomization: YES ];
@@ -28,6 +29,7 @@
- ( void ) dealloc
{
[ items release ];
+ [ itemIdentifiers release ];
[ toolbar release ];
[ super dealloc ];
}
@@ -43,6 +45,7 @@
[ item setAction: action ];
[ items setObject: item forKey: identifier ];
+ [ itemIdentifiers addObject: identifier ];
}
- ( NSToolbar* ) toolbar
@@ -83,12 +86,12 @@
- ( NSArray* ) toolbarDefaultItemIdentifiers: ( NSToolbar* ) toolbar
{
- return [ NSArray arrayWithObjects: @"General", nil ];
+ return itemIdentifiers;
}
- ( NSArray* ) toolbarAllowedItemIdentifiers: ( NSToolbar* ) toolbar
{
- return [ NSArray arrayWithObjects: @"General", nil ];
+ return itemIdentifiers;
}
@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-28 13:25:07
|
Revision: 209
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=209&view=rev
Author: glslang
Date: 2007-07-28 06:25:04 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
+Build updates: Better HDRFlow.framework
Modified Paths:
--------------
trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
trunk/app/HDRFlow/ViewportOpenGLView.h
trunk/app/HDRFlow/ViewportOpenGLView.m
Added Paths:
-----------
trunk/app/HDRFlow/Viewer.cpp
trunk/app/HDRFlow/Viewer.hpp
Modified: trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj
===================================================================
--- trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-27 22:34:36 UTC (rev 208)
+++ trunk/app/HDRFlow/HDRFlow.xcodeproj/project.pbxproj 2007-07-28 13:25:04 UTC (rev 209)
@@ -16,6 +16,7 @@
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 */; };
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 */; };
@@ -51,6 +52,8 @@
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>"; };
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>"; };
@@ -95,6 +98,8 @@
671E22A20C4166E400CA1860 /* ScriptEditorController.mm */,
67C3D3170C5361C600136EE8 /* ToolbarHolder.h */,
67C3D3210C53A71000136EE8 /* ToolbarHolder.m */,
+ 67C0BA220C5B69AF00E0E258 /* Viewer.hpp */,
+ 67C0BA2A0C5B69C600E0E258 /* Viewer.cpp */,
);
name = Classes;
sourceTree = "<group>";
@@ -259,6 +264,7 @@
67A8A73E0C4183C500DB3F1B /* ScriptEngine.cpp in Sources */,
673D04500C522C980096513A /* PreferencesController.m in Sources */,
67C3D3220C53A71000136EE8 /* ToolbarHolder.m in Sources */,
+ 67C0BA2B0C5B69C600E0E258 /* Viewer.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -335,6 +341,10 @@
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ARCHS = (
+ ppc,
+ i386,
+ );
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
@@ -349,6 +359,10 @@
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ARCHS = (
+ ppc,
+ i386,
+ );
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
Added: trunk/app/HDRFlow/Viewer.cpp
===================================================================
--- trunk/app/HDRFlow/Viewer.cpp (rev 0)
+++ trunk/app/HDRFlow/Viewer.cpp 2007-07-28 13:25:04 UTC (rev 209)
@@ -0,0 +1,9 @@
+
+// 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 <HDRFlow/openlibraries.hpp>
+
Added: trunk/app/HDRFlow/Viewer.hpp
===================================================================
--- trunk/app/HDRFlow/Viewer.hpp (rev 0)
+++ trunk/app/HDRFlow/Viewer.hpp 2007-07-28 13:25:04 UTC (rev 209)
@@ -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.
+
+#ifndef VIEWER_INC_
+#define VIEWER_INC_
+
+#endif
Modified: trunk/app/HDRFlow/ViewportOpenGLView.h
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-27 22:34:36 UTC (rev 208)
+++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-28 13:25:04 UTC (rev 209)
@@ -14,10 +14,13 @@
+ ( NSOpenGLPixelFormat* ) pixelFormat;
- ( id ) initWithFrame: ( NSRect ) theFrame;
+- ( void ) awakeFromNib;
- ( void ) dealloc;
+
- ( void ) drawRect: ( NSRect ) theRect;
+
+- ( void ) prepareOpenGL;
- ( void ) update;
-
- ( void ) fullscreen;
@end
Modified: trunk/app/HDRFlow/ViewportOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-27 22:34:36 UTC (rev 208)
+++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-28 13:25:04 UTC (rev 209)
@@ -16,7 +16,6 @@
{
NSOpenGLPixelFormatAttribute attribs[ ] =
{
- NSOpenGLPFAWindow,
NSOpenGLPFADoubleBuffer,
NSOpenGLPFADepthSize, 24,
NSOpenGLPFAStencilSize, 8,
@@ -34,6 +33,10 @@
return self;
}
+- ( void ) awakeFromNib
+{
+}
+
- ( void ) 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-07-28 14:32:42
|
Revision: 211
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=211&view=rev
Author: glslang
Date: 2007-07-28 07:32:36 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
+OpenGL fullscreen with context sharing
Modified Paths:
--------------
trunk/app/HDRFlow/CustomOpenGLView.m
trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib
trunk/app/HDRFlow/ViewportOpenGLView.h
trunk/app/HDRFlow/ViewportOpenGLView.m
Modified: trunk/app/HDRFlow/CustomOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/CustomOpenGLView.m 2007-07-28 13:44:32 UTC (rev 210)
+++ trunk/app/HDRFlow/CustomOpenGLView.m 2007-07-28 14:32:36 UTC (rev 211)
@@ -44,7 +44,7 @@
- ( NSOpenGLContext* ) openGLContext
{
- if( context_ == NULL )
+ if( context_ == nil )
{
context_ = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat_ != nil ? pixelFormat_ : [ [ self class ] defaultPixelFormat ] shareContext: nil ];
[ context_ makeCurrentContext ];
Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 13:44:32 UTC (rev 210)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 14:32:36 UTC (rev 211)
@@ -17,10 +17,10 @@
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
- <integer>33</integer>
<integer>12</integer>
<integer>5</integer>
<integer>10</integer>
+ <integer>33</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/ViewportOpenGLView.h
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-28 13:44:32 UTC (rev 210)
+++ trunk/app/HDRFlow/ViewportOpenGLView.h 2007-07-28 14:32:36 UTC (rev 211)
@@ -11,7 +11,7 @@
{
}
-+ ( NSOpenGLPixelFormat* ) pixelFormat;
++ ( NSOpenGLPixelFormat* ) viewportPixelFormat;
- ( id ) initWithFrame: ( NSRect ) theFrame;
- ( void ) awakeFromNib;
Modified: trunk/app/HDRFlow/ViewportOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-28 13:44:32 UTC (rev 210)
+++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-28 14:32:36 UTC (rev 211)
@@ -12,13 +12,15 @@
@implementation ViewportOpenGLView
-+ ( NSOpenGLPixelFormat* ) pixelFormat
++ ( NSOpenGLPixelFormat* ) viewportPixelFormat
{
NSOpenGLPixelFormatAttribute attribs[ ] =
{
+ NSOpenGLPFANoRecovery,
NSOpenGLPFADoubleBuffer,
- NSOpenGLPFADepthSize, 24,
- NSOpenGLPFAStencilSize, 8,
+ NSOpenGLPFAAccelerated,
+ NSOpenGLPFAColorSize, 24,
+ NSOpenGLPFADepthSize, 16,
0
};
@@ -27,7 +29,7 @@
- ( id ) initWithFrame: ( NSRect ) theFrame
{
- [ super initWithFrame: theFrame pixelFormat: [ self pixelFormat ] ];
+ [ super initWithFrame: theFrame pixelFormat: [ ViewportOpenGLView viewportPixelFormat ] ];
[ [ super openGLContext ] makeCurrentContext ];
return self;
@@ -59,7 +61,10 @@
glViewport( 0, 0, NSWidth( bounds ), NSHeight( bounds ) );
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT );
- glFlush( );
+ if( [ self inLiveResize ] )
+ glFlush( );
+ else
+ [ [ self openGLContext ] flushBuffer ];
}
- ( void ) prepareOpenGL
@@ -83,16 +88,17 @@
NSOpenGLPixelFormatAttribute attribs[ ] =
{
NSOpenGLPFAFullScreen,
+ NSOpenGLPFAAccelerated,
NSOpenGLPFAScreenMask,
CGDisplayIDToOpenGLDisplayMask( kCGDirectMainDisplay ),
NSOpenGLPFADoubleBuffer,
- NSOpenGLPFADepthSize, 24,
- NSOpenGLPFAStencilSize, 8,
+ NSOpenGLPFAColorSize, 24,
+ NSOpenGLPFADepthSize, 16,
0
};
NSOpenGLPixelFormat* pixelFormat = [ [ [ NSOpenGLPixelFormat alloc ] initWithAttributes: attribs ] autorelease ];
- NSOpenGLContext* fullScreenContext = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat shareContext: nil ];
+ NSOpenGLContext* fullScreenContext = [ [ NSOpenGLContext alloc ] initWithFormat: pixelFormat shareContext: [ self openGLContext ] ];
if( fullScreenContext == nil ) return;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-28 15:57:42
|
Revision: 212
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=212&view=rev
Author: glslang
Date: 2007-07-28 08:57:40 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
+ Script editor execution and display improvements
Modified Paths:
--------------
trunk/app/HDRFlow/ScriptEditorController.mm
trunk/app/HDRFlow/ScriptEngine.cpp
Modified: trunk/app/HDRFlow/ScriptEditorController.mm
===================================================================
--- trunk/app/HDRFlow/ScriptEditorController.mm 2007-07-28 14:32:36 UTC (rev 211)
+++ trunk/app/HDRFlow/ScriptEditorController.mm 2007-07-28 15:57:40 UTC (rev 212)
@@ -38,25 +38,16 @@
- ( void ) executeScript
{
NSString* script = [ scriptEdit_ string ];
- NSString* output = [ [ [ NSString alloc ] initWithString: @"" ] autorelease ];
if( engine_->eval( [ script UTF8String ] ) )
- {
- output = [ output stringByAppendingString: script ];
- output = [ output stringByAppendingString: @"\n" ];
[ scriptStatus_ setStringValue: @"Script successful." ];
- }
else
- {
- output = [ output stringByAppendingString: @"Error in script:\n\t" ];
[ scriptStatus_ setStringValue: @"Script failed." ];
- }
NSString* out = [ [ [ NSString alloc ] initWithUTF8String: engine_->result( ).c_str( ) ] autorelease ];
- output = [ output stringByAppendingString: out ];
- output = [ output stringByAppendingString: @"\n" ];
-
- [ scriptOutput_ setString: output ];
+ [ scriptOutput_ setEditable: YES ];
+ [ scriptOutput_ insertText: out ];
+ [ scriptOutput_ setEditable: NO ];
[ scriptOutput_ setNeedsDisplay: YES ];
[ self clearScript ];
Modified: trunk/app/HDRFlow/ScriptEngine.cpp
===================================================================
--- trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-28 14:32:36 UTC (rev 211)
+++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-28 15:57:40 UTC (rev 212)
@@ -46,22 +46,33 @@
py::object main_namespace = main_module.attr( "__dict__" );
result_.clear( );
+
+ std::string trim_str( str.c_str( ) );
+ boost::trim( trim_str );
+ typedef std::vector<std::string> split_vector_type;
+ split_vector_type split_vec;
+ boost::split( split_vec, trim_str, boost::is_any_of( "\n" ) );
+
+ typedef split_vector_type::const_iterator const_iterator;
+ for( const_iterator I = split_vec.begin( ); I != split_vec.end( ); ++I )
+ result_ += "# " + *I + "\n";
+
+ int start = split_vec.size( ) == 1 &&
+ split_vec[ 0 ].find( "import" ) == std::string::npos && split_vec[ 0 ].find( "def" ) == std::string::npos ? Py_eval_input : Py_file_input;
+
try
{
- py::handle<> handle( py::allow_null( PyRun_String( str.c_str( ), Py_eval_input, main_namespace.ptr( ), main_namespace.ptr( ) ) ) );
- if( !handle )
- {
- // clear all errors so the call below has a chance to succeed.
- PyErr_Clear( );
- handle = py::handle<>( PyRun_String( str.c_str( ), Py_file_input, main_namespace.ptr( ), main_namespace.ptr( ) ) );
- }
+ pl::string eval_result;
+ py::handle<> handle( PyRun_String( str.c_str( ), start, main_namespace.ptr( ), main_namespace.ptr( ) ) );
+
py::object strobj( py::handle<>( PyObject_Str( py::object( handle ).ptr( ) ) ) );
if( strobj )
{
- result_ = PyString_AsString( strobj.ptr( ) );
- if( result_ == "None" ) result_.clear( );
+ eval_result = PyString_AsString( strobj.ptr( ) );
+ if( eval_result != "None" )
+ result_ += eval_result + "\n";
}
}
catch( py::error_already_set )
@@ -71,6 +82,7 @@
PyObject* error_traceback;
PyErr_Fetch( &error_type, &error_data, &error_traceback );
+ PyErr_NormalizeException( &error_type, &error_data, &error_traceback );
result_ += error_to_result( error_type );
result_ += error_to_result( error_data );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-28 17:32:53
|
Revision: 213
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=213&view=rev
Author: glslang
Date: 2007-07-28 10:32:52 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
+animated Preferences view
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/classes.nib
trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib
trunk/app/HDRFlow/PreferencesController.h
trunk/app/HDRFlow/PreferencesController.m
Modified: trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-28 15:57:40 UTC (rev 212)
+++ trunk/app/HDRFlow/English.lproj/MainMenu.nib/info.nib 2007-07-28 17:32:52 UTC (rev 213)
@@ -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/classes.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-28 15:57:40 UTC (rev 212)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/classes.nib 2007-07-28 17:32:52 UTC (rev 213)
@@ -5,7 +5,7 @@
ACTIONS = {toolbarItem = id; };
CLASS = PreferencesController;
LANGUAGE = ObjC;
- OUTLETS = {generalView = NSView; };
+ OUTLETS = {advancedView = NSView; generalView = NSView; plugInsView = NSView; };
SUPERCLASS = NSWindowController;
}
);
Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 15:57:40 UTC (rev 212)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 17:32:52 UTC (rev 213)
@@ -19,8 +19,8 @@
<array>
<integer>12</integer>
<integer>5</integer>
+ <integer>33</integer>
<integer>10</integer>
- <integer>33</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.h
===================================================================
--- trunk/app/HDRFlow/PreferencesController.h 2007-07-28 15:57:40 UTC (rev 212)
+++ trunk/app/HDRFlow/PreferencesController.h 2007-07-28 17:32:52 UTC (rev 213)
@@ -14,10 +14,14 @@
{
ToolbarHolder* toolbarHolder;
+ NSView* preferencesView;
+
IBOutlet NSView* generalView;
+ IBOutlet NSView* plugInsView;
+ IBOutlet NSView* advancedView;
}
- ( IBAction ) toolbarItem: ( id ) sender;
-- ( void ) setActiveView: ( NSView* ) view;
+- ( void ) setActiveView: ( NSView* ) view animate: ( BOOL ) flag;
@end
Modified: trunk/app/HDRFlow/PreferencesController.m
===================================================================
--- trunk/app/HDRFlow/PreferencesController.m 2007-07-28 15:57:40 UTC (rev 212)
+++ trunk/app/HDRFlow/PreferencesController.m 2007-07-28 17:32:52 UTC (rev 213)
@@ -23,6 +23,8 @@
[ toolbarHolder addToolbarItem: @"PlugIns" label: @"PlugIns" paletteLabel: @"PlugIns" tooltip: @"PlugIns availability" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"PlugInsPreferences" ] action: @selector( toolbarItem: ) ];
[ toolbarHolder addToolbarItem: @"Advanced" label: @"Advanced" paletteLabel: @"Advanced" tooltip: @"Advanced application parameters" target: self settingSelector: @selector( setImage: ) itemContent: [ NSImage imageNamed: @"AdvancedPreferences" ] action: @selector( toolbarItem: ) ];
+ preferencesView = [ [ [ self window ] contentView ] retain ];
+
[ [ self window ] setToolbar: [ toolbarHolder toolbar ] ];
}
@@ -36,10 +38,34 @@
- ( IBAction ) toolbarItem: ( id ) sender
{
+ NSString* identifier = [ sender itemIdentifier ];
+
+ NSView* view;
+ if( [ identifier isEqualToString: @"General" ] )
+ view = generalView;
+ else if( [ identifier isEqualToString: @"PlugIns" ] )
+ view = plugInsView;
+ else if( [ identifier isEqualToString: @"Advanced" ] )
+ view = advancedView;
+ else
+ view = nil;
+
+ [ self setActiveView: view animate: YES ];
}
-- ( void ) setActiveView: ( NSView* ) view
+- ( void ) setActiveView: ( NSView* ) view animate: ( BOOL ) flag
{
+ NSRect windowFrame = [ [ self window ] frame ];
+ NSRect viewFrame = [ [ [ self window ] contentView ] frame ];
+
+ NSRect animatedFrame;
+ animatedFrame.size.width = [ view frame ].size.width + windowFrame.size.width - viewFrame.size.width;
+ animatedFrame.size.height = [ view frame ].size.height + windowFrame.size.height - viewFrame.size.height;
+ animatedFrame.origin.x = windowFrame.origin.x;
+ animatedFrame.origin.y = NSMaxY( windowFrame ) - animatedFrame.size.height;
+
+ [ [ self window ] setContentView: preferencesView ];
+ [ [ self window ] setFrame: animatedFrame display: YES animate: flag ];
[ [ self window ] setContentView: view ];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-07-28 18:46:41
|
Revision: 214
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=214&view=rev
Author: glslang
Date: 2007-07-28 11:46:38 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
+script editor improvements
Modified Paths:
--------------
trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
trunk/app/HDRFlow/English.lproj/Preferences.nib/keyedobjects.nib
trunk/app/HDRFlow/ScriptEngine.cpp
trunk/app/HDRFlow/ViewportOpenGLView.m
Modified: trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib
===================================================================
--- trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 17:32:52 UTC (rev 213)
+++ trunk/app/HDRFlow/English.lproj/Preferences.nib/info.nib 2007-07-28 18:46:38 UTC (rev 214)
@@ -9,7 +9,7 @@
<key>10</key>
<string>514 465 412 270 0 0 1440 878 </string>
<key>12</key>
- <string>395 379 650 442 0 0 1440 878 </string>
+ <string>500 476 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>33</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/ScriptEngine.cpp
===================================================================
--- trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-28 17:32:52 UTC (rev 213)
+++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-07-28 18:46:38 UTC (rev 214)
@@ -23,11 +23,57 @@
py::object strobj( py::handle<>( PyObject_Str( obj ) ) );
py::extract<std::string> extract( strobj );
if( extract.check( ) )
- return extract( );
+ return extract( ) + "\n";
}
return pl::string( );
}
+
+ std::pair<pl::string, bool> in_python( const pl::string& script, int start )
+ {
+ pl::string result;
+
+ py::object main_module( py::handle<>( py::borrowed( PyImport_AddModule( "__main__" ) ) ) );
+ py::object main_namespace = main_module.attr( "__dict__" );
+
+ PyErr_Clear( );
+
+ try
+ {
+ pl::string eval_result;
+
+ py::handle<> handle( PyRun_String( script.c_str( ), start, main_namespace.ptr( ), main_namespace.ptr( ) ) );
+
+ py::object strobj( py::handle<>( PyObject_Str( py::object( handle ).ptr( ) ) ) );
+ if( strobj )
+ {
+ eval_result = PyString_AsString( strobj.ptr( ) );
+ if( eval_result != "None" )
+ result += eval_result + "\n";
+ }
+ }
+ catch( py::error_already_set )
+ {
+ PyObject* error_type;
+ PyObject* error_data;
+ PyObject* error_traceback;
+
+ PyErr_Fetch( &error_type, &error_data, &error_traceback );
+ PyErr_NormalizeException( &error_type, &error_data, &error_traceback );
+
+ result += error_to_result( error_type );
+ result += error_to_result( error_data );
+ result += error_to_result( error_traceback );
+
+ Py_XDECREF( error_type );
+ Py_XDECREF( error_data );
+ Py_XDECREF( error_traceback );
+
+ return std::pair<pl::string, bool>( result, false );
+ }
+
+ return std::pair<pl::string, bool>( result, true );
+ }
}
ScriptEngine::ScriptEngine( )
@@ -42,11 +88,8 @@
bool ScriptEngine::eval( const pl::string& str )
{
- py::object main_module( py::handle<>( py::borrowed( PyImport_AddModule( "__main__" ) ) ) );
- py::object main_namespace = main_module.attr( "__dict__" );
+ result_.clear( );
- result_.clear( );
-
std::string trim_str( str.c_str( ) );
boost::trim( trim_str );
@@ -58,47 +101,12 @@
for( const_iterator I = split_vec.begin( ); I != split_vec.end( ); ++I )
result_ += "# " + *I + "\n";
- int start = split_vec.size( ) == 1 &&
- split_vec[ 0 ].find( "import" ) == std::string::npos && split_vec[ 0 ].find( "def" ) == std::string::npos ? Py_eval_input : Py_file_input;
+ std::pair<pl::string, bool> result = in_python( str, Py_eval_input );
+ if( !result.second )
+ result = in_python( str, Py_file_input );
- try
- {
- pl::string eval_result;
-
- py::handle<> handle( PyRun_String( str.c_str( ), start, main_namespace.ptr( ), main_namespace.ptr( ) ) );
-
- py::object strobj( py::handle<>( PyObject_Str( py::object( handle ).ptr( ) ) ) );
- if( strobj )
- {
- eval_result = PyString_AsString( strobj.ptr( ) );
- if( eval_result != "None" )
- result_ += eval_result + "\n";
- }
- }
- catch( py::error_already_set )
- {
- PyObject* error_type;
- PyObject* error_data;
- PyObject* error_traceback;
-
- PyErr_Fetch( &error_type, &error_data, &error_traceback );
- PyErr_NormalizeException( &error_type, &error_data, &error_traceback );
-
- result_ += error_to_result( error_type );
- result_ += error_to_result( error_data );
- result_ += error_to_result( error_traceback );
-
- if( result_.empty( ) )
- result_ = "<no info available>";
-
- Py_XDECREF( error_type );
- Py_XDECREF( error_data );
- Py_XDECREF( error_traceback );
-
- return false;
- }
-
- return true;
+ result_ += result.first;
+ return result.second;
}
pl::string ScriptEngine::result( ) const
Modified: trunk/app/HDRFlow/ViewportOpenGLView.m
===================================================================
--- trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-28 17:32:52 UTC (rev 213)
+++ trunk/app/HDRFlow/ViewportOpenGLView.m 2007-07-28 18:46:38 UTC (rev 214)
@@ -61,10 +61,7 @@
glViewport( 0, 0, NSWidth( bounds ), NSHeight( bounds ) );
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT );
- if( [ self inLiveResize ] )
- glFlush( );
- else
- [ [ self openGLContext ] flushBuffer ];
+ [ [ self openGLContext ] flushBuffer ];
}
- ( void ) prepareOpenGL
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|