author | llornkcor <llornkcor> | 2002-10-17 04:11:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-17 04:11:24 (UTC) |
commit | ac2f56d9be571ff2d8165f81fbea03d31c551779 (patch) (unidiff) | |
tree | 49ae17e46fbd091b906042df10724c0253ac5bc5 | |
parent | 8f6dc7fd4aca312bc615bf4f85755b82d29b250d (diff) | |
download | opie-ac2f56d9be571ff2d8165f81fbea03d31c551779.zip opie-ac2f56d9be571ff2d8165f81fbea03d31c551779.tar.gz opie-ac2f56d9be571ff2d8165f81fbea03d31c551779.tar.bz2 |
blah
-rw-r--r-- | noncore/applets/notesapplet/notes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/applets/notesapplet/notes.h b/noncore/applets/notesapplet/notes.h index 28877ce..381dc80 100644 --- a/noncore/applets/notesapplet/notes.h +++ b/noncore/applets/notesapplet/notes.h | |||
@@ -1,90 +1,90 @@ | |||
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 <qpe/ir.h> | 24 | #include <qpe/ir.h> |
25 | #include <qstring.h> | 25 | #include <qstring.h> |
26 | 26 | ||
27 | class QComboBox; | 27 | class QComboBox; |
28 | class QCheckBox; | 28 | class QCheckBox; |
29 | class QSpinBox; | 29 | class QSpinBox; |
30 | class QPushButton; | 30 | class QPushButton; |
31 | class QMultiLineEdit; | 31 | class QMultiLineEdit; |
32 | class QListBox; | 32 | class QListBox; |
33 | class QListBoxItem; | 33 | class QListBoxItem; |
34 | class NotesControl : public QFrame { | 34 | class NotesControl : public QFrame { |
35 | Q_OBJECT | 35 | Q_OBJECT |
36 | public: | 36 | public: |
37 | NotesControl( QWidget *parent=0, const char *name=0 ); | 37 | NotesControl( QWidget *parent=0, const char *name=0 ); |
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 loaded, edited, doPopulate; | 44 | bool loaded, edited, doPopulate, isNew; |
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 | QString oldDocName; | 52 | QString oldDocName; |
53 | void focusOutEvent( QFocusEvent * ); | 53 | void focusOutEvent( QFocusEvent * ); |
54 | void load(const QString&); | 54 | void load(const QString&); |
55 | private slots: | 55 | private slots: |
56 | void slotBeamButton(); | 56 | void slotBeamButton(); |
57 | void slotBeamFinished( Ir*); | 57 | void slotBeamFinished( Ir*); |
58 | void slotDeleteButton(); | 58 | void slotDeleteButton(); |
59 | void slotSaveButton(); | 59 | void slotSaveButton(); |
60 | void slotDeleteButtonClicked(); | 60 | void slotDeleteButtonClicked(); |
61 | void slotNewButton(); | 61 | void slotNewButton(); |
62 | void boxPressed(int, QListBoxItem *, const QPoint&); | 62 | void boxPressed(int, QListBoxItem *, const QPoint&); |
63 | void showMenu(); | 63 | void showMenu(); |
64 | void loadDoc( const DocLnk &); | 64 | void loadDoc( const DocLnk &); |
65 | void slotViewEdited(); | 65 | void slotViewEdited(); |
66 | void slotBoxSelected(const QString &); | 66 | void slotBoxSelected(const QString &); |
67 | // void keyReleaseEvent( QKeyEvent *); | 67 | // void keyReleaseEvent( QKeyEvent *); |
68 | 68 | ||
69 | }; | 69 | }; |
70 | 70 | ||
71 | class NotesApplet : public QWidget { | 71 | class NotesApplet : public QWidget { |
72 | Q_OBJECT | 72 | Q_OBJECT |
73 | public: | 73 | public: |
74 | NotesApplet( QWidget *parent = 0, const char *name=0 ); | 74 | NotesApplet( QWidget *parent = 0, const char *name=0 ); |
75 | ~NotesApplet(); | 75 | ~NotesApplet(); |
76 | NotesControl *vc; | 76 | NotesControl *vc; |
77 | public slots: | 77 | public slots: |
78 | private: | 78 | private: |
79 | void mousePressEvent( QMouseEvent * ); | 79 | void mousePressEvent( QMouseEvent * ); |
80 | void paintEvent( QPaintEvent* ); | 80 | void paintEvent( QPaintEvent* ); |
81 | 81 | ||
82 | private: | 82 | private: |
83 | QPixmap notesPixmap; | 83 | QPixmap notesPixmap; |
84 | private slots: | 84 | private slots: |
85 | 85 | ||
86 | 86 | ||
87 | }; | 87 | }; |
88 | 88 | ||
89 | #endif // __NOTES_APPLET_H__ | 89 | #endif // __NOTES_APPLET_H__ |
90 | 90 | ||