summaryrefslogtreecommitdiff
path: root/library/qpedecoration_qws.h
Unidiff
Diffstat (limited to 'library/qpedecoration_qws.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpedecoration_qws.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/qpedecoration_qws.h b/library/qpedecoration_qws.h
index d0a2005..ca670cd 100644
--- a/library/qpedecoration_qws.h
+++ b/library/qpedecoration_qws.h
@@ -19,23 +19,25 @@
19**********************************************************************/ 19**********************************************************************/
20#ifndef QPE_DECORATION_QWS_H__ 20#ifndef QPE_DECORATION_QWS_H__
21#define QPE_DECORATION_QWS_H__ 21#define QPE_DECORATION_QWS_H__
22 22
23 23
24#ifdef QWS 24#ifdef QWS
25#include <qpe/global.h>
25#include <qwsdefaultdecoration_qws.h> 26#include <qwsdefaultdecoration_qws.h>
26#include <qimage.h> 27#include <qimage.h>
27#include <qdatetime.h> 28#include <qdatetime.h>
28#include <qguardedptr.h> 29#include <qguardedptr.h>
29#include "windowdecorationinterface.h" 30#include "windowdecorationinterface.h"
30 31
31 32
32#ifndef QT_NO_QWS_QPE_WM_STYLE 33#ifndef QT_NO_QWS_QPE_WM_STYLE
33 34
34class QPEManager; 35class QPEManager;
35class QTimer; 36class QTimer;
37#include <qwidget.h>
36 38
37class QPEDecoration : public QWSDefaultDecoration 39class QPEDecoration : public QWSDefaultDecoration
38{ 40{
39public: 41public:
40 QPEDecoration(); 42 QPEDecoration();
41 QPEDecoration( const QString &plugin ); 43 QPEDecoration( const QString &plugin );
@@ -44,12 +46,13 @@ public:
44 virtual QRegion region(const QWidget *, const QRect &rect, Region); 46 virtual QRegion region(const QWidget *, const QRect &rect, Region);
45 virtual void paint(QPainter *, const QWidget *); 47 virtual void paint(QPainter *, const QWidget *);
46 virtual void paintButton(QPainter *, const QWidget *, Region, int state); 48 virtual void paintButton(QPainter *, const QWidget *, Region, int state);
47 49
48 void maximize( QWidget * ); 50 void maximize( QWidget * );
49 void minimize( QWidget * ); 51 void minimize( QWidget * );
52 virtual QPopupMenu *menu( const QWidget *, const QPoint & );
50 virtual void help( QWidget * ); 53 virtual void help( QWidget * );
51 54
52 enum QPERegion { Help=LastRegion+1 }; 55 enum QPERegion { Help=LastRegion+1 };
53 void buttonClicked( QPERegion r ); 56 void buttonClicked( QPERegion r );
54 57
55protected: 58protected:
@@ -60,20 +63,20 @@ protected:
60 virtual const char **maximizePixmap(); 63 virtual const char **maximizePixmap();
61 virtual const char **normalizePixmap(); 64 virtual const char **normalizePixmap();
62 65
63private: 66private:
64 void windowData( const QWidget *w, WindowDecorationInterface::WindowData &wd ) const; 67 void windowData( const QWidget *w, WindowDecorationInterface::WindowData &wd ) const;
65 68
66 void init ( const QString & ); 69 bool helpExists() const;
67 70
68protected: 71protected:
69 QImage imageOk; 72 QImage imageOk;
70 QImage imageClose; 73 QImage imageClose;
71 QImage imageHelp; 74 QImage imageHelp;
72 QString helpFile; 75 QString helpFile;
73 bool helpExists; 76 bool helpexists : 1;
74 QPEManager *qpeManager; 77 QPEManager *qpeManager;
75}; 78};
76 79
77 80
78class QPEManager : public QObject 81class QPEManager : public QObject
79{ 82{
@@ -98,13 +101,13 @@ protected slots:
98protected: 101protected:
99 QPEDecoration *decoration; 102 QPEDecoration *decoration;
100 QGuardedPtr<QWidget> active; 103 QGuardedPtr<QWidget> active;
101 int helpState; 104 int helpState;
102 QTime pressTime; 105 QTime pressTime;
103 QTimer *wtTimer; 106 QTimer *wtTimer;
104 bool inWhatsThis; 107 bool inWhatsThis : 1;
105 QGuardedPtr<QWidget> whatsThis; 108 QGuardedPtr<QWidget> whatsThis;
106}; 109};
107 110
108 111
109#endif // QT_NO_QWS_QPE_WM_STYLE 112#endif // QT_NO_QWS_QPE_WM_STYLE
110 113