diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-03 18:25:32 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-03 18:25:32 +0000 |
commit | 2dda26c2d63fb543d06f046a5908ba43a5fd716e (patch) | |
tree | 6de64e4a536951e696ddb82b0dad8739938a1f58 /protocols/SkypeWeb/src/skype_dialogs.h | |
parent | ba077766bc39745326b3bbe65b5382fcc5bc2f51 (diff) |
SkypeWeb: moved to core ui
git-svn-id: http://svn.miranda-ng.org/main/trunk@12590 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_dialogs.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_dialogs.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_dialogs.h b/protocols/SkypeWeb/src/skype_dialogs.h new file mode 100644 index 0000000000..ee834bcd35 --- /dev/null +++ b/protocols/SkypeWeb/src/skype_dialogs.h @@ -0,0 +1,50 @@ +#ifndef _SKYPE_DIALOGS_H_
+#define _SKYPE_DIALOGS_H_
+
+class CSkypeDlgBase : public CProtoDlgBase<CSkypeProto>
+{
+private:
+ typedef CProtoDlgBase<CSkypeProto> CSuper;
+
+protected:
+ __inline CSkypeDlgBase(CSkypeProto *proto, int idDialog, HWND parent, bool show_label = true) :
+ CSuper(proto, idDialog, parent, show_label) { }
+};
+
+class CSkypePasswordEditor : public CSkypeDlgBase
+{
+private:
+ typedef CSkypeDlgBase CSuper;
+
+ CCtrlEdit m_password;
+ CCtrlCheck m_savePermanently;
+
+ CCtrlButton m_ok;
+
+protected:
+ void OnInitDialog()
+ {
+ SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 20, 0);
+ }
+
+ void OnOk(CCtrlButton*)
+ {
+ /*if (m_savePermanently.Enabled())
+ m_proto->setString("Password", m_password.GetTextA());
+ if (m_proto->password != NULL)
+ mir_free(m_proto->password);
+ m_proto->password = mir_utf8encodeW(m_password.GetText());
+ */
+ EndDialog(m_hwnd, 1);
+ }
+
+public:
+ CSkypePasswordEditor(CSkypeProto *proto) :
+ CSuper(proto, IDD_PASSWORD_EDITOR, NULL, false), m_ok(this, IDOK),
+ m_password(this, IDC_PASSWORD), m_savePermanently(this, IDC_SAVEPERMANENTLY)
+ {
+ m_ok.OnClick = Callback(this, &CSkypePasswordEditor::OnOk);
+ }
+};
+
+#endif //_SKYPE_DIALOGS_H_
\ No newline at end of file |