author | hrw <hrw> | 2005-10-20 14:55:34 (UTC) |
---|---|---|
committer | hrw <hrw> | 2005-10-20 14:55:34 (UTC) |
commit | 57abd83eb7b79b95301de36dc178174d9b28b6c2 (patch) (side-by-side diff) | |
tree | b869bb94ec37a278bfed66877a1320d807399f94 /core/pim/notes/mainwindow.h | |
parent | 0f25331618ea6cac8a59f2c2298a9e1684748b97 (diff) | |
download | opie-57abd83eb7b79b95301de36dc178174d9b28b6c2.zip opie-57abd83eb7b79b95301de36dc178174d9b28b6c2.tar.gz opie-57abd83eb7b79b95301de36dc178174d9b28b6c2.tar.bz2 |
added Opie-Notes
-rw-r--r-- | core/pim/notes/mainwindow.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/core/pim/notes/mainwindow.h b/core/pim/notes/mainwindow.h new file mode 100644 index 0000000..32431ef --- a/dev/null +++ b/core/pim/notes/mainwindow.h @@ -0,0 +1,52 @@ +#include <qpe/qpeapplication.h> +#include <qlistbox.h> +#include <qdir.h> +#include <qfile.h> +#include <qtextstream.h> +#include <qmessagebox.h> + +#include <opie2/opimmainwindow.h> +#include <opie2/owidgetstack.h> + +class mainWindowWidget : public Opie::OPimMainWindow +{ + Q_OBJECT + + public: + QListBox *notesList; + QDir fileList; + + mainWindowWidget( QWidget *parent=0, const char *name=0, WFlags fl=0 ); + void refreshList(); + + public slots: + void openFile(); + void deleteFile(); + + private: + int selected; + QString fileName; + QString documentsDirName; + + void editFile(QString filename, int create); + void toBeDone(void); + + private slots: + void slotItemNew(); + void slotItemEdit(); + void slotItemDuplicate(); + void slotItemDelete(); + void slotItemBeam(); + void slotItemFind(); + void slotConfigure(); + + protected slots: + void flush(); + void reload(); + int create(); + bool remove( int uid ); + void beam( int uid); + void show( int uid ); + void edit( int uid ); + void add( const Opie::OPimRecord& ); +}; |