Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members

Customization.h

Go to the documentation of this file.
00001 /*******************************************************
00002  *
00003  * $Id$
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 #include "HardKeyManager.h"
00017 
00018 
00019 /********************************************************
00020  * Modify the settings in this file to adjust the
00021  * behavior of the Razor! Engine to your requirements.
00022  ********************************************************/
00023 
00024 
00025 /**
00026  * Application settings
00027  */
00028 
00029 // Make sure the linker settings match these!!!
00030 static const UInt32 appCreator        = 'Razr';    // Don't use this default!  Obtain your own Creator ID from Palm, Inc.!!!
00031 static const Int16  appVersionNum     = 0x01;
00032 
00033 // The framework requires a minimum of v3.0, but you can raise the limit as required by your own application.
00034 static const UInt32 appMinRomVersion = sysMakeROMVersion(3,0,0,sysROMStageRelease,0);
00035 
00036 // Shall auto-off be disabled while presentation is running?
00037 static const Boolean appPreventAutoOff = true;
00038 
00039 /**
00040  * Presentation settings
00041  */
00042 
00043 // How long is one time-slice (1/100 secs)?
00044 static const UInt32 presAdvanceTimeInterval            =   6;           
00045 
00046 // How long do we wait after starting, or resuming the presentation (1/100 secs)? 
00047 // You might want to set this to zero, and handle these pauses yourself in your ActionEngine.
00048 static const UInt32 presPauseLengthBeforeResuming      =   0;           
00049 
00050 
00051 /**
00052  * Sound settings
00053  */
00054 // Define this, if you don't want any sound
00055 #undef NO_SOUND
00056 //#define NO_SOUND
00057 
00058 
00059 /**
00060  * Canvas settings
00061  */
00062 
00063 // Minimum required display depth in bits/pixel
00064 static UInt32 canvasRequiredDepth = 2;                  
00065 
00066 
00067 /**
00068  * A factory for the Canvas object. Include the correct header and modify createCanvas accordingly.
00069  */
00070 #include "DoubleBufferCanvas.h"
00071 static Canvas& createCanvas()
00072 {
00073     return (*(new DoubleBufferCanvas()));
00074 }
00075 
00076 
00077 /**
00078  * The Factory for the ActionEngine, which is the most import class in this engine had to be moved to
00079  * an extra file called ActionEngineFactory.h, in order to avoid nasty circular includes. 
00080  * 
00081  * BE SURE TO MODIFY THIS FILE!!!!
00082  */
00083 
00084 
00085 #endif

Razor! Engine Developer's Guide. Copyright © by Tilo Christ. All Rights Reserved. Last updated: 4 Nov 2000