summaryrefslogtreecommitdiffstats
path: root/kgpg/kgpgeditor.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch)
tree8d927b7b47a90c4adb646482a52613f58acd6f8c /kgpg/kgpgeditor.h
downloadtdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz
tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgpg/kgpgeditor.h')
-rw-r--r--kgpg/kgpgeditor.h123
1 files changed, 123 insertions, 0 deletions
diff --git a/kgpg/kgpgeditor.h b/kgpg/kgpgeditor.h
new file mode 100644
index 0000000..0e8cda9
--- /dev/null
+++ b/kgpg/kgpgeditor.h
@@ -0,0 +1,123 @@
+/***************************************************************************
+ kgpgeditor.h - description
+ -------------------
+ begin : Mon Jul 8 2002
+ copyright : (C) 2002 by Jean-Baptiste Mardelle
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef KGPGEDITOR_H
+#define KGPGEDITOR_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <kmainwindow.h>
+
+#include <qstringlist.h>
+#include <kurl.h>
+
+class KPassivePopup;
+class KComboBox;
+class KToggleAction;
+class KAction;
+class KgpgView;
+
+class KgpgApp : public KMainWindow
+{
+ Q_OBJECT
+
+ friend class KgpgView;
+
+public:
+ /** construtor of KgpgApp, calls all init functions to create the application.
+ */
+ KgpgApp(QWidget *parent=0, const char *name=0,WFlags f = 0,KShortcut goHome=QKeySequence(CTRL+Qt::Key_Home),bool mainWindow=false);
+ ~KgpgApp();
+ /** opens a file specified by commandline option
+ */
+ void openDocumentFile(const KURL& url,QString encoding=QString::null);
+ void openEncryptedDocumentFile(const KURL& url);
+ /** returns a pointer to the current document connected to the KTMainWindow instance and is used by
+ * the View class to access the document object's methods
+ */
+ KURL Docname;
+ int version;
+ QString messages;
+ KgpgView *view;
+ KShortcut goDefaultKey;
+
+
+protected:
+ void readOptions(bool doresize=true);
+ void saveOptions();
+ void initActions();
+ void initView();
+ void closeEvent( QCloseEvent * e );
+
+private slots:
+ //void slotOptions();
+ void slotFileQuit();
+ void slotFileNew();
+ void slotResetEncoding(bool enc);
+ void slotFilePreEnc();
+ void slotFilePreDec();
+ void slotFileOpen();
+ void slotFileSave();
+ void slotFileSaveAs();
+ void slotFilePrint();
+ void slotEditCut();
+ void slotEditCopy();
+ void slotEditPaste();
+ void slotSelectAll();
+ void slotCheckMd5();
+
+ void slotPreSignFile();
+ void slotSignFile(KURL url);
+ void slotVerifyFile(KURL url);
+ void slotPreVerifyFile();
+ void importSignatureKey(QString ID);
+
+ void slotundo();
+ void slotredo();
+ void slotSetCharset();
+ bool checkEncoding(QTextCodec *codec);
+ void slotOptions();
+ void slotKeyManager();
+
+
+public slots:
+ void slotSetFont(QFont myFont);
+ void closeWindow();
+
+
+private:
+
+ QStringList customDecrypt;
+ //KToggleAction *encodingAction ;
+ KURL urlselected;
+ KAction* fileSave, *editUndo, *editRedo;
+ KComboBox *fontCombo;
+ bool isMainWindow;
+ QString textEncoding;
+
+signals:
+
+void refreshImported(QStringList);
+void openChangeFont();
+void openConfigDialog();
+void encryptFiles(KURL::List fileList);
+};
+
+#endif // KGPGEDITOR_H
+