defines 2.47 KB
Newer Older
Richard Leggett's avatar
Richard Leggett committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/* Copyright 1998 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*---------------------------------------------------------------------------*/
/* File:    h.defines                                                        */
/* Purpose: Various #defines used by interactive help                        */
/* Author:  Richard Leggett                                                  */
/* History: 05-Jan-98: RML: Created.                                         */
/*---------------------------------------------------------------------------*/

/* Current version */
#define TaskName "Help"
24
#include "VersionNum"
25
#define Version  Module_MajorVersion " (" Module_ApplicationDate ")"
Richard Leggett's avatar
Richard Leggett committed
26 27 28 29 30 31 32 33 34

/* Compile with support for Choices file? */
#define UseChoicesFile 1

/* New WIMP messages */
#define Wimp_MHelpEnable        0x504
#define HelpEnable_Disable      1
#define HelpEnable_ReadSettings 2

35 36
#define MaxDelay 500

Richard Leggett's avatar
Richard Leggett committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
/* Delay between help requests (cs) */
#define DelayBetweenChecks 10

/* CMOS Double click cancel distance byte */
#define WimpDoubleClickMove 22

/* Menu item gadget IDs */
#define MenuItemQuit    0
#define MenuItemInfo    1
#define MenuItemSuspend 3

/* Pointer width/height */
#define PointerWidth  22
#define PointerHeight 44

/* Size of drop shadow */
#define DropShadowSize 8

/* Options */
#define Option_HideCommon 1u<<0
#define Option_DropShadow 1u<<1
#define Option_Repeat     1u<<2

/* Strings in the config file */
#define ConfigFile    "<Choices$Write>.Help.Config"
#define FontConfig    "Font"
#define DelayConfig   "Delay"
#define SizeConfig    "Size"
#define StillConfig   "Still distance"
#define CommonConfig  "Hide common"
#define ShadowConfig  "Drop shadow"
#define RepeatConfig  "Repeat message"
#define TimeoutConfig "Timeout"
#define Yes           "Yes"

/* Defaults */
#define DefaultFontsize 10
#define DefaultFont     "Homerton.Bold.Oblique"
#define DefaultFontSize 10
#define DefaultDelay    50
#define DefaultTimeout  0
#define DefaultOptions  Option_DropShadow