blob: 4f8a9fbf4a1265392eae20e24c50ac6fa44f1162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
/***************************************************************************
kgpgeditor.h - description
-------------------
begin : Mon Jul 8 2002
copyright : (C) 2002 by Jean-Baptiste Mardelle
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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 <tdemainwindow.h>
#include <tqstringlist.h>
#include <kurl.h>
class KPassivePopup;
class KComboBox;
class TDEToggleAction;
class TDEAction;
class KgpgView;
class KgpgApp : public TDEMainWindow
{
Q_OBJECT
friend class KgpgView;
public:
/** construtor of KgpgApp, calls all init functions to create the application.
*/
KgpgApp(TQWidget *parent=0, const char *name=0,WFlags f = 0,TDEShortcut goHome=TQKeySequence(CTRL+TQt::Key_Home),bool mainWindow=false);
~KgpgApp();
/** opens a file specified by commandline option
*/
void openDocumentFile(const KURL& url,TQString encoding=TQString());
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;
TQString messages;
KgpgView *view;
TDEShortcut goDefaultKey;
protected:
void readOptions(bool doresize=true);
void saveOptions();
void initActions();
void initView();
void closeEvent( TQCloseEvent * 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(TQString ID);
void slotundo();
void slotredo();
void slotSetCharset();
bool checkEncoding(TQTextCodec *codec);
void slotOptions();
void slotKeyManager();
public slots:
void slotSetFont(TQFont myFont);
void closeWindow();
private:
TQStringList customDecrypt;
//TDEToggleAction *encodingAction ;
KURL urlselected;
TDEAction* fileSave, *editUndo, *editRedo;
KComboBox *fontCombo;
bool isMainWindow;
TQString textEncoding;
signals:
void refreshImported(TQStringList);
void openChangeFont();
void openConfigDialog();
void encryptFiles(KURL::List fileList);
};
#endif // KGPGEDITOR_H
|