Diffstat (limited to 'noncore/applets/memoryapplet/memorymeter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/memoryapplet/memorymeter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/applets/memoryapplet/memorymeter.h b/noncore/applets/memoryapplet/memorymeter.h index 0f3cb0b..ed541f0 100644 --- a/noncore/applets/memoryapplet/memorymeter.h +++ b/noncore/applets/memoryapplet/memorymeter.h | |||
@@ -10,44 +10,45 @@ | |||
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 MEMORY_H | 20 | #ifndef MEMORY_H |
21 | #define MEMORY_H | 21 | #define MEMORY_H |
22 | 22 | ||
23 | #include <qwidget.h> | 23 | #include <qwidget.h> |
24 | 24 | ||
25 | class MemoryStatus; | 25 | class MemoryStatus; |
26 | class QTimer; | 26 | class QTimer; |
27 | 27 | ||
28 | class MemoryMeter : public QWidget | 28 | class MemoryMeter : public QWidget |
29 | { | 29 | { |
30 | Q_OBJECT | 30 | Q_OBJECT |
31 | public: | 31 | public: |
32 | MemoryMeter( QWidget *parent = 0 ); | 32 | MemoryMeter( QWidget *parent = 0 ); |
33 | ~MemoryMeter(); | 33 | ~MemoryMeter(); |
34 | static int position(); | ||
34 | 35 | ||
35 | QSize sizeHint() const; | 36 | QSize sizeHint() const; |
36 | MemoryStatus* memoryView; | 37 | MemoryStatus* memoryView; |
37 | 38 | ||
38 | protected: | 39 | protected: |
39 | void timerEvent( QTimerEvent * ); | 40 | void timerEvent( QTimerEvent * ); |
40 | void paintEvent( QPaintEvent* ); | 41 | void paintEvent( QPaintEvent* ); |
41 | void mousePressEvent( QMouseEvent * ); | 42 | void mousePressEvent( QMouseEvent * ); |
42 | 43 | ||
43 | protected slots: | 44 | protected slots: |
44 | void usageTimeout(); | 45 | void usageTimeout(); |
45 | 46 | ||
46 | protected: | 47 | protected: |
47 | QTimer *usageTimer; | 48 | QTimer *usageTimer; |
48 | int percent, low, critical; | 49 | int percent, low, critical; |
49 | QSize bvsz; | 50 | QSize bvsz; |
50 | bool updateMemoryViewGeometry(); | 51 | bool updateMemoryViewGeometry(); |
51 | }; | 52 | }; |
52 | 53 | ||
53 | #endif | 54 | #endif |