-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 @@ /********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. +** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** -** This file is part of Qtopia Environment. +** This file is part of the Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the @@ -22,8 +22,10 @@ +#ifdef QWS #include <qwsdefaultdecoration_qws.h> #include <qimage.h> #include <qdatetime.h> #include <qguardedptr.h> +#include "windowdecorationinterface.h" @@ -37,4 +39,5 @@ class QPEDecoration : public QWSDefaultDecoration public: QPEDecoration(); + QPEDecoration( const QString &plugin ); virtual ~QPEDecoration(); @@ -51,6 +54,4 @@ public: protected: - void fillTitle( QPainter *p, const QWidget *w, int x, int y, int w, int h ); -// virtual int getTitleWidth(const QWidget *); virtual int getTitleHeight(const QWidget *); virtual const char **menuPixmap(); @@ -60,4 +61,7 @@ protected: virtual const char **normalizePixmap(); +private: + void windowData( const QWidget *w, WindowDecorationInterface::WindowData &wd ) const; + protected: QImage imageOk; @@ -78,4 +82,6 @@ public: void updateActive(); + const QWidget *activeWidget() const { return (const QWidget *)active; } + const QWidget *whatsThisWidget() const { return (const QWidget *)whatsThis; } protected: @@ -83,4 +89,5 @@ protected: virtual bool eventFilter( QObject *, QEvent * ); void drawButton( QWidget *w, QPEDecoration::QPERegion r, int state ); + void drawTitle( QWidget *w ); protected slots: @@ -93,4 +100,6 @@ protected: QTime pressTime; QTimer *wtTimer; + bool inWhatsThis; + QGuardedPtr<QWidget> whatsThis; }; @@ -100,2 +109,3 @@ protected: #endif // QPE_DECORATION_QWS_H__ +#endif // QWS |