summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-07-09 09:27:40 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-07-09 09:27:40 +0000
commita8fe13ffc15d8715eb9be11eed27bdfa1538ea70 (patch)
tree127b05e993787d0f38fe8e2044b94a56ae0f7c1c
parent6d10b27399e46e952ded3d5a8bc4645ccffb2c34 (diff)
Fixes for an icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@877 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/ListeningTo/listeningto.cpp6
-rw-r--r--plugins/ListeningTo/listeningto.vcxproj3
-rw-r--r--plugins/ListeningTo/listeningto.vcxproj.filters9
-rw-r--r--plugins/ListeningTo/resource.rc26
4 files changed, 20 insertions, 24 deletions
diff --git a/plugins/ListeningTo/listeningto.cpp b/plugins/ListeningTo/listeningto.cpp
index a1a790081b..d36cfecec2 100644
--- a/plugins/ListeningTo/listeningto.cpp
+++ b/plugins/ListeningTo/listeningto.cpp
@@ -317,8 +317,8 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
// add our modules to the KnownModules list
CallService("DBEditorpp/RegisterSingleModule", (WPARAM) MODULE_NAME, 0);
- hIcon1 = IcoLib_Register("listening_to_icon", _T("Contact List"), _T("Listening to"), IDI_LISTENINGTO);
- hIcon2 = IcoLib_Register("listening_off_icon", _T("Contact List"), _T("Listening to"), IDI_LISTENINGOFF);
+ hIcon1 = IcoLib_Register("listening_to_icon", _T("ListeningTo"), _T("Listening to (enabled)"), IDI_LISTENINGTO);
+ hIcon2 = IcoLib_Register("listening_off_icon", _T("ListeningTo"), _T("Listening to (disabled)"), IDI_LISTENINGOFF);
// Extra icon support
hExtraIcon = ExtraIcon_Register(MODULE_NAME, "Listening to music", "listening_to_icon");
@@ -532,6 +532,8 @@ int TopToolBarLoaded(WPARAM wParam, LPARAM lParam)
ttb.pszService = MS_LISTENINGTO_TTB;
ttb.dwFlags = TTBBF_VISIBLE | TTBBF_ICONBYHANDLE | TTBBF_SHOWTOOLTIP | (enabled ? TTBBF_PUSHED : 0);
ttb.name = "Enable/Disable sending Listening To info (to all protocols)";
+ ttb.pszTooltipDn = LPGEN("Disable ListeningTo (to all protocols)");
+ ttb.pszTooltipUp = LPGEN("Enable ListeningTo (to all protocols)");
hTTB = TopToolbar_AddButton(&ttb);
return 0;
diff --git a/plugins/ListeningTo/listeningto.vcxproj b/plugins/ListeningTo/listeningto.vcxproj
index 2b767e416a..c2bb83a8ed 100644
--- a/plugins/ListeningTo/listeningto.vcxproj
+++ b/plugins/ListeningTo/listeningto.vcxproj
@@ -189,9 +189,8 @@
<ClInclude Include="players\wmp.h" />
</ItemGroup>
<ItemGroup>
+ <None Include="res\listening_off.ico" />
<None Include="res\listening_to.ico" />
- <None Include="res\ttb_disabled.bmp" />
- <None Include="res\ttb_enabled.bmp" />
<None Include="Docs\langpack_listeningto.txt" />
<None Include="Docs\listeningto_changelog.txt" />
<None Include="Docs\listeningto_readme.txt" />
diff --git a/plugins/ListeningTo/listeningto.vcxproj.filters b/plugins/ListeningTo/listeningto.vcxproj.filters
index 3e7f5d2015..8a5e016777 100644
--- a/plugins/ListeningTo/listeningto.vcxproj.filters
+++ b/plugins/ListeningTo/listeningto.vcxproj.filters
@@ -74,12 +74,6 @@
<None Include="res\listening_to.ico">
<Filter>Resource Files</Filter>
</None>
- <None Include="res\ttb_disabled.bmp">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\ttb_enabled.bmp">
- <Filter>Resource Files</Filter>
- </None>
<None Include="Docs\langpack_listeningto.txt">
<Filter>Docs</Filter>
</None>
@@ -95,6 +89,9 @@
<None Include="Docs\readme_players.txt">
<Filter>Docs</Filter>
</None>
+ <None Include="res\listening_off.ico">
+ <Filter>Resource Files</Filter>
+ </None>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc">
diff --git a/plugins/ListeningTo/resource.rc b/plugins/ListeningTo/resource.rc
index 49f777458d..41df1cabac 100644
--- a/plugins/ListeningTo/resource.rc
+++ b/plugins/ListeningTo/resource.rc
@@ -14,13 +14,11 @@
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
+// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
-#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
@@ -32,7 +30,7 @@ STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
- GROUPBOX " Listening to information ",IDC_LISTENING_G,3,12,282,58
+ GROUPBOX "Listening to information",IDC_LISTENING_G,3,12,282,58
CONTROL "Enable sending listening information to contacts:",IDC_ENABLE_SEND,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,26,262,11
CONTROL "Music",IDC_ENABLE_MUSIC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,26,40,52,11
@@ -40,7 +38,7 @@ BEGIN
CONTROL "Video",IDC_ENABLE_VIDEO,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,158,40,52,11
CONTROL "Others",IDC_ENABLE_OTHERS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,224,40,52,11
LTEXT "You also have to enable it per protocol in the main menu",IDC_STATIC,12,55,262,13
- GROUPBOX " XStatus ",IDC_XSTATUS_G,3,74,282,88
+ GROUPBOX "XStatus",IDC_XSTATUS_G,3,74,282,88
LTEXT "For protocols that don't support listening to but support XStatus:",IDC_XSTATUS_L,12,88,263,11
CONTROL "Set XStatus to Music and show listening info",IDC_SET_XSTATUS,
"Button",BS_AUTORADIOBUTTON,19,101,257,12
@@ -49,7 +47,7 @@ BEGIN
CONTROL "If XStatus is Music, show listening info",IDC_CHECK_XSTATUS_MUSIC,
"Button",BS_AUTORADIOBUTTON,19,129,257,12
CONTROL "Do nothing",IDC_IGNORE_XSTATUS,"Button",BS_AUTORADIOBUTTON,19,143,257,12
- GROUPBOX " Contacts ",IDC_CONTACTS_G,3,166,282,49
+ GROUPBOX "Contacts",IDC_CONTACTS_G,3,166,282,49
CONTROL "Apply template for info from contacts (overrides contacts template)",IDC_OVERRIDE_CONTACTS_TEMPLATE,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,180,262,11
CONTROL "Show advanced icon in slot",IDC_SHOW_ADV_ICON,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,193,104,13
@@ -83,7 +81,7 @@ STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
- GROUPBOX " Listening to ",IDC_LISTENINGTO_G,3,8,282,125
+ GROUPBOX "Listening to",IDC_LISTENINGTO_G,3,8,282,125
LTEXT "Template:",IDC_TEMPLATE_L,11,22,55,10
EDITTEXT IDC_TEMPLATE,72,20,202,13,ES_AUTOHSCROLL
LTEXT "Variables:",IDC_VARS_L,11,39,129,8
@@ -98,7 +96,7 @@ BEGIN
LTEXT "%type% - Media type (Music, Radio, Video, etc)",IDC_TYPE_L,11,99,265,8
LTEXT "When variable not found, use:",IDC_UNKNOWN_L,11,117,108,10
EDITTEXT IDC_UNKNOWN,122,114,152,13,ES_AUTOHSCROLL
- GROUPBOX " XStatus ",IDC_XSTATUS_G,3,137,282,79
+ GROUPBOX "XStatus",IDC_XSTATUS_G,3,137,282,79
LTEXT "Title:",IDC_NAME_L,11,152,55,10
EDITTEXT IDC_XSTATUS_NAME,72,150,202,13,ES_AUTOHSCROLL
LTEXT "Message:",IDC_MESSAGE_L,11,167,55,10
@@ -153,7 +151,8 @@ END
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_LISTENINGTO ICON "res\\listening_to.ico"
-#endif // English (U.S.) resources
+IDI_LISTENINGOFF ICON "res\\listening_off.ico"
+#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
@@ -161,10 +160,8 @@ IDI_LISTENINGTO ICON "res\\listening_to.ico"
// English (Canada) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENC)
-#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_CAN
#pragma code_page(1252)
-#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
@@ -172,19 +169,19 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_CAN
// TEXTINCLUDE
//
-1 TEXTINCLUDE
+1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
-2 TEXTINCLUDE
+2 TEXTINCLUDE
BEGIN
"#include ""resource.h""\r\n"
"#include ""winresrc.h""\r\n"
"\0"
END
-3 TEXTINCLUDE
+3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
@@ -206,3 +203,4 @@ END
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
+