diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-29 22:29:36 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-29 22:29:36 +0000 |
commit | 25db5c0f40379dadd4224cfbd87aad92a49d90ae (patch) | |
tree | e940feff28027f9b80397e2cc1b7e82b58df8e41 /gpgwin.h | |
parent | baeutified icons for sign and verify (diff) | |
download | gpg4usb-25db5c0f40379dadd4224cfbd87aad92a49d90ae.tar.gz gpg4usb-25db5c0f40379dadd4224cfbd87aad92a49d90ae.zip |
refactored gpgwin -> mainwindow and context -> gpgcontext
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@588 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.h')
-rw-r--r-- | gpgwin.h | 294 |
1 files changed, 0 insertions, 294 deletions
diff --git a/gpgwin.h b/gpgwin.h deleted file mode 100644 index a46094a..0000000 --- a/gpgwin.h +++ /dev/null @@ -1,294 +0,0 @@ -/* - * gpgwin.h - * - * Copyright 2008 gpg4usb-team <[email protected]> - * - * This file is part of gpg4usb. - * - * Gpg4usb 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 3 of the License, or - * (at your option) any later version. - * - * Gpg4usb 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 gpg4usb. If not, see <http://www.gnu.org/licenses/> - */ - -#ifndef __GPGWIN_H__ -#define __GPGWIN_H__ - -#include "attachments.h" -#include "keymgmt.h" -#include "textedit.h" -#include "fileencryptiondialog.h" -#include "settingsdialog.h" -#include "verifynotification.h" - -QT_BEGIN_NAMESPACE -class QMainWindow; -class QPlainTextEdit; -class QWidget; -class QVBoxLayout; -class QGridLayout; -class iostream; -class QtGui; -class QString; -class QFileDialog; -class QStringList; -class QIcon; -class QMessageBox; -class QVBoxLayout; -class QAction; -class QMenu; -class QPlainTextEdit; -class QComboBox; -class QPushButton; -class QRadioButton; -class QButtonGroup; -class QApplication; -class QDockWidget; -QT_END_NAMESPACE - - -/** - * @brief - * - */ -class GpgWin : public QMainWindow -{ - Q_OBJECT - -public: - /** - * @brief - * - */ - GpgWin(); - -protected: - /** - * @details Close event shows a save dialog, if there are unsaved documents on exit. - * @param event - */ - void closeEvent(QCloseEvent *event); - -private slots: - /** - * @details encrypt the text of currently active textedit-page - * with the currently checked keys - */ - void encrypt(); - - /** - * @details Show a passphrase dialog and decrypt the text of currently active tab. - */ - void decrypt(); - - /** - * @details Sign the text of currently active tab with the checked private keys - */ - void sign(); - - /** - * @details Verify the text of currently active tab and show verify information. - * If document is signed with a key, which is not in keylist, show import missing - * key from keyserver in Menu of verifynotification. - */ - void verify(); - - void showKeyDetails(); - - /** - * @details Import keys from currently active tab to keylist if possible. - */ - void importKeyFromEdit(); - - /** - * @details Open a dialog, in which you can choose, where keys should be imported from. - */ - void importKeyDialog(); - - /** - * @details Append the selected keys to currently active textedit. - */ - void appendSelectedKeys(); - - /** - * @details Copy the mailaddress of selected key to clipboard. - * Method for keylists contextmenu. - */ - void copyMailAddressToClipboard(); - - /** - * @details Open key management dialog. - */ - void openKeyManagement(); - - /** - * @details Open about-dialog. - */ - void about(); - - /** - * @details Open fileencrytion dialog. - */ - void fileEncryption(); - - /** - * @details Open settings-dialog. - */ - void openSettingsDialog(); - - /** - * @details Open online-tutorial in default browser. - */ - void openTutorial(); - - /** - * @details Show a warn message in status bar, if there are files in attachment folder. - */ - void checkAttachmentFolder(); - - /** - * @details Open online translation tutorial in default browser. - */ - void openTranslate(); - - /** - * @details Replace double linebreaks by single linebreaks in currently active tab. - */ - void cleanDoubleLinebreaks(); -// void dropEvent(QDropEvent *event); - -private: - /** - * @details Create actions for the main-menu and the context-menu of the keylist. - */ - void createActions(); - - /** - * @details create the menu of the main-window. - */ - void createMenus(); - - /** - * @details Create edit-, crypt- and key-toolbars. - */ - void createToolBars(); - - /** - * @details Create statusbar of mainwindow. - */ - void createStatusBar(); - - /** - * @details Create keylist- and attachment-dockwindows. - */ - void createDockWindows(); - - /** - * @details Create attachment-dockwindow. - */ - void createAttachmentDock(); - - /** - * @details close attachment-dockwindow. - */ - void closeAttachmentDock(); - - /** - * @details Load settings from ini-file. - */ - void restoreSettings(); - - /** - * @details Save settings to ini-file. - */ - void saveSettings(); - - /** - * @brief - * - * @param message - */ - void parseMime(QByteArray *message); - - TextEdit *edit; /** Tabwidget holding the edit-windows */ - QMenu *fileMenu; /** Submenu for file-operations*/ - QMenu *editMenu; /** Submenu for text-operations*/ - QMenu *cryptMenu; /** Submenu for crypt-operations */ - QMenu *helpMenu; /** Submenu for help-operations */ - QMenu *keyMenu; /** Submenu for key-operations */ - QMenu *viewMenu; /** View submenu */ - QMenu *importKeyMenu; /** Sumenu for import operations */ - QToolBar *cryptToolBar; /** Toolbar holding crypt actions */ - QToolBar *editToolBar; /** Toolbar holding edit actions */ - QToolBar *keyToolBar; /** Toolbar holding key operations */ - QDockWidget *keylistDock; /** Encrypt Dock*/ - QDockWidget *attachmentDock; /** Attachment Dock */ - QDialog *genkeyDialog; /** Dialog for key generation */ - - QAction *newTabAct; /** Action to create new tab */ - QAction *switchTabUpAct; /** Action to switch tab up*/ - QAction *switchTabDownAct; /** Action to switch tab down */ - QAction *openAct; /** Action to open file */ - QAction *saveAct; /** Action to save file */ - QAction *saveAsAct; /** Action to save file as */ - QAction *printAct; /** Action to print */ - QAction *closeTabAct; /** Action to print */ - QAction *quitAct; /** Action to quit application */ - QAction *encryptAct; /** Action to encrypt text */ - QAction *decryptAct; /** Action to decrypt text */ - QAction *signAct; /** Action to sign text */ - QAction *verifyAct; /** Action to verify text */ - QAction *importKeyDialogAct; /** Action to open key dialog */ - QAction *importKeyFromEditAct; /** Action to import key from edit */ - QAction *cleanDoubleLinebreaksAct; /** Action to remove double line breaks */ - - QAction *appendSelectedKeysAct; /** Action to append selected keys to edit */ - QAction *copyMailAddressToClipboardAct; /** Action to copy mail to clipboard */ - QAction *openKeyManagementAct; /** Action to open key management */ - QAction *copyAct; /** Action to copy text */ - QAction *quoteAct; /** Action to quote text */ - QAction *cutAct; /** Action to cut text */ - QAction *pasteAct; /** Action to paste text */ - QAction *selectallAct; /** Action to select whole text */ - QAction *undoAct; /** Action to undo last action */ - QAction *redoAct; /** Action to redo last action */ - QAction *aboutAct; /** Action to open about dialog */ - QAction *fileEncryptionAct; /** Action to open file-encryption dialog */ - QAction *openSettingsAct; /** Action to open settings dialog */ - QAction *openTranslateAct; /** Action to open translate doc*/ - QAction *openTutorialAct; /** Action to open tutorial */ - QAction *showKeyDetailsAct; /** Action to open key-details dialog */ - QLineEdit *nameEdit; /**< TODO */ - QLineEdit *emailEdit; /**< TODO */ - QLineEdit *commentEdit; /**< TODO */ - QLineEdit *passwordEdit; /**< TODO */ - QLineEdit *repeatpwEdit; /**< TODO */ - QSpinBox *keysizeSpinBox; /**< TODO */ - QLabel *nameLabel; /**< TODO */ - QLabel *emailLabel; /**< TODO */ - QLabel *commentLabel; /**< TODO */ - QLabel *keysizeLabel; /**< TODO */ - QLabel *passwordLabel; /**< TODO */ - QLabel *repeatpwLabel; /**< TODO */ - QLabel *errorLabel; /**< TODO */ - QLabel *statusBarIcon; /**< TODO */ - - QSettings settings; /**< TODO */ - KeyList *mKeyList; /**< TODO */ - Attachments *mAttachments; /**< TODO */ - GpgME::Context *mCtx; /**< TODO */ - QString iconPath; /**< TODO */ - KeyMgmt *keyMgmt; /**< TODO */ - KeyServerImportDialog *importDialog; /**< TODO */ - bool attachmentDockCreated; -}; - -#endif // __GPGWIN_H__ |