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
|
/**************************************************************************
kgpgview.h - description
-------------------
begin : Tue Jul 2 12:31:38 GMT 2002
copyright : (C) 2002 by Jean-Baptiste Mardelle
email : bj@altern.org
***************************************************************************/
/***************************************************************************
* *
* 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 KGPGVIEW_H
#define KGPGVIEW_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <ktextedit.h>
#include <kurl.h>
class TQDragEnterEvent;
//class KgpgDoc;
/** The KgpgView class provides the view widget for the KgpgApp instance.
* The View instance inherits TQWidget as a base class and represents the view object of a KTMainWindow. As KgpgView is part of the
* docuement-view model, it needs a reference to the document object connected with it by the KgpgApp class to manipulate and display
* the document structure provided by the KgpgDoc class.
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 0.4 code generation
*/
class MyEditor : public KTextEdit
{
Q_OBJECT
public:
MyEditor( TQWidget *parent = 0, const char *name = 0);
private:
TQString message,messages,tempFile;
public slots:
void slotDecodeFile(TQString);
void slotDroppedFile(KURL url);
void slotProcessResult(TQStringList iKeys);
bool slotCheckContent(TQString fileToCheck, bool checkForPgpMessage=true);
protected:
void contentsDragEnterEvent( TQDragEnterEvent *e );
void contentsDropEvent( TQDropEvent *e );
private slots:
void editorUpdateDecryptedtxt(TQString newtxt);
void editorFailedDecryptedtxt(TQString newtxt);
signals:
void refreshImported(TQStringList);
};
class KgpgView : public QWidget
{
Q_OBJECT
friend class MyEditor;
public:
/** Constructor for the main view */
KgpgView(TQWidget *parent = 0, const char *name=0);
/** Destructor for the main view */
~KgpgView();
/** returns a pointer to the document connected to the view instance. Mind that this method requires a KgpgApp instance as a parent
* widget to get to the window document pointer by calling the KgpgApp::getDocument() method.
*
* @see KgpgApp#getDocument
*/
// KgpgDoc *getDocument() const;
// TQTextEdit *editor;
MyEditor *editor;
KURL fselected;
bool windowAutoClose;
/** contains the implementation for printing functionality */
// void print(TQPrinter *pPrinter);
TQPushButton *bouton1,*bouton2,*bouton0;
private:
TQString messages;
public slots:
void slotdecode();
void clearSign();
private slots:
void slotVerifyResult(TQString mssge,TQString log);
void slotSignResult(TQString signResult);
void slotAskForImport(TQString ID);
void popuppublic();
void modified();
void encodetxt(TQStringList selec,TQStringList encryptOptions,bool, bool symmetric);
void updatetxt(TQString);
void updateDecryptedtxt(TQString newtxt);
void failedDecryptedtxt(TQString newtxt);
bool checkForUtf8(TQString text);
signals:
void resetEncoding(bool);
void verifyFinished();
void verifyDetach();
};
#endif // KGPGVIEW_H
|