author | drw <drw> | 2005-05-06 21:54:49 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-06 21:54:49 (UTC) |
commit | 852f6cf4ff1c4010f998ee8cd68936e38001f032 (patch) (side-by-side diff) | |
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 @@ -11,24 +11,26 @@ ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #ifndef ZSAFE_H #define ZSAFE_H #include <stdio.h> #include "infoform.h" #include "categorylist.h" #include "shadedlistitem.h" +#include <qmainwindow.h> + #include <qvariant.h> #include <qdialog.h> #include <qwidgetstack.h> #include <qtimer.h> class QVBoxLayout; class QHBoxLayout; class QGridLayout; class ZListView; class QListViewItem; class QToolButton; class QTextBrowser; @@ -37,47 +39,42 @@ class QPopupMenu; // #ifndef WIN32 class QSettings; // #endif #else class Config; #endif class CategoryDialog; class QPixmap; // number of fields for one entry #define FIELD_SIZE 7 -class ZSafe : public QWidget +class ZSafe : public QMainWindow { Q_OBJECT protected: void paintEvent( QPaintEvent * e ); - void resizeEvent ( QResizeEvent * ); bool raiseFlag; QTimer raiseTimer; public: ZSafe( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~ZSafe(); static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); } static const QColor *evenRowColor; static const QColor *oddRowColor; - QToolButton* Edit; - QToolButton* Delete; - QToolButton* Find; - QToolButton* New; ZListView* ListView; QString cfgFile; QString iconPath; InfoForm *infoForm; CategoryDialog *categoryDialog; QListViewItem *selectedItem; // current selected item QListViewItem *copiedItem; // copied item bool IsCopy; bool IsCut; @@ -172,33 +169,27 @@ public slots: virtual void addCategory(); virtual void delCategory(); virtual void editCategory(); virtual void cutItem(); virtual void copyItem(); virtual void pasteItem(); virtual void newDocument(); virtual void loadDocument(); virtual void saveDocumentAs(); virtual void saveDocumentWithoutPwd(); virtual void saveDocumentWithPwd(); - virtual void about(); virtual void setExpandFlag(); virtual void categoryFieldActivated( const QString& str); virtual void ListPressed(int, QListViewItem *, const QPoint&, int); virtual void copyClip( const QString &text); private slots: void setDocument(const QString& fileref); void slotLoadDocu(); void slotRaiseTimer(); }; - -extern ZSafe *zs; -extern QApplication *appl; -extern int DeskW; -extern int DeskH; #endif // ZSAFE_H |