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) (side-by-side diff)
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 @@
+/**********************************************************************
+** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com
+** All rights reserved.
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
+
+#ifndef __NOTES_APPLET_H__
+#define __NOTES_APPLET_H__
+
+#include <qwidget.h>
+#include <qframe.h>
+#include <qpixmap.h>
+#include <qguardedptr.h>
+#include <qtimer.h>
+#include <qpe/filemanager.h>
+#include <qstring.h>
+
+class QComboBox;
+class QCheckBox;
+class QSpinBox;
+class QPushButton;
+class QMultiLineEdit;
+class QListBox;
+class QListBoxItem;
+class NotesControl : public QFrame {
+ Q_OBJECT
+public:
+ NotesControl( QWidget *parent=0, const char *name=0 );
+ void performGrab();
+
+ QPixmap notes;
+ QMultiLineEdit *view;
+ QListBox *box;
+ QPushButton *saveButton, *deleteButton, *newButton;
+ QString FileNamePath;
+ bool doPopulate;
+ void save();
+ void populateBox();
+ void load();
+
+private:
+ QTimer menuTimer;
+ DocLnk *doc;
+ bool loaded, edited;
+ QString oldDocName;
+ void focusOutEvent( QFocusEvent * );
+ void load(const QString&);
+private slots:
+ void slotDeleteButton();
+ void slotNewButton();
+ void boxPressed(int, QListBoxItem *, const QPoint&);
+ void showMenu();
+ void loadDoc( const DocLnk &);
+ void slotViewEdited();
+ void slotBoxSelected(const QString &);
+};
+
+class NotesApplet : public QWidget {
+ Q_OBJECT
+public:
+ NotesApplet( QWidget *parent = 0, const char *name=0 );
+ ~NotesApplet();
+ NotesControl *vc;
+public slots:
+private:
+ void mousePressEvent( QMouseEvent * );
+ void paintEvent( QPaintEvent* );
+
+private:
+ QPixmap notesPixmap;
+private slots:
+
+
+};
+
+#endif // __NOTES_APPLET_H__
+