author | llornkcor <llornkcor> | 2002-09-22 15:44:27 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-22 15:44:27 (UTC) |
commit | 31835c64e5ca06609369a8df2b48cc87ca8b9839 (patch) (unidiff) | |
tree | a7010687c070d73e9d5f7eda5baadf759aaae2ee | |
parent | 0816ba0c42df8074d698b60041993dbda5591e27 (diff) | |
download | opie-31835c64e5ca06609369a8df2b48cc87ca8b9839.zip opie-31835c64e5ca06609369a8df2b48cc87ca8b9839.tar.gz opie-31835c64e5ca06609369a8df2b48cc87ca8b9839.tar.bz2 |
up
-rw-r--r-- | noncore/applets/notesapplet/notes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/applets/notesapplet/notes.h b/noncore/applets/notesapplet/notes.h index 2172d5a..c589f81 100644 --- a/noncore/applets/notesapplet/notes.h +++ b/noncore/applets/notesapplet/notes.h | |||
@@ -1,85 +1,84 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com | 2 | ** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com |
3 | ** All rights reserved. | 3 | ** All rights reserved. |
4 | ** | 4 | ** |
5 | ** This file may be distributed and/or modified under the terms of the | 5 | ** This file may be distributed and/or modified under the terms of the |
6 | ** GNU General Public License version 2 as published by the Free Software | 6 | ** GNU General Public License version 2 as published by the Free Software |
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
12 | ** | 12 | ** |
13 | **********************************************************************/ | 13 | **********************************************************************/ |
14 | 14 | ||
15 | #ifndef __NOTES_APPLET_H__ | 15 | #ifndef __NOTES_APPLET_H__ |
16 | #define __NOTES_APPLET_H__ | 16 | #define __NOTES_APPLET_H__ |
17 | 17 | ||
18 | #include <qwidget.h> | 18 | #include <qwidget.h> |
19 | #include <qframe.h> | 19 | #include <qframe.h> |
20 | #include <qpixmap.h> | 20 | #include <qpixmap.h> |
21 | #include <qguardedptr.h> | 21 | #include <qguardedptr.h> |
22 | #include <qtimer.h> | 22 | #include <qtimer.h> |
23 | #include <qpe/filemanager.h> | 23 | #include <qpe/filemanager.h> |
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | 25 | ||
26 | class QComboBox; | 26 | class QComboBox; |
27 | class QCheckBox; | 27 | class QCheckBox; |
28 | class QSpinBox; | 28 | class QSpinBox; |
29 | class QPushButton; | 29 | class QPushButton; |
30 | class QMultiLineEdit; | 30 | class QMultiLineEdit; |
31 | class QListBox; | 31 | class QListBox; |
32 | class QListBoxItem; | 32 | class QListBoxItem; |
33 | class NotesControl : public QFrame { | 33 | class NotesControl : public QFrame { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | public: | 35 | public: |
36 | NotesControl( QWidget *parent=0, const char *name=0 ); | 36 | NotesControl( QWidget *parent=0, const char *name=0 ); |
37 | void performGrab(); | 37 | void performGrab(); |
38 | 38 | ||
39 | QPixmap notes; | 39 | QPixmap notes; |
40 | QMultiLineEdit *view; | 40 | QMultiLineEdit *view; |
41 | QListBox *box; | 41 | QListBox *box; |
42 | QPushButton *saveButton, *deleteButton, *newButton; | 42 | QPushButton *saveButton, *deleteButton, *newButton; |
43 | QString FileNamePath; | 43 | QString FileNamePath; |
44 | bool doPopulate; | 44 | bool loaded, edited, doPopulate; |
45 | void save(); | 45 | void save(); |
46 | void populateBox(); | 46 | void populateBox(); |
47 | void load(); | 47 | void load(); |
48 | 48 | ||
49 | private: | 49 | private: |
50 | QTimer menuTimer; | 50 | QTimer menuTimer; |
51 | DocLnk *doc; | 51 | DocLnk *doc; |
52 | bool loaded, edited; | ||
53 | QString oldDocName; | 52 | QString oldDocName; |
54 | void focusOutEvent( QFocusEvent * ); | 53 | void focusOutEvent( QFocusEvent * ); |
55 | void load(const QString&); | 54 | void load(const QString&); |
56 | private slots: | 55 | private slots: |
57 | void slotDeleteButton(); | 56 | void slotDeleteButton(); |
58 | void slotNewButton(); | 57 | void slotNewButton(); |
59 | void boxPressed(int, QListBoxItem *, const QPoint&); | 58 | void boxPressed(int, QListBoxItem *, const QPoint&); |
60 | void showMenu(); | 59 | void showMenu(); |
61 | void loadDoc( const DocLnk &); | 60 | void loadDoc( const DocLnk &); |
62 | void slotViewEdited(); | 61 | void slotViewEdited(); |
63 | void slotBoxSelected(const QString &); | 62 | void slotBoxSelected(const QString &); |
64 | }; | 63 | }; |
65 | 64 | ||
66 | class NotesApplet : public QWidget { | 65 | class NotesApplet : public QWidget { |
67 | Q_OBJECT | 66 | Q_OBJECT |
68 | public: | 67 | public: |
69 | NotesApplet( QWidget *parent = 0, const char *name=0 ); | 68 | NotesApplet( QWidget *parent = 0, const char *name=0 ); |
70 | ~NotesApplet(); | 69 | ~NotesApplet(); |
71 | NotesControl *vc; | 70 | NotesControl *vc; |
72 | public slots: | 71 | public slots: |
73 | private: | 72 | private: |
74 | void mousePressEvent( QMouseEvent * ); | 73 | void mousePressEvent( QMouseEvent * ); |
75 | void paintEvent( QPaintEvent* ); | 74 | void paintEvent( QPaintEvent* ); |
76 | 75 | ||
77 | private: | 76 | private: |
78 | QPixmap notesPixmap; | 77 | QPixmap notesPixmap; |
79 | private slots: | 78 | private slots: |
80 | 79 | ||
81 | 80 | ||
82 | }; | 81 | }; |
83 | 82 | ||
84 | #endif // __NOTES_APPLET_H__ | 83 | #endif // __NOTES_APPLET_H__ |
85 | 84 | ||