forked from elha/CDex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDexView.h
More file actions
268 lines (241 loc) · 8.23 KB
/
CDexView.h
File metadata and controls
268 lines (241 loc) · 8.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
/*
** CDex - Open Source Digital Audio CD Extractor
**
** Copyright (C) 2006 - 2007 Georgy Berdyshev
** Copyright (C) 1999 - 2007 Albert L. Faber
**
** http://cdexos.sourceforge.net/
** http://sourceforge.net/projects/cdexos
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CDEXVIEW_H_INCLUDED
#define CDEXVIEW_H_INCLUDED
#include "CDPlay.h"
#include "Filename.h"
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "ID3Tag.h"
#include "LineList.h"
#include "HyperLink.h"
#include "RipInfoDB.h"
#include "OpenFileDlg.h"
#include "UtilToolBar.h"
#include "MusicBrainz.h"
class CCopyDialog;
class CMP3ToWavDlg;
class CCDexView : public CFormView
{
private:
CCopyDialog* m_pCopyDlg;
CMP3ToWavDlg* m_pConvertDlg;
CUtilToolBar* m_pUtilToolBar;
CCDPlay m_cCDPlay;
bool m_noPreGaps;
bool m_noIsrc;
public:
LONG m_lStatus;
int m_nCurPlayTrack;
int m_nNumPlayTracks;
BYTE m_PlayTracksArray[100];
BOOL m_bMultiPlay;
LONG m_lOldStatus;
CFileDialog* m_pFileDlg;
CStatusBar* m_pStatus;
DWORD m_dwTimer;
CRipInfoDB m_RipInfoDB;
BOOL m_bEjected;
protected: // create from serialization only
CCDexView();
DECLARE_DYNCREATE(CCDexView)
// Form Data
public:
//{{AFX_DATA(CCDexView)
enum { IDD = IDD_TITLEINFO };
CEdit m_TrackOffset;
CEdit m_Year;
CEdit m_Title;
CEdit m_Artist;
CComboBox m_Genre;
LListCtrl m_TrackList;
CString m_strYear;
CString m_strTitle;
CString m_strArtist;
INT m_nTrackOffset;
//}}AFX_DATA
void EjectCD(BOOL bEject,BOOL bOpenTray);
// Attributes
public:
// Operations
public:
CCDexDoc* GetDocument();
void OnNewCD();
void PlaceControls();
void GetPlayTracks();
void OnGetTrack2XXX(int nWavOrMp3);
void SaveCDInfo();
void UpdateCDInfo();
void SetStatusBar( LPCTSTR lpszText );
void ConvertWav2MP3();
void OnSelectConfigure(int nSelectTab);
void UpdateTrackStatus();
void FormatTrackName( ENUM_FILENAME_CONVERTS nType );
void AddProfileStrings();
DWORD SetRibDBInfo( CTaskInfo& newTask, WORD wTrack );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCDexView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate( CView* pSender, LPARAM lHint, CObject* pHint );
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCDexView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public:
void ShutDown( );
BOOL SetCurrentPrivilege (LPCTSTR Privilege, BOOL bEnablePrivilege);
void UpdateGenreSelection( const CString& strSelection );
void UpdateListControls();
afx_msg void OnEject();
afx_msg void OnProfileEditChange();
protected:
afx_msg LRESULT OnSeekButton( WPARAM wParam, LPARAM lParam );
afx_msg LRESULT OnWinAmpPlugInFinished( WPARAM wParam, LPARAM lParam );
afx_msg LRESULT OnSeekButtonUp( WPARAM wParam, LPARAM lParam );
afx_msg LRESULT OnUpdateTrackStatus( WPARAM wParam, LPARAM lParam );
afx_msg LRESULT OnEditNextTrack( WPARAM wParam, LPARAM lParam );
afx_msg LRESULT OnChildDialogClosed( WPARAM wParam,LPARAM lParam );
// Generated message map functions
protected:
//{{AFX_MSG(CCDexView)
afx_msg void OnClose();
afx_msg void OnConfigure();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTracks2wav();
afx_msg void OnTracks2mp3();
afx_msg void OnWav2mp3();
afx_msg void OnSysteminfo();
afx_msg void OnPtracks2mp3();
afx_msg void OnNexttrack();
afx_msg void OnPrevtrack();
afx_msg void OnStopbutton();
afx_msg void OnUpdateCDSelBar(CCmdUI* pCmdUI);
afx_msg void OnUpdateConfigCD(CCmdUI* pCmdUI);
afx_msg void OnUpdatePtracks2mp3(CCmdUI* pCmdUI);
afx_msg void OnUpdateSkipforward(CCmdUI* pCmdUI);
afx_msg void OnUpdateSkipback(CCmdUI* pCmdUI);
afx_msg void OnUpdatePrevtrack(CCmdUI* pCmdUI);
afx_msg void OnUpdateStopbutton(CCmdUI* pCmdUI);
afx_msg void OnUpdateTracks2mp3(CCmdUI* pCmdUI);
afx_msg void OnUpdateTracks2wav(CCmdUI* pCmdUI);
afx_msg void OnUpdateWav2mp3(CCmdUI* pCmdUI);
afx_msg void OnChange();
afx_msg void OnRemotecddb();
afx_msg void OnUpdateCDDB(CCmdUI* pCmdUI);
afx_msg void OnPlaytrack();
afx_msg void OnUpdatePlaytrack(CCmdUI* pCmdUI);
afx_msg void OnPause();
afx_msg void OnUpdatePause(CCmdUI* pCmdUI);
afx_msg void OnUpdateNexttrack(CCmdUI* pCmdUI);
afx_msg void OnRclickTracklist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEndlabeleditTracklist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnUpdateConfigure(CCmdUI* pCmdUI);
afx_msg void OnDropFiles(HDROP hDropInfo);
afx_msg void OnReadcdplayerini();
afx_msg void OnReadlocalcddb();
afx_msg void OnDestroy();
afx_msg void OnMp3toriffwav();
afx_msg void OnUpdateMp3toriffwav(CCmdUI* pCmdUI);
afx_msg void OnEditRenametrack();
afx_msg void OnEditSelectall();
afx_msg void OnEditRefresh();
afx_msg void OnEditCopytrackstoclipboard();
afx_msg void OnCddbSavetocdplayerini();
afx_msg void OnCddbSavetolocalcddb();
virtual LRESULT OnChangeCDSelection(WPARAM nSelection,LPARAM lParam);
virtual LRESULT OnChangeProfileSelection(WPARAM nSelection,LPARAM lParam);
afx_msg void OnConfigcd();
afx_msg void OnUpdateViewerrorlog(CCmdUI* pCmdUI);
afx_msg void OnMp3towav();
afx_msg void OnUpdateMp3towav(CCmdUI* pCmdUI);
afx_msg void OnViewripstatus();
afx_msg void OnComparefiles();
afx_msg void OnPlayfiles();
afx_msg void OnUpdatePlayfiles(CCmdUI* pCmdUI);
afx_msg void OnOptionClearstatus();
afx_msg void OnRiffwavtomp3();
afx_msg void OnToolsRecordfiles();
afx_msg void OnCddbSubmittoremotecddb();
afx_msg void OnCddbReadcdtext();
afx_msg void OnCddbBatchQuery();
afx_msg void OnToolsBurn();
afx_msg void OnMpegtompeg();
afx_msg void OnUpdateMpegtompeg(CCmdUI* pCmdUI);
afx_msg void OnToolsSearchtrackindex();
afx_msg void OnTracknameModAl();
afx_msg void OnTracknameModAu();
afx_msg void OnTracknameModFcc();
afx_msg void OnTracknameModFcew();
afx_msg void OnUpdateTracknameModAl(CCmdUI* pCmdUI);
afx_msg void OnUpdateTracknameModAu(CCmdUI* pCmdUI);
afx_msg void OnUpdateTracknameModFcc(CCmdUI* pCmdUI);
afx_msg void OnUpdateTracknameModFcew(CCmdUI* pCmdUI);
afx_msg void OnConfigureWinPlugins();
afx_msg void OnUpdateConfigureWinPlugins(CCmdUI* pCmdUI);
afx_msg void OnDblclkGenre();
afx_msg void OnEditAddeditgenres();
afx_msg void OnEditModifytracknameExchangeartisttrack();
afx_msg void OnChangeTrackoffset();
afx_msg void OnDeleteprofile();
afx_msg void OnUpdateDeleteprofile(CCmdUI* pCmdUI);
afx_msg void OnSaveprofile();
afx_msg void OnUpdateSaveprofile(CCmdUI* pCmdUI);
afx_msg void OnCddbWinampdb();
afx_msg void OnUpdateCddbWinampdb(CCmdUI* pCmdUI);
afx_msg void OnUpdateEject(CCmdUI* pCmdUI);
afx_msg void OnCddbReadfrommusicbrainz();
afx_msg void OnUpdateCddbReadfrommusicbrainz(CCmdUI* pCmdUI);
afx_msg void OnKillfocusTrackoffset();
//}}AFX_MSG
afx_msg void OnMbrainz();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnToolsGeneratecuesheet();
afx_msg void OnToolsDetectpre();
afx_msg void OnToolsReadupc();
};
#ifndef _DEBUG // debug version in CDexView.cpp
inline CCDexDoc* CCDexView::GetDocument()
{ return (CCDexDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif