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

Last change on this file since 222 was 4, checked in by stevenhl, 8 years ago

Import modifications from cwmm-0_2_9-work-01_10_2006.zip dated 2006-08-27

File size: 7.8 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
66/* Which display to show */
67#define DISPLAY_TIMEELAPSED 0
68#define DISPLAY_TIMEREMAINING 1
69#define DISPLAY_TIMEID3 2
70
71#define SHADOW_CLASS_NAME "CWAudioShadow"
72
73/************* Object IDs *******************/
74#define MEDIAFLDR_TBID "<MEDIAFLDR_TOOLBAR>"
75#define ID_MEDIAFLDRTEMPLATE "<MMPM2_MEDIAFLDRTEMPLATE>"
76//#define MEDIAFLDR_TEMPLATE_NAME "Media-Player"
77#define ID_MMTEMPLATEFOLDER "<MMPM2_MMTEMPLATEFOLDER>"
78#define ID_MEDIALDRTMPL_SHADOW "<MFLDRTMPL_SHADOW>"
79#define ID_MMFOLDER "<MMPM2_FOLDER>"
80/* The ID for the data configuration folder */
81#define USERMENUFOLDER_MEDIAFOLDER "<USERMENU_MEDIAFOLDER>"
82
83#define USERMENUFOLDER_M3UFOLDER "<USERMENU_CWM3UFolder>"
84
85/************ INI file settings *************/
86#define APPKEY_CWMM "CWMM"
87/* Setting for ini file to prevent template shadow creation in MM folder */
88#define MFLDR_NO_TEMPLATE_SHADOW "bNoMediaFolderTemplateShadow"
89/* If set no blinking of the buttons while playing */
90#define MFLDR_NO_VISUAL_FEEDBACK "bNoPlayCtrlBlinking"
91/* FreeDB root directory */
92#define KEY_FREEDBCLIENTROOT "freedbclient"
93
94/*********** FreeDB client ******************/
95/* Client for FreeDB query. This path is relative to the 'freedbclient' path specified in os2.ini see above. */
96#define FREEDB_CLIENT_NAME "\\pmcddb.exe"
97/* Script sending the tracknames. Path is relative to install dir of cdfolder */
98#define FREEDB_REXXSCRIPT "\\bin\\trknames.cmd"
99
100/* Flyover default settings. Not yet used */
101#define MAXDELAY 9999 /* Delay for toolbar flyover */
102#define DEFAULTDELAY 250
103
104/* Fonts to use in dialogs */
105#define DEFAULT_DIALOG_FONT "9.WarpSans"
106#define DEFAULT_DIALOG_FONT_WARP3 "8.Helv"
107
108
109/*********** Setup strings ******************/
110/* Setup strings for media folders */
111#define MEDIAFLDR_PLAY_FIRST "MEDIAFLDRPLAYFIRST"
112#define MEDIAFLDR_PLAY "MEDIAFLDRPLAY"
113#define MEDIAFLDR_STOP "MEDIAFLDRSTOP"
114#define MEDIAFLDR_NEXT "MEDIAFLDRNEXT"
115#define MEDIAFLDR_PREV "MEDIAFLDRPREV"
116#define MEDIAFLDR_VOLUME "MEDIAFLDRVOLUME"
117#define MEDIAFLDR_REPEAT "MEDIAFLDRREPEAT"
118/* Setup strings for CD folder.
119 Usage: CDPLAYERDRIVE=O: */
120#define CDFLDR_DRIVE "CDPLAYERDRIVE"
121/* The template for creting IDs for CD player objects.
122 For example: <CWMM_CDPLAYER_N> */
123#define CDFLDR_ID "<CWMM_CDPLAYER_%c>"
124/* Destination for CD player objects */
125#define CDFLDR_LOCATION "<MMPM2_FOLDER>"
126/* CD folder classname */
127#define CDFLDR_CLASSNAME "CWCDFolder"
128/* Setup string to hide the class page of menu folders */
129#define SETUP_HIDECLASSPAGE "HIDECLASSPAGE"
130
131/* Script which creates the CD player objects */
132#define SCRIPT_CREATEPLAYERS "creatobj.cmd"
133
134/* The private media folder view when playing a track */
135#define OPEN_PLAYING OPEN_USER+1000
136
137/* Which track to start */
138#define PLAY_FIRST 1L
139#define PLAY_NEXT 2L
140#define PLAY_PREV 3L
141#define PAUSE_TRACK 4L
142#define STOP_TRACK 5L
143#define SEEK_TRACK 6L
144#define PLAY_NEXT_CDFLDR 7L /* CD folders need special handling because they're slow */
145
146/* The IDs for the playtime display */
147#define IDTIMER_PLAY 5L
148#define PLAYTIMER_DELAY 1000
149
150/* Timer ID for status text */
151#define IDTIMER_STATUS 1
152
153/* Slider window class name */
154#define SLIDER_CLASS "CWSLIDER"
155
156/* Data positions in the window words */
157#define SLIDERARMWIDTH 0 /* USHORT */
158#define SLIDERARMHEIGHT 2 /* USHORT */
159#define PTRPOSINSLARM 4 /* USHORT */
160#define SLINCREMENTS 6 /* USHORT */
161#define SLIDERCX 8 /* ULONG */
162#define SLIDERCY 12 /* ULONG */
163#define SLIDERX 16 /* ULONG */
164#define SLIDERY 20 /* ULONG */
165#define SLIDERARMPOS 24 /* LONG */
166#define SLDRAGGING 28 /* BOOL */
167#define SLADDBYTES 32 /* num additional window bytes for slider */
168
169/* Useful defines */
170#define MRFALSE (MRESULT)FALSE
171#define MRTRUE (MRESULT)TRUE
172
173/* Used for sending a click event from the time control to the main control */
174#define NOTIFY_CLICK 1 /* For WM_APPTERMINATENOTIFY */
175/* Same for context menu */
176#define NOTIFY_CONTEXT 2
177#define NOTIFY_STARTSTATUSTIMER 3
178
179/* for cwmmQueryTrackInfo() */
180/* ID tag defines */
181#define IDINFO_NAME 1
182#define IDINFO_ARTIST 2
183#define IDINFO_ALBUM 3
184#define IDINFO_YEAR 4
185#define IDINFO_COMMENT 5
186#define IDINFO_GENRE 6
187
188#define IDINFO_PLAYTIME 7
189#define IDINFO_BPS 8
190#define IDINFO_SAMPLERATE 9
191#define IDINFO_CHANNELS 10
192
193#define IDINFO_LASTINFO 10
194
195/* From CWCDTrack */
196#define IDINFO_TRACKNUM 100
197
198#ifndef CTXT_CHANGETOICON
199#define CTXT_CHANGETOICON 0x4000000
200#define CTXT_CHANGETOTREE 0x8000000
201#define CTXT_CHANGETODETAILS 0x10000000
202
203/* This shouldn't be static... But there's an overflow check so at least
204there's no crash id anyone has more objects in a playlist. */
205#define MAX_RANDOM_OBJECTS 5000 /* Max objects we use when playing random */
206
207/* Internal REXX scripts */
208#define RX_INSERT_PLAYLISTTRACKS "\\bin\\insTrack.rx"
209#define RX_INSERT_MEDIAFLDRTRACKS "\\bin\\insTrk2.rx"
210/*#define RX_CREATE_AUDIOCD "mkaudCD.rx"*/
211
212/* Additional window bytes for all the media folders */
213#define MFLDR_WINDOWBYTES 24
214
215/* Name of the DLL conatining the resources. %c%c will be replaced by the language code. */
216#define RESDLLNAME "\\mfldr_%c%c.dll"
217/* Default resource DLL name if NLV is not available. */
218#define DEFRESDLLNAME "\\mfldr_en.dll"
219
220#endif
221
222
Note: See TracBrowser for help on using the repository browser.