source: trunk/mediafolder/include/mediafolderinc.h@ 222

Last change on this file since 222 was 217, checked in by gyoung, 4 months ago

Get "keys help" to show program specific keys help instead of WPS key help. Includes updating the documentation

File size: 7.9 KB
Line 
1
2/* Defines for positioning the frame controls */
3#define FCTL_LEFT 1
4#define FCTL_RIGHT 2
5#define FCTL_TOP 4
6#define FCTL_BOTTOM 8
7#define FCTL_POSABOVE 1
8#define FCTL_POSBELOW 2
9
10/* The following is for use with WPS-Wizard if installed */
11/* The first user menuitem ID */
12#define FIRSTUSERITEM 0x7200
13/* The first skript menuitem ID */
14/*#define FIRSTSKRIPTITEM 0x7300*/
15
16/* The view menu. We insert the 'Compact' menu here. */
17#define MENUID_VIEW 104
18
19/*#define SKRIPTFOLDER_MEDIAFOLDER "<SKRIPTS_MEDIAFOLDER>"*/
20
21/* Keys for the instance data */
22#define KEY_VOLUME 4100
23#define KEY_FLYFOREGROUND 4101
24#define KEY_FLYBACKGROUND 4102
25#define KEY_FLYFONT 4103
26#define KEY_FLYDELAY 4104
27#define KEY_FLYENABLED 4105
28#define KEY_FLAGS 4106
29#define KEY_DISPLAYTYPE 4107
30#define KEY_PLAYTIMEFONT 4108
31
32#define KEY_DRIVE 4100
33
34/* Flags saved in the instance data */
35/* Make sure we only resize the folder ones */
36#define FLAG_ALREADYSIZED 0x00000001
37/* Repeat check button */
38#define FLAG_REPEAT 0x00000002
39/* Random play */
40#define FLAG_RANDOM 0x00000004
41
42/*** Private folder flags: ***/
43/* Flag indicating from where a method was called */
44#define MFLDR_CURACTION_ADDFOLDERVIEW3 0x00000001
45/* Flag telling if folder is in compact view */
46#define MFLDR_VIEW_COMPACT 0x00000002
47/* The view is currently changing */
48#define MFLDR_CHANGING_VIEW 0x00000004
49/* Indicate, we are currently showing the cancellation message box to the user */
50#define MFLDR_SHOWING_MBOX 0x00000008
51/*** End of private folder flags ***/
52
53/* Timer for automatically dismissing the message box and closing a mediafolder
54 when playing a media file. Used for enabling automatic shutdown. Otherwise
55the shutdown would hang until the user clicks 'ok'. See cwClose() */
56#define MFLDR_MBOX_TIMER_ID 100
57/* The timer delay in ms. This can be set in the INI file. */
58#define MFLDR_MBOX_TIMER_DELAY 60000
59/* The allowed minimum for the timer delay in ms */
60#define MFLDR_MBOX_MIN_TIMER_DELAY 5000
61/* */
62#define MFLDR_TIMER_DELAY_KEY "mfldrMBoxDisplayTime"
63
64#define IDHLP_MEDIAFOLDERMAIN 100
65#define IDHLP_MEDIAFOLDERKEYS 120
66#define IDHLP_CDPLAYERKEYS 220
67
68/* Which display to show */
69#define DISPLAY_TIMEELAPSED 0
70#define DISPLAY_TIMEREMAINING 1
71#define DISPLAY_TIMEID3 2
72
73#define SHADOW_CLASS_NAME "CWAudioShadow"
74
75/************* Object IDs *******************/
76#define MEDIAFLDR_TBID "<MEDIAFLDR_TOOLBAR>"
77#define ID_MEDIAFLDRTEMPLATE "<MMPM2_MEDIAFLDRTEMPLATE>"
78//#define MEDIAFLDR_TEMPLATE_NAME "Media-Player"
79#define ID_MMTEMPLATEFOLDER "<MMPM2_MMTEMPLATEFOLDER>"
80#define ID_MEDIALDRTMPL_SHADOW "<MFLDRTMPL_SHADOW>"
81#define ID_MMFOLDER "<MMPM2_FOLDER>"
82/* The ID for the data configuration folder */
83#define USERMENUFOLDER_MEDIAFOLDER "<USERMENU_MEDIAFOLDER>"
84
85#define USERMENUFOLDER_M3UFOLDER "<USERMENU_CWM3UFolder>"
86
87/************ INI file settings *************/
88#define APPKEY_CWMM "CWMM"
89/* Setting for ini file to prevent template shadow creation in MM folder */
90#define MFLDR_NO_TEMPLATE_SHADOW "bNoMediaFolderTemplateShadow"
91/* If set no blinking of the buttons while playing */
92#define MFLDR_NO_VISUAL_FEEDBACK "bNoPlayCtrlBlinking"
93/* FreeDB root directory */
94#define KEY_FREEDBCLIENTROOT "freedbclient"
95
96/*********** FreeDB client ******************/
97/* Client for FreeDB query. This path is relative to the 'freedbclient' path specified in os2.ini see above. */
98#define FREEDB_CLIENT_NAME "\\pmcddb.exe"
99/* Script sending the tracknames. Path is relative to install dir of cdfolder */
100#define FREEDB_REXXSCRIPT "\\bin\\trknames.cmd"
101
102/* Flyover default settings. Not yet used */
103#define MAXDELAY 9999 /* Delay for toolbar flyover */
104#define DEFAULTDELAY 250
105
106/* Fonts to use in dialogs */
107#define DEFAULT_DIALOG_FONT "9.WarpSans"
108#define DEFAULT_DIALOG_FONT_WARP3 "8.Helv"
109
110
111/*********** Setup strings ******************/
112/* Setup strings for media folders */
113#define MEDIAFLDR_PLAY_FIRST "MEDIAFLDRPLAYFIRST"
114#define MEDIAFLDR_PLAY "MEDIAFLDRPLAY"
115#define MEDIAFLDR_STOP "MEDIAFLDRSTOP"
116#define MEDIAFLDR_NEXT "MEDIAFLDRNEXT"
117#define MEDIAFLDR_PREV "MEDIAFLDRPREV"
118#define MEDIAFLDR_VOLUME "MEDIAFLDRVOLUME"
119#define MEDIAFLDR_REPEAT "MEDIAFLDRREPEAT"
120/* Setup strings for CD folder.
121 Usage: CDPLAYERDRIVE=O: */
122#define CDFLDR_DRIVE "CDPLAYERDRIVE"
123/* The template for creting IDs for CD player objects.
124 For example: <CWMM_CDPLAYER_N> */
125#define CDFLDR_ID "<CWMM_CDPLAYER_%c>"
126/* Destination for CD player objects */
127#define CDFLDR_LOCATION "<MMPM2_FOLDER>"
128/* CD folder classname */
129#define CDFLDR_CLASSNAME "CWCDFolder"
130/* Setup string to hide the class page of menu folders */
131#define SETUP_HIDECLASSPAGE "HIDECLASSPAGE"
132
133/* Script which creates the CD player objects */
134#define SCRIPT_CREATEPLAYERS "creatobj.cmd"
135
136/* The private media folder view when playing a track */
137#define OPEN_PLAYING OPEN_USER+1000
138
139/* Which track to start */
140#define PLAY_FIRST 1L
141#define PLAY_NEXT 2L
142#define PLAY_PREV 3L
143#define PAUSE_TRACK 4L
144#define STOP_TRACK 5L
145#define SEEK_TRACK 6L
146#define PLAY_NEXT_CDFLDR 7L /* CD folders need special handling because they're slow */
147
148/* The IDs for the playtime display */
149#define IDTIMER_PLAY 5L
150#define PLAYTIMER_DELAY 1000
151
152/* Timer ID for status text */
153#define IDTIMER_STATUS 1
154
155/* Slider window class name */
156#define SLIDER_CLASS "CWSLIDER"
157
158/* Data positions in the window words */
159#define SLIDERARMWIDTH 0 /* USHORT */
160#define SLIDERARMHEIGHT 2 /* USHORT */
161#define PTRPOSINSLARM 4 /* USHORT */
162#define SLINCREMENTS 6 /* USHORT */
163#define SLIDERCX 8 /* ULONG */
164#define SLIDERCY 12 /* ULONG */
165#define SLIDERX 16 /* ULONG */
166#define SLIDERY 20 /* ULONG */
167#define SLIDERARMPOS 24 /* LONG */
168#define SLDRAGGING 28 /* BOOL */
169#define SLADDBYTES 32 /* num additional window bytes for slider */
170
171/* Useful defines */
172#define MRFALSE (MRESULT)FALSE
173#define MRTRUE (MRESULT)TRUE
174
175/* Used for sending a click event from the time control to the main control */
176#define NOTIFY_CLICK 1 /* For WM_APPTERMINATENOTIFY */
177/* Same for context menu */
178#define NOTIFY_CONTEXT 2
179#define NOTIFY_STARTSTATUSTIMER 3
180
181/* for cwmmQueryTrackInfo() */
182/* ID tag defines */
183#define IDINFO_NAME 1
184#define IDINFO_ARTIST 2
185#define IDINFO_ALBUM 3
186#define IDINFO_YEAR 4
187#define IDINFO_COMMENT 5
188#define IDINFO_GENRE 6
189
190#define IDINFO_PLAYTIME 7
191#define IDINFO_BPS 8
192#define IDINFO_SAMPLERATE 9
193#define IDINFO_CHANNELS 10
194
195#define IDINFO_LASTINFO 10
196
197/* From CWCDTrack */
198#define IDINFO_TRACKNUM 100
199
200#ifndef CTXT_CHANGETOICON
201#define CTXT_CHANGETOICON 0x4000000
202#define CTXT_CHANGETOTREE 0x8000000
203#define CTXT_CHANGETODETAILS 0x10000000
204
205/* This shouldn't be static... But there's an overflow check so at least
206there's no crash id anyone has more objects in a playlist. */
207#define MAX_RANDOM_OBJECTS 5000 /* Max objects we use when playing random */
208
209/* Internal REXX scripts */
210#define RX_INSERT_PLAYLISTTRACKS "\\bin\\insTrack.rx"
211#define RX_INSERT_MEDIAFLDRTRACKS "\\bin\\insTrk2.rx"
212/*#define RX_CREATE_AUDIOCD "mkaudCD.rx"*/
213
214/* Additional window bytes for all the media folders */
215#define MFLDR_WINDOWBYTES 24
216
217/* Name of the DLL conatining the resources. %c%c will be replaced by the language code. */
218#define RESDLLNAME "\\mfldr_%c%c.dll"
219/* Default resource DLL name if NLV is not available. */
220#define DEFRESDLLNAME "\\mfldr_en.dll"
221
222#endif
223
224
Note: See TracBrowser for help on using the repository browser.