
| 001 | #ifndef ENCRYPTWINDOW_H |
| 002 | #define ENCRYPTWINDOW_H |
| 003 | |
| 004 | #include <QMainWindow> |
| 005 | |
| 006 | #include "encrypt.h" |
| 007 | |
| 008 | namespace Ui { |
| 009 | class EncryptWindow; |
| 010 | } |
| 011 | |
| 012 | class EncryptWindow : public QMainWindow { |
| 013 | Q_OBJECT |
| 014 | |
| 015 | public: |
| 016 | // 建構函數 |
| 017 | explicit EncryptWindow(QWidget *parent = 0); |
| 018 | // 解構函數 |
| 019 | ~EncryptWindow(); |
| 020 | // QString 與 string 的轉換函數 |
| 021 | QString s2q(const string &); |
| 022 | string q2s(const QString &); |
| 023 | |
| 024 | private slots: |
| 025 | // 跟事件有關的 SLOT 成員函數 |
| 026 | void on_pushButton_new_clicked(); |
| 027 | void on_pushButton_save_clicked(); |
| 028 | void on_pushButton_load_clicked(); |
| 029 | void on_pushButton_encode_clicked(); |
| 030 | void on_pushButton_decode_clicked(); |
| 031 | void on_pushButton_clear_clicked(); |
| 032 | void on_pushButton_copy_clicked(); |
| 033 | void on_lineEdit_input_textChanged(const QString &arg1); |
| 034 | |
| 035 | private: |
| 036 | // 視窗元件 |
| 037 | Ui::EncryptWindow *ui; |
| 038 | // 解碼核心 |
| 039 | Encrypt *e; |
| 040 | // 輸入、輸出的字串 |
| 041 | QString input_text; |
| 042 | QString output_text; |
| 043 | }; |
| 044 | |
| 045 | #endif // ENCRYPTWINDOW_H |
the end
沒有留言:
張貼留言
0.留言請選擇註冊帳號, Google 或 OpenID 均可
1.歡迎留言交流,但不歡迎垃圾留言及廣告留言
2.文章相關問題歡迎提出,請減少情緒性留言
3.非文章相關內容,請到 G+ 社群或 FB 社團提出
4.問作業之留言會被直接刪除
5.莫忘網路禮節
6.可使用部份HTML標記,如 <b> 、 <i> 、 <a>
7.站長保留刪除留言的權力