-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 @@ | |||
1 | #include <qpe/qpeapplication.h> | ||
2 | #include <qlistbox.h> | ||
3 | #include <qdir.h> | ||
4 | #include <qfile.h> | ||
5 | #include <qtextstream.h> | ||
6 | #include <qmessagebox.h> | ||
7 | |||
8 | #include <opie2/opimmainwindow.h> | ||
9 | #include <opie2/owidgetstack.h> | ||
10 | |||
11 | class mainWindowWidget : public Opie::OPimMainWindow | ||
12 | { | ||
13 | Q_OBJECT | ||
14 | |||
15 | public: | ||
16 | QListBox *notesList; | ||
17 | QDir fileList; | ||
18 | |||
19 | mainWindowWidget( QWidget *parent=0, const char *name=0, WFlags fl=0 ); | ||
20 | void refreshList(); | ||
21 | |||
22 | public slots: | ||
23 | void openFile(); | ||
24 | void deleteFile(); | ||
25 | |||
26 | private: | ||
27 | int selected; | ||
28 | QString fileName; | ||
29 | QString documentsDirName; | ||
30 | |||
31 | void editFile(QString filename, int create); | ||
32 | void toBeDone(void); | ||
33 | |||
34 | private slots: | ||
35 | void slotItemNew(); | ||
36 | void slotItemEdit(); | ||
37 | void slotItemDuplicate(); | ||
38 | void slotItemDelete(); | ||
39 | void slotItemBeam(); | ||
40 | void slotItemFind(); | ||
41 | void slotConfigure(); | ||
42 | |||
43 | protected slots: | ||
44 | void flush(); | ||
45 | void reload(); | ||
46 | int create(); | ||
47 | bool remove( int uid ); | ||
48 | void beam( int uid); | ||
49 | void show( int uid ); | ||
50 | void edit( int uid ); | ||
51 | void add( const Opie::OPimRecord& ); | ||
52 | }; | ||