diff options
-rw-r--r-- | protocols/VKontakte/res/add.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/ban.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/delete.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/history.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/home.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/notify.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/read.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/report.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | protocols/VKontakte/res/resource.rc | 26 | ||||
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 14 | ||||
-rw-r--r-- | protocols/VKontakte/src/resource.h | 10 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 16 | ||||
-rw-r--r-- | protocols/VKontakte/vk_10.vcxproj | 8 | ||||
-rw-r--r-- | protocols/VKontakte/vk_10.vcxproj.filters | 24 | ||||
-rw-r--r-- | protocols/VKontakte/vk_12.vcxproj | 11 | ||||
-rw-r--r-- | protocols/VKontakte/vk_12.vcxproj.filters | 29 |
16 files changed, 124 insertions, 14 deletions
diff --git a/protocols/VKontakte/res/add.ico b/protocols/VKontakte/res/add.ico Binary files differnew file mode 100644 index 0000000000..0cb414407a --- /dev/null +++ b/protocols/VKontakte/res/add.ico diff --git a/protocols/VKontakte/res/ban.ico b/protocols/VKontakte/res/ban.ico Binary files differnew file mode 100644 index 0000000000..badbeed73f --- /dev/null +++ b/protocols/VKontakte/res/ban.ico diff --git a/protocols/VKontakte/res/delete.ico b/protocols/VKontakte/res/delete.ico Binary files differnew file mode 100644 index 0000000000..a70de7dd0d --- /dev/null +++ b/protocols/VKontakte/res/delete.ico diff --git a/protocols/VKontakte/res/history.ico b/protocols/VKontakte/res/history.ico Binary files differnew file mode 100644 index 0000000000..a3f05dfee3 --- /dev/null +++ b/protocols/VKontakte/res/history.ico diff --git a/protocols/VKontakte/res/home.ico b/protocols/VKontakte/res/home.ico Binary files differnew file mode 100644 index 0000000000..e4ce48170b --- /dev/null +++ b/protocols/VKontakte/res/home.ico diff --git a/protocols/VKontakte/res/notify.ico b/protocols/VKontakte/res/notify.ico Binary files differnew file mode 100644 index 0000000000..74c04f2516 --- /dev/null +++ b/protocols/VKontakte/res/notify.ico diff --git a/protocols/VKontakte/res/read.ico b/protocols/VKontakte/res/read.ico Binary files differnew file mode 100644 index 0000000000..c5115966e9 --- /dev/null +++ b/protocols/VKontakte/res/read.ico diff --git a/protocols/VKontakte/res/report.ico b/protocols/VKontakte/res/report.ico Binary files differnew file mode 100644 index 0000000000..622f9ad196 --- /dev/null +++ b/protocols/VKontakte/res/report.ico diff --git a/protocols/VKontakte/res/resource.rc b/protocols/VKontakte/res/resource.rc index ec8fcd2ee7..8012848cef 100644 --- a/protocols/VKontakte/res/resource.rc +++ b/protocols/VKontakte/res/resource.rc @@ -12,6 +12,32 @@ #undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
+// Русский (Россия) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+#pragma code_page(1251)
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_NOTIFICATION ICON "notify.ico"
+IDI_FRIENDADD ICON "add.ico"
+IDI_BAN ICON "ban.ico"
+IDI_FRIENDDEL ICON "delete.ico"
+IDI_READMSG ICON "read.ico"
+IDI_ABUSE ICON "report.ico"
+IDI_VISITPROFILE ICON "home.ico"
+IDI_HISTORY ICON "history.ico"
+#endif // Русский (Россия) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////////////////////////////////
// Английский (США) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 14b2d13a3d..e5f3b42194 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -157,7 +157,15 @@ void CVkProto::OnReceiveSmth(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) static IconItem iconList[] =
{
- { LPGEN("Captcha form icon"), "key", IDI_KEYS }
+ { LPGEN("Captcha form icon"), "key", IDI_KEYS },
+ { LPGEN("Notification icon"), "notification", IDI_NOTIFICATION },
+ { LPGEN("Read message icon"), "read", IDI_READMSG },
+ { LPGEN("Visit profile icon"), "profile", IDI_VISITPROFILE },
+ { LPGEN("Load server history icon"), "history", IDI_HISTORY },
+ { LPGEN("Add to friendlist icon"), "addfriend", IDI_FRIENDADD },
+ { LPGEN("Delete from friendlist icon"), "delfriend", IDI_FRIENDDEL },
+ { LPGEN("Report abuse icon"), "abuse", IDI_ABUSE },
+ { LPGEN("Ban user icon"), "ban", IDI_BAN}
};
void InitIcons()
@@ -523,7 +531,6 @@ int CVkProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam) return 0;
}
-
void CVkProto::SetSrmmReadStatus(MCONTACT hContact)
{
time_t time = getDword(hContact, "LastMsgReadTime", 0); @@ -535,8 +542,7 @@ void CVkProto::SetSrmmReadStatus(MCONTACT hContact) StatusTextData st = { 0 }; st.cbSize = sizeof(st); - st.hIcon = LoadSkinnedIcon(SKINICON_OTHER_EMPTYBLOB); + st.hIcon = Skin_GetIconByHandle(GetIconHandle(IDI_READMSG)); mir_sntprintf(st.tszText, SIZEOF(st.tszText), TranslateT("Message read: %s"), ttime); - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, NULL); CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, (LPARAM)&st);
}
\ No newline at end of file diff --git a/protocols/VKontakte/src/resource.h b/protocols/VKontakte/src/resource.h index 33e7184d77..9227d9f0f6 100644 --- a/protocols/VKontakte/src/resource.h +++ b/protocols/VKontakte/src/resource.h @@ -7,6 +7,14 @@ #define IDD_OPT_MAIN 103
#define IDD_INVITE 104
#define IDD_GC_CREATE 105
+#define IDI_NOTIFICATION 109
+#define IDI_FRIENDADD 110
+#define IDI_BAN 111
+#define IDI_FRIENDDEL 112
+#define IDI_READMSG 113
+#define IDI_ABUSE 114
+#define IDI_VISITPROFILE 115
+#define IDI_HISTORY 116
#define IDI_KEYS 203
#define IDC_LOGIN 1001
#define IDC_PASSWORD 1002
@@ -39,7 +47,7 @@ #ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
-#define _APS_NEXT_RESOURCE_VALUE 108
+#define _APS_NEXT_RESOURCE_VALUE 117
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1030
#define _APS_NEXT_SYMED_VALUE 101
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index cdd9f4e37a..e9941a417c 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -144,7 +144,7 @@ void CVkProto::InitMenus() mir_snprintf(szService, sizeof(szService), "%s%s", m_szModuleName, PS_VISITPROFILE);
mi.pszService = szService;
mi.position = 10009 + PMI_VISITPROFILE;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_EVENT_URL);
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_VISITPROFILE));
mi.pszName = LPGEN("Visit profile");
g_hProtoMenuItems[PMI_VISITPROFILE] = Menu_AddProtoMenuItem(&mi);
@@ -158,35 +158,35 @@ void CVkProto::InitMenus() mir_snprintf(szService, sizeof(szService), "%s%s", m_szModuleName, PS_GETALLSERVERHISTORY);
mi.position = -200001000 + CMI_GETALLSERVERHISTORY;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_OTHER_HISTORY);
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_HISTORY));
mi.ptszName = LPGENT("Reload all messages from vk.com");
mi.pszService = szService;
g_hContactMenuItems[CMI_GETALLSERVERHISTORY] = Menu_AddContactMenuItem(&mi);
mir_snprintf(szService, sizeof(szService), "%s%s", m_szModuleName, PS_ADDASFRIEND);
mi.position = -200001000 + CMI_ADDASFRIEND;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_ADD);
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_FRIENDADD));
mi.ptszName = LPGENT("Add as friend");
mi.pszService = szService;
g_hContactMenuItems[CMI_ADDASFRIEND] = Menu_AddContactMenuItem(&mi);
mir_snprintf(szService, sizeof(szService), "%s%s", m_szModuleName, PS_DELETEFRIEND);
mi.position = -200001000 + CMI_DELETEFRIEND;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_REVOKE);
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_FRIENDDEL));
mi.ptszName = LPGENT("Delete from friend list");
mi.pszService = szService;
g_hContactMenuItems[CMI_DELETEFRIEND] = Menu_AddContactMenuItem(&mi);
mir_snprintf(szService, sizeof(szService), "%s%s", m_szModuleName, PS_BANUSER);
mi.position = -200001000 + CMI_BANUSER;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_OTHER_DELETE);
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_BAN));
mi.ptszName = LPGENT("Ban user");
mi.pszService = szService;
g_hContactMenuItems[CMI_BANUSER] = Menu_AddContactMenuItem(&mi);
mir_snprintf(szService, sizeof(szService), "%s%s", m_szModuleName, PS_REPORTABUSE);
mi.position = -200001000 + CMI_REPORTABUSE;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_OTHER_MIRANDA);
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_ABUSE));
mi.ptszName = LPGENT("Report abuse");
mi.pszService = szService;
g_hContactMenuItems[CMI_REPORTABUSE] = Menu_AddContactMenuItem(&mi);
@@ -234,18 +234,16 @@ void CVkProto::InitPopups(void) ppc.colorText = RGB(255, 245, 225); //Yellow
ppc.iSeconds = 60;
m_hPopupClassError = Popup_RegisterClass(&ppc);
- Skin_ReleaseIcon(ppc.hIcon);
mir_sntprintf(desc, SIZEOF(desc), _T("%s %s"), m_tszUserName, TranslateT("Notification"));
mir_snprintf(name, SIZEOF(name), "%s_%s", m_szModuleName, "Notification");
ppc.ptszDescription = desc;
ppc.pszName = name;
- ppc.hIcon = LoadSkinnedIcon(SKINICON_INFORMATION);
+ ppc.hIcon = Skin_GetIconByHandle(GetIconHandle(IDI_NOTIFICATION));
ppc.colorBack = RGB(190, 225, 255); //Blue
ppc.colorText = RGB(255, 255, 255); //White
ppc.iSeconds = 4;
m_hPopupClassNotification = Popup_RegisterClass(&ppc);
- Skin_ReleaseIcon(ppc.hIcon);
}
void CVkProto::MsgPopup(MCONTACT hContact, const TCHAR *szMsg, const TCHAR *szTitle, bool err)
diff --git a/protocols/VKontakte/vk_10.vcxproj b/protocols/VKontakte/vk_10.vcxproj index 4d75bd6b9d..3694620959 100644 --- a/protocols/VKontakte/vk_10.vcxproj +++ b/protocols/VKontakte/vk_10.vcxproj @@ -202,7 +202,15 @@ <ResourceCompile Include="res\version.rc" />
</ItemGroup>
<ItemGroup>
+ <None Include="res\add.ico" />
+ <None Include="res\ban.ico" />
+ <None Include="res\delete.ico" />
+ <None Include="res\history.ico" />
+ <None Include="res\home.ico" />
<None Include="res\key.ico" />
+ <None Include="res\notify.ico" />
+ <None Include="res\read.ico" />
+ <None Include="res\report.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/protocols/VKontakte/vk_10.vcxproj.filters b/protocols/VKontakte/vk_10.vcxproj.filters index 218a220874..61d01e9ddc 100644 --- a/protocols/VKontakte/vk_10.vcxproj.filters +++ b/protocols/VKontakte/vk_10.vcxproj.filters @@ -81,5 +81,29 @@ <None Include="res\key.ico">
<Filter>Resource Files</Filter>
</None>
+ <None Include="res\add.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\ban.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\delete.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\history.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\home.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\notify.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\read.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\report.ico">
+ <Filter>Resource Files</Filter>
+ </None>
</ItemGroup>
</Project>
\ No newline at end of file diff --git a/protocols/VKontakte/vk_12.vcxproj b/protocols/VKontakte/vk_12.vcxproj index d3cc9a4936..b272a53f2d 100644 --- a/protocols/VKontakte/vk_12.vcxproj +++ b/protocols/VKontakte/vk_12.vcxproj @@ -204,6 +204,17 @@ <ResourceCompile Include="res\resource.rc" />
<ResourceCompile Include="res\version.rc" />
</ItemGroup>
+ <ItemGroup>
+ <Image Include="res\add.ico" />
+ <Image Include="res\ban.ico" />
+ <Image Include="res\delete.ico" />
+ <Image Include="res\history.ico" />
+ <Image Include="res\home.ico" />
+ <Image Include="res\key.ico" />
+ <Image Include="res\notify.ico" />
+ <Image Include="res\read.ico" />
+ <Image Include="res\report.ico" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/protocols/VKontakte/vk_12.vcxproj.filters b/protocols/VKontakte/vk_12.vcxproj.filters index 823b6f6102..f48849cd87 100644 --- a/protocols/VKontakte/vk_12.vcxproj.filters +++ b/protocols/VKontakte/vk_12.vcxproj.filters @@ -77,4 +77,33 @@ <Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
+ <ItemGroup>
+ <Image Include="res\notify.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\key.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\add.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\ban.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\delete.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\read.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\report.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\home.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ <Image Include="res\history.ico">
+ <Filter>Resource Files</Filter>
+ </Image>
+ </ItemGroup>
</Project>
\ No newline at end of file |