|
From: <at...@us...> - 2007-10-28 18:38:49
|
Revision: 519
http://cadcdev.svn.sourceforge.net/cadcdev/?rev=519&view=rev
Author: atani
Date: 2007-10-28 11:38:46 -0700 (Sun, 28 Oct 2007)
Log Message:
-----------
Adding "events" example which is a stripped down version of the old TikiTest example.
Modified Paths:
--------------
tiki/examples/Makefile
tiki/win32/tiki.sln
Added Paths:
-----------
tiki/examples/events/
tiki/examples/events/English.lproj/
tiki/examples/events/English.lproj/InfoPlist.strings
tiki/examples/events/English.lproj/MainMenu.nib/
tiki/examples/events/English.lproj/MainMenu.nib/classes.nib
tiki/examples/events/English.lproj/MainMenu.nib/info.nib
tiki/examples/events/English.lproj/MainMenu.nib/objects.nib
tiki/examples/events/Info.plist
tiki/examples/events/Makefile
tiki/examples/events/events.cbp
tiki/examples/events/events.vcproj
tiki/examples/events/events.xcodeproj/
tiki/examples/events/events.xcodeproj/project.pbxproj
tiki/examples/events/events_Prefix.pch
tiki/examples/events/main.m
tiki/examples/events/src/
tiki/examples/events/src/Controller.h
tiki/examples/events/src/Controller.m
tiki/examples/events/src/TikiEvents.cpp
tiki/examples/events/src/test.cpp
tiki/examples/events/src/testobj.cpp
tiki/examples/events/src/testobj.h
tiki/examples/events/version.plist
Modified: tiki/examples/Makefile
===================================================================
--- tiki/examples/Makefile 2007-10-27 02:10:42 UTC (rev 518)
+++ tiki/examples/Makefile 2007-10-28 18:38:46 UTC (rev 519)
@@ -1,5 +1,5 @@
-SUBDIRS = console net nehe
+SUBDIRS = events console net nehe
TIKI_DIR ?= $(CURDIR)/../
include $(TIKI_DIR)$(TIKI_PLAT)/Makefile.rules
Property changes on: tiki/examples/events
___________________________________________________________________
Name: svn:ignore
+ Debug
*.user
Added: tiki/examples/events/English.lproj/InfoPlist.strings
===================================================================
(Binary files differ)
Property changes on: tiki/examples/events/English.lproj/InfoPlist.strings
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: tiki/examples/events/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- tiki/examples/events/English.lproj/MainMenu.nib/classes.nib (rev 0)
+++ tiki/examples/events/English.lproj/MainMenu.nib/classes.nib 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,12 @@
+{
+ IBClasses = (
+ {
+ CLASS = Controller;
+ LANGUAGE = ObjC;
+ OUTLETS = {mainView = NSView; mainWindow = NSWindow; };
+ SUPERCLASS = NSObject;
+ },
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }
+ );
+ IBVersion = 1;
+}
\ No newline at end of file
Added: tiki/examples/events/English.lproj/MainMenu.nib/info.nib
===================================================================
--- tiki/examples/events/English.lproj/MainMenu.nib/info.nib (rev 0)
+++ tiki/examples/events/English.lproj/MainMenu.nib/info.nib 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,22 @@
+<?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>87 99 356 240 0 0 1280 1002 </string>
+ <key>IBEditorPositions</key>
+ <dict>
+ <key>29</key>
+ <string>94 344 338 44 0 0 1280 1002 </string>
+ </dict>
+ <key>IBFramework Version</key>
+ <string>437.0</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>29</integer>
+ <integer>21</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>8A428</string>
+</dict>
+</plist>
Added: tiki/examples/events/English.lproj/MainMenu.nib/objects.nib
===================================================================
(Binary files differ)
Property changes on: tiki/examples/events/English.lproj/MainMenu.nib/objects.nib
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: tiki/examples/events/Info.plist
===================================================================
--- tiki/examples/events/Info.plist (rev 0)
+++ tiki/examples/events/Info.plist 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,26 @@
+<?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>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>TikiEvents</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apple.myCocoaApp</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
Added: tiki/examples/events/Makefile
===================================================================
--- tiki/examples/events/Makefile (rev 0)
+++ tiki/examples/events/Makefile 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,27 @@
+
+
+CFLAGS=-I$(TIKI_DIR)$(TIKI_PLAT)/include -I$(TIKI_DIR)include
+OBJS = $(patsubst %.cpp,%.o,$(wildcard src/*.cpp))
+
+ifeq ($(TIKI_PLAT),nds)
+NDS_CART_CODE ?= TKEV
+NDS_CART_ID ?= TK
+NDS_CART_NAME ?= TikiEvents
+NDS_CART_VERSION ?= 1
+endif
+
+all: tikievents
+tikievents: $(OBJS)
+ $(build_romdisk)
+ $(CXX) $(LDFLAGS) -L$(TIKI_DIR)$(TIKI_PLAT) -L$(TIKI_DIR)$(TIKI_PLAT)/lib $(OBJS) $(TIKI_BASE_LIBS) -o tikievents$(PLATFORM_BINARY_EXT) $(ROMDISK_OBJ)
+ $(post_build)
+
+clean:
+ -rm -f $(OBJS) tikievents$(PLATFORM_BINARY_EXT) $(ROMDISK_OBJ)
+ifeq ($(TIKI_PLAT),nds)
+ -rm -f tikievents.nds tikievents.ds.gba
+endif
+
+TIKI_DIR ?= $(CURDIR)/../../
+DEPSDIR=$(CURDIR)
+include $(TIKI_DIR)$(TIKI_PLAT)/Makefile.rules
Added: tiki/examples/events/events.cbp
===================================================================
--- tiki/examples/events/events.cbp (rev 0)
+++ tiki/examples/events/events.cbp 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<!DOCTYPE CodeBlocks_project_file>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="1"/>
+ <Project>
+ <Option title="TikiEvents"/>
+ <Option makefile="Makefile"/>
+ <Option makefile_is_custom="0"/>
+ <Option compiler="0"/>
+ <Build>
+ <Target title="default">
+ <Option output="tikievents.exe"/>
+ <Option working_dir="."/>
+ <Option object_output=".objs"/>
+ <Option deps_output=".deps"/>
+ <Option type="0"/>
+ <Option compiler="0"/>
+ <Option projectResourceIncludeDirsRelation="0"/>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add directory="..\..\include"/>
+ <Add directory="..\..\win32\include"/>
+ </Compiler>
+ <Linker>
+ <Add library="gdi32"/>
+ <Add library="user32"/>
+ <Add library="kernel32"/>
+ <Add library="tiki"/>
+ <Add library="opengl32"/>
+ <Add library="alut"/>
+ <Add directory="..\..\win32"/>
+ <Add directory="C:\Program Files\OpenAL 1.1 SDK\libs\Win32"/>
+ </Linker>
+ <Unit filename="src\TikiEvents.cpp">
+ <Option compilerVar="CPP"/>
+ <Option objectName="TikiEvents.obj"/>
+ <Option target="default"/>
+ </Unit>
+ <Unit filename="src\test.cpp">
+ <Option compilerVar="CPP"/>
+ <Option objectName="test.obj"/>
+ <Option target="default"/>
+ </Unit>
+ <Unit filename="src\testobj.cpp">
+ <Option compilerVar="CPP"/>
+ <Option objectName="testobj.obj"/>
+ <Option target="default"/>
+ </Unit>
+ <Unit filename="src\testobj.h">
+ <Option compilerVar=""/>
+ <Option compile="0"/>
+ <Option link="0"/>
+ <Option target="default"/>
+ </Unit>
+ </Project>
+</CodeBlocks_project_file>
Added: tiki/examples/events/events.vcproj
===================================================================
--- tiki/examples/events/events.vcproj (rev 0)
+++ tiki/examples/events/events.vcproj 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,213 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="TikiEvents"
+ ProjectGUID="{16508E01-E2E1-47B1-9B3A-6991C0032E76}"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="Debug"
+ IntermediateDirectory="Debug"
+ ConfigurationType="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="$(ProjectDir)..\..\win32\include;$(ProjectDir)\..\..\include;"C:\Program Files\OpenAL 1.1 SDK\include""
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="gdi32.lib kernel32.lib user32.lib opengl32.lib glu32.lib comdlg32.lib ws2_32.lib"
+ LinkIncremental="2"
+ AdditionalLibraryDirectories="$(ProjectDir)\..\..\win32\Debug;"C:\Program Files\OpenAL 1.1 SDK\libs\Win32""
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="Release"
+ IntermediateDirectory="Release"
+ ConfigurationType="1"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="$(ProjectDir)..\..\win32\include;$(ProjectDir)\..\..\include;"C:\Program Files\OpenAL 1.1 SDK\include""
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;"
+ RuntimeLibrary="0"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="gdi32.lib kernel32.lib user32.lib opengl32.lib glu32.lib comdlg32.lib ws2_32.lib"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="$(ProjectDir)\..\..\win32\Release;C:\Program Files\OpenAL 1.1 SDK\libs\Win32"
+ IgnoreDefaultLibraryNames=""
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\src\testobj.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath=".\src\test.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\src\testobj.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\src\TikiEvents.cpp"
+ >
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
Added: tiki/examples/events/events.xcodeproj/project.pbxproj
===================================================================
--- tiki/examples/events/events.xcodeproj/project.pbxproj (rev 0)
+++ tiki/examples/events/events.xcodeproj/project.pbxproj 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,366 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 42;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 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 = (); }; };
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
+ C4332D17079B224F0025BF39 /* Tiki.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = C4F50D800799DE840001D0D0 /* Tiki.framework */; };
+ C47EB6A108366BE4009FA9BA /* testobj.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C47EB69F08366BE4009FA9BA /* testobj.cpp */; };
+ C4B588860794D44D004D22F2 /* test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C4B588850794D44D004D22F2 /* test.cpp */; };
+ C4F50D810799DE840001D0D0 /* Tiki.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C4F50D800799DE840001D0D0 /* Tiki.framework */; };
+ C4F50ECE0799E1350001D0D0 /* Controller.m in Sources */ = {isa = PBXBuildFile; fileRef = C4F50ECC0799E1350001D0D0 /* Controller.m */; };
+ C4F50EEF0799E5B40001D0D0 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C4F50EEE0799E5B40001D0D0 /* OpenGL.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ C4332D16079B22450025BF39 /* CopyFiles */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ C4332D17079B224F0025BF39 /* Tiki.framework in CopyFiles */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
+ 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 29B97319FDCFA39411CA2CEA /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/MainMenu.nib; sourceTree = "<group>"; };
+ 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 /* events_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = events_Prefix.pch; sourceTree = "<group>"; };
+ 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
+ 8D1107320486CEB800E47090 /* TikiEvents.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TikiEvents.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ C47EB69F08366BE4009FA9BA /* testobj.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = testobj.cpp; path = src/testobj.cpp; sourceTree = SOURCE_ROOT; };
+ C47EB6A008366BE4009FA9BA /* testobj.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = testobj.h; path = src/testobj.h; sourceTree = SOURCE_ROOT; };
+ C4B588850794D44D004D22F2 /* test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = test.cpp; path = src/test.cpp; sourceTree = "<group>"; };
+ C4F50D800799DE840001D0D0 /* Tiki.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Tiki.framework; path = ../../osx/build/Development/Tiki.framework; sourceTree = SOURCE_ROOT; };
+ C4F50ECB0799E1350001D0D0 /* Controller.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = Controller.h; path = src/Controller.h; sourceTree = SOURCE_ROOT; };
+ C4F50ECC0799E1350001D0D0 /* Controller.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = Controller.m; path = src/Controller.m; sourceTree = SOURCE_ROOT; };
+ C4F50EEE0799E5B40001D0D0 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = "<absolute>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 8D11072E0486CEB800E47090 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
+ C4F50D810799DE840001D0D0 /* Tiki.framework in Frameworks */,
+ C4F50EEF0799E5B40001D0D0 /* OpenGL.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 080E96DDFE201D6D7F000001 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ C4F50ECB0799E1350001D0D0 /* Controller.h */,
+ C4F50ECC0799E1350001D0D0 /* Controller.m */,
+ C47EB6A008366BE4009FA9BA /* testobj.h */,
+ C47EB69F08366BE4009FA9BA /* testobj.cpp */,
+ C4B588850794D44D004D22F2 /* test.cpp */,
+ );
+ name = Classes;
+ sourceTree = "<group>";
+ };
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ C4F50EEE0799E5B40001D0D0 /* OpenGL.framework */,
+ C4F50D800799DE840001D0D0 /* Tiki.framework */,
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
+ );
+ name = "Linked Frameworks";
+ sourceTree = "<group>";
+ };
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */,
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ 19C28FACFE9D520D11CA2CBB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 8D1107320486CEB800E47090 /* TikiEvents.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 29B97314FDCFA39411CA2CEA /* TikiEvents */ = {
+ isa = PBXGroup;
+ children = (
+ 080E96DDFE201D6D7F000001 /* Classes */,
+ 29B97315FDCFA39411CA2CEA /* Other Sources */,
+ 29B97317FDCFA39411CA2CEA /* Resources */,
+ 29B97323FDCFA39411CA2CEA /* Frameworks */,
+ 19C28FACFE9D520D11CA2CBB /* Products */,
+ );
+ name = TikiEvents;
+ sourceTree = "<group>";
+ };
+ 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
+ isa = PBXGroup;
+ children = (
+ 32CA4F630368D1EE00C91783 /* events_Prefix.pch */,
+ 29B97316FDCFA39411CA2CEA /* main.m */,
+ );
+ name = "Other Sources";
+ sourceTree = "<group>";
+ };
+ 29B97317FDCFA39411CA2CEA /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 8D1107310486CEB800E47090 /* Info.plist */,
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
+ 29B97318FDCFA39411CA2CEA /* MainMenu.nib */,
+ );
+ name = Resources;
+ sourceTree = "<group>";
+ };
+ 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 8D1107260486CEB800E47090 /* TikiEvents */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 64FBB927092EA33F00427AD0 /* Build configuration list for PBXNativeTarget "TikiEvents" */;
+ buildPhases = (
+ 8D1107290486CEB800E47090 /* Resources */,
+ 8D11072C0486CEB800E47090 /* Sources */,
+ 8D11072E0486CEB800E47090 /* Frameworks */,
+ C4332D16079B22450025BF39 /* CopyFiles */,
+ C4332EE0079B242E0025BF39 /* ShellScript */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = TikiEvents;
+ productInstallPath = "$(HOME)/Applications";
+ productName = TikiEvents;
+ productReference = 8D1107320486CEB800E47090 /* TikiEvents.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 29B97313FDCFA39411CA2CEA /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = 64FBB92B092EA33F00427AD0 /* Build configuration list for PBXProject "TikiEvents" */;
+ hasScannedForEncodings = 1;
+ mainGroup = 29B97314FDCFA39411CA2CEA /* TikiEvents */;
+ projectDirPath = "";
+ targets = (
+ 8D1107260486CEB800E47090 /* TikiEvents */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 8D1107290486CEB800E47090 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */,
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ C4332EE0079B242E0025BF39 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# rm -rfv ${EXECUTABLE_FOLDER_PATH}/PrivateHeaders\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 8D11072C0486CEB800E47090 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072D0486CEB800E47090 /* main.m in Sources */,
+ C4B588860794D44D004D22F2 /* test.cpp in Sources */,
+ C4F50ECE0799E1350001D0D0 /* Controller.m in Sources */,
+ C47EB6A108366BE4009FA9BA /* testobj.cpp in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 089C165DFE840E0CC02AAC07 /* English */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 29B97318FDCFA39411CA2CEA /* MainMenu.nib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 29B97319FDCFA39411CA2CEA /* English */,
+ );
+ name = MainMenu.nib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 64FBB928092EA33F00427AD0 /* Development */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COPY_PHASE_STRIP = NO;
+ FRAMEWORK_SEARCH_PATHS = ../../osx/build/Development/;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = events_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PREBINDING = NO;
+ PRODUCT_NAME = TikiEvents;
+ WRAPPER_EXTENSION = app;
+ ZERO_LINK = NO;
+ };
+ name = Development;
+ };
+ 64FBB929092EA33F00427AD0 /* Deployment */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COPY_PHASE_STRIP = YES;
+ FRAMEWORK_SEARCH_PATHS = ../../osx/build/Deployment/;
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = events_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = TikiEvents;
+ WRAPPER_EXTENSION = app;
+ ZERO_LINK = NO;
+ };
+ name = Deployment;
+ };
+ 64FBB92A092EA33F00427AD0 /* Default */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ FRAMEWORK_SEARCH_PATHS = ../../osx/build/Development/;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = events_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = TikiEvents;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Default;
+ };
+ 64FBB92C092EA33F00427AD0 /* Development */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ HEADER_SEARCH_PATHS = (
+ ../../include,
+ ../../osx/include,
+ /sw/include,
+ ../../3rdparty/boost,
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.3;
+ SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ };
+ name = Development;
+ };
+ 64FBB92D092EA33F00427AD0 /* Deployment */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ HEADER_SEARCH_PATHS = (
+ ../../include,
+ ../../osx/include,
+ /sw/include,
+ ../../3rdparty/boost,
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.3;
+ SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ };
+ name = Deployment;
+ };
+ 64FBB92E092EA33F00427AD0 /* Default */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ HEADER_SEARCH_PATHS = (
+ ../../include,
+ ../../osx/include,
+ /sw/include,
+ ../../3rdparty/boost,
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.3;
+ SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ };
+ name = Default;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 64FBB927092EA33F00427AD0 /* Build configuration list for PBXNativeTarget "TikiEvents" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 64FBB928092EA33F00427AD0 /* Development */,
+ 64FBB929092EA33F00427AD0 /* Deployment */,
+ 64FBB92A092EA33F00427AD0 /* Default */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Default;
+ };
+ 64FBB92B092EA33F00427AD0 /* Build configuration list for PBXProject "TikiEvents" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 64FBB92C092EA33F00427AD0 /* Development */,
+ 64FBB92D092EA33F00427AD0 /* Deployment */,
+ 64FBB92E092EA33F00427AD0 /* Default */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Default;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
+}
Added: tiki/examples/events/events_Prefix.pch
===================================================================
--- tiki/examples/events/events_Prefix.pch (rev 0)
+++ tiki/examples/events/events_Prefix.pch 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'TikiTest' target in the 'TikiTest' project
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
Added: tiki/examples/events/main.m
===================================================================
--- tiki/examples/events/main.m (rev 0)
+++ tiki/examples/events/main.m 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,14 @@
+//
+// main.m
+// TikiEvents
+//
+// Created by Dan Potter on 1/11/05.
+// Copyright Cryptic Allusion, LLC 2005. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+int main(int argc, char *argv[])
+{
+ return NSApplicationMain(argc, (const char **) argv);
+}
Added: tiki/examples/events/src/Controller.h
===================================================================
--- tiki/examples/events/src/Controller.h (rev 0)
+++ tiki/examples/events/src/Controller.h 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,13 @@
+/* Controller */
+
+#import <Cocoa/Cocoa.h>
+#import <Tiki/TikiMain.h>
+
+@interface Controller : NSObject {
+ IBOutlet NSView *mainView;
+ IBOutlet NSWindow *mainWindow;
+
+ TikiMain * tm;
+ NSString * openFileName;
+}
+@end
Added: tiki/examples/events/src/Controller.m
===================================================================
--- tiki/examples/events/src/Controller.m (rev 0)
+++ tiki/examples/events/src/Controller.m 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,34 @@
+#import "Controller.h"
+#import <Tiki/TikiMain.h>
+#import <assert.h>
+
+void tiki_main();
+
+@implementation Controller
+- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
+{
+ openFileName = filename;
+}
+
+- (void) applicationDidFinishLaunching: (NSNotification *) note
+{
+ TikiMain * otm = [[TikiMain alloc] retain];
+ tm = otm;
+ [tm doMainWithWindow: mainWindow andView: mainView andMainFunc: tiki_main andOpenFile:openFileName];
+ tm = nil;
+ [otm release];
+}
+
+- (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *)sender
+{
+ assert( tm );
+ [tm quitSoon];
+ return NSTerminateNow;
+}
+
+- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (NSApplication *)theApplication
+{
+ return YES;
+}
+
+@end
Added: tiki/examples/events/src/TikiEvents.cpp
===================================================================
--- tiki/examples/events/src/TikiEvents.cpp (rev 0)
+++ tiki/examples/events/src/TikiEvents.cpp 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,28 @@
+/*
+* TikiEvents.cpp
+* TikiEvents
+*
+* Copyright 2005 Cryptic Allusion, LLC. All rights reserved.
+*
+*/
+
+#include <Tiki/tiki.h>
+#include <pch.h>
+
+#if TIKI_PLAT == TIKI_WIN32
+#include <windows.h>
+
+static char szAppName[] = "TikiEvents";
+int APIENTRY WinMain( HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
+#else
+extern "C" int tiki_main( int argc, char *argv[] );
+int main( int argc, char *argv[] )
+#endif
+{
+#if TIKI_PLAT != TIKI_WIN32
+ return tiki_main( argc, argv );
+#else
+
+ return Tiki::DoMain( szAppName, hInst, hPrevInstance, lpCmdLine, nCmdShow );
+#endif
+}
Added: tiki/examples/events/src/test.cpp
===================================================================
--- tiki/examples/events/src/test.cpp (rev 0)
+++ tiki/examples/events/src/test.cpp 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,38 @@
+/*
+* test.cpp
+* TikiTest
+*
+* Created by Dan Potter on 1/11/05.
+* Copyright 2005 Cryptic Allusion, LLC. All rights reserved.
+*
+*/
+
+#include <Tiki/tiki.h>
+#include "testobj.h"
+
+using namespace Tiki;
+
+extern "C" int tiki_main( int argc, char **argv ) {
+ // Init Tiki
+ if ( !Tiki::init( argc, argv ) ) {
+ exit( -1 );
+ }
+ Tiki::setName( "TikiEvents", NULL );
+ Tiki::GL::showCursor( false );
+
+ Debug::printf( "argc: %i\n", argc );
+ for ( int i = 0; i < argc; i++ ) {
+ Debug::printf( "argv[%i]: %s\n", i, argv[ i ] );
+ }
+
+ RefPtr<TestObject> test = new TestObject( "1" );
+ RefPtr<TestObject> test2 = new TestObject( "2" );
+ test->connect( "testevent", test2 );
+ test->perform( "testmessage", NULL, NULL );
+ test->perform( "anothermessage", NULL, NULL );
+
+ Tiki::shutdown();
+
+ return 0;
+}
+
Added: tiki/examples/events/src/testobj.cpp
===================================================================
--- tiki/examples/events/src/testobj.cpp (rev 0)
+++ tiki/examples/events/src/testobj.cpp 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,61 @@
+/*
+ Tiki
+
+ object.cpp
+
+ Copyright (C)2005 Cryptic Allusion, LLC
+*/
+
+#include <Tiki/tiki.h>
+#include <Tiki/debug.h>
+
+#include "testobj.h"
+
+using namespace Tiki;
+using std::string;
+
+TIKI_OBJECT_NAME( TestObject )
+TIKI_OBJECT_BEGIN( Object, TestObject )
+TIKI_OBJECT_RECEIVER( "testmessage", TestObject::testMessage )
+TIKI_OBJECT_RECEIVER( "anothermessage", TestObject::anotherMessage )
+TIKI_OBJECT_RECEIVER( "testevent", TestObject::testEvent )
+TIKI_OBJECT_OUTLET( "testevent" )
+TIKI_OBJECT_END( TestObject )
+
+
+TestObject::TestObject( string name ) {
+ Debug::printf( "TestObject::TestObject(%s)\n", name.c_str() );
+ m_name = name;
+}
+
+TestObject::~TestObject() {}
+
+int TestObject::testMessage( Object * sender, Object * arg ) {
+ Debug::printf( "TestObject(%s)::testMessage(%p, %p)\n", m_name.c_str(), sender, arg );
+ return 0;
+}
+
+int TestObject::anotherMessage( Object * sender, Object * arg ) {
+ Debug::printf( "TestObject(%s)::anotherMessage(%p, %p)\n", m_name.c_str(), sender, arg );
+ return emit( "testevent", arg );
+}
+
+int TestObject::testEvent( Object * sender, Object * arg ) {
+ Debug::printf( "TestObject(%s)::testEvent(%p, %p)\n", m_name.c_str(), sender, arg );
+ return 0;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: tiki/examples/events/src/testobj.h
===================================================================
--- tiki/examples/events/src/testobj.h (rev 0)
+++ tiki/examples/events/src/testobj.h 2007-10-28 18:38:46 UTC (rev 519)
@@ -0,0 +1,36 @@
+#ifndef __TESTOBJ_H
+#define __TESTOBJ_H
+
+#include <Tiki/object.h>
+#include <string>
+
+class TestObject : public Tiki::Object {
+public:
+ TestObject( std::string name );
+ virtual ~TestObject();
+ int testMessage( Object * sender, Object * arg );
+ int anotherMessage( Object * sender, Object * arg );
+ int testEvent( Object * sender, Object * arg );
+
+protected:
+ TIKI_OBJECT_DECLS( TestObject )
+
+ std::string m_name;
+};
+
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: tiki/examples/events/version.plist
===================================================================
--- tiki/examples/events/version.plist (rev 0)
+++ tiki/examples/events/version.plist 2007-10-28 18:38:46 UTC (rev 519)
@@ -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>BuildVersion</key>
+ <string>92</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>ProductBuildVersion</key>
+ <string>7K571</string>
+ <key>ProjectName</key>
+ <string>NibPBTemplates</string>
+ <key>SourceVersion</key>
+ <string>1200000</string>
+</dict>
+</plist>
Modified: tiki/win32/tiki.sln
===================================================================
--- tiki/win32/tiki.sln 2007-10-27 02:10:42 UTC (rev 518)
+++ tiki/win32/tiki.sln 2007-10-28 18:38:46 UTC (rev 519)
@@ -48,6 +48,11 @@
{F2816CAC-B560-4ED9-8A73-9635F832943C} = {F2816CAC-B560-4ED9-8A73-9635F832943C}
EndProjectSection
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TikiEvents", "..\examples\events\events.vcproj", "{16508E01-E2E1-47B1-9B3A-6991C0032E76}"
+ ProjectSection(ProjectDependencies) = postProject
+ {F2816CAC-B560-4ED9-8A73-9635F832943C} = {F2816CAC-B560-4ED9-8A73-9635F832943C}
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -94,6 +99,10 @@
{7B823C96-860C-4578-95BB-1087A45AF1AA}.Debug|Win32.Build.0 = Debug|Win32
{7B823C96-860C-4578-95BB-1087A45AF1AA}.Release|Win32.ActiveCfg = Release|Win32
{7B823C96-860C-4578-95BB-1087A45AF1AA}.Release|Win32.Build.0 = Release|Win32
+ {16508E01-E2E1-47B1-9B3A-6991C0032E76}.Debug|Win32.ActiveCfg = Debug|Win32
+ {16508E01-E2E1-47B1-9B3A-6991C0032E76}.Debug|Win32.Build.0 = Debug|Win32
+ {16508E01-E2E1-47B1-9B3A-6991C0032E76}.Release|Win32.ActiveCfg = Release|Win32
+ {16508E01-E2E1-47B1-9B3A-6991C0032E76}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|