source: branches/v2.9/mediafolder/include/mediafolderinc.h@ 21

Last change on this file since 21 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

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