summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.h3
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
26class QComboBox; 26class QComboBox;
27class QCheckBox; 27class QCheckBox;
28class QSpinBox; 28class QSpinBox;
29class QPushButton; 29class QPushButton;
30class QMultiLineEdit; 30class QMultiLineEdit;
31class QListBox; 31class QListBox;
32class QListBoxItem; 32class QListBoxItem;
33class NotesControl : public QFrame { 33class NotesControl : public QFrame {
34 Q_OBJECT 34 Q_OBJECT
35public: 35public:
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
49private: 49private:
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&);
56private slots: 55private 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
66class NotesApplet : public QWidget { 65class NotesApplet : public QWidget {
67 Q_OBJECT 66 Q_OBJECT
68public: 67public:
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;
72public slots: 71public slots:
73private: 72private:
74 void mousePressEvent( QMouseEvent * ); 73 void mousePressEvent( QMouseEvent * );
75 void paintEvent( QPaintEvent* ); 74 void paintEvent( QPaintEvent* );
76 75
77private: 76private:
78 QPixmap notesPixmap; 77 QPixmap notesPixmap;
79private slots: 78private slots:
80 79
81 80
82}; 81};
83 82
84#endif // __NOTES_APPLET_H__ 83#endif // __NOTES_APPLET_H__
85 84