author | drw <drw> | 2005-05-06 21:54:49 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-06 21:54:49 (UTC) |
commit | 852f6cf4ff1c4010f998ee8cd68936e38001f032 (patch) (unidiff) | |
tree | f12269677f7a84dfe0c6b9aaa6db9875d3d8b8c4 /noncore/apps/zsafe/zsafe.h | |
parent | 1a4c6fd2efdb11c2bddc77126e509b5a47665715 (diff) | |
download | opie-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
-rw-r--r-- | noncore/apps/zsafe/zsafe.h | 15 |
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 | ||
28 | class QVBoxLayout; | 30 | class QVBoxLayout; |
@@ -43,35 +45,30 @@ class Config; | |||
43 | class CategoryDialog; | 45 | class CategoryDialog; |
44 | class QPixmap; | 46 | class 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 | ||
49 | class ZSafe : public QWidget | 51 | class ZSafe : public QMainWindow |
50 | { | 52 | { |
51 | Q_OBJECT | 53 | Q_OBJECT |
52 | 54 | ||
53 | protected: | 55 | protected: |
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 | ||
60 | public: | 61 | public: |
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 | |||
200 | extern ZSafe *zs; | ||
201 | extern QApplication *appl; | ||
202 | extern int DeskW; | ||
203 | extern int DeskH; | ||
204 | #endif // ZSAFE_H | 195 | #endif // ZSAFE_H |