You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
5.3 KiB
134 lines
5.3 KiB
13 years ago
|
/*
|
||
|
* Copyright 2003, Chris Lee <clee@kde.org>
|
||
|
*
|
||
|
* See LICENSE for details about copyright.
|
||
|
*/
|
||
|
|
||
|
#ifndef __ASTEROID_H
|
||
|
#define __ASTEROID_H
|
||
|
|
||
12 years ago
|
#include <tdestyle.h>
|
||
13 years ago
|
|
||
12 years ago
|
class AsteroidStyle : public TDEStyle
|
||
13 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
13 years ago
|
public:
|
||
|
AsteroidStyle();
|
||
|
virtual ~AsteroidStyle();
|
||
|
|
||
12 years ago
|
void polish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *);
|
||
|
void unPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *);
|
||
|
void applicationPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *);
|
||
|
void applicationUnPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *);
|
||
13 years ago
|
|
||
|
|
||
|
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;
|
||
|
|
||
12 years ago
|
void drawTDEStylePrimitive(TDEStylePrimitive,
|
||
13 years ago
|
TQPainter *,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQRect &,
|
||
|
const TQColorGroup &,
|
||
|
SFlags = Style_Default,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption::Default,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int styleHint(TQ_StyleHint, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQStyleOption & = TQStyleOption::Default,
|
||
12 years ago
|
TQStyleHintReturn * = 0,
|
||
|
const TQWidget * = 0 ) const;
|
||
13 years ago
|
|
||
12 years ago
|
void drawPrimitive(TQ_PrimitiveElement,
|
||
13 years ago
|
TQPainter *,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQRect &,
|
||
|
const TQColorGroup &,
|
||
|
SFlags = Style_Default,
|
||
|
const TQStyleOption & = TQStyleOption::Default) const;
|
||
|
|
||
13 years ago
|
void drawControl(TQ_ControlElement,
|
||
13 years ago
|
TQPainter *,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQRect &,
|
||
|
const TQColorGroup &,
|
||
|
SFlags = Style_Default,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption::Default,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
13 years ago
|
void drawControlMask(TQ_ControlElement,
|
||
13 years ago
|
TQPainter *,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQRect &,
|
||
12 years ago
|
const TQStyleOption &,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
13 years ago
|
void drawComplexControl(TQ_ComplexControl,
|
||
13 years ago
|
TQPainter *,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQRect &,
|
||
|
const TQColorGroup &,
|
||
|
SFlags = Style_Default,
|
||
|
SCFlags controls = SC_All,
|
||
|
SCFlags active = SC_None,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption::Default,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
13 years ago
|
void drawComplexControlMask(TQ_ComplexControl,
|
||
13 years ago
|
TQPainter *,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
const ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQRect &r,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption::Default,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int pixelMetric(PixelMetric, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int kPixelMetric( TDEStylePixelMetric kpm, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQWidget* /* widget */) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQRect subRect(SubRect, const TQStyleControlElementData &ceData, const ControlElementFlags elementFlags, const TQWidget *) const;
|
||
13 years ago
|
|
||
|
TQRect querySubControlMetrics(TQ_ComplexControl,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
SubControl,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption::Default,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQSize sizeFromContents(ContentsType,
|
||
12 years ago
|
const TQStyleControlElementData &ceData,
|
||
12 years ago
|
ControlElementFlags elementFlags,
|
||
13 years ago
|
const TQSize &,
|
||
12 years ago
|
const TQStyleOption &,
|
||
|
const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
virtual bool objectEventHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, TQEvent *e );
|
||
13 years ago
|
|
||
|
protected slots:
|
||
|
void paletteChanged();
|
||
|
|
||
|
private:
|
||
|
AsteroidStyle(const AsteroidStyle &);
|
||
|
AsteroidStyle &operator = (const AsteroidStyle &);
|
||
|
|
||
|
/* Settings not needed yet. */
|
||
|
// TQSettings *settings;
|
||
|
bool backwards;
|
||
|
};
|
||
|
|
||
|
#endif /* __ASTEROID_H */
|