summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-17 04:11:24 (UTC)
committer llornkcor <llornkcor>2002-10-17 04:11:24 (UTC)
commitac2f56d9be571ff2d8165f81fbea03d31c551779 (patch) (unidiff)
tree49ae17e46fbd091b906042df10724c0253ac5bc5
parent8f6dc7fd4aca312bc615bf4f85755b82d29b250d (diff)
downloadopie-ac2f56d9be571ff2d8165f81fbea03d31c551779.zip
opie-ac2f56d9be571ff2d8165f81fbea03d31c551779.tar.gz
opie-ac2f56d9be571ff2d8165f81fbea03d31c551779.tar.bz2
blah
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.h2
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
27class QComboBox; 27class QComboBox;
28class QCheckBox; 28class QCheckBox;
29class QSpinBox; 29class QSpinBox;
30class QPushButton; 30class QPushButton;
31class QMultiLineEdit; 31class QMultiLineEdit;
32class QListBox; 32class QListBox;
33class QListBoxItem; 33class QListBoxItem;
34class NotesControl : public QFrame { 34class NotesControl : public QFrame {
35 Q_OBJECT 35 Q_OBJECT
36public: 36public:
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
49private: 49private:
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&);
55private slots: 55private 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
71class NotesApplet : public QWidget { 71class NotesApplet : public QWidget {
72 Q_OBJECT 72 Q_OBJECT
73public: 73public:
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;
77public slots: 77public slots:
78private: 78private:
79 void mousePressEvent( QMouseEvent * ); 79 void mousePressEvent( QMouseEvent * );
80 void paintEvent( QPaintEvent* ); 80 void paintEvent( QPaintEvent* );
81 81
82private: 82private:
83 QPixmap notesPixmap; 83 QPixmap notesPixmap;
84private slots: 84private slots:
85 85
86 86
87}; 87};
88 88
89#endif // __NOTES_APPLET_H__ 89#endif // __NOTES_APPLET_H__
90 90