diff options
Diffstat (limited to 'src/gui/kdeext/klearlook.h')
-rw-r--r-- | src/gui/kdeext/klearlook.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/src/gui/kdeext/klearlook.h b/src/gui/kdeext/klearlook.h index dd3ab74..26775c5 100644 --- a/src/gui/kdeext/klearlook.h +++ b/src/gui/kdeext/klearlook.h @@ -40,8 +40,8 @@ #include <kdeversion.h> #include <kstyle.h> -#include <qcolor.h> -#include <qpoint.h> +#include <tqcolor.h> +#include <tqpoint.h> #define QTC_CHECK_SIZE 13 #define QTC_RADIO_SIZE 13 @@ -243,71 +243,71 @@ class KlearlookStyle : public KStyle { virtual ~KlearlookStyle() {} - void polish( QApplication *app ); - void polish( QPalette &pal ); - void polish( QWidget *widget ); - void unPolish( QWidget *widget ); - void drawLightBevel( QPainter *p, const QRect &r, const QColorGroup &cg, QStyle::SFlags flags, bool useGrad, ERound round, - const QColor &fill, const QColor *custom = NULL, bool light = false ) const; - void drawLightBevelButton( QPainter *p, const QRect &r, const QColorGroup &cg, QStyle::SFlags flags, bool useGrad, ERound round, - const QColor &fill, const QColor *custom = NULL, bool light = false ) const; - void drawArrow( QPainter *p, const QRect &r, const QColorGroup &cg, QStyle::SFlags flags, QStyle::PrimitiveElement pe, + void polish( TQApplication *app ); + void polish( TQPalette &pal ); + void polish( TQWidget *widget ); + void unPolish( TQWidget *widget ); + void drawLightBevel( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, bool useGrad, ERound round, + const TQColor &fill, const TQColor *custom = NULL, bool light = false ) const; + void drawLightBevelButton( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, bool useGrad, ERound round, + const TQColor &fill, const TQColor *custom = NULL, bool light = false ) const; + void drawArrow( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, TQStyle::PrimitiveElement pe, bool small = false, bool checkActive = false ) const; - void drawPrimitive( PrimitiveElement, QPainter *, const QRect &, const QColorGroup &, SFlags = Style_Default, - const QStyleOption & = QStyleOption::Default ) const; - void drawPrimitiveMenu( PrimitiveElement, QPainter *, const QRect &, const QColorGroup &, SFlags = Style_Default, - const QStyleOption & = QStyleOption::Default ) const; - void drawKStylePrimitive( KStylePrimitive kpe, QPainter* p, const QWidget* widget, const QRect &r, - const QColorGroup &cg, SFlags flags, const QStyleOption &opt ) const; - void drawControl( ControlElement, QPainter *, const QWidget *, const QRect &, const QColorGroup &, - SFlags = Style_Default, const QStyleOption & = QStyleOption::Default ) const; - void drawControlMask( ControlElement, QPainter *, const QWidget *, const QRect &, - const QStyleOption & = QStyleOption::Default ) const; - void drawComplexControlMask( ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, - const QStyleOption &data ) const; - QRect subRect( SubRect, const QWidget * ) const; - void drawComplexControl( ComplexControl, QPainter *, const QWidget *, const QRect &, const QColorGroup &, + void drawPrimitive( PrimitiveElement, TQPainter *, const TQRect &, const TQColorGroup &, SFlags = Style_Default, + const TQStyleOption & = TQStyleOption::Default ) const; + void drawPrimitiveMenu( PrimitiveElement, TQPainter *, const TQRect &, const TQColorGroup &, SFlags = Style_Default, + const TQStyleOption & = TQStyleOption::Default ) const; + void drawKStylePrimitive( KStylePrimitive kpe, TQPainter* p, const TQWidget* widget, const TQRect &r, + const TQColorGroup &cg, SFlags flags, const TQStyleOption &opt ) const; + void drawControl( ControlElement, TQPainter *, const TQWidget *, const TQRect &, const TQColorGroup &, + SFlags = Style_Default, const TQStyleOption & = TQStyleOption::Default ) const; + void drawControlMask( ControlElement, TQPainter *, const TQWidget *, const TQRect &, + const TQStyleOption & = TQStyleOption::Default ) const; + void drawComplexControlMask( ComplexControl control, TQPainter *p, const TQWidget *widget, const TQRect &r, + const TQStyleOption &data ) const; + TQRect subRect( SubRect, const TQWidget * ) const; + void drawComplexControl( ComplexControl, TQPainter *, const TQWidget *, const TQRect &, const TQColorGroup &, SFlags = Style_Default, SCFlags = SC_All, SCFlags = SC_None, - const QStyleOption & = QStyleOption::Default ) const; - QRect querySubControlMetrics( ComplexControl, const QWidget *, SubControl, - const QStyleOption & = QStyleOption::Default ) const; - int pixelMetric( PixelMetric, const QWidget *widget = 0 ) const; - int kPixelMetric( KStylePixelMetric kpm, const QWidget *widget ) const; - QSize sizeFromContents( ContentsType, const QWidget *, const QSize &, - const QStyleOption & = QStyleOption::Default ) const; - int styleHint( StyleHint, const QWidget *widget = 0, const QStyleOption & = QStyleOption::Default, + const TQStyleOption & = TQStyleOption::Default ) const; + TQRect querySubControlMetrics( ComplexControl, const TQWidget *, SubControl, + const TQStyleOption & = TQStyleOption::Default ) const; + int pixelMetric( PixelMetric, const TQWidget *widget = 0 ) const; + int kPixelMetric( KStylePixelMetric kpm, const TQWidget *widget ) const; + TQSize sizeFromContents( ContentsType, const TQWidget *, const TQSize &, + const TQStyleOption & = TQStyleOption::Default ) const; + int styleHint( StyleHint, const TQWidget *widget = 0, const TQStyleOption & = TQStyleOption::Default, QStyleHintReturn *returnData = 0 ) const; protected: - bool eventFilter( QObject *object, QEvent *event ); - void drawPBarOrMenu( QPainter *p, QRect const &r, bool horiz, const QColorGroup &cg, bool menu = false ) const; - void drawPBarOrMenu2( QPainter *p, QRect const &r, bool horiz, const QColorGroup &cg, bool menu = false ) const; - void drawGradientWithBorder( QPainter *p, QRect const &r, bool horiz = true ) const; - void drawBevelGradient( const QColor &base, bool increase, int border, QPainter *p, QRect const &r, bool horiz, + bool eventFilter( TQObject *object, TQEvent *event ); + void drawPBarOrMenu( TQPainter *p, TQRect const &r, bool horiz, const TQColorGroup &cg, bool menu = false ) const; + void drawPBarOrMenu2( TQPainter *p, TQRect const &r, bool horiz, const TQColorGroup &cg, bool menu = false ) const; + void drawGradientWithBorder( TQPainter *p, TQRect const &r, bool horiz = true ) const; + void drawBevelGradient( const TQColor &base, bool increase, int border, TQPainter *p, TQRect const &r, bool horiz, double shadeTop, double shadeBot ) const; - void drawGradient( const QColor &top, const QColor &bot, bool increase, int border, QPainter *p, QRect const &r, + void drawGradient( const TQColor &top, const TQColor &bot, bool increase, int border, TQPainter *p, TQRect const &r, bool horiz = true ) const; - void drawSliderHandle( QPainter *p, const QRect &r, const QColorGroup &cg, QStyle::SFlags flags ) const; - void drawPopupRect( QPainter *p, const QRect &r, const QColorGroup &cg) const ; + void drawSliderHandle( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags ) const; + void drawPopupRect( TQPainter *p, const TQRect &r, const TQColorGroup &cg) const ; - void drawSliderGroove( QPainter *p, const QRect &r, QStyle::SFlags flags, const QWidget *widget ) const; + void drawSliderGroove( TQPainter *p, const TQRect &r, TQStyle::SFlags flags, const TQWidget *widget ) const; private: - void shadeColors( const QColor &base, QColor *vals ) const; - const QColor * buttonColors( const QColorGroup &cg ) const; - const QColor * backgroundColors( const QColorGroup &cg ) const; + void shadeColors( const TQColor &base, TQColor *vals ) const; + const TQColor * buttonColors( const TQColorGroup &cg ) const; + const TQColor * backgroundColors( const TQColorGroup &cg ) const; bool redrawHoverWidget(); private: - QColor menuPbar[ GRADIENT_NUM_COLS < NUM_SHADES + 1 ? NUM_SHADES + 1 : GRADIENT_NUM_COLS ], + TQColor menuPbar[ GRADIENT_NUM_COLS < NUM_SHADES + 1 ? NUM_SHADES + 1 : GRADIENT_NUM_COLS ], gray[ NUM_SHADES + 1 ], button[ NUM_SHADES + 1 ]; // Last color = base color, for comparisons! - mutable QColor buttonColoured[ NUM_SHADES + 1 ]; - mutable QColor backgroundColoured[ NUM_SHADES + 1 ]; + mutable TQColor buttonColoured[ NUM_SHADES + 1 ]; + mutable TQColor backgroundColoured[ NUM_SHADES + 1 ]; EApp themedApp; int popupmenuHighlightLevel; bool borderButton, @@ -335,9 +335,9 @@ class KlearlookStyle : public KStyle { EHover hover; int contrast; - QPoint oldCursor; + TQPoint oldCursor; mutable bool formMode; - QWidget *hoverWidget; + TQWidget *hoverWidget; int hoverSect; }; |