diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-29 08:00:35 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-29 08:00:35 +0000 |
commit | 9a78e73e06a8428448bd16cee7c33d4c70d10845 (patch) | |
tree | f25fbdc03cf9cb5031d373a2fae1cae7e6533263 /protocols | |
parent | 0d654f90b97c81a6cf9da37b6414959be9abbfb6 (diff) |
SkypeWeb: change password link in settings
git-svn-id: http://svn.miranda-ng.org/main/trunk@15080 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/res/resource.rc | 10 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/resource.h | 8 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_options.cpp | 11 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_options.h | 1 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.h | 1 |
5 files changed, 20 insertions, 11 deletions
diff --git a/protocols/SkypeWeb/res/resource.rc b/protocols/SkypeWeb/res/resource.rc index 0a0f387416..6ef5e18c9b 100644 --- a/protocols/SkypeWeb/res/resource.rc +++ b/protocols/SkypeWeb/res/resource.rc @@ -131,11 +131,11 @@ FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN
GROUPBOX "Account",IDC_STATIC,7,7,296,63
RTEXT "Skypename:",IDC_STATIC,13,19,62,11
- EDITTEXT IDC_SKYPENAME,79,17,219,12,ES_AUTOHSCROLL
+ EDITTEXT IDC_SKYPENAME,79,17,117,12,ES_AUTOHSCROLL
RTEXT "Password:",IDC_STATIC,13,35,62,8
- EDITTEXT IDC_PASSWORD,79,33,219,12,ES_PASSWORD | ES_AUTOHSCROLL
+ EDITTEXT IDC_PASSWORD,79,33,117,12,ES_PASSWORD | ES_AUTOHSCROLL
RTEXT "Default group:",IDC_STATIC,13,51,62,12
- EDITTEXT IDC_GROUP,79,49,219,12,ES_AUTOHSCROLL
+ EDITTEXT IDC_GROUP,79,49,117,12,ES_AUTOHSCROLL
GROUPBOX "Others",IDC_STATIC,5,79,298,65
CONTROL "Automatic messages synchronization",IDC_AUTOSYNC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,89,176,10
CONTROL "Always notify as unread for all incoming message",IDC_MESASUREAD,
@@ -144,6 +144,7 @@ BEGIN RTEXT "Place:",IDC_STATIC,13,120,62,11
CONTROL "Use hostname",IDC_USEHOST,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,196,120,102,10
CONTROL "Use BBCode",IDC_BBCODES,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,196,89,102,10
+ CONTROL "Change password",IDC_CHANGEPASS,"Hyperlink",WS_TABSTOP,203,33,60,12
END
IDD_PASSWORD_EDITOR DIALOGEX 0, 0, 209, 75
@@ -197,6 +198,9 @@ BEGIN VERTGUIDE, 189
VERTGUIDE, 196
VERTGUIDE, 298
+ HORZGUIDE, 29
+ HORZGUIDE, 33
+ HORZGUIDE, 45
HORZGUIDE, 89
HORZGUIDE, 99
HORZGUIDE, 110
diff --git a/protocols/SkypeWeb/src/resource.h b/protocols/SkypeWeb/src/resource.h index eb58a41d1e..32ae5dfccd 100644 --- a/protocols/SkypeWeb/src/resource.h +++ b/protocols/SkypeWeb/src/resource.h @@ -1,6 +1,6 @@ //{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by D:\Others\SVN\MirandaNG\trunk\protocols\SkypeWeb\res\resource.rc
+// Включаемый файл, созданный в Microsoft Visual C++.
+// Используется d:\Others\SVN\MirandaNG\trunk\protocols\SkypeWeb\res\resource.rc
//
#define IDI_SKYPE 100
#define IDC_SKYPENAME 101
@@ -30,6 +30,8 @@ #define IDC_USEHOST 1035
#define IDC_CHECK1 1036
#define IDC_BBCODES 1036
+#define IDC_SYSLINK1 1038
+#define IDC_CHANGEPASS 1038
// Next default values for new objects
//
@@ -37,7 +39,7 @@ #ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 124
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1037
+#define _APS_NEXT_CONTROL_VALUE 1039
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp index 5e565a6755..5e388e1c05 100644 --- a/protocols/SkypeWeb/src/skype_options.cpp +++ b/protocols/SkypeWeb/src/skype_options.cpp @@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h"
CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog)
- : CSkypeDlgBase(proto, idDialog, false),
+: CSkypeDlgBase(proto, idDialog, false),
m_skypename(this, IDC_SKYPENAME),
m_password(this, IDC_PASSWORD),
m_group(this, IDC_GROUP),
@@ -26,7 +26,8 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog) m_autosync(this, IDC_AUTOSYNC),
m_allasunread(this, IDC_MESASUREAD),
m_usehostname(this, IDC_USEHOST),
- m_usebb(this, IDC_BBCODES)
+ m_usebb(this, IDC_BBCODES),
+ m_link(this, IDC_CHANGEPASS, "https://login.skype.com/recovery/password-change") // TODO : ...?username=%username%
{
CreateLink(m_group, SKYPE_SETTINGS_GROUP, _T("Skype"));
CreateLink(m_autosync, "AutoSync", DBVT_BYTE, 1);
@@ -44,9 +45,9 @@ void CSkypeOptionsMain::OnInitDialog() m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(pass_ptrA(m_proto->getStringA("Password")));
m_place.Enable(!m_proto->getBool("UseHostName", false));
- SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0);
- SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 128, 0);
- SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
+ m_skypename.SendMsg(EM_LIMITTEXT, 32, 0);
+ m_password.SendMsg(EM_LIMITTEXT, 128, 0);
+ m_group.SendMsg(EM_LIMITTEXT, 64, 0);
}
diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h index f7bd9711da..edb565abc3 100644 --- a/protocols/SkypeWeb/src/skype_options.h +++ b/protocols/SkypeWeb/src/skype_options.h @@ -29,6 +29,7 @@ private: CCtrlCheck m_allasunread;
CCtrlCheck m_usehostname;
CCtrlCheck m_usebb;
+ CCtrlHyperlink m_link;
protected:
CSkypeOptionsMain(CSkypeProto *proto, int idDialog);
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index da1ae3f713..be8ad8ef75 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -23,6 +23,7 @@ typedef void(CSkypeProto::*SkypeResponseWithArgCallback)(const NETLIBHTTPREQUEST struct CSkypeProto : public PROTO < CSkypeProto >
{
+ friend CSkypeOptionsMain;
friend CSkypeGCCreateDlg;
//friend CSkypeChatroom;
//friend ChatUser;
|