author | zecke <zecke> | 2002-09-10 12:09:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-10 12:09:49 (UTC) |
commit | 6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4 (patch) (unidiff) | |
tree | 6ebc93c6432f4ed9d00ef1448b6a047ef522a79a /library/qpedecoration_qws.h | |
parent | d10cddb3c9ce75bc90b14add14bc133737fe35aa (diff) | |
download | opie-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?
-rw-r--r-- | library/qpedecoration_qws.h | 18 |
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 | |||
37 | public: | 39 | public: |
38 | QPEDecoration(); | 40 | QPEDecoration(); |
41 | QPEDecoration( const QString &plugin ); | ||
39 | virtual ~QPEDecoration(); | 42 | virtual ~QPEDecoration(); |
40 | 43 | ||
@@ -51,6 +54,4 @@ public: | |||
51 | 54 | ||
52 | protected: | 55 | protected: |
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 | ||
63 | private: | ||
64 | void windowData( const QWidget *w, WindowDecorationInterface::WindowData &wd ) const; | ||
65 | |||
62 | protected: | 66 | protected: |
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 | ||
81 | protected: | 87 | protected: |
@@ -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 | ||
86 | protected slots: | 93 | protected 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 | ||