[Hdrflow-svn] SF.net SVN: hdrflow: [167] trunk/app/HDRFlow
Status: Pre-Alpha
Brought to you by:
glslang
|
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.
|