diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-01 19:56:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-01 19:56:15 +0000 |
commit | 102d191fa7d143d634d35ca894945688a196361b (patch) | |
tree | e76c3f63d2bcdb67a80957fee6251dff6d32bad5 /kstyles/asteroid/asteroid.h | |
parent | f0b1722fbfca15e4b9c0afec6d0191466b719417 (diff) | |
download | tdelibs-102d191fa7d143d634d35ca894945688a196361b.tar.gz tdelibs-102d191fa7d143d634d35ca894945688a196361b.zip |
Add Asteroid widget theme to kdelibs
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1244309 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstyles/asteroid/asteroid.h')
-rw-r--r-- | kstyles/asteroid/asteroid.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/kstyles/asteroid/asteroid.h b/kstyles/asteroid/asteroid.h new file mode 100644 index 000000000..5cf1d7ae7 --- /dev/null +++ b/kstyles/asteroid/asteroid.h @@ -0,0 +1,111 @@ +/* + * Copyright 2003, Chris Lee <clee@kde.org> + * + * See LICENSE for details about copyright. + */ + +#ifndef __ASTEROID_H +#define __ASTEROID_H + +#include <kstyle.h> + +class AsteroidStyle : public KStyle +{ + Q_OBJECT + TQ_OBJECT +public: + AsteroidStyle(); + virtual ~AsteroidStyle(); + + void polish(TQWidget *); + void unPolish(TQWidget *); + + + void renderSliderHandle(TQPainter *p, + const TQRect &r, + const TQColorGroup &g, + const bool mouseOver, + const bool horizontal, + const bool enabled) const; + + void renderMenuBlendPixmap(KPixmap &, + const TQColorGroup &, + const TQPopupMenu *) const; + + void drawKStylePrimitive(KStylePrimitive, + TQPainter *, + const TQWidget *, + const TQRect &, + const TQColorGroup &, + SFlags = Style_Default, + const TQStyleOption & = TQStyleOption::Default) const; + + void tqdrawPrimitive(TQ_PrimitiveElement, + TQPainter *, + const TQRect &, + const TQColorGroup &, + SFlags = Style_Default, + const TQStyleOption & = TQStyleOption::Default) const; + + void tqdrawControl(TQ_ControlElement, + TQPainter *, + const TQWidget *, + const TQRect &, + const TQColorGroup &, + SFlags = Style_Default, + const TQStyleOption & = TQStyleOption::Default) const; + + void tqdrawControlMask(TQ_ControlElement, + TQPainter *, + const TQWidget *, + const TQRect &, + const TQStyleOption &) const; + + void tqdrawComplexControl(TQ_ComplexControl, + TQPainter *, + const TQWidget *, + const TQRect &, + const TQColorGroup &, + SFlags = Style_Default, + SCFlags controls = SC_All, + SCFlags active = SC_None, + const TQStyleOption & = TQStyleOption::Default) const; + + void tqdrawComplexControlMask(TQ_ComplexControl, + TQPainter *, + const TQWidget *, + const TQRect &r, + const TQStyleOption & = TQStyleOption::Default) const; + + int tqpixelMetric(PixelMetric, const TQWidget * = 0) const; + + int kPixelMetric( KStylePixelMetric kpm, const TQWidget* /* widget */) const; + + TQRect subRect(SubRect, const TQWidget *) const; + + TQRect querySubControlMetrics(TQ_ComplexControl, + const TQWidget *, + SubControl, + const TQStyleOption & = TQStyleOption::Default) const; + + TQSize sizeFromContents(ContentsType, + const TQWidget *, + const TQSize &, + const TQStyleOption &) const; + +protected: + bool eventFilter(TQObject *, TQEvent *); + +protected slots: + void paletteChanged(); + +private: + AsteroidStyle(const AsteroidStyle &); + AsteroidStyle &operator = (const AsteroidStyle &); + +/* Settings not needed yet. */ +// TQSettings *settings; + bool backwards; +}; + +#endif /* __ASTEROID_H */ |