From: <ny...@us...> - 2006-06-05 23:23:59
|
Revision: 45 Author: nyaochi Date: 2006-06-03 22:24:20 -0700 (Sat, 03 Jun 2006) ViewCVS: http://svn.sourceforge.net/pmplib/?rev=45&view=rev Log Message: ----------- [Win32 GUI] - Added the function to strip words in artist names such as 'the'. Modified Paths: -------------- trunk/frontend/easypmp/win32gui/preference.h trunk/frontend/easypmp/win32gui/processingdlg.h Modified: trunk/frontend/easypmp/win32gui/preference.h =================================================================== --- trunk/frontend/easypmp/win32gui/preference.h 2006-06-04 05:18:21 UTC (rev 44) +++ trunk/frontend/easypmp/win32gui/preference.h 2006-06-04 05:24:20 UTC (rev 45) @@ -28,6 +28,7 @@ public: int iDBProces; int iMediaInfoSource; + CString strStripWords; int iPlaylistProcess; BOOL bConvertInPlaylist; BOOL bConvertInMusic; @@ -46,6 +47,7 @@ { iDBProces = 2; iMediaInfoSource = 0; + strStripWords = _T("the "); iPlaylistProcess = 2; bConvertInPlaylist = TRUE; bConvertInMusic = TRUE; @@ -97,6 +99,7 @@ persistInt(iDBProces, _T("Database"), _T("Process"), szSettingFile, storing); persistInt(iMediaInfoSource, _T("Database"), _T("MediaInfoSource"), szSettingFile, storing); + persistString(strStripWords, _T("Database"), _T("StripWords"), szSettingFile, storing); persistInt(iPlaylistProcess, _T("Playlist"), _T("Process"), szSettingFile, storing); persistBool(bConvertInPlaylist, _T("Playlist"), _T("ConvertPlaylist"), szSettingFile, storing); persistBool(bConvertInMusic, _T("Playlist"), _T("ConvertMusic"), szSettingFile, storing); Modified: trunk/frontend/easypmp/win32gui/processingdlg.h =================================================================== --- trunk/frontend/easypmp/win32gui/processingdlg.h 2006-06-04 05:18:21 UTC (rev 44) +++ trunk/frontend/easypmp/win32gui/processingdlg.h 2006-06-04 05:24:20 UTC (rev 45) @@ -266,6 +266,9 @@ // Set source of media information. opt.media_info_source = media_info_sources[m_preference.iMediaInfoSource]; + // Set a list of strip words. + easypmp_set_strip_words(&opt, CT2CW(m_preference.strStripWords)); + // Set Playlist conversion options. switch (m_preference.iPlaylistProcess) { case 1: opt.verb |= MODE_PLAYLIST; break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |