id int64 0 755k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50,046 | unittest1.cpp | zhongyang219_MusicPlayer2/UnitTest/unittest1.cpp | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../MusicPlayer2/Define.h"
#include "../MusicPlayer2/Common.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
// TODO: 在此输入测试代码
CSize size = ... | 444 | C++ | .cpp | 19 | 19 | 62 | 0.67233 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
50,057 | LexLyric.cxx | zhongyang219_MusicPlayer2/scintilla/lexers/LexLyric.cxx | // Scintilla source code edit control
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
//用于解析LRC歌词
#include <stdlib.h>
#include <string>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <ctype... | 3,634 | C++ | .cxx | 99 | 29.535354 | 164 | 0.601088 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,091 | SpinEdit.h | zhongyang219_MusicPlayer2/MusicPlayer2/SpinEdit.h | #pragma once
// 这是一个带微调按钮的Edit控件,在CEdit右侧附加一个微调按钮,请预留空间
// CSpinEdit
class CSpinEdit : public CEdit
{
DECLARE_DYNAMIC(CSpinEdit)
public:
CSpinEdit();
virtual ~CSpinEdit();
void SetRange(short lower, short upper, short step = 1); // 设置文本框中的数值范围
void SetValue(int value); ... | 1,203 | C++ | .h | 30 | 31.1 | 83 | 0.667988 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,092 | PropertyAdvancedDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/PropertyAdvancedDlg.h | #pragma once
#include "IPropertyTabDlg.h"
#include "ListCtrlEx.h"
// CPropertyAdvancedDlg 对话框
class CPropertyAdvancedDlg : public CTabDlg, public IPropertyTabDlg
{
DECLARE_DYNAMIC(CPropertyAdvancedDlg)
public:
CPropertyAdvancedDlg(vector<SongInfo>& all_song_info, int& index, CWnd* pParent = nullptr); // 标准构造函数
... | 1,504 | C++ | .h | 42 | 29.833333 | 104 | 0.740269 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,093 | SetPathDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/SetPathDlg.h | #pragma once
#include "Common.h"
#include "RecentFolderMgr.h"
#include "ListCtrlEx.h"
#include "TabDlg.h"
#include "SearchEditCtrl.h"
// CSetPathDlg 对话框
// #define WM_PATH_SELECTED (WM_USER+107) 不再使用
class CSetPathDlg : public CTabDlg
{
DECLARE_DYNAMIC(CSetPathDlg)
public:
CSetPathDlg(CWnd* pParent = NULL); ... | 3,521 | C++ | .h | 80 | 34.6625 | 110 | 0.71623 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,094 | AudioCommon.h | zhongyang219_MusicPlayer2/MusicPlayer2/AudioCommon.h | //此类用于定义音频信息相关的全局函数
#pragma once
#include "SongInfo.h"
//音频文件类型
enum AudioType
{
AU_MP3,
AU_WMA_ASF,
AU_OGG,
AU_MP4,
AU_AAC,
AU_APE,
AU_AIFF,
AU_FLAC,
AU_CUE,
AU_MIDI,
AU_WAV,
AU_MPC,
AU_DSD,
AU_OPUS,
AU_WV,
AU_SPX,
AU_TTA,
AU_OTHER
};
//排序方式
enu... | 6,173 | C++ | .h | 142 | 28.457746 | 171 | 0.710109 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,095 | CoverDownloadCommon.h | zhongyang219_MusicPlayer2/MusicPlayer2/CoverDownloadCommon.h | #pragma once
#include "InternetCommon.h"
class CCoverDownloadCommon
{
public:
CCoverDownloadCommon();
~CCoverDownloadCommon();
static wstring GetAlbumCoverURL(const wstring& song_id); //根据一首歌曲的ID,获取专辑封面的链接
};
| 252 | C++ | .h | 9 | 22.222222 | 79 | 0.827586 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,096 | SelectItemDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/SelectItemDlg.h | #pragma once
#include "BaseDialog.h"
#include "CListBoxEnhanced.h"
// CSelectItemDlg 对话框
class CSelectItemDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CSelectItemDlg)
public:
CSelectItemDlg(const vector<wstring>& items, CWnd* pParent = nullptr); // 标准构造函数
virtual ~CSelectItemDlg();
// 对话框数据
#ifdef AFX_D... | 1,072 | C++ | .h | 33 | 28 | 86 | 0.741968 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,097 | AcceleratorRes.h | zhongyang219_MusicPlayer2/MusicPlayer2/AcceleratorRes.h | #pragma once
class CAcceleratorRes
{
public:
CAcceleratorRes();
~CAcceleratorRes();
struct Key
{
unsigned short key{};
bool ctrl{};
bool shift{};
bool alt{};
std::wstring ToString() const;
};
void Init();
std::wstring GetShortcutDescriptionById(UINT... | 419 | C++ | .h | 20 | 15.8 | 59 | 0.625 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,099 | LyricsWindow.h | zhongyang219_MusicPlayer2/MusicPlayer2/LyricsWindow.h | // ========================================================
// 文件:LyricsWindow.h
// 类名:CLyricsWindow
// 功能:歌词显示窗口
// 描述:使用GDIPlus绘制歌词
// 作者:邓学彬(泪闯天涯)
// ========================================================
// 接口说明
// Create 创建歌词窗口
// UpdateLyrics 更新歌词(歌词文本,高亮进度百分比)
// Draw 重画歌词窗口
// SetLyricsColor 设置歌词颜色
... | 5,766 | C++ | .h | 138 | 32.130435 | 148 | 0.752234 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,100 | RecentFolderMgr.h | zhongyang219_MusicPlayer2/MusicPlayer2/RecentFolderMgr.h | #pragma once
#include "AudioCommon.h"
//文件夹模式下一个文件夹的信息
struct PathInfo
{
wstring path; //路径
int track{}; //最后播放到的曲目号
int position{}; //最后播放到的位置
SortMode sort_mode{}; //路径中文件的排序方式
int track_num{}; //路径中音频文件的数量
int total_time{}; //路径中音频文件的总时间
bool contain_sub_folder{}; //是否包含子文件夹
u... | 2,603 | C++ | .h | 58 | 33.258621 | 156 | 0.687764 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,101 | ReverbDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/ReverbDlg.h | #pragma once
#include "TabDlg.h"
// CReverbDlg 对话框
class CReverbDlg : public CTabDlg
{
DECLARE_DYNAMIC(CReverbDlg)
public:
CReverbDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CReverbDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_REVERB_DIALOG };
#endif
protected:
CSliderCtrl m_rever... | 923 | C++ | .h | 27 | 28.111111 | 76 | 0.710623 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,103 | SoundEffectDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/SoundEffectDlg.h | #pragma once
#include "BaseDialog.h"
#include "EqualizerDlg.h"
#include "ReverbDlg.h"
#include "CTabCtrlEx.h"
// CSoundEffectDlg 对话框
class CSoundEffectDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CSoundEffectDlg)
public:
CSoundEffectDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CSoundEffectDlg();
// 对话框... | 946 | C++ | .h | 31 | 25.483871 | 70 | 0.727059 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,104 | TagLibHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/TagLibHelper.h | #pragma once
#include "SongInfo.h"
#include "taglib/id3v2tag.h"
//
class CTagLibHelper
{
public:
CTagLibHelper();
~CTagLibHelper();
static void SetWriteId3V2_3(bool write_id3v2_3); //设置是否写入ID3V2.3,否则写入ID2V2.4
//读专辑封面
static string GetM4aAlbumCover(const wstring& file_path, int& type);
stat... | 7,383 | C++ | .h | 110 | 60.472727 | 125 | 0.764039 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,105 | MenuMgr.h | zhongyang219_MusicPlayer2/MusicPlayer2/MenuMgr.h | #pragma once
#include "IconMgr.h"
class MenuMgr
{
public:
MenuMgr();
virtual ~MenuMgr();
HBITMAP GetMenuBitmapHandle(IconMgr::IconType icon_type);
const CBitmap* GetMenuBitmap(IconMgr::IconType icon_type);
private:
std::map<HICON, CBitmap> m_icon_bitmap_map;
public:
enum MenuType
{
... | 6,704 | C++ | .h | 99 | 43.40404 | 94 | 0.507429 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,106 | StrTable.h | zhongyang219_MusicPlayer2/MusicPlayer2/StrTable.h | #pragma once
#include "CVariant.h"
class StrTable
{
public:
StrTable();
~StrTable();
static const wstring error_str; // 键不存在时会返回此字符串常引用
struct LanguageInfo
{
wstring file_name; // ini文件名(与theApp.m_local_dir + L"language\\"拼接得到路径)
wstring display_name; // ... | 3,247 | C++ | .h | 52 | 43.288462 | 111 | 0.680016 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,107 | PlayerToolBar.h | zhongyang219_MusicPlayer2/MusicPlayer2/PlayerToolBar.h | #pragma once
#include "CommonData.h"
#include "IconMgr.h"
// CPlayerToolBar
// 自绘的工具栏
class CPlayerToolBar : public CStatic
{
DECLARE_DYNAMIC(CPlayerToolBar)
public:
CPlayerToolBar();
virtual ~CPlayerToolBar();
// 添加一个按钮,点击后执行一个命令
// IconMgr::IconType icon_type: 图标类型
// LPCTSTR strText: 图标右侧的文本
//... | 3,224 | C++ | .h | 73 | 33.315068 | 140 | 0.705487 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,108 | CMainDialogBase.h | zhongyang219_MusicPlayer2/MusicPlayer2/CMainDialogBase.h | #pragma once
class CMainDialogBase :
public CDialog
{
DECLARE_DYNAMIC(CMainDialogBase)
public:
CMainDialogBase(UINT nIDTemplate, CWnd *pParent = NULL);
~CMainDialogBase();
protected:
void SetFullScreen(bool full_screen); //设置窗口全屏(来自:https://www.cnblogs.com/weixinhum/p/3916673.html)
void ShowTitlebar(bool show)... | 659 | C++ | .h | 19 | 28.315789 | 101 | 0.774135 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,109 | CVariant.h | zhongyang219_MusicPlayer2/MusicPlayer2/CVariant.h | #pragma once
class CVariant
{
public:
CVariant(int value);
CVariant(size_t value);
CVariant(double value);
CVariant(LPCTSTR value);
CVariant(const CString& value);
CVariant(const wstring& value);
~CVariant();
CString ToString() const;
int ToInt() const;
double ToDouble() const;
bool ToBool() const;
privat... | 467 | C++ | .h | 22 | 19.090909 | 48 | 0.747706 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,110 | CortanaLyric.h | zhongyang219_MusicPlayer2/MusicPlayer2/CortanaLyric.h | #pragma once
#include "ColorConvert.h"
#include "MusicPlayer2.h"
#include "CUIDrawer.h"
#define LIGHT_MODE_SEARCH_BOX_BACKGROUND_COLOR RGB(240, 240, 240)
#define SEARCH_BOX_DEFAULT_TRANSPARENT_COLOR RGB(255, 0, 255)
class CCortanaLyric
{
public:
CCortanaLyric();
~CCortanaLyric();
void Init(); //初始化,获取Cort... | 3,331 | C++ | .h | 80 | 28.3375 | 71 | 0.702428 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,111 | DesktopLyric.h | zhongyang219_MusicPlayer2/MusicPlayer2/DesktopLyric.h | #pragma once
#include "LyricsWindow.h"
#include "CommonData.h"
#include "IniHelper.h"
#include "IconMgr.h"
struct LyricStyle
{
COLORREF color1 = 0;
COLORREF color2 = 0;
int gradient_mode = 0;
};
struct LyricStyleDefaultData //桌面歌词预设数据
{
LyricStyle normal_style;
LyricStyle highlight_style;
}... | 4,388 | C++ | .h | 113 | 31.159292 | 136 | 0.722848 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,112 | FolderExploreDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/FolderExploreDlg.h | #pragma once
#include "ListCtrlEx.h"
#include "SearchEditCtrl.h"
#include "TreeCtrlEx.h"
#include "MediaLibTabDlg.h"
#include "HorizontalSplitter.h"
// CFolderExploreDlg 对话框
class CFolderExploreDlg : public CMediaLibTabDlg
{
DECLARE_DYNAMIC(CFolderExploreDlg)
public:
CFolderExploreDlg(CWnd* pParent = nullpt... | 3,091 | C++ | .h | 75 | 33.773333 | 89 | 0.73095 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,113 | ChinesePingyinRes.h | zhongyang219_MusicPlayer2/MusicPlayer2/ChinesePingyinRes.h | #pragma once
#include <unordered_map>
#include <vector>
#include <string>
class CChinesePingyinRes
{
public:
CChinesePingyinRes();
~CChinesePingyinRes();
void Init();
static bool IsChineseCharactor(wchar_t ch);
//判断一个字符串是否匹配关键字,关键字支持直接匹配、拼音首字母和全拼匹配,但是只支持一种方式匹配,不支持混合匹配
bool IsStringMatchWithPin... | 613 | C++ | .h | 17 | 25.235294 | 99 | 0.759219 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,114 | MessageDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MessageDlg.h | #pragma once
#include "BaseDialog.h"
// CMessageDlg 对话框
class CMessageDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CMessageDlg)
public:
// 关于dialog_name参数,参考CBaseDialog::GetDialogName()
CMessageDlg(const wstring& dialog_name, CWnd* pParent = NULL);
virtual ~CMessageDlg();
// 设置窗口大小是否保存(默认不保存)
... | 1,649 | C++ | .h | 42 | 31.452381 | 104 | 0.699514 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,115 | RegFileRelate.h | zhongyang219_MusicPlayer2/MusicPlayer2/RegFileRelate.h | #pragma once
class CRegFileRelate
{
public:
CRegFileRelate();
~CRegFileRelate();
void SetModelPath(LPCTSTR model_path);
void SetAppName(LPCTSTR app_name);
//添加一个文件类型的关联
//file_ext: 要关联的文件扩展名
bool AddFileTypeRelate(LPCTSTR file_ext, LPCTSTR ico_path = nullptr, bool default_icon = false, LPC... | 937 | C++ | .h | 24 | 30.083333 | 128 | 0.744304 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,116 | IconMgr.h | zhongyang219_MusicPlayer2/MusicPlayer2/IconMgr.h | #pragma once
class IconMgr
{
public:
IconMgr();
virtual ~IconMgr();
enum IconType
{ // 命名以其(点击时的)功能为准
IT_App, // 应用图标
IT_App_Monochrome, // 应用图标(单色)
IT_Stop, // 停止
IT_Play, // 播放
IT_Pause, ... | 7,252 | C++ | .h | 158 | 30.575949 | 66 | 0.37792 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,117 | MediaLibItemPropertiesDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MediaLibItemPropertiesDlg.h | #pragma once
#include "SimplePropertiesDlg.h"
#include "ListCtrlEx.h"
#include "MediaLibPlaylistMgr.h"
// CMediaLibItemPropertiesDlg 对话框
class CMediaLibItemPropertiesDlg : public CSimplePropertiesDlg
{
DECLARE_DYNAMIC(CMediaLibItemPropertiesDlg)
public:
CMediaLibItemPropertiesDlg(const MediaLibPlaylistInfo& ... | 667 | C++ | .h | 21 | 27.857143 | 107 | 0.805511 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,118 | SimplePropertiesDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/SimplePropertiesDlg.h | #pragma once
#include "BaseDialog.h"
#include "ListCtrlEx.h"
// CSimplePropertiesDlg 对话框
class CSimplePropertiesDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CSimplePropertiesDlg)
public:
CSimplePropertiesDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CSimplePropertiesDlg();
// 对话框数据
#ifdef AFX_DE... | 1,098 | C++ | .h | 36 | 22.75 | 69 | 0.675186 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,119 | TabDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/TabDlg.h | //这是用于Tab标签中的子对话框类
#include "BaseDialog.h"
#pragma once
class CTabDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CTabDlg)
public:
CTabDlg(UINT nIDTemplate, CWnd *pParent = NULL);
~CTabDlg();
// 当标签切换到当前窗口时被调用
virtual void OnTabEntered() {}
// 当标签切换到当前窗口以外的窗口时被调用
virtual void OnTabExited() {}
... | 1,901 | C++ | .h | 39 | 33.435897 | 100 | 0.752817 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,120 | FilePathHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/FilePathHelper.h | #pragma once
class CFilePathHelper
{
public:
CFilePathHelper(const wstring& file_path);
CFilePathHelper(){}
~CFilePathHelper();
void SetFilePath(const wstring& file_path) { m_file_path = file_path; }
// 获取文件的扩展名(upper:是否大写; width_dot:是否包含“.”)
wstring GetFileExtension(bool upper = false, bool w... | 1,134 | C++ | .h | 30 | 25.933333 | 79 | 0.702517 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,121 | md5.h | zhongyang219_MusicPlayer2/MusicPlayer2/md5.h | #pragma once
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "Common.h"
typedef struct {
uint32_t state[4]; // Current accumulation of hash
uint32_t temp[64];
uint8_t buffer[128]; // Input to be used in the next step
uint16_t bufferLength;
size_t bytesHa... | 877 | C++ | .h | 30 | 26.233333 | 111 | 0.705813 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,122 | MediaLibHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/MediaLibHelper.h | #pragma once
#include "SongInfo.h"
#include "Common.h"
#define STR_OTHER_CLASSIFY_TYPE L"eRk0Q6ov"
//不区分大小写的字符串比较器
class StringComparerNoCase
{
public:
bool operator()(const std::wstring& a, const std::wstring& b) const
{
//std::wstring _a{ a }, _b{ b };
//CCommon::StringTransform(_a, false);
... | 1,584 | C++ | .h | 48 | 24.625 | 138 | 0.685022 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,123 | SimpleXML.h | zhongyang219_MusicPlayer2/MusicPlayer2/SimpleXML.h | //一个简易的XML解析的类
#pragma once
#include "Common.h"
class CSimpleXML
{
public:
CSimpleXML(const wstring& xml_path);
CSimpleXML();
~CSimpleXML();
void LoadXMLContentDirect(const wstring& xml_content) { m_xml_content = xml_content; }
wstring GetNode(const wchar_t* node, const wchar_t* parent) const;
wstring GetNode(... | 482 | C++ | .h | 16 | 26.875 | 87 | 0.773973 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,124 | TinyXml2Helper.h | zhongyang219_MusicPlayer2/MusicPlayer2/TinyXml2Helper.h | #pragma once
#include "tinyxml2/tinyxml2.h"
class CTinyXml2Helper
{
public:
//从文件读取XML内容
static bool LoadXmlFile(tinyxml2::XMLDocument& doc, const wchar_t* file_path);
//遍历一个XML节点
//fun: 一个函数对象,遍历到一个节点时被调用
static void IterateChildNode(tinyxml2::XMLElement* ele, std::function<void(tinyxml2::XMLEle... | 1,180 | C++ | .h | 20 | 41.65 | 108 | 0.76153 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,125 | CHotkeyManager.h | zhongyang219_MusicPlayer2/MusicPlayer2/CHotkeyManager.h | #pragma once
#include "CHotKey.h"
#include "IniHelper.h"
enum eHotKeyId
{
HK_PLAY_PAUSE = 1031,
HK_STOP,
HK_FF,
HK_REW,
HK_PREVIOUS,
HK_NEXT,
HK_VOLUME_UP,
HK_VOLUME_DOWN,
HK_EXIT,
HK_SHOW_HIDE_PLAYER,
HK_SHOW_HIDE_DESKTOP_LYRIC,
HK_ADD_TO_MY_FAVOURITE,
HK_MAX
};
class CHotkeyManager
{
public:
CHo... | 749 | C++ | .h | 36 | 18.694444 | 48 | 0.769886 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,126 | MusicPlayerDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MusicPlayerDlg.h |
// MusicPlayerDlg.h : 头文件
//
#pragma once
#include"PlayListCtrl.h"
#include"FindDlg.h"
#include"OptionsDlg.h"
#include"PropertyDlg.h"
#include"ColorConvert.h"
#include"MiniModeDlg.h"
#include"LyricEditDlg.h"
#include "LyricDownloadDlg.h"
#include "LyricBatchDownloadDlg.h"
#include "SoundEffectDlg.h"
#include "Cortana... | 20,502 | C++ | .h | 475 | 34.612632 | 135 | 0.733031 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,127 | ListCtrlEx.h | zhongyang219_MusicPlayer2/MusicPlayer2/ListCtrlEx.h | #pragma once
#include "ColorConvert.h"
//鼠标拖动完成向父窗口发送此消息,通过wPara传递拖放结束的位置
//注意,执行拖动操作后列表项目的位置不会改变,需要在响应此消息后手动刷新列表
#define WM_LIST_ITEM_DRAGGED (WM_USER+121)
class CListCtrlEx :
public CListCtrl
{
DECLARE_DYNAMIC(CListCtrlEx)
public:
CListCtrlEx();
~CListCtrlEx();
//void SetColor(const ColorTable&... | 3,801 | C++ | .h | 69 | 39.478261 | 121 | 0.729675 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,128 | RecentFolderAndPlaylist.h | zhongyang219_MusicPlayer2/MusicPlayer2/RecentFolderAndPlaylist.h | #pragma once
#include "AudioCommon.h"
#include "PlaylistMgr.h"
#include "MediaLibPlaylistMgr.h"
#include "RecentFolderMgr.h"
#include "IconMgr.h"
class CRecentFolderAndPlaylist
{
public:
static CRecentFolderAndPlaylist& Instance();
struct Item
{
enum Type
{
FOLDER,
... | 1,672 | C++ | .h | 48 | 25.041667 | 68 | 0.671983 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,129 | crashtool.h | zhongyang219_MusicPlayer2/MusicPlayer2/crashtool.h | #pragma once
namespace CRASHREPORT
{
/**@brief
开启dmup模式
开启后,当程序崩溃时,会生成一个dump文件,该文件在C:\Users\<用户名>\AppData\Local\Temp目录
文件名格式:崩溃时间_程序名称.exe.dmp
如下
20150116174802_CrashShare.exe.dmp
*/
void StartCrashReport();
} | 361 | C++ | .h | 12 | 16.5 | 70 | 0.66 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,130 | MyComboBox.h | zhongyang219_MusicPlayer2/MusicPlayer2/MyComboBox.h | #pragma once
class CMyComboBox : public CComboBox
{
DECLARE_DYNAMIC(CMyComboBox)
public:
CMyComboBox();
virtual ~CMyComboBox();
void SetReadOnly(bool read_only = true);
void SetEditReadOnly(bool read_only = true);
CEdit* GetEditCtrl();
CString GetText();
void ResetModified();
void SetModify();
... | 839 | C++ | .h | 27 | 26.407407 | 83 | 0.750656 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,131 | PropertyAlbumCoverDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/PropertyAlbumCoverDlg.h | #pragma once
#include "TabDlg.h"
#include "ListCtrlEx.h"
#include "IPropertyTabDlg.h"
// CPropertyAlbumCoverDlg 对话框
class CPropertyAlbumCoverDlg : public CTabDlg, public IPropertyTabDlg
{
DECLARE_DYNAMIC(CPropertyAlbumCoverDlg)
public:
CPropertyAlbumCoverDlg(vector<SongInfo>& all_song_info, int& index, bool... | 3,566 | C++ | .h | 82 | 33.012195 | 168 | 0.696375 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,132 | FolderBrowserDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/FolderBrowserDlg.h | #pragma once
class CFolderBrowserDlg
{
public:
CFolderBrowserDlg(HWND hParent);
~CFolderBrowserDlg();
CString GetPathName() { return m_path; }
void SetInfo(const CString& info) { m_info = info; }
int DoModal();
protected:
HWND m_hParent;
CString m_path;
CString m_info;
};
| 287 | C++ | .h | 14 | 18.5 | 53 | 0.7603 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,133 | CPlayerUIHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/CPlayerUIHelper.h | #pragma once
#include "ColorConvert.h"
struct UIColors //界面颜色
{
COLORREF color_text; //文本颜色
COLORREF color_text_lable; //标签文本的颜色
COLORREF color_text_2; //歌词未播放文本的颜色
COLORREF color_text_heighlight; //鼠标指向时文本的颜色
COLORREF color_back; //背景颜色
COLORREF color_lyric_back; //歌词界面背景颜色
... | 1,371 | C++ | .h | 30 | 32.033333 | 97 | 0.72823 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,135 | MoreRecentItemDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MoreRecentItemDlg.h | #pragma once
#include "BaseDialog.h"
#include "CListBoxEnhanced.h"
#include "SearchEditCtrl.h"
#include "RecentFolderAndPlaylist.h"
// CMoreRecentItemDlg 对话框
class CMoreRecentItemDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CMoreRecentItemDlg)
public:
CMoreRecentItemDlg(CWnd* pParent = nullptr); // 标准构造函数
... | 1,719 | C++ | .h | 47 | 31.659574 | 73 | 0.75187 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,136 | WmaEncodeCfgDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/WmaEncodeCfgDlg.h | #pragma once
#include "BaseDialog.h"
#include "IPlayerCore.h"
// CWmaEncodeCfgDlg 对话框
class CWmaEncodeCfgDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CWmaEncodeCfgDlg)
public:
CWmaEncodeCfgDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CWmaEncodeCfgDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD... | 1,148 | C++ | .h | 34 | 28.735294 | 79 | 0.748351 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,137 | SearchEditCtrl.h | zhongyang219_MusicPlayer2/MusicPlayer2/SearchEditCtrl.h | #pragma once
#include "ColorConvert.h"
// CSearchEditCtrl
#define WM_SEARCH_EDIT_BTN_CLICKED (WM_USER+125)
class CSearchEditCtrl : public CMFCEditBrowseCtrl
{
DECLARE_DYNAMIC(CSearchEditCtrl)
public:
CSearchEditCtrl();
virtual ~CSearchEditCtrl();
virtual void OnBrowse() override;
virtual void OnDrawBrow... | 1,167 | C++ | .h | 32 | 30.65625 | 109 | 0.758852 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,138 | SongInfoHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/SongInfoHelper.h | #pragma once
#include "SongInfo.h"
#include "CommonData.h"
class CSongInfoHelper
{
public:
static CString GetBitrateString(const SongInfo& song);
static wstring GetChannelsString(BYTE channels);
static CString GetFreqString(const SongInfo& song);
static CString GetBitsString(const SongInfo& song);
... | 889 | C++ | .h | 22 | 33.727273 | 135 | 0.749389 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,139 | MciCore.h | zhongyang219_MusicPlayer2/MusicPlayer2/MciCore.h | #pragma once
#include "IPlayerCore.h"
#include "DllLib.h"
class CMciCore :
public IPlayerCore, public CDllLib
{
typedef DWORD MCIERROR; /* error return code, 0 means no error */
//使用动态加载的方式加载MCI的API,如果没有使用MCI内核,则不加载
typedef MCIERROR(WINAPI *_mciSendStringW)(LPCWSTR lpstrCommand, LPWSTR lpstrRe... | 3,023 | C++ | .h | 64 | 41.671875 | 173 | 0.753031 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,140 | LyricRelateDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/LyricRelateDlg.h | #pragma once
#include "ListCtrlEx.h"
#include "BaseDialog.h"
// CLyricRelateDlg 对话框
class CLyricRelateDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CLyricRelateDlg)
public:
CLyricRelateDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CLyricRelateDlg();
//wstring GetRelatedLyricFile() const { return m_related... | 1,444 | C++ | .h | 40 | 30.675 | 83 | 0.733232 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,141 | FlacEncodeCfgDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/FlacEncodeCfgDlg.h | #pragma once
#include "BaseDialog.h"
#include "IPlayerCore.h"
// CFlacEncodeCfgDlg 对话框
class CFlacEncodeCfgDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CFlacEncodeCfgDlg)
public:
CFlacEncodeCfgDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CFlacEncodeCfgDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum... | 1,004 | C++ | .h | 31 | 27.741935 | 72 | 0.752155 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,142 | Player.h | zhongyang219_MusicPlayer2/MusicPlayer2/Player.h | #pragma once
#include"Common.h"
#include"Lyric.h"
#include"AudioTag.h"
#include "FilePathHelper.h"
#include "BASSMidiLibrary.h"
#include "GaussBlur.h"
#include "PlaylistMgr.h"
#include "IPlayerCore.h"
#include "BassCore.h"
#include "SpectralDataHelper.h"
#include "MediaTransControls.h"
#include "MediaLibHelper.h"
#incl... | 28,129 | C++ | .h | 501 | 35.095808 | 198 | 0.690357 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,143 | CListBoxEnhanced.h | zhongyang219_MusicPlayer2/MusicPlayer2/CListBoxEnhanced.h | #pragma once
#include "ListCtrlEx.h"
#define WM_LISTBOX_SEL_CHANGED (WM_USER+116)
class CListBoxEnhanced :
public CListCtrlEx
{
public:
CListBoxEnhanced();
~CListBoxEnhanced();
void AddString(LPCTSTR str);
CString GetItemText(int index);
virtual bool DeleteItem(int nItem) override;
protected:
virtual v... | 736 | C++ | .h | 20 | 30.15 | 136 | 0.778309 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,144 | CleanupRangeDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/CleanupRangeDlg.h | #pragma once
#include "BaseDialog.h"
#include "CListBoxEnhanced.h"
// CCleanupRangeDlg 对话框
class CCleanupRangeDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CCleanupRangeDlg)
public:
CCleanupRangeDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CCleanupRangeDlg();
bool IsCleanFileNotExist() const { return m_c... | 1,515 | C++ | .h | 39 | 34.641026 | 103 | 0.744413 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,145 | FileNameFormDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/FileNameFormDlg.h | #pragma once
#include "TagSelBaseDlg.h"
// CFileNameFormDlg 对话框
class CFileNameFormDlg : public CTagSelBaseDlg
{
DECLARE_DYNAMIC(CFileNameFormDlg)
public:
CFileNameFormDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CFileNameFormDlg();
protected:
virtual CString GetDialogName() const;
virtual ... | 524 | C++ | .h | 17 | 26.117647 | 69 | 0.762605 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,146 | IPropertyTabDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/IPropertyTabDlg.h | #pragma once
#include "TabDlg.h"
class IPropertyTabDlg
{
public:
IPropertyTabDlg() {}
virtual ~IPropertyTabDlg() {}
virtual int SaveModified() = 0;
virtual void PagePrevious() = 0;
virtual void PageNext() = 0;
};
| 235 | C++ | .h | 11 | 18.363636 | 36 | 0.693694 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,147 | MusicPlayerCmdHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/MusicPlayerCmdHelper.h | #pragma once
#include "SongInfo.h"
#include "FormatConvertDlg.h"
#include "RecentFolderAndPlaylist.h"
class CMusicPlayerCmdHelper
{
public:
CMusicPlayerCmdHelper(CWnd* pOwner = nullptr);
~CMusicPlayerCmdHelper();
void VeiwOnline(SongInfo& song);
//执行“在线查看”的线程函数,lpParam为SongInfo类型的指针,必须确保线程结束前指针不会被析构
... | 5,777 | C++ | .h | 100 | 40.7 | 159 | 0.743842 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,149 | GaussBlur.h | zhongyang219_MusicPlayer2/MusicPlayer2/GaussBlur.h | //实现高斯模糊的类,算法来自:http://www.cnblogs.com/hoodlum1980/p/4528486.html
#pragma once
class CGaussBlurThreadParams
{
public:
int r;
double* pTempl;
LPBYTE pSrc; //Src 位图的位图数据起点 (对所有线程,pSrc,pDest 是相同的)
LPBYTE pDest; //Dest 位图的位图数据起点
int width; //图像宽度
int height; //图像高度(已经被取绝对值)
//处理的行范围:[rowBegin, rowEnd) ,不包括 row... | 1,288 | C++ | .h | 34 | 27.088235 | 100 | 0.751059 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,150 | IPlayerCore.h | zhongyang219_MusicPlayer2/MusicPlayer2/IPlayerCore.h | #pragma once
#include "SongInfo.h"
struct MidiInfo
{
int midi_position;
int midi_length;
int speed; //速度,bpm
int tempo; //每个四分音符的微秒数
float ppqn;
};
enum AudioInfoFlag
{
AF_LENGTH = 1,
AF_BITRATE = 2,
AF_TAG_INFO = 4,
AF_CHANNEL_INFO = 8,
AF_ALL = AF_LENGTH | AF_BITRATE | AF_... | 7,145 | C++ | .h | 136 | 36.75 | 168 | 0.653718 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,151 | PlayerProgressBar.h | zhongyang219_MusicPlayer2/MusicPlayer2/PlayerProgressBar.h | #pragma once
#include "ColorConvert.h"
// CPlayerProgressBar
class CPlayerProgressBar : public CStatic
{
DECLARE_DYNAMIC(CPlayerProgressBar)
public:
CPlayerProgressBar();
virtual ~CPlayerProgressBar();
void SetProgress(int progress);
void SetBackgroundColor(COLORREF back_color);
void SetBarCount(int ... | 579 | C++ | .h | 21 | 23.619048 | 49 | 0.746692 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,152 | MenuEditCtrl.h | zhongyang219_MusicPlayer2/MusicPlayer2/MenuEditCtrl.h | #pragma once
#include "ColorConvert.h"
// CMenuEditCtrl
class CMenuEditCtrl : public CMFCEditBrowseCtrl
{
DECLARE_DYNAMIC(CMenuEditCtrl)
public:
CMenuEditCtrl();
virtual ~CMenuEditCtrl();
void SetTooltopText(const CString& tooltip_text); //设置按钮上鼠标提示的文本
virtual void OnBrowse() override;
... | 1,068 | C++ | .h | 29 | 30.310345 | 109 | 0.751848 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,154 | RenameDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/RenameDlg.h | #pragma once
#include "TagSelBaseDlg.h"
// CRenameDlg 对话框
class CRenameDlg : public CTagSelBaseDlg
{
DECLARE_DYNAMIC(CRenameDlg)
public:
CRenameDlg(int file_num, CWnd* pParent = nullptr); // 标准构造函数
virtual ~CRenameDlg();
protected:
virtual CString GetDialogName() const;
virtual bool InitializeC... | 598 | C++ | .h | 19 | 25.052632 | 69 | 0.738281 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,155 | UIWindowCmdHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/UIWindowCmdHelper.h | #pragma once
#include "UIElement.h"
class CUIWindowCmdHelper
{
public:
CUIWindowCmdHelper(UiElement::Element* sender);
void OnUiCommand(DWORD command);
void SetMenuState(CMenu* pMenu);
private:
void OnMediaLibItemListCommand(UiElement::MediaLibItemList* medialib_item_list, DWORD command);
void OnR... | 1,624 | C++ | .h | 31 | 48.16129 | 101 | 0.80694 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,156 | TestDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/TestDlg.h | #pragma once
#include "BaseDialog.h"
#include "PlayerToolBar.h"
#include "PlayerProgressBar.h"
#include "BrowseEdit.h"
#include "ListCtrlEx.h"
// CTestDlg 对话框
class CTestDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CTestDlg)
public:
CTestDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CTestDlg();
// 对话... | 1,014 | C++ | .h | 37 | 22.945946 | 69 | 0.729817 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,157 | FindDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/FindDlg.h | #pragma once
#include "AudioCommon.h"
#include "ListCtrlEx.h"
#include "Common.h"
#include "BaseDialog.h"
// CFindDlg 对话框
class CFindDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CFindDlg)
public:
CFindDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CFindDlg();
//wstring m_config_path;
// 根据多选索引m... | 3,494 | C++ | .h | 89 | 30.707865 | 115 | 0.709402 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,158 | CDonateDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/CDonateDlg.h | #pragma once
#include "BaseDialog.h"
// CDonateDlg 对话框
class CDonateDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CDonateDlg)
public:
CDonateDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CDonateDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DONATE_DIALOG };
#endif
private:
CRect m_pi... | 739 | C++ | .h | 26 | 23.807692 | 70 | 0.730253 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,159 | UiSearchBox.h | zhongyang219_MusicPlayer2/MusicPlayer2/UiSearchBox.h | #pragma once
#include "afxdialogex.h"
#include "SearchEditCtrl.h"
// CUiSearchBox 对话框
namespace UiElement
{
class SearchBox;
}
class CUiSearchBox : public CDialog
{
DECLARE_DYNAMIC(CUiSearchBox)
public:
CUiSearchBox(CWnd* pParent); // 标准构造函数
void Create();
virtual ~CUiSearchBox();
void Show(UiEleme... | 1,244 | C++ | .h | 39 | 25.512821 | 103 | 0.739791 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,160 | BaseDialog.h | zhongyang219_MusicPlayer2/MusicPlayer2/BaseDialog.h | #pragma once
#include "IconMgr.h"
// CBaseDialog 对话框
class CBaseDialog : public CDialog
{
DECLARE_DYNAMIC(CBaseDialog)
public:
CBaseDialog(UINT nIDTemplate, CWnd* pParent = NULL); // 标准构造函数
virtual ~CBaseDialog();
// 复制自CDialogEx,与其功能相同(新增滑动条控件和超链接控件的处理)
void SetBackgroundColor(COLORREF color,... | 5,165 | C++ | .h | 76 | 42.434211 | 130 | 0.699972 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,161 | CListenTimeStatisticsDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/CListenTimeStatisticsDlg.h | #pragma once
#include "BaseDialog.h"
#include "ListCtrlEx.h"
// CListenTimeStatisticsDlg 对话框
class CListenTimeStatisticsDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CListenTimeStatisticsDlg)
public:
CListenTimeStatisticsDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CListenTimeStatisticsDlg();
// 对话框数据
#ifdef ... | 1,311 | C++ | .h | 48 | 22.3125 | 70 | 0.719803 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,162 | CDevicesManager.h | zhongyang219_MusicPlayer2/MusicPlayer2/CDevicesManager.h | #pragma once
class CMMNotificationClient;
struct IMMDeviceEnumerator;
struct IMMDevice;
class CDevicesManager
{
public:
CDevicesManager(void);
~CDevicesManager(void);
HRESULT InitializeDeviceEnumerator();
void ReleaseDeviceEnumerator();
void DefaultMultimediaDeviceChanged();
friend class CMM... | 423 | C++ | .h | 17 | 21.529412 | 42 | 0.81407 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,163 | EditStringListDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/EditStringListDlg.h | #pragma once
#include "BaseDialog.h"
#include "EditableListBox.h"
// CEditStringListDlg 对话框
class CEditStringListDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CEditStringListDlg)
public:
CEditStringListDlg(vector<wstring>& items, CWnd* pParent = nullptr); // 标准构造函数
virtual ~CEditStringListDlg();
void... | 955 | C++ | .h | 30 | 27.266667 | 84 | 0.744898 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,164 | AudioTag.h | zhongyang219_MusicPlayer2/MusicPlayer2/AudioTag.h | #pragma once
#include "AudioCommon.h"
class CAudioTag
{
public:
CAudioTag(SongInfo& song_info, HSTREAM hStream = 0); //获取的标签信息保存在song_info中,hStream用来判断音频类型,非必须
CAudioTag(SongInfo& song_info, AudioType type);
CAudioTag(const wstring& file_path);
~CAudioTag();
//获取音频文件的标签信息,结果保存在构造函数传递进来的SongI... | 2,656 | C++ | .h | 54 | 32 | 108 | 0.743724 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,165 | LastFMDataArchive.h | zhongyang219_MusicPlayer2/MusicPlayer2/LastFMDataArchive.h | #pragma once
#include "SongInfo.h"
class LastFMTrack {
public:
/// The artist name.
wstring artist;
/// The track name.
wstring track;
/// The time the track started playing, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must... | 2,056 | C++ | .h | 50 | 34.56 | 173 | 0.676647 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,166 | AddToPlaylistDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/AddToPlaylistDlg.h | #pragma once
#include "BaseDialog.h"
#include "CListBoxEnhanced.h"
#include "SearchEditCtrl.h"
// CAddToPlaylistDlg 对话框
class CAddToPlaylistDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CAddToPlaylistDlg)
public:
CAddToPlaylistDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CAddToPlaylistDlg();
// 对话框数据
#ifdef ... | 1,339 | C++ | .h | 38 | 30.184211 | 73 | 0.748562 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,167 | HorizontalSplitter.h | zhongyang219_MusicPlayer2/MusicPlayer2/HorizontalSplitter.h | #pragma once
//来自 https://blog.csdn.net/mary288267/article/details/123483656
// CHorizontalSpliter
//用于响应布局变化的回调函数,调用RegAdjustLayoutCallBack以注册此回调函数
//rect 分割条的矩形区域
typedef void(*pfAdjustLayout)(CRect rect);
class CHorizontalSplitter : public CStatic
{
DECLARE_DYNAMIC(CHorizontalSplitter)
public:
CHorizontalSplit... | 1,975 | C++ | .h | 46 | 29.326087 | 78 | 0.774457 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,168 | LastFM.h | zhongyang219_MusicPlayer2/MusicPlayer2/LastFM.h | #pragma once
#include "LastFMDataArchive.h"
/// Can be obtained from https://www.last.fm/api/accounts/create
#define LASTFM_API_KEY L"f2e8f3d36d2de514acc2b072762bb732"
#define LASTFM_SHARED_SECRET L"a6b6804e2bc3a60732ac9c5719c52494"
class LastFM {
public:
LastFM();
~LastFM();
void SaveData(wstring path) {
... | 1,728 | C++ | .h | 52 | 28.192308 | 75 | 0.732034 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,169 | InputDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/InputDlg.h | #pragma once
#include "BaseDialog.h"
// CInputDlg 对话框
class CInputDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CInputDlg)
public:
CInputDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CInputDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_INPUT_DLG };
#endif
void SetTitle(LPCTSTR strTitle);
voi... | 811 | C++ | .h | 30 | 22.933333 | 66 | 0.747967 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,170 | CTest.h | zhongyang219_MusicPlayer2/MusicPlayer2/CTest.h | #pragma once
//用于测试的代码
class CTest
{
public:
CTest();
~CTest();
static void Test();
private:
static void TestStringMatch();
static void TestCrash();
static void TestShortCut();
static void TestCommon();
static void TestOSUFile();
static void TestReg();
static void TestMediaLib();
static void Test... | 664 | C++ | .h | 27 | 20.740741 | 42 | 0.73539 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,171 | Playlist.h | zhongyang219_MusicPlayer2/MusicPlayer2/Playlist.h | #pragma once
#include "SongInfo.h"
class CPlaylistFile
{
public:
enum Type //播放列表格式
{
PL_PLAYLIST, //MusicPlayer2播放列表
PL_M3U, //m3u播放列表
PL_M3U8 //m3u8播放列表
};
CPlaylistFile();
~CPlaylistFile();
void LoadFromFile(const wstring& file_path);
... | 1,357 | C++ | .h | 33 | 33.30303 | 121 | 0.719967 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,172 | FfmpegCore.h | zhongyang219_MusicPlayer2/MusicPlayer2/FfmpegCore.h | #pragma once
#include "IPlayerCore.h"
#include "DllLib.h"
#define AV_LOG_ERROR 16
#define AV_LOG_INFO 32
#define AV_LOG_VERBOSE 40
#define AV_LOG_SKIP_REPEATED 1
#define AV_LOG_PRINT_LEVEL 2
#define FFMPEG_CORE_VERSION(major, minor, micro, rev) (((int32_t)major << 24) | ((int32_t)minor << 16) | ((int32_t)micro << 8) |... | 11,443 | C++ | .h | 198 | 54.247475 | 173 | 0.755716 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,174 | LyricEditDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/LyricEditDlg.h | #pragma once
#include "Time.h"
#include "EditEx.h"
#include "BaseDialog.h"
#include "ScintillaEditView.h"
#include "Lyric.h"
const int WM_FINDREPLACE = ::RegisterWindowMessage(FINDMSGSTRING); //将FINDMSGSTRING注册为WM_FINDREPLACE消息
// CLyricEditDlg 对话框
class CLyricEditDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CLyri... | 4,111 | C++ | .h | 102 | 32.294118 | 102 | 0.720044 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,175 | FileRelateDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/FileRelateDlg.h | #pragma once
#include "BaseDialog.h"
#include "ListCtrlEx.h"
// CFileRelateDlg 对话框
class CFileRelateDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CFileRelateDlg)
public:
CFileRelateDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CFileRelateDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_FILE_RELATE_DIA... | 786 | C++ | .h | 27 | 25.111111 | 66 | 0.76257 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,176 | CTabCtrlEx.h | zhongyang219_MusicPlayer2/MusicPlayer2/CTabCtrlEx.h | #pragma once
#include "IconMgr.h"
// CTabCtrlEx
class CTabCtrlEx : public CTabCtrl
{
DECLARE_DYNAMIC(CTabCtrlEx)
public:
CTabCtrlEx();
virtual ~CTabCtrlEx();
void AddWindow(CWnd* pWnd, LPCTSTR lable_text, IconMgr::IconType icon_type); //向当前tab控件添加一个子窗口
void SetCurTab(int index);
CWnd* GetCurrentTab()... | 843 | C++ | .h | 27 | 25.259259 | 101 | 0.745505 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,177 | PlaylistPropertiesDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/PlaylistPropertiesDlg.h | #pragma once
#include "SimplePropertiesDlg.h"
#include "ListCtrlEx.h"
#include "PlaylistMgr.h"
// CPlaylistPropertiesDlg 对话框
class CPlaylistPropertiesDlg : public CSimplePropertiesDlg
{
DECLARE_DYNAMIC(CPlaylistPropertiesDlg)
public:
CPlaylistPropertiesDlg(const PlaylistInfo& playlist_info, CWnd* pParent = n... | 631 | C++ | .h | 21 | 26.142857 | 99 | 0.79346 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,178 | CHotKey.h | zhongyang219_MusicPlayer2/MusicPlayer2/CHotKey.h | #pragma once
class CHotKey
{
public:
bool ctrl{};
bool shift{};
bool alt{};
short key{};
public:
CHotKey();
~CHotKey();
WORD Modifiers() const;
wstring ToString() const;
void FromString(const wstring& str);
wstring GetHotkeyName() const;
void Clear();
};
| 276 | C++ | .h | 17 | 14 | 37 | 0.718254 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,179 | CFloatPlaylistDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/CFloatPlaylistDlg.h | #pragma once
#include "BaseDialog.h"
#include "PlayListCtrl.h"
#include "StaticEx.h"
#include "CPlayerUIBase.h"
#include "PlayerToolBar.h"
#include "SearchEditCtrl.h"
#include "MenuEditCtrl.h"
#define WM_FLOAT_PLAYLIST_CLOSED (WM_USER+118)
// CFloatPlaylistDlg 对话框
class CFloatPlaylistDlg : public CBaseDialog
{
D... | 2,989 | C++ | .h | 75 | 33.466667 | 108 | 0.745394 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,180 | CSelectPlaylist.h | zhongyang219_MusicPlayer2/MusicPlayer2/CSelectPlaylist.h | #pragma once
#include "TabDlg.h"
#include "PlaylistMgr.h"
#include "ListCtrlEx.h"
#include "SearchEditCtrl.h"
#include "MediaLibTabDlg.h"
#include "HorizontalSplitter.h"
// CSelectPlaylist 对话框
// #define WM_PLAYLIST_SELECTED (WM_USER+119) 不再使用 //WPARA: 传递对话框窗口的指针;LPARA:-2:表示要播放默认的播放列表,>=0,表示要播放列表中指定序号的曲目
class CS... | 5,738 | C++ | .h | 124 | 34.112903 | 116 | 0.721035 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,181 | MediaLibSettingDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MediaLibSettingDlg.h | #pragma once
#include "TabDlg.h"
#include "CListBoxEnhanced.h"
#include "MyComboBox.h"
#include "SpinEdit.h"
#include "BrowseEdit.h"
// CMediaLibSettingDlg 对话框
class CMediaLibSettingDlg : public CTabDlg
{
DECLARE_DYNAMIC(CMediaLibSettingDlg)
public:
CMediaLibSettingDlg(CWnd* pParent = nullptr); // 标准构造函数
... | 2,904 | C++ | .h | 71 | 33.070423 | 81 | 0.758594 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,182 | DataSettingsDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/DataSettingsDlg.h | #pragma once
#include "TabDlg.h"
#include "MyComboBox.h"
// CDataSettingsDlg 对话框
class CDataSettingsDlg : public CTabDlg
{
DECLARE_DYNAMIC(CDataSettingsDlg)
public:
CDataSettingsDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDataSettingsDlg();
bool IsAutoRunModified() const;
// 对话框数据
#ifdef A... | 1,416 | C++ | .h | 43 | 28.186047 | 69 | 0.751506 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,183 | UpdateHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/UpdateHelper.h | #pragma once
class CUpdateHelper
{
public:
CUpdateHelper();
~CUpdateHelper();
enum class UpdateSource
{
GitHubSource,
GiteeSource
};
void SetUpdateSource(UpdateSource update_source);
bool CheckForUpdate();
const std::wstring& GetVersion() const;
const std::wstring... | 814 | C++ | .h | 30 | 22.5 | 63 | 0.699355 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,184 | MediaLibStatisticsDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MediaLibStatisticsDlg.h | #pragma once
#include "SimplePropertiesDlg.h"
#include "ListCtrlEx.h"
// CMediaLibStatisticsDlg 对话框
class CMediaLibStatisticsDlg : public CSimplePropertiesDlg
{
DECLARE_DYNAMIC(CMediaLibStatisticsDlg)
public:
CMediaLibStatisticsDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CMediaLibStatisticsDlg();... | 528 | C++ | .h | 18 | 25.166667 | 64 | 0.7921 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,185 | StaticEx.h | zhongyang219_MusicPlayer2/MusicPlayer2/StaticEx.h | #pragma once
#include "IconMgr.h"
class CStaticEx :
public CStatic
{
public:
CStaticEx();
~CStaticEx();
void SetTextColor(COLORREF text_color);
void SetBackgroundColor(COLORREF back_color);
void SetWindowText(LPCTSTR lpszString);
CString GetWindowText() const;
void SetIcon(IconMgr::IconType icon_type... | 605 | C++ | .h | 22 | 24.045455 | 66 | 0.744144 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,186 | CNotifyIcon.h | zhongyang219_MusicPlayer2/MusicPlayer2/CNotifyIcon.h | #pragma once
class CNotifyIcon
{
public:
CNotifyIcon();
~CNotifyIcon();
void Init(HICON hIcon);
void SetIcon(HICON hIcon);
void AddNotifyIcon();
void DeleteNotifyIcon();
void SetIconToolTip(LPCTSTR strTip);
void OnNotifyIcon(UINT msgId, HWND hMiniMode);
private:
NOTIFYICONDATA m_ntIcon;
CString m_tool_t... | 335 | C++ | .h | 16 | 18.6875 | 47 | 0.785256 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,187 | GdiPlusTool.h | zhongyang219_MusicPlayer2/MusicPlayer2/GdiPlusTool.h | #pragma once
#include <gdiplus.h>
#include "CommonData.h"
class CGdiPlusTool
{
public:
CGdiPlusTool();
~CGdiPlusTool();
static Gdiplus::Color COLORREFToGdiplusColor(COLORREF color, BYTE alpha = 255);
static COLORREF GdiplusColorToCOLORREF(Gdiplus::Color color);
static int ToGDIPluseFontStyle(const... | 551 | C++ | .h | 15 | 33.2 | 89 | 0.779245 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,188 | AllMediaDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/AllMediaDlg.h | #pragma once
#include "ListCtrlEx.h"
#include "SearchEditCtrl.h"
#include "MediaLibTabDlg.h"
// CAllMediaDlg 对话框
class CAllMediaDlg : public CMediaLibTabDlg
{
DECLARE_DYNAMIC(CAllMediaDlg)
public:
enum DialogType
{
DT_ALL_MEDIA, //所有曲目
DT_RECENT_MEDIA //最近播放的曲目
};
... | 3,133 | C++ | .h | 83 | 30.024096 | 93 | 0.693133 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,189 | CoverDownloadDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/CoverDownloadDlg.h | #pragma once
#include "CoverDownloadCommon.h"
#include "ListCtrlEx.h"
#include "SongInfo.h"
#include "BaseDialog.h"
// CCoverDownloadDlg 对话框
class CCoverDownloadDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CCoverDownloadDlg)
public:
CCoverDownloadDlg(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CCoverDow... | 3,224 | C++ | .h | 71 | 34.802817 | 91 | 0.732684 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,190 | MiniModeDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/MiniModeDlg.h | #pragma once
#include"Player.h"
#include "PropertyDlg.h"
#include "PlayListCtrl.h"
#include "ColorConvert.h"
#include "DrawCommon.h"
#include "CPlayerUIBase.h"
// CMiniModeDlg 对话框
class CMiniModeDlg : public CDialogEx
{
DECLARE_DYNAMIC(CMiniModeDlg)
public:
CMiniModeDlg(int& item_selected, vector<int>& items... | 3,763 | C++ | .h | 96 | 32.6875 | 100 | 0.726184 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,191 | FontDialogEx.h | zhongyang219_MusicPlayer2/MusicPlayer2/FontDialogEx.h | #pragma once
// CFontDialogEx
class CFontDialogEx : public CFontDialog
{
DECLARE_DYNAMIC(CFontDialogEx)
public:
CFontDialogEx(LPLOGFONT lplfInitial = nullptr,
bool show_color = true, //是否显示颜色
DWORD dwFlags = CF_EFFECTS | CF_SCREENFONTS,
CDC* pdcPrinter = nullptr,
CWnd* pParentWnd = nullptr);
... | 523 | C++ | .h | 20 | 22.05 | 50 | 0.740042 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,192 | CMediaLibDlg.h | zhongyang219_MusicPlayer2/MusicPlayer2/CMediaLibDlg.h | #pragma once
#include "BaseDialog.h"
#include "CTabCtrlEx.h"
#include "SetPathDlg.h"
#include "CSelectPlaylist.h"
#include "MediaClassifyDlg.h"
#include "FolderExploreDlg.h"
#include "AllMediaDlg.h"
// CMediaLibDlg 对话框
class CMediaLibDlg : public CBaseDialog
{
DECLARE_DYNAMIC(CMediaLibDlg)
public:
CMediaLibD... | 2,243 | C++ | .h | 60 | 29.133333 | 83 | 0.735819 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,193 | CUIDrawer.h | zhongyang219_MusicPlayer2/MusicPlayer2/CUIDrawer.h | #pragma once
#include "DrawCommon.h"
#include "CPlayerUIHelper.h"
class CUIDrawer :
public CDrawCommon
{
public:
enum SpectrumCol //绘制频谱分析的柱形数量
{
SC_64,
SC_32,
SC_16,
SC_8
};
public:
CUIDrawer(UIColors& colors);
~CUIDrawer();
// 设置歌词&翻译字体
void Se... | 2,664 | C++ | .h | 53 | 36.641509 | 236 | 0.712207 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
50,194 | PropertyDlgHelper.h | zhongyang219_MusicPlayer2/MusicPlayer2/PropertyDlgHelper.h | #pragma once
#include "SongInfo.h"
class CPropertyDlgHelper
{
public:
CPropertyDlgHelper(const vector<SongInfo>& songs);
~CPropertyDlgHelper();
wstring GetMultiFileName();
wstring GetMultiFilePath();
wstring GetMultiType();
wstring GetMultiLength();
wstring GetMultiSize();
wstring GetM... | 1,661 | C++ | .h | 40 | 33.85 | 123 | 0.752362 | zhongyang219/MusicPlayer2 | 4,592 | 372 | 450 | GPL-3.0 | 9/20/2024, 9:26:26 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.