summaryrefslogtreecommitdiff
path: root/noncore/applets/notesapplet/notes.h
authorllornkcor <llornkcor>2002-09-22 00:36:02 (UTC)
committer llornkcor <llornkcor>2002-09-22 00:36:02 (UTC)
commitaf1e2665f9d7b6ad8b10142e6a432fd1e6aa0c9d (patch) (unidiff)
tree1c1f388a8b2ae4f81fc60469688e851d4509312b /noncore/applets/notesapplet/notes.h
parentd60625b5551f26cdc35f7b2497ab538de859537d (diff)
downloadopie-af1e2665f9d7b6ad8b10142e6a432fd1e6aa0c9d.zip
opie-af1e2665f9d7b6ad8b10142e6a432fd1e6aa0c9d.tar.gz
opie-af1e2665f9d7b6ad8b10142e6a432fd1e6aa0c9d.tar.bz2
opienotes
Diffstat (limited to 'noncore/applets/notesapplet/notes.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/noncore/applets/notesapplet/notes.h b/noncore/applets/notesapplet/notes.h
new file mode 100644
index 0000000..2172d5a
--- a/dev/null
+++ b/noncore/applets/notesapplet/notes.h
@@ -0,0 +1,85 @@
1/**********************************************************************
2** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com
3** All rights reserved.
4**
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
7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file.
9**
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.
12**
13**********************************************************************/
14
15#ifndef __NOTES_APPLET_H__
16#define __NOTES_APPLET_H__
17
18#include <qwidget.h>
19#include <qframe.h>
20#include <qpixmap.h>
21#include <qguardedptr.h>
22#include <qtimer.h>
23#include <qpe/filemanager.h>
24#include <qstring.h>
25
26class QComboBox;
27class QCheckBox;
28class QSpinBox;
29class QPushButton;
30class QMultiLineEdit;
31class QListBox;
32class QListBoxItem;
33class NotesControl : public QFrame {
34 Q_OBJECT
35public:
36 NotesControl( QWidget *parent=0, const char *name=0 );
37 void performGrab();
38
39 QPixmap notes;
40 QMultiLineEdit *view;
41 QListBox *box;
42 QPushButton *saveButton, *deleteButton, *newButton;
43 QString FileNamePath;
44 bool doPopulate;
45 void save();
46 void populateBox();
47 void load();
48
49private:
50 QTimer menuTimer;
51 DocLnk *doc;
52 bool loaded, edited;
53 QString oldDocName;
54 void focusOutEvent( QFocusEvent * );
55 void load(const QString&);
56private slots:
57 void slotDeleteButton();
58 void slotNewButton();
59 void boxPressed(int, QListBoxItem *, const QPoint&);
60 void showMenu();
61 void loadDoc( const DocLnk &);
62 void slotViewEdited();
63 void slotBoxSelected(const QString &);
64};
65
66class NotesApplet : public QWidget {
67 Q_OBJECT
68public:
69 NotesApplet( QWidget *parent = 0, const char *name=0 );
70 ~NotesApplet();
71 NotesControl *vc;
72public slots:
73private:
74 void mousePressEvent( QMouseEvent * );
75 void paintEvent( QPaintEvent* );
76
77private:
78 QPixmap notesPixmap;
79private slots:
80
81
82};
83
84#endif // __NOTES_APPLET_H__
85