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.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/library/qpedecoration_qws.h b/library/qpedecoration_qws.h
index b8afd05..691c6f6 100644
--- a/library/qpedecoration_qws.h
+++ b/library/qpedecoration_qws.h
@@ -1,6 +1,6 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the 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
@@ -22,8 +22,10 @@
22 22
23 23
24#ifdef QWS
24#include <qwsdefaultdecoration_qws.h> 25#include <qwsdefaultdecoration_qws.h>
25#include <qimage.h> 26#include <qimage.h>
26#include <qdatetime.h> 27#include <qdatetime.h>
27#include <qguardedptr.h> 28#include <qguardedptr.h>
29#include "windowdecorationinterface.h"
28 30
29 31
@@ -37,4 +39,5 @@ class QPEDecoration : public QWSDefaultDecoration
37public: 39public:
38 QPEDecoration(); 40 QPEDecoration();
41 QPEDecoration( const QString &plugin );
39 virtual ~QPEDecoration(); 42 virtual ~QPEDecoration();
40 43
@@ -51,6 +54,4 @@ public:
51 54
52protected: 55protected:
53 void fillTitle( QPainter *p, const QWidget *w, int x, int y, int w, int h );
54// virtual int getTitleWidth(const QWidget *);
55 virtual int getTitleHeight(const QWidget *); 56 virtual int getTitleHeight(const QWidget *);
56 virtual const char **menuPixmap(); 57 virtual const char **menuPixmap();
@@ -60,4 +61,7 @@ protected:
60 virtual const char **normalizePixmap(); 61 virtual const char **normalizePixmap();
61 62
63private:
64 void windowData( const QWidget *w, WindowDecorationInterface::WindowData &wd ) const;
65
62protected: 66protected:
63 QImage imageOk; 67 QImage imageOk;
@@ -78,4 +82,6 @@ public:
78 82
79 void updateActive(); 83 void updateActive();
84 const QWidget *activeWidget() const { return (const QWidget *)active; }
85 const QWidget *whatsThisWidget() const { return (const QWidget *)whatsThis; }
80 86
81protected: 87protected:
@@ -83,4 +89,5 @@ protected:
83 virtual bool eventFilter( QObject *, QEvent * ); 89 virtual bool eventFilter( QObject *, QEvent * );
84 void drawButton( QWidget *w, QPEDecoration::QPERegion r, int state ); 90 void drawButton( QWidget *w, QPEDecoration::QPERegion r, int state );
91 void drawTitle( QWidget *w );
85 92
86protected slots: 93protected slots:
@@ -93,4 +100,6 @@ protected:
93 QTime pressTime; 100 QTime pressTime;
94 QTimer *wtTimer; 101 QTimer *wtTimer;
102 bool inWhatsThis;
103 QGuardedPtr<QWidget> whatsThis;
95}; 104};
96 105
@@ -100,2 +109,3 @@ protected:
100 109
101#endif // QPE_DECORATION_QWS_H__ 110#endif // QPE_DECORATION_QWS_H__
111#endif // QWS