summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/zsafe.h
Unidiff
Diffstat (limited to 'noncore/apps/zsafe/zsafe.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/zsafe/zsafe.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/noncore/apps/zsafe/zsafe.h b/noncore/apps/zsafe/zsafe.h
index 3d812f8..0be579c 100644
--- a/noncore/apps/zsafe/zsafe.h
+++ b/noncore/apps/zsafe/zsafe.h
@@ -17,12 +17,14 @@
17#include <stdio.h> 17#include <stdio.h>
18 18
19#include "infoform.h" 19#include "infoform.h"
20#include "categorylist.h" 20#include "categorylist.h"
21#include "shadedlistitem.h" 21#include "shadedlistitem.h"
22 22
23#include <qmainwindow.h>
24
23#include <qvariant.h> 25#include <qvariant.h>
24#include <qdialog.h> 26#include <qdialog.h>
25#include <qwidgetstack.h> 27#include <qwidgetstack.h>
26#include <qtimer.h> 28#include <qtimer.h>
27 29
28class QVBoxLayout; 30class QVBoxLayout;
@@ -43,35 +45,30 @@ class Config;
43class CategoryDialog; 45class CategoryDialog;
44class QPixmap; 46class QPixmap;
45 47
46// number of fields for one entry 48// number of fields for one entry
47#define FIELD_SIZE 7 49#define FIELD_SIZE 7
48 50
49class ZSafe : public QWidget 51class ZSafe : public QMainWindow
50{ 52{
51 Q_OBJECT 53 Q_OBJECT
52 54
53protected: 55protected:
54 void paintEvent( QPaintEvent * e ); 56 void paintEvent( QPaintEvent * e );
55 void resizeEvent ( QResizeEvent * );
56 57
57 bool raiseFlag; 58 bool raiseFlag;
58 QTimer raiseTimer; 59 QTimer raiseTimer;
59 60
60public: 61public:
61 ZSafe( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 62 ZSafe( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
62 ~ZSafe(); 63 ~ZSafe();
63 static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); } 64 static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); }
64 65
65 static const QColor *evenRowColor; 66 static const QColor *evenRowColor;
66 static const QColor *oddRowColor; 67 static const QColor *oddRowColor;
67 68
68 QToolButton* Edit;
69 QToolButton* Delete;
70 QToolButton* Find;
71 QToolButton* New;
72 ZListView* ListView; 69 ZListView* ListView;
73 70
74 QString cfgFile; 71 QString cfgFile;
75 QString iconPath; 72 QString iconPath;
76 73
77 InfoForm *infoForm; 74 InfoForm *infoForm;
@@ -178,13 +175,12 @@ public slots:
178 175
179 virtual void newDocument(); 176 virtual void newDocument();
180 virtual void loadDocument(); 177 virtual void loadDocument();
181 virtual void saveDocumentAs(); 178 virtual void saveDocumentAs();
182 virtual void saveDocumentWithoutPwd(); 179 virtual void saveDocumentWithoutPwd();
183 virtual void saveDocumentWithPwd(); 180 virtual void saveDocumentWithPwd();
184 virtual void about();
185 virtual void setExpandFlag(); 181 virtual void setExpandFlag();
186 182
187 virtual void categoryFieldActivated( const QString& str); 183 virtual void categoryFieldActivated( const QString& str);
188 184
189 virtual void ListPressed(int, QListViewItem *, const QPoint&, int); 185 virtual void ListPressed(int, QListViewItem *, const QPoint&, int);
190 virtual void copyClip( const QString &text); 186 virtual void copyClip( const QString &text);
@@ -193,12 +189,7 @@ private slots:
193 void setDocument(const QString& fileref); 189 void setDocument(const QString& fileref);
194 void slotLoadDocu(); 190 void slotLoadDocu();
195 void slotRaiseTimer(); 191 void slotRaiseTimer();
196 192
197}; 193};
198 194
199
200extern ZSafe *zs;
201extern QApplication *appl;
202extern int DeskW;
203extern int DeskH;
204#endif // ZSAFE_H 195#endif // ZSAFE_H