Diffstat (limited to 'core/applets/clipboardapplet/clipboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/clipboardapplet/clipboard.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/core/applets/clipboardapplet/clipboard.h b/core/applets/clipboardapplet/clipboard.h index 9dd59ed..84743d9 100644 --- a/core/applets/clipboardapplet/clipboard.h +++ b/core/applets/clipboardapplet/clipboard.h | |||
@@ -1,47 +1,53 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef __CLIPBOARD_APPLET_H__ | 20 | #ifndef __CLIPBOARD_APPLET_H__ |
21 | #define __CLIPBOARD_APPLET_H__ | 21 | #define __CLIPBOARD_APPLET_H__ |
22 | 22 | ||
23 | #include <qwidget.h> | 23 | #include <qwidget.h> |
24 | #include <qpixmap.h> | 24 | #include <qpixmap.h> |
25 | #include <qstringlist.h> | ||
25 | 26 | ||
26 | class ClipboardApplet : public QWidget | 27 | class ClipboardApplet : public QWidget |
27 | { | 28 | { |
28 | Q_OBJECT | 29 | Q_OBJECT |
29 | public: | 30 | public: |
30 | ClipboardApplet( QWidget *parent = 0, const char *name=0 ); | 31 | ClipboardApplet ( QWidget *parent = 0, const char *name=0 ); |
31 | ~ClipboardApplet(); | 32 | ~ClipboardApplet ( ); |
32 | 33 | ||
33 | protected: | 34 | protected: |
34 | void mousePressEvent( QMouseEvent *); | 35 | void mousePressEvent ( QMouseEvent *); |
35 | void paintEvent( QPaintEvent* ); | 36 | void paintEvent ( QPaintEvent* ); |
36 | 37 | ||
37 | private slots: | 38 | private slots: |
38 | void action(int); | 39 | void action ( int ); |
40 | void newData ( ); | ||
39 | 41 | ||
40 | private: | 42 | private: |
41 | QPopupMenu* menu; | 43 | QPopupMenu * m_menu; |
42 | QPixmap clipboardPixmap; | 44 | QStringList m_history; |
45 | bool m_dirty; | ||
46 | QString m_lasttext; | ||
47 | |||
48 | QPixmap m_clipboardPixmap; | ||
43 | }; | 49 | }; |
44 | 50 | ||
45 | 51 | ||
46 | #endif // __CLIPBOARD_APPLET_H__ | 52 | #endif // __CLIPBOARD_APPLET_H__ |
47 | 53 | ||