summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-06 19:12:49 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-06 19:12:49 +0000
commit2def01042331e4a5a9cfd21b600dc0fcc1a198b0 (patch)
tree06a524dc82357a74b6b602bde86b06fe9d26f5c1 /protocols
parentdf5a99c47693ecca5337b1c0f1a65cdb6a4048a0 (diff)
SkypeWeb: Checkbox for "use hostname as place".
git-svn-id: http://svn.miranda-ng.org/main/trunk@14028 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/res/resource.rc7
-rw-r--r--protocols/SkypeWeb/src/resource.h4
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp5
-rw-r--r--protocols/SkypeWeb/src/skype_options.h1
4 files changed, 12 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/res/resource.rc b/protocols/SkypeWeb/res/resource.rc
index 6c0ac9776e..4fa2c21c38 100644
--- a/protocols/SkypeWeb/res/resource.rc
+++ b/protocols/SkypeWeb/res/resource.rc
@@ -171,10 +171,13 @@ BEGIN
EDITTEXT IDC_GROUP,81,49,217,12,ES_AUTOHSCROLL
GROUPBOX "Others",IDC_STATIC,5,79,298,65
CONTROL "Automatic messages synchronization",IDC_AUTOSYNC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,89,282,10
- CONTROL "Use local time for received messages",IDC_LOCALTIME,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,100,282,10
- CONTROL "Always notify as unread for all incoming message",IDC_MESASUREAD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,112,209,10
+ CONTROL "Use local time for received messages",IDC_LOCALTIME,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,100,282,10
+ CONTROL "Always notify as unread for all incoming message",IDC_MESASUREAD,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,112,209,10
EDITTEXT IDC_PLACE,81,124,109,14,ES_AUTOHSCROLL
LTEXT "Place:",IDC_STATIC,13,127,33,9
+ CONTROL "Use hostname",IDC_USEHOST,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,203,126,89,10
END
IDD_PASSWORD_EDITOR DIALOGEX 0, 0, 209, 75
diff --git a/protocols/SkypeWeb/src/resource.h b/protocols/SkypeWeb/src/resource.h
index 43bc008820..cf253ef0ef 100644
--- a/protocols/SkypeWeb/src/resource.h
+++ b/protocols/SkypeWeb/src/resource.h
@@ -27,6 +27,8 @@
#define IDC_CONTACT 1032
#define IDC_MESASUREAD 1033
#define IDC_PLACE 1034
+#define IDC_CHECK1 1035
+#define IDC_USEHOST 1035
// Next default values for new objects
//
@@ -34,7 +36,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 124
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1035
+#define _APS_NEXT_CONTROL_VALUE 1036
#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 5da691d63e..a67545114a 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -25,13 +25,15 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog)
m_autosync(this, IDC_AUTOSYNC),
m_localtime(this, IDC_LOCALTIME),
m_allasunread(this, IDC_MESASUREAD),
- m_place(this, IDC_PLACE)
+ m_place(this, IDC_PLACE),
+ m_usehostname(this, IDC_USEHOST)
{
CreateLink(m_group, SKYPE_SETTINGS_GROUP, _T("Skype"));
CreateLink(m_autosync, "AutoSync", DBVT_BYTE, 1);
CreateLink(m_localtime, "UseLocalTime", DBVT_BYTE, 0);
CreateLink(m_allasunread, "MarkMesUnread", DBVT_BYTE, 1);
CreateLink(m_place, "Place", _T(""));
+ CreateLink(m_usehostname, "UseHostName", DBVT_BYTE, 0);
}
void CSkypeOptionsMain::OnInitDialog()
@@ -40,7 +42,6 @@ void CSkypeOptionsMain::OnInitDialog()
m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(ptrA(m_proto->getStringA("Password")));
-
SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0);
SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 20, 0);
SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h
index 35a2a743e6..6e3b0a8533 100644
--- a/protocols/SkypeWeb/src/skype_options.h
+++ b/protocols/SkypeWeb/src/skype_options.h
@@ -28,6 +28,7 @@ private:
CCtrlCheck m_autosync;
CCtrlCheck m_localtime;
CCtrlCheck m_allasunread;
+ CCtrlCheck m_usehostname;
protected:
CSkypeOptionsMain(CSkypeProto *proto, int idDialog);