summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/slack_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Slack/src/slack_options.cpp')
-rw-r--r--protocols/Slack/src/slack_options.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/protocols/Slack/src/slack_options.cpp b/protocols/Slack/src/slack_options.cpp
new file mode 100644
index 0000000000..49544935c1
--- /dev/null
+++ b/protocols/Slack/src/slack_options.cpp
@@ -0,0 +1,43 @@
+#include "stdafx.h"
+
+CSlackOptionsMain::CSlackOptionsMain(CSlackProto *proto, int idDialog)
+ : CSuper(proto, idDialog, false),
+ m_team(this, IDC_TEAM), m_email(this, IDC_EMAIL),
+ m_password(this, IDC_PASSWORD), m_group(this, IDC_GROUP)
+{
+
+ CreateLink(m_team, "Team", L"");
+ CreateLink(m_email, "Email", L"");
+ CreateLink(m_password, "Password", L"");
+ CreateLink(m_group, "DefaultGroup", _A2W(MODULE));
+}
+
+void CSlackOptionsMain::OnInitDialog()
+{
+ CSuper::OnInitDialog();
+
+ SendMessage(m_team.GetHwnd(), EM_LIMITTEXT, 21, 0);
+ SendMessage(m_email.GetHwnd(), EM_LIMITTEXT, 40, 0);
+ SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 40, 0);
+ SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
+}
+
+void CSlackOptionsMain::OnApply()
+{
+}
+
+/////////////////////////////////////////////////////////////////////////////////
+
+int CSlackProto::OnOptionsInit(WPARAM wParam, LPARAM)
+{
+ OPTIONSDIALOGPAGE odp = { 0 };
+ odp.szTitle.w = m_tszUserName;
+ odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE | ODPF_DONTTRANSLATE;
+ odp.szGroup.w = LPGENW("Network");
+
+ odp.szTab.w = LPGENW("Account");
+ odp.pDialog = CSlackOptionsMain::CreateOptionsPage(this);
+ //Options_AddPage(wParam, &odp);
+
+ return 0;
+}