00001 /******************************************************* 00002 * 00003 * $Id: Customization.h,v 1.2 2000/12/09 10:47:46 christ Exp $ 00004 * 00005 * This file has been placed in the public domain. 00006 * 00007 *******************************************************/ 00008 00009 00010 00011 #ifndef CUSTOMIZATION_H 00012 #define CUSTOMIZATION_H 00013 00014 #include <PalmOS.h> 00015 #include "Canvas.h" 00016 00017 00018 /******************************************************** 00019 * Modify the settings in this file to adjust the 00020 * behavior of the Razor! Engine to your requirements. 00021 ********************************************************/ 00022 00023 00024 /** 00025 * Application settings 00026 */ 00027 00028 // Make sure the linker settings match these!!! 00029 static const UInt32 appCreator = 'Razr'; // Don't use this default! Obtain your own Creator ID from Palm, Inc.!!! 00030 static const Int16 appVersionNum = 0x01; 00031 00032 // The framework requires a minimum of v3.0, but you can raise the limit as required by your own application. 00033 static const UInt32 appMinRomVersion = sysMakeROMVersion(3,0,0,sysROMStageRelease,0); 00034 00035 // Shall auto-off be disabled while presentation is running? 00036 static const Boolean appPreventAutoOff = true; 00037 00038 /** 00039 * Presentation settings 00040 */ 00041 00042 // How long is one time-slice (1/100 secs)? 00043 static const UInt32 presAdvanceTimeInterval = 6; 00044 00045 // How long do we wait after starting, or resuming the presentation (1/100 secs)? 00046 // You might want to set this to zero, and handle these pauses yourself in your ActionEngine. 00047 static const UInt32 presPauseLengthBeforeResuming = 0; 00048 00049 00050 /** 00051 * Sound settings 00052 */ 00053 // Define this, if you don't want any sound 00054 #undef NO_SOUND 00055 //#define NO_SOUND 00056 00057 00058 /** 00059 * Canvas settings 00060 */ 00061 00062 // Supported bit-depths and color modes. Put more desired modes first. Always terminate with a zero!!! 00063 static UInt32 supportedCanvasModes[] = {Canvas::COLOR_8BPP, Canvas::GRAY_2BPP, 0}; 00064 00065 00066 /** 00067 * A factory for the Canvas object. Include the correct header and modify createCanvas accordingly. 00068 */ 00069 #include "DoubleBufferCanvas.h" 00070 static Canvas& createCanvas() 00071 { 00072 return (*(new DoubleBufferCanvas())); 00073 } 00074 00075 00076 /** 00077 * The Factory for the ActionEngine, which is the most import class in this engine had to be moved to 00078 * an extra file called ActionEngineFactory.h, in order to avoid nasty circular includes. 00079 * 00080 * BE SURE TO MODIFY THIS FILE!!!! 00081 */ 00082 00083 00084 #endif