mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 15:25:45 -04:00
Initial community commit
This commit is contained in:
15
Src/Plugins/Library/ml_bookmarks/api__ml_bookmarks.h
Normal file
15
Src/Plugins/Library/ml_bookmarks/api__ml_bookmarks.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef NULLSOFT_API_ML_BOOKMARKS_H
|
||||
#define NULLSOFT_API_ML_BOOKMARKS_H
|
||||
|
||||
#include "api/service/waServiceFactory.h"
|
||||
|
||||
#include "../Agave/Language/api_language.h"
|
||||
|
||||
#include "../Winamp/api_stats.h"
|
||||
extern api_stats *statsApi;
|
||||
#define AGAVE_API_STATS statsApi
|
||||
|
||||
#include "api/application/api_application.h"
|
||||
#define WASABI_API_APP applicationApi
|
||||
|
||||
#endif // !NULLSOFT_API_ML_BOOKMARKS_H
|
32
Src/Plugins/Library/ml_bookmarks/bookmark.cpp
Normal file
32
Src/Plugins/Library/ml_bookmarks/bookmark.cpp
Normal file
@ -0,0 +1,32 @@
|
||||
/** (c) Nullsoft, Inc. C O N F I D E N T I A L
|
||||
** Filename:
|
||||
** Project:
|
||||
** Description:
|
||||
** Author:
|
||||
** Created:
|
||||
**/
|
||||
#include "bookmark.h"
|
||||
|
||||
BookmarkWriter::BookmarkWriter():fp(0)
|
||||
{
|
||||
}
|
||||
|
||||
void BookmarkWriter::Open(const wchar_t *filename)
|
||||
{
|
||||
fp=_wfopen(filename, L"a+t");
|
||||
}
|
||||
|
||||
void BookmarkWriter::New(const wchar_t *filename)
|
||||
{
|
||||
fp=_wfopen(filename, L"wt");
|
||||
}
|
||||
|
||||
void BookmarkWriter::Write(const char *filename, const char *title)
|
||||
{
|
||||
fprintf(fp,"%s\n%s\n",filename,title);
|
||||
}
|
||||
|
||||
void BookmarkWriter::Close()
|
||||
{
|
||||
if (fp) fclose(fp);
|
||||
}
|
18
Src/Plugins/Library/ml_bookmarks/bookmark.h
Normal file
18
Src/Plugins/Library/ml_bookmarks/bookmark.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef NULLSOFT_BOOKMARKH
|
||||
#define NULLSOFT_BOOKMARKH
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
class BookmarkWriter
|
||||
{
|
||||
public:
|
||||
BookmarkWriter();
|
||||
void New(const wchar_t *filename);
|
||||
void Open(const wchar_t *filename);
|
||||
void Write(const char *filename, const char *title);
|
||||
void Close();
|
||||
private:
|
||||
FILE *fp;
|
||||
};
|
||||
|
||||
#endif
|
128
Src/Plugins/Library/ml_bookmarks/listview.cpp
Normal file
128
Src/Plugins/Library/ml_bookmarks/listview.cpp
Normal file
@ -0,0 +1,128 @@
|
||||
/*
|
||||
** Copyright (C) 2003 Nullsoft, Inc.
|
||||
**
|
||||
** This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
|
||||
** liable for any damages arising from the use of this software.
|
||||
**
|
||||
** Permission is granted to anyone to use this software for any purpose, including commercial applications, and to
|
||||
** alter it and redistribute it freely, subject to the following restrictions:
|
||||
**
|
||||
** 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
|
||||
** If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||
**
|
||||
** 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||
**
|
||||
** 3. This notice may not be removed or altered from any source distribution.
|
||||
**
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "listview.h"
|
||||
|
||||
#ifdef GEN_ML_EXPORTS
|
||||
#include "main.h" // for getting the font
|
||||
#include "config.h"
|
||||
#endif
|
||||
// bp Comment: all the calls beginning "ListView_" are
|
||||
// MACROs defined in commctrl.h
|
||||
|
||||
void W_ListView :: AddCol (char *text, int w)
|
||||
{
|
||||
LVCOLUMN lvc={0,};
|
||||
lvc.mask = LVCF_TEXT|LVCF_WIDTH;
|
||||
lvc.pszText = text;
|
||||
if (w) lvc.cx=w;
|
||||
ListView_InsertColumn (m_hwnd, m_col, &lvc);
|
||||
m_col++;
|
||||
}
|
||||
|
||||
int W_ListView::GetColumnWidth (int col)
|
||||
{
|
||||
if (col < 0 || col >= m_col) return 0;
|
||||
return ListView_GetColumnWidth (m_hwnd, col);
|
||||
}
|
||||
|
||||
|
||||
int W_ListView::GetParam (int p)
|
||||
{
|
||||
LVITEM lvi={0,};
|
||||
lvi.mask = LVIF_PARAM;
|
||||
lvi.iItem = p;
|
||||
ListView_GetItem (m_hwnd, &lvi);
|
||||
return lvi.lParam;
|
||||
}
|
||||
|
||||
int W_ListView::InsertItem (int p, char *text, int param)
|
||||
{
|
||||
LVITEM lvi={0,};
|
||||
lvi.mask = LVIF_TEXT | LVIF_PARAM;
|
||||
lvi.iItem = p;
|
||||
lvi.pszText = text;
|
||||
lvi.cchTextMax=strlen (text);
|
||||
lvi.lParam = param;
|
||||
return ListView_InsertItem (m_hwnd, &lvi);
|
||||
}
|
||||
|
||||
|
||||
void W_ListView::SetItemText (int p, int si, char *text)
|
||||
{
|
||||
LVITEM lvi={0,};
|
||||
lvi.iItem = p;
|
||||
lvi.iSubItem = si;
|
||||
lvi.mask = LVIF_TEXT;
|
||||
lvi.pszText = text;
|
||||
lvi.cchTextMax = strlen (text);
|
||||
ListView_SetItem (m_hwnd, &lvi);
|
||||
}
|
||||
|
||||
void W_ListView::SetItemParam (int p, int param)
|
||||
{
|
||||
LVITEM lvi={0,};
|
||||
lvi.iItem = p;
|
||||
lvi.mask=LVIF_PARAM;
|
||||
lvi.lParam=param;
|
||||
ListView_SetItem (m_hwnd, &lvi);
|
||||
}
|
||||
|
||||
void W_ListView::refreshFont ()
|
||||
{
|
||||
if (m_font)
|
||||
{
|
||||
DeleteFont (m_font);
|
||||
SetWindowFont (m_hwnd, NULL, FALSE);
|
||||
}
|
||||
m_font = NULL;
|
||||
|
||||
HWND h;
|
||||
#ifdef GEN_ML_EXPORTS
|
||||
h=g_hwnd;
|
||||
#else
|
||||
h=m_libraryparent;
|
||||
#endif
|
||||
if (h && m_allowfonts)
|
||||
{
|
||||
int a=SendMessage (h, WM_USER+0x1000 /*WM_ML_IPC*/,66, 0x0600 /*ML_IPC_SKIN_WADLG_GETFUNC*/);
|
||||
if (a)
|
||||
{
|
||||
m_font= (HFONT)a;
|
||||
SetWindowFont (m_hwnd, m_font, FALSE);
|
||||
}
|
||||
}
|
||||
InvalidateRect (m_hwnd, NULL, TRUE);
|
||||
}
|
||||
|
||||
void W_ListView::setallowfonts (int allow)
|
||||
{
|
||||
m_allowfonts=allow;
|
||||
}
|
||||
|
||||
void W_ListView::setwnd (HWND hwnd)
|
||||
{
|
||||
m_hwnd = hwnd;
|
||||
if (hwnd)
|
||||
{
|
||||
ListView_SetExtendedListViewStyle (hwnd, LVS_EX_FULLROWSELECT|LVS_EX_UNDERLINEHOT );
|
||||
refreshFont ();
|
||||
}
|
||||
}
|
144
Src/Plugins/Library/ml_bookmarks/listview.h
Normal file
144
Src/Plugins/Library/ml_bookmarks/listview.h
Normal file
@ -0,0 +1,144 @@
|
||||
/*
|
||||
** Copyright (C) 2003 Nullsoft, Inc.
|
||||
**
|
||||
** This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
|
||||
** liable for any damages arising from the use of this software.
|
||||
**
|
||||
** Permission is granted to anyone to use this software for any purpose, including commercial applications, and to
|
||||
** alter it and redistribute it freely, subject to the following restrictions:
|
||||
**
|
||||
** 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
|
||||
** If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||
**
|
||||
** 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||
**
|
||||
** 3. This notice may not be removed or altered from any source distribution.
|
||||
**
|
||||
*/
|
||||
#if 0
|
||||
#ifndef _LISTVIEW_H_
|
||||
#define _LISTVIEW_H_
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
class W_ListView
|
||||
{
|
||||
public:
|
||||
W_ListView()
|
||||
{
|
||||
m_hwnd=NULL;
|
||||
m_col=0;
|
||||
m_allowfonts=1;
|
||||
m_font=NULL;
|
||||
#ifndef GEN_ML_EXPORTS
|
||||
m_libraryparent=NULL;
|
||||
#endif
|
||||
}
|
||||
W_ListView(HWND hwnd)
|
||||
{
|
||||
m_hwnd=NULL;
|
||||
m_col=0;
|
||||
m_allowfonts=1;
|
||||
m_font=NULL;
|
||||
#ifndef GEN_ML_EXPORTS
|
||||
m_libraryparent=NULL;
|
||||
#endif
|
||||
setwnd(hwnd);
|
||||
}
|
||||
~W_ListView()
|
||||
{
|
||||
if (m_font) DeleteFont(m_font);
|
||||
m_font=0;
|
||||
}
|
||||
|
||||
void refreshFont();
|
||||
|
||||
#ifndef GEN_ML_EXPORTS
|
||||
void setLibraryParentWnd(HWND hwndParent)
|
||||
{
|
||||
m_libraryparent=hwndParent;
|
||||
}// for Winamp Font getting stuff
|
||||
#endif
|
||||
void setallowfonts(int allow=1);
|
||||
void setwnd(HWND hwnd);
|
||||
void AddCol(char *text, int w);
|
||||
int GetCount(void)
|
||||
{
|
||||
return ListView_GetItemCount(m_hwnd);
|
||||
}
|
||||
int GetParam(int p);
|
||||
void DeleteItem(int n)
|
||||
{
|
||||
ListView_DeleteItem(m_hwnd,n);
|
||||
}
|
||||
void Clear(void)
|
||||
{
|
||||
ListView_DeleteAllItems(m_hwnd);
|
||||
}
|
||||
int GetSelected(int x)
|
||||
{
|
||||
return(ListView_GetItemState(m_hwnd, x, LVIS_SELECTED) & LVIS_SELECTED)?1:0;
|
||||
}
|
||||
|
||||
int GetSelectedCount()
|
||||
{
|
||||
return ListView_GetSelectedCount(m_hwnd);
|
||||
}
|
||||
|
||||
int GetSelectionMark()
|
||||
{
|
||||
return ListView_GetSelectionMark(m_hwnd);
|
||||
}
|
||||
void SetSelected(int x)
|
||||
{
|
||||
ListView_SetItemState(m_hwnd,x,LVIS_SELECTED,LVIS_SELECTED);
|
||||
}
|
||||
int InsertItem(int p, char *text, int param);
|
||||
void GetItemRect(int i, RECT *r)
|
||||
{
|
||||
ListView_GetItemRect(m_hwnd, i, r, LVIR_BOUNDS);
|
||||
}
|
||||
void SetItemText(int p, int si, char *text);
|
||||
void SetItemParam(int p, int param);
|
||||
|
||||
void GetText(int p, int si, char *text, int maxlen)
|
||||
{
|
||||
ListView_GetItemText(m_hwnd, p, si, text, maxlen);
|
||||
}
|
||||
int FindItemByParam(int param)
|
||||
{
|
||||
LVFINDINFO fi={LVFI_PARAM,0,param};
|
||||
return ListView_FindItem(m_hwnd,-1,&fi);
|
||||
}
|
||||
int FindItemByPoint(int x, int y)
|
||||
{
|
||||
int l=GetCount();
|
||||
for (int i=0;i<l;i++)
|
||||
{
|
||||
RECT r;
|
||||
GetItemRect(i, &r);
|
||||
if (r.left<=x && r.right>=x && r.top<=y && r.bottom>=y) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
int GetColumnWidth(int col);
|
||||
HWND getwnd(void)
|
||||
{
|
||||
return m_hwnd;
|
||||
}
|
||||
|
||||
protected:
|
||||
HWND m_hwnd;
|
||||
HFONT m_font;
|
||||
int m_col;
|
||||
int m_allowfonts;
|
||||
#ifndef GEN_ML_EXPORTS
|
||||
HWND m_libraryparent;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif//_LISTVIEW_H_
|
||||
|
||||
#endif
|
122
Src/Plugins/Library/ml_bookmarks/main.cpp
Normal file
122
Src/Plugins/Library/ml_bookmarks/main.cpp
Normal file
@ -0,0 +1,122 @@
|
||||
//#define PLUGIN_NAME "Nullsoft Bookmarks"
|
||||
#define PLUGIN_VERSION L"1.27"
|
||||
|
||||
#include "Main.h"
|
||||
#include "../nu/AutoWide.h"
|
||||
#include <strsafe.h>
|
||||
#include "../../General/gen_ml/menu.h"
|
||||
#include "../../General/gen_ml/ml_ipc_0313.h"
|
||||
|
||||
static int Init();
|
||||
static void Quit();
|
||||
|
||||
extern "C" winampMediaLibraryPlugin plugin =
|
||||
{
|
||||
MLHDR_VER,
|
||||
"nullsoft(ml_bookmarks.dll)",
|
||||
Init,
|
||||
Quit,
|
||||
bm_pluginMessageProc,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
};
|
||||
|
||||
int bookmark_treeItem = 0;
|
||||
HMENU g_context_menus, g_context_menus2;
|
||||
HCURSOR hDragNDropCursor;
|
||||
C_Config *g_config;
|
||||
WNDPROC waProc=0;
|
||||
|
||||
// wasabi based services for localisation support
|
||||
api_language *WASABI_API_LNG = 0;
|
||||
HINSTANCE WASABI_API_LNG_HINST = 0, WASABI_API_ORIG_HINST = 0;
|
||||
api_stats *AGAVE_API_STATS = 0;
|
||||
api_application *WASABI_API_APP = 0;
|
||||
|
||||
static DWORD WINAPI wa_newWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
if (msg == WM_WA_IPC && lParam == IPC_ADDBOOKMARK && wParam && wParam != 666)
|
||||
{
|
||||
bookmark_notifyAdd(AutoWide((char*)wParam));
|
||||
}
|
||||
else if (msg == WM_WA_IPC && lParam == IPC_ADDBOOKMARKW && wParam && wParam != 666)
|
||||
{
|
||||
bookmark_notifyAdd((wchar_t*)wParam);
|
||||
}
|
||||
else if ((msg == WM_COMMAND || msg == WM_SYSCOMMAND) && LOWORD(wParam) == WINAMP_EDIT_BOOKMARKS)
|
||||
{
|
||||
mediaLibrary.ShowMediaLibrary();
|
||||
mediaLibrary.SwitchToPluginView(bookmark_treeItem);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (waProc)
|
||||
return (DWORD)CallWindowProcW(waProc, hwnd, msg, wParam, lParam);
|
||||
else
|
||||
return (DWORD)DefWindowProc(hwnd, msg, wParam, lParam);
|
||||
}
|
||||
|
||||
int Init()
|
||||
{
|
||||
waProc = (WNDPROC)SetWindowLongPtrW( plugin.hwndWinampParent, GWLP_WNDPROC, (LONG_PTR)wa_newWndProc );
|
||||
|
||||
mediaLibrary.library = plugin.hwndLibraryParent;
|
||||
mediaLibrary.winamp = plugin.hwndWinampParent;
|
||||
mediaLibrary.instance = plugin.hDllInstance;
|
||||
|
||||
waServiceFactory *sf = plugin.service->service_getServiceByGuid( languageApiGUID );
|
||||
if ( sf )
|
||||
WASABI_API_LNG = reinterpret_cast<api_language *>( sf->getInterface() );
|
||||
|
||||
sf = plugin.service->service_getServiceByGuid( AnonymousStatsGUID );
|
||||
if ( sf )
|
||||
AGAVE_API_STATS = reinterpret_cast<api_stats *>( sf->getInterface() );
|
||||
|
||||
sf = plugin.service->service_getServiceByGuid( applicationApiServiceGuid );
|
||||
if ( sf )
|
||||
WASABI_API_APP = reinterpret_cast<api_application *>( sf->getInterface() );
|
||||
|
||||
// need to have this initialised before we try to do anything with localisation features
|
||||
WASABI_API_START_LANG( plugin.hDllInstance, MlBookmarkLangGUID );
|
||||
|
||||
static wchar_t szDescription[ 256 ];
|
||||
StringCchPrintfW( szDescription, ARRAYSIZE( szDescription ), WASABI_API_LNGSTRINGW( IDS_NULLSOFT_BOOKMARKS ), PLUGIN_VERSION );
|
||||
plugin.description = (char *)szDescription;
|
||||
|
||||
wchar_t inifile[ MAX_PATH ] = { 0 };
|
||||
mediaLibrary.BuildPath( L"Plugins", inifile, MAX_PATH );
|
||||
CreateDirectoryW( inifile, NULL );
|
||||
|
||||
mediaLibrary.BuildPath( L"Plugins\\gen_ml.ini", inifile, MAX_PATH );
|
||||
g_config = new C_Config( inifile );
|
||||
|
||||
g_context_menus = WASABI_API_LOADMENU( IDR_MENU1 );
|
||||
g_context_menus2 = WASABI_API_LOADMENU( IDR_MENU1 );
|
||||
hDragNDropCursor = LoadCursor( GetModuleHandle( L"gen_ml.dll" ), MAKEINTRESOURCE( ML_IDC_DRAGDROP ) );
|
||||
|
||||
NAVINSERTSTRUCT nis = { 0 };
|
||||
nis.item.cbSize = sizeof( NAVITEM );
|
||||
nis.item.pszText = WASABI_API_LNGSTRINGW( IDS_BOOKMARKS );
|
||||
nis.item.pszInvariant = L"Bookmarks";
|
||||
nis.item.mask = NIMF_TEXT | NIMF_TEXTINVARIANT | NIMF_IMAGE | NIMF_IMAGESEL;
|
||||
nis.item.iSelectedImage = nis.item.iImage = mediaLibrary.AddTreeImageBmp( IDB_TREEITEM_BOOKMARKS );
|
||||
|
||||
// map to item id (will probably have to change but is a quick port to support invariant item naming)
|
||||
NAVITEM nvItem = { sizeof( NAVITEM ),0,NIMF_ITEMID, };
|
||||
nvItem.hItem = MLNavCtrl_InsertItem( plugin.hwndLibraryParent, &nis );
|
||||
MLNavItem_GetInfo( plugin.hwndLibraryParent, &nvItem );
|
||||
bookmark_treeItem = nvItem.id;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Quit()
|
||||
{
|
||||
delete g_config;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) winampMediaLibraryPlugin *winampGetMediaLibraryPlugin()
|
||||
{
|
||||
return &plugin;
|
||||
}
|
28
Src/Plugins/Library/ml_bookmarks/main.h
Normal file
28
Src/Plugins/Library/ml_bookmarks/main.h
Normal file
@ -0,0 +1,28 @@
|
||||
#ifndef NULLSOFT_BOOKMARKS_MAIN_H
|
||||
#define NULLSOFT_BOOKMARKS_MAIN_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
|
||||
#include "api__ml_bookmarks.h"
|
||||
|
||||
#include "../Plugins/General/gen_ml/ml.h"
|
||||
#include "../nu/MediaLibraryInterface.h"
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#include "../winamp/wa_ipc.h"
|
||||
//#include "../Plugins/General/gen_ml/ml.h"
|
||||
#include "../Plugins/General/gen_ml/config.h"
|
||||
|
||||
|
||||
#define WINAMP_EDIT_BOOKMARKS 40320
|
||||
|
||||
INT_PTR bm_pluginMessageProc( int message_type, INT_PTR param1, INT_PTR param2, INT_PTR param3 );
|
||||
|
||||
extern winampMediaLibraryPlugin plugin;
|
||||
extern int bookmark_treeItem;
|
||||
|
||||
void bookmark_notifyAdd( wchar_t *filenametitle );
|
||||
|
||||
#endif // !NULLSOFT_BOOKMARKS_MAIN_H
|
186
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.rc
Normal file
186
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.rc
Normal file
@ -0,0 +1,186 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""version.rc2""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDR_MENU1 MENU
|
||||
BEGIN
|
||||
POPUP "BMWnd"
|
||||
BEGIN
|
||||
MENUITEM "Play selection\tEnter", ID_BMWND_PLAYSELECTEDFILES
|
||||
MENUITEM "Enqueue selection\tShift+Enter", ID_BMWND_ENQUEUESELECTEDFILES
|
||||
MENUITEM "Send to:", ID_BMWND_SENDTO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Select all\tCtrl+A", ID_BMWND_SELECTALL
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Remove selected bookmarks\tDel", ID_BMWND_REMOVESELECTEDBOOKMARKS
|
||||
MENUITEM "Edit selected bookmarks\tCtrl+E", ID_BMWND_EDITSELECTEDBOOKMARKS
|
||||
END
|
||||
POPUP "BMWndIcon"
|
||||
BEGIN
|
||||
MENUITEM "Play all bookmarks\tEnter", ID_BMWND_PLAYSELECTEDFILES
|
||||
MENUITEM "Enqueue all bookmarks\tShift+Enter", ID_BMWND_ENQUEUESELECTEDFILES
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Help", ID_BMWND_HELP
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_VIEW_BM DIALOGEX 0, 0, 186, 92
|
||||
STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
|
||||
EXSTYLE WS_EX_ACCEPTFILES | WS_EX_CONTROLPARENT
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
CONTROL "",IDC_LIST,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_TABSTOP,0,0,184,79
|
||||
CONTROL "Play",IDC_BUTTON_PLAY,"Button",BS_OWNERDRAW | WS_TABSTOP,0,81,35,11
|
||||
CONTROL "Enqueue",IDC_BUTTON_ENQUEUE,"Button",BS_OWNERDRAW | WS_TABSTOP,38,81,35,11
|
||||
CONTROL "Edit",IDC_EDITBOOK,"Button",BS_OWNERDRAW | WS_TABSTOP,76,81,36,11
|
||||
CONTROL "Delete",IDC_REMOVEBOOK,"Button",BS_OWNERDRAW | WS_TABSTOP,114,81,36,11
|
||||
END
|
||||
|
||||
IDD_EDITBOOKMARK DIALOGEX 0, 0, 241, 65
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Edit Bookmark"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "Title",IDC_STATIC,8,10,14,8,SS_CENTERIMAGE
|
||||
EDITTEXT IDC_TITLE,28,7,206,14,ES_AUTOHSCROLL
|
||||
LTEXT "File",IDC_STATIC,8,29,12,8,SS_CENTERIMAGE
|
||||
EDITTEXT IDC_FILE,28,26,187,14,ES_AUTOHSCROLL
|
||||
PUSHBUTTON "&...",IDC_EDIT_FN,218,25,16,15
|
||||
DEFPUSHBUTTON "&OK",IDOK,6,44,50,14
|
||||
PUSHBUTTON "&Cancel",IDCANCEL,60,44,50,14
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_EDITBOOKMARK, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 6
|
||||
RIGHTMARGIN, 234
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 58
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Bitmap
|
||||
//
|
||||
|
||||
IDB_TREEITEM_BOOKMARKS BITMAP "resources\\ti_bookmarks_16x16x16.bmp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Accelerator
|
||||
//
|
||||
|
||||
IDR_VIEW_BM_ACCELERATORS ACCELERATORS
|
||||
BEGIN
|
||||
"A", ID_BMWND_SELECTALL, VIRTKEY, CONTROL, NOINVERT
|
||||
"E", ID_BMWND_EDITSELECTEDBOOKMARKS, VIRTKEY, CONTROL, NOINVERT
|
||||
VK_DELETE, ID_BMWND_REMOVESELECTEDBOOKMARKS, VIRTKEY, NOINVERT
|
||||
VK_RETURN, ID_BMWND_PLAYSELECTEDFILES, VIRTKEY, NOINVERT
|
||||
VK_RETURN, ID_BMWND_ENQUEUESELECTEDFILES, VIRTKEY, SHIFT, NOINVERT
|
||||
VK_RETURN, IDC_BUTTON_CUSTOM, VIRTKEY, SHIFT, CONTROL, NOINVERT
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_NULLSOFT_BOOKMARKS "Nullsoft Bookmarks v%s"
|
||||
65535 "{A3A1E7C0-761B-4391-A08A-F0D7AF38931C}"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_BOOKMARKS "Bookmarks"
|
||||
IDS_ADD_TO_BOOKMARKS "Add to bookmarks"
|
||||
IDS_BOOKMARK_TITLE "Bookmark Title"
|
||||
IDS_BOOKMARK_FN_URL "Bookmark Filename/URL"
|
||||
IDS_BROWSE_FOR_BM_ENTRY "Browse for bookmark entry..."
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#include "version.rc2"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
30
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.sln
Normal file
30
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.sln
Normal file
@ -0,0 +1,30 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29509.3
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ml_bookmarks", "ml_bookmarks.vcxproj", "{24335E73-2704-466A-8265-4314DD99886A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Debug|x64.Build.0 = Debug|x64
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Release|Win32.Build.0 = Release|Win32
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Release|x64.ActiveCfg = Release|x64
|
||||
{24335E73-2704-466A-8265-4314DD99886A}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {91C2E933-BA43-4ADA-A8B4-B3A2E571BA11}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
317
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.vcxproj
Normal file
317
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.vcxproj
Normal file
@ -0,0 +1,317 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{24335E73-2704-466A-8265-4314DD99886A}</ProjectGuid>
|
||||
<RootNamespace>ml_bookmarks</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
<EmbedManifest>true</EmbedManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
<EmbedManifest>true</EmbedManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
<EmbedManifest>true</EmbedManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
<EmbedManifest>true</EmbedManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg">
|
||||
<VcpkgEnableManifest>false</VcpkgEnableManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgConfiguration>Debug</VcpkgConfiguration>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
<VcpkgConfiguration>Debug</VcpkgConfiguration>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;..\..\..\Wasabi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;WIN32;_DEBUG;_WINDOWS;_USRDLL;ML_BOOKMARKS_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ModuleDefinitionFile>
|
||||
</ModuleDefinitionFile>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\
|
||||
xcopy /Y /D $(IntDir)$(TargetName).pdb ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\ </Command>
|
||||
<Message>Post build event: 'xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\'</Message>
|
||||
</PostBuildEvent>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Manifest>
|
||||
<OutputManifestFile>$(IntDir)$(TargetName)$(TargetExt).intermediate.manifest</OutputManifestFile>
|
||||
</Manifest>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;..\..\..\Wasabi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;WIN64;_DEBUG;_WINDOWS;_USRDLL;ML_BOOKMARKS_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4302;4311;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\
|
||||
xcopy /Y /D $(IntDir)$(TargetName).pdb ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\ </Command>
|
||||
<Message>Post build event: 'xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\'</Message>
|
||||
</PostBuildEvent>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Manifest>
|
||||
<OutputManifestFile>$(IntDir)$(TargetName)$(TargetExt).intermediate.manifest</OutputManifestFile>
|
||||
</Manifest>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MinSpace</Optimization>
|
||||
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||
<AdditionalIncludeDirectories>.;..\..\..\Wasabi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;WIN32;NDEBUG;_WINDOWS;_USRDLL;ML_BOOKMARKS_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ModuleDefinitionFile>
|
||||
</ModuleDefinitionFile>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\ </Command>
|
||||
<Message>Post build event: 'xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\'</Message>
|
||||
</PostBuildEvent>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Manifest>
|
||||
<OutputManifestFile>$(IntDir)$(TargetName)$(TargetExt).intermediate.manifest</OutputManifestFile>
|
||||
</Manifest>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>MinSpace</Optimization>
|
||||
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||
<AdditionalIncludeDirectories>.;..\..\..\Wasabi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;WIN64;NDEBUG;_WINDOWS;_USRDLL;ML_BOOKMARKS_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4302;4311;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ModuleDefinitionFile>
|
||||
</ModuleDefinitionFile>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\ </Command>
|
||||
<Message>Post build event: 'xcopy /Y /D $(OutDir)$(TargetName)$(TargetExt) ..\..\..\..\Build\Winamp_$(PlatformShortName)_$(Configuration)\Plugins\'</Message>
|
||||
</PostBuildEvent>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;WINVER=0x0601;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Manifest>
|
||||
<OutputManifestFile>$(IntDir)$(TargetName)$(TargetExt).intermediate.manifest</OutputManifestFile>
|
||||
</Manifest>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\General\gen_ml\config.cpp" />
|
||||
<ClCompile Include="..\..\General\gen_ml\menu.cpp" />
|
||||
<ClCompile Include="..\..\..\nu\DialogSkinner.cpp" />
|
||||
<ClCompile Include="..\..\..\nu\listview.cpp" />
|
||||
<ClCompile Include="..\..\..\nu\MediaLibraryInterface.cpp" />
|
||||
<ClCompile Include="..\..\..\nu\menushortcuts.cpp" />
|
||||
<ClCompile Include="bookmark.cpp" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="view.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\General\gen_ml\config.h" />
|
||||
<ClInclude Include="..\..\General\gen_ml\menu.h" />
|
||||
<ClInclude Include="..\..\..\nu\DialogSkinner.h" />
|
||||
<ClInclude Include="..\..\..\nu\listview.h" />
|
||||
<ClInclude Include="..\..\..\nu\MediaLibraryInterface.h" />
|
||||
<ClInclude Include="..\..\..\nu\menushortcuts.h" />
|
||||
<ClInclude Include="api__ml_bookmarks.h" />
|
||||
<ClInclude Include="bookmark.h" />
|
||||
<ClInclude Include="main.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="ml_bookmarks.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="resources\ti_bookmarks_16x16x16.bmp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Wasabi\Wasabi.vcxproj">
|
||||
<Project>{3e0bfa8a-b86a-42e9-a33f-ec294f823f7f}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
100
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.vcxproj.filters
Normal file
100
Src/Plugins/Library/ml_bookmarks/ml_bookmarks.vcxproj.filters
Normal file
@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<ClCompile Include="view.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="bookmark.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\General\gen_ml\config.cpp">
|
||||
<Filter>Source Files\gen_ml</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\nu\DialogSkinner.cpp">
|
||||
<Filter>Source Files\nu</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\nu\listview.cpp">
|
||||
<Filter>Source Files\nu</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\nu\MediaLibraryInterface.cpp">
|
||||
<Filter>Source Files\nu</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\General\gen_ml\menu.cpp">
|
||||
<Filter>Source Files\gen_ml</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\nu\menushortcuts.cpp">
|
||||
<Filter>Source Files\nu</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="api__ml_bookmarks.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="bookmark.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="main.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="resource.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\General\gen_ml\config.h">
|
||||
<Filter>Header Files\gen_ml</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\nu\DialogSkinner.h">
|
||||
<Filter>Header Files\nu</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\nu\listview.h">
|
||||
<Filter>Header Files\nu</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\nu\MediaLibraryInterface.h">
|
||||
<Filter>Header Files\nu</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\General\gen_ml\menu.h">
|
||||
<Filter>Header Files\gen_ml</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\nu\menushortcuts.h">
|
||||
<Filter>Header Files\nu</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{b4c6c983-ad68-4d2d-a542-7f1bf6b1c155}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Ressource Files">
|
||||
<UniqueIdentifier>{f072eba6-51ff-4c40-b136-bf3c79f3e120}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{b04fff17-1af4-4d74-b609-169c1a32b097}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Image Files">
|
||||
<UniqueIdentifier>{56f5b459-ac0f-423d-b448-563135bf4bd8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files\gen_ml">
|
||||
<UniqueIdentifier>{f4c07660-d9f0-42b1-8745-0d6446aef60f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files\nu">
|
||||
<UniqueIdentifier>{d31d9efd-4434-46c5-8d2d-8a894aa24055}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\gen_ml">
|
||||
<UniqueIdentifier>{00b097a1-1383-414f-8c19-82f97c6d06a5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\nu">
|
||||
<UniqueIdentifier>{8eaf67d8-c524-468a-a78b-334c69d1cf9e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="ml_bookmarks.rc">
|
||||
<Filter>Ressource Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="resources\ti_bookmarks_16x16x16.bmp">
|
||||
<Filter>Image Files</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
</Project>
|
46
Src/Plugins/Library/ml_bookmarks/resource.h
Normal file
46
Src/Plugins/Library/ml_bookmarks/resource.h
Normal file
@ -0,0 +1,46 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by ml_bookmarks.rc
|
||||
//
|
||||
#define IDS_BOOKMARKS 1
|
||||
#define IDS_ADD_TO_BOOKMARKS 2
|
||||
#define IDS_BOOKMARK_TITLE 3
|
||||
#define IDS_BOOKMARK_FN_URL 4
|
||||
#define IDS_BROWSE_FOR_BM_ENTRY 5
|
||||
#define IDR_MENU1 101
|
||||
#define IDD_VIEW_BM 102
|
||||
#define IDD_EDITBOOKMARK 103
|
||||
#define IDC_CURSOR1 105
|
||||
#define IDB_BITMAP1 106
|
||||
#define IDR_VIEW_BM_ACCELERATORS 111
|
||||
#define IDC_BUTTON_CUSTOM 1000
|
||||
#define IDC_LIST 1001
|
||||
#define IDC_BUTTON_PLAY 1002
|
||||
#define IDC_BUTTON_ENQUEUE 1003
|
||||
#define IDB_TREEITEM_BOOKMARKS 1003
|
||||
#define IDC_EDITBOOK 1004
|
||||
#define IDC_REMOVEBOOK 1005
|
||||
#define IDC_TITLE 1006
|
||||
#define IDC_FILE 1008
|
||||
#define IDC_EDIT_FN 1009
|
||||
#define ID_BMWND_PLAYSELECTEDFILES 40001
|
||||
#define ID_BMWND_ENQUEUESELECTEDFILES 40002
|
||||
#define ID_BMWND_REMOVESELECTEDBOOKMARKS 40003
|
||||
#define ID_BMWND_EDITSELECTEDBOOKMARKS 40004
|
||||
#define ID_BMWND_SELECTALL 40005
|
||||
#define ID_Menu 40006
|
||||
#define ID_BMWNDICON_HELP 40007
|
||||
#define ID_BMWND_HELP 40008
|
||||
#define ID_BMWND_SENDTO 40012
|
||||
#define IDS_NULLSOFT_BOOKMARKS 65534
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 114
|
||||
#define _APS_NEXT_COMMAND_VALUE 40013
|
||||
#define _APS_NEXT_CONTROL_VALUE 1010
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
Binary file not shown.
After Width: | Height: | Size: 568 B |
39
Src/Plugins/Library/ml_bookmarks/version.rc2
Normal file
39
Src/Plugins/Library/ml_bookmarks/version.rc2
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
#include "../../../Winamp/buildType.h"
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,27,0,0
|
||||
PRODUCTVERSION WINAMP_PRODUCTVER
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Winamp SA"
|
||||
VALUE "FileDescription", "Winamp Media Library Plug-in"
|
||||
VALUE "FileVersion", "1,27,0,0"
|
||||
VALUE "InternalName", "Nullsoft Bookmarks"
|
||||
VALUE "LegalCopyright", "Copyright <20> 2003-2023 Winamp SA"
|
||||
VALUE "LegalTrademarks", "Nullsoft and Winamp are trademarks of Winamp SA"
|
||||
VALUE "OriginalFilename", "ml_bookmark.dll"
|
||||
VALUE "ProductName", "Winamp"
|
||||
VALUE "ProductVersion", STR_WINAMP_PRODUCTVER
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
1512
Src/Plugins/Library/ml_bookmarks/view.cpp
Normal file
1512
Src/Plugins/Library/ml_bookmarks/view.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user