summaryrefslogtreecommitdiff
path: root/library/qpedecoration_qws.h
authorzecke <zecke>2002-09-10 12:09:49 (UTC)
committer zecke <zecke>2002-09-10 12:09:49 (UTC)
commit6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4 (patch) (unidiff)
tree6ebc93c6432f4ed9d00ef1448b6a047ef522a79a /library/qpedecoration_qws.h
parentd10cddb3c9ce75bc90b14add14bc133737fe35aa (diff)
downloadopie-6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4.zip
opie-6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4.tar.gz
opie-6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4.tar.bz2
Qtopia1-6 merge
still to test bic changes to be resolved more changes to be made?
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,7 +1,7 @@
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
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
@@ -21,10 +21,12 @@
21#define QPE_DECORATION_QWS_H__ 21#define QPE_DECORATION_QWS_H__
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
30#ifndef QT_NO_QWS_QPE_WM_STYLE 32#ifndef QT_NO_QWS_QPE_WM_STYLE
@@ -36,6 +38,7 @@ class QPEDecoration : public QWSDefaultDecoration
36{ 38{
37public: 39public:
38 QPEDecoration(); 40 QPEDecoration();
41 QPEDecoration( const QString &plugin );
39 virtual ~QPEDecoration(); 42 virtual ~QPEDecoration();
40 43
41 virtual QRegion region(const QWidget *, const QRect &rect, Region); 44 virtual QRegion region(const QWidget *, const QRect &rect, Region);
@@ -50,8 +53,6 @@ public:
50 void buttonClicked( QPERegion r ); 53 void buttonClicked( QPERegion r );
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();
57 virtual const char **closePixmap(); 58 virtual const char **closePixmap();
@@ -59,6 +60,9 @@ protected:
59 virtual const char **maximizePixmap(); 60 virtual const char **maximizePixmap();
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;
64 QImage imageClose; 68 QImage imageClose;
@@ -77,11 +81,14 @@ public:
77 QPEManager( QPEDecoration *d, QObject *parent=0 ); 81 QPEManager( QPEDecoration *d, QObject *parent=0 );
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:
82 int pointInQpeRegion( QWidget *w, const QPoint &p ); 88 int pointInQpeRegion( QWidget *w, const QPoint &p );
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:
87 void whatsThisTimeout(); 94 void whatsThisTimeout();
@@ -92,6 +99,8 @@ protected:
92 int helpState; 99 int helpState;
93 QTime pressTime; 100 QTime pressTime;
94 QTimer *wtTimer; 101 QTimer *wtTimer;
102 bool inWhatsThis;
103 QGuardedPtr<QWidget> whatsThis;
95}; 104};
96 105
97 106
@@ -99,3 +108,4 @@ protected:
99 108
100 109
101#endif // QPE_DECORATION_QWS_H__ 110#endif // QPE_DECORATION_QWS_H__
111#endif // QWS