From b3d3b95a16be5b1785681f0f6fdc3bcdb967a42e Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 8 Dec 2017 04:42:36 +0300 Subject: new_gpg: get rid of "extern chaos" - moving ui related code to separated file, split definition and implementation of ui --- plugins/New_GPG/src/ui.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 plugins/New_GPG/src/ui.h (limited to 'plugins/New_GPG/src/ui.h') diff --git a/plugins/New_GPG/src/ui.h b/plugins/New_GPG/src/ui.h new file mode 100755 index 0000000000..5c017b7e1f --- /dev/null +++ b/plugins/New_GPG/src/ui.h @@ -0,0 +1,63 @@ +// Copyright © 2017 sss +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +#ifndef UI_H +#define UI_H + + +class CDlgEncryptedFileMsgBox : public CDlgBase +{ +public: + CDlgEncryptedFileMsgBox(); + virtual void OnInitDialog() override; + virtual void OnDestroy() override; + void onClick_IGNORE(CCtrlButton*); + void onClick_DECRYPT(CCtrlButton*); + +private: + CCtrlCheck chk_REMEMBER; + CCtrlButton btn_IGNORE, btn_DECRYPT; +}; + +class CDlgExportKeysMsgBox : public CDlgBase +{ +public: + CDlgExportKeysMsgBox(); + virtual void OnInitDialog() override; + virtual void OnDestroy() override; + void onClick_OK(CCtrlButton*); + void onClick_CANCEL(CCtrlButton*); + +private: + CCtrlButton btn_OK, btn_CANCEL; + CCtrlCheck chk_PUBLIC, chk_PRIVATE, chk_ALL; +}; + +class CDlgChangePasswdMsgBox : public CDlgBase //always modal +{ +public: + CDlgChangePasswdMsgBox(); + virtual void OnDestroy() override; + void onClick_OK(CCtrlButton*); +private: + CCtrlButton btn_OK; + CCtrlEdit edit_NEW_PASSWD1, edit_NEW_PASSWD2, edit_OLD_PASSWD; +}; + + + + +#endif // UI_H \ No newline at end of file -- cgit v1.2.3