source: branches/v2.9/classes_chris_names/inc/cwaudioinc.h

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

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

File size: 3.4 KB
Line 
1#ifndef _CWAUDIOINC_H_INCLUDED
2#define _CWAUDIOINC_H_INCLUDED
3
4#include "common.h"
5
6#define SETUP_AUDIOTRACKNAME "CWAUDIOTRACKNAME"
7#define SETUP_AUDIOARTIST "CWAUDIOARTIST"
8#define SETUP_AUDIOALBUM "CWAUDIOALBUM"
9#define SETUP_AUDIOCOMMENT "CWAUDIOCOMMENT"
10#define SETUP_AUDIOYEAR "CWAUDIOYEAR"
11#define SETUP_AUDIOGENRE "CWAUDIOGENRE"
12#define SETUP_AUDIOPLAYTIME "CWAUDIOPLAYTIME"
13#define SETUP_REFRESH "CWAUDIOREFRESH"
14#define SETUP_COPYTAGTO "CWAUDIOCOPYTAGTO"
15
16/* Restore keys for audio info from instance data */
17#define KEY_TIME 4001
18#define KEY_CHANNELS 4002
19#define KEY_SAMPLERATE 4003
20#define KEY_BPS 4004
21#define KEY_FILESIZE 4005
22#define KEY_TRACKNAME 4006
23#define KEY_ARTIST 4007
24#define KEY_ALBUM 4008
25#define KEY_COMMENT 4009
26#define KEY_YEAR 4010
27#define KEY_GENRE 4011
28#define KEY_TIME_MS 4012
29
30#define TRACKNAME_SETTINGS_PANEL 12
31
32/* The max length of any new column title */
33#define SIZE_TITLE 30
34#define NUM_AUDIO_FIELDS 10 /* Num of additional details columns */
35
36/* Set some default titles */
37static PSZ pszAudioColTitles[NUM_AUDIO_FIELDS]= {"Playtime", "Samplerate", "Channels", "Bits per sample",
38"Track Name","Artist","Album","Year","Comment","Genre"};
39
40static char chrPlayTime[SIZE_TITLE]="";
41static char chrSampleRate[SIZE_TITLE]="";
42static char chrChannels[SIZE_TITLE]="";
43static char chrBPS[SIZE_TITLE]="";
44static char chrName[SIZE_TITLE]="";
45static char chrArtist[SIZE_TITLE]="";
46static char chrAlbum[SIZE_TITLE]="";
47static char chrYear[SIZE_TITLE]="";
48static char chrComment[SIZE_TITLE]="";
49static char chrGenre[SIZE_TITLE]="";
50
51typedef struct _AUDIODETAILS
52{
53 PSZ pszPlayTime;
54 PSZ pszSampleRate;
55 PSZ pszChannels;
56 PSZ pszBPS;
57 PSZ pszName;
58 PSZ pszArtist;
59 PSZ pszAlbum;
60 PSZ pszYear;
61 PSZ pszComment;
62 PSZ pszGenre;
63}AUDIODETAILS;
64typedef AUDIODETAILS *PAUDIODETAILS;
65
66static CLASSFIELDINFO cfiFieldInfo[NUM_AUDIO_FIELDS];
67
68#define CWAUDIO_VIEW_PLAY ID_MENU_START
69
70/* Parameters for WM_APPTERMINATENOTIFY for controlling playing */
71#define ACKEY_START 1
72#define ACKEY_STOP 2
73
74
75/* CWImage */
76#define NUM_IMAGE_DETAILS_FIELDS 4 /* Num of additional details columns */
77
78/* Set some default titles */
79static PSZ pszImageColTitles[NUM_IMAGE_DETAILS_FIELDS]= {"Width", "Height", "Depth", "Format"};
80
81static char chrWidth[SIZE_TITLE]="";
82static char chrHeight[SIZE_TITLE]="";
83static char chrDepth[SIZE_TITLE]="";
84static char chrFormat[SIZE_TITLE]="";
85
86typedef struct _IMAGEDETAILS
87{
88 ULONG ulWidth;
89 ULONG ulHeight;
90 ULONG ulDepth;
91 PSZ pszFormat;
92}IMAGEDETAILS;
93typedef IMAGEDETAILS *PIMAGEDETAILS;
94
95static CLASSFIELDINFO cfiImageFieldInfo[NUM_IMAGE_DETAILS_FIELDS];
96
97#define MAX_SIZE_SMALLBITMAP 250
98
99
100typedef struct _CREATEBMPINFO
101{
102 WPObject * wpObject;
103 PMINIRECORDCORE pmrcToRefresh;
104 HWND hwndCnr;
105 ULONG ulWidth;
106 ULONG ulHeight;
107}CREATEBMPINFO;
108typedef CREATEBMPINFO *PCREATEBMPINFO;
109
110/* Restore keys for lighttable folder */
111#define KEY_ICONSIZE 4001
112
113/* Ini key for enabling new image class features on CD */
114#define IMAGECLS_FEATURES_ON_CD_KEY "useNewImgClsFeaturesOnCD"
115/* Ini key to disable extended icon titles for audio files */
116#define MM_NO_EXTENDED_ICONTITLE "mmClsNoExtendedIconTitles"
117
118#endif
119
120
121
122
123
124
125
126
127
128
Note: See TracBrowser for help on using the repository browser.