summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/zsafe.h
authordrw <drw>2005-05-06 21:54:49 (UTC)
committer drw <drw>2005-05-06 21:54:49 (UTC)
commit852f6cf4ff1c4010f998ee8cd68936e38001f032 (patch) (unidiff)
treef12269677f7a84dfe0c6b9aaa6db9875d3d8b8c4 /noncore/apps/zsafe/zsafe.h
parent1a4c6fd2efdb11c2bddc77126e509b5a47665715 (diff)
downloadopie-852f6cf4ff1c4010f998ee8cd68936e38001f032.zip
opie-852f6cf4ff1c4010f998ee8cd68936e38001f032.tar.gz
opie-852f6cf4ff1c4010f998ee8cd68936e38001f032.tar.bz2
Opie-fy ZSafe UI: clean up menus, use proper toolbar, use shared pics where possible and use OResource for image loading
Diffstat (limited to 'noncore/apps/zsafe/zsafe.h') (more/less context) (ignore 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
@@ -20,6 +20,8 @@
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>
@@ -46,13 +48,12 @@ class QPixmap;
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;
@@ -65,10 +66,6 @@ public:
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;
@@ -181,7 +178,6 @@ public slots:
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);
@@ -196,9 +192,4 @@ private slots:
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