diff options
author | aunsane <aunsane@gmail.com> | 2017-04-24 01:03:45 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-04-24 01:03:45 +0300 |
commit | de9873b0039e8085cb665e0b2ab6946a972e8e3e (patch) | |
tree | ab5cf566a7df53f5ead1d5edcf73b0e75dfd31eb /plugins/CloudFile | |
parent | 03a956612c2c98eae68f6a8c50ccc08c2cef8f7c (diff) |
CloudFile: add icon to Yandex.Disk
Diffstat (limited to 'plugins/CloudFile')
-rw-r--r-- | plugins/CloudFile/res/resource.rc | 2 | ||||
-rw-r--r-- | plugins/CloudFile/res/yadisk.ico | bin | 0 -> 5430 bytes | |||
-rw-r--r-- | plugins/CloudFile/src/Services/yandex_service.cpp | 2 | ||||
-rw-r--r-- | plugins/CloudFile/src/icons.cpp | 3 | ||||
-rw-r--r-- | plugins/CloudFile/src/resource.h | 27 |
5 files changed, 18 insertions, 16 deletions
diff --git a/plugins/CloudFile/res/resource.rc b/plugins/CloudFile/res/resource.rc index bf1cd8940d..13f09b8340 100644 --- a/plugins/CloudFile/res/resource.rc +++ b/plugins/CloudFile/res/resource.rc @@ -68,6 +68,8 @@ IDI_DROPBOX ICON "dropbox.ico" IDI_GDRIVE ICON "gdrive.ico" +IDI_YADISK ICON "yadisk.ico" + ///////////////////////////////////////////////////////////////////////////// // diff --git a/plugins/CloudFile/res/yadisk.ico b/plugins/CloudFile/res/yadisk.ico Binary files differnew file mode 100644 index 0000000000..b3a5ac69b4 --- /dev/null +++ b/plugins/CloudFile/res/yadisk.ico diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp index 4ef0a5e115..2d08aa63a2 100644 --- a/plugins/CloudFile/src/Services/yandex_service.cpp +++ b/plugins/CloudFile/src/Services/yandex_service.cpp @@ -18,7 +18,7 @@ const wchar_t* CYandexService::GetText() const HANDLE CYandexService::GetIcon() const { - return NULL; + return GetIconHandle(IDI_YADISK); } bool CYandexService::IsLoggedIn() diff --git a/plugins/CloudFile/src/icons.cpp b/plugins/CloudFile/src/icons.cpp index 5a3d562e18..75671f18ae 100644 --- a/plugins/CloudFile/src/icons.cpp +++ b/plugins/CloudFile/src/icons.cpp @@ -4,7 +4,8 @@ static IconItem iconList[] = { { LPGEN("Upload file(s)"), "upload", IDI_UPLOAD }, { LPGEN("Dropbox"), "dropbox", IDI_DROPBOX }, - { LPGEN("GDrive"), "gdrive", IDI_GDRIVE } + { LPGEN("GDrive"), "gdrive", IDI_GDRIVE }, + { LPGEN("YaDisk"), "yadisk", IDI_YADISK } }; void InitializeIcons() diff --git a/plugins/CloudFile/src/resource.h b/plugins/CloudFile/src/resource.h index 70a9fd5629..755d176034 100644 --- a/plugins/CloudFile/src/resource.h +++ b/plugins/CloudFile/src/resource.h @@ -1,28 +1,27 @@ //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. -// Used by c:\Users\unsane\Projects\c++\miranda-ng\plugins\CloudFile\res\resource.rc +// Used by C:\Users\unsane\Projects\c++\miranda-ng\plugins\CloudFile\res\resource.rc // #define IDOK 1 #define IDCANCEL 2 -#define IDI_UPLOAD 105 -#define IDI_DROPBOX 106 -#define IDI_ICON1 108 -#define IDI_GDRIVE 108 -#define IDD_OPTIONS_MAIN 109 +#define IDI_UPLOAD 101 +#define IDI_DROPBOX 102 +#define IDI_GDRIVE 103 +#define IDI_YADISK 104 #define IDD_OAUTH 120 -#define IDC_URL_ISTEMPORARY 1004 -#define IDC_URL_COPYTOCB 1009 -#define IDC_URL_COPYTOMIA 1029 -#define IDC_URL_AUTOSEND 1030 -#define IDC_OAUTH_CODE 1082 -#define IDC_OAUTH_AUTHORIZE 1200 -#define IDC_STATIC -1 +#define IDC_OAUTH_CODE 121 +#define IDC_OAUTH_AUTHORIZE 122 +#define IDD_OPTIONS_MAIN 1000 +#define IDC_URL_ISTEMPORARY 1001 +#define IDC_URL_COPYTOCB 1002 +#define IDC_URL_COPYTOMIA 1003 +#define IDC_URL_AUTOSEND 1004 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 109 +#define _APS_NEXT_RESOURCE_VALUE 110 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1013 #define _APS_NEXT_SYMED_VALUE 101 |