summaryrefslogtreecommitdiffstats
path: root/src/widget/ia_ora.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/ia_ora.h')
-rw-r--r--src/widget/ia_ora.h204
1 files changed, 102 insertions, 102 deletions
diff --git a/src/widget/ia_ora.h b/src/widget/ia_ora.h
index 1e96ccc..2c9c174 100644
--- a/src/widget/ia_ora.h
+++ b/src/widget/ia_ora.h
@@ -33,14 +33,14 @@
#ifndef __MANDRIVASTYLE_H
#define __MANDRIVASTYLE_H
-#include <qbitmap.h>
-#include <qintdict.h>
+#include <tqbitmap.h>
+#include <tqintdict.h>
#include <kdrawutil.h>
#include <kpixmap.h>
#include <kstyle.h>
-#include <qintcache.h>
+#include <tqintcache.h>
-class QPopupMenu;
+class TQPopupMenu;
class MandrivaStyle : public KStyle
@@ -51,77 +51,77 @@ public:
MandrivaStyle();
virtual ~MandrivaStyle();
- void polish( QWidget* widget );
- void unPolish( QWidget* widget );
- void polish( QApplication *app );
- void renderMenuBlendPixmap( KPixmap& pix, const QColorGroup &cg,
- const QPopupMenu* popup ) const;
+ void polish( TQWidget* widget );
+ void unPolish( TQWidget* widget );
+ void polish( TQApplication *app );
+ void renderMenuBlendPixmap( KPixmap& pix, const TQColorGroup &cg,
+ const TQPopupMenu* popup ) const;
void drawKStylePrimitive( KStylePrimitive kpe,
- QPainter* p,
- const QWidget* widget,
- const QRect &r,
- const QColorGroup &cg,
+ TQPainter* p,
+ const TQWidget* widget,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags = Style_Default,
- const QStyleOption& = QStyleOption::Default ) const;
+ const TQStyleOption& = TQStyleOption::Default ) const;
void drawPrimitive( PrimitiveElement pe,
- QPainter* p,
- const QRect &r,
- const QColorGroup &cg,
+ TQPainter* p,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags = Style_Default,
- const QStyleOption& = QStyleOption::Default ) const;
+ const TQStyleOption& = TQStyleOption::Default ) const;
void drawControl( ControlElement element,
- QPainter *p,
- const QWidget *widget,
- const QRect &r,
- const QColorGroup &cg,
+ TQPainter *p,
+ const TQWidget *widget,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags = Style_Default,
- const QStyleOption& = QStyleOption::Default ) const;
+ const TQStyleOption& = TQStyleOption::Default ) const;
void drawControlMask( ControlElement element,
- QPainter *p,
- const QWidget *widget,
- const QRect &r,
- const QStyleOption& = QStyleOption::Default ) const;
+ TQPainter *p,
+ const TQWidget *widget,
+ const TQRect &r,
+ const TQStyleOption& = TQStyleOption::Default ) const;
void drawComplexControl( ComplexControl control,
- QPainter *p,
- const QWidget *widget,
- const QRect &r,
- const QColorGroup &cg,
+ TQPainter *p,
+ const TQWidget *widget,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
- const QStyleOption& = QStyleOption::Default ) const;
+ const TQStyleOption& = TQStyleOption::Default ) const;
void drawComplexControlMask( ComplexControl control,
- QPainter *p,
- const QWidget *widget,
- const QRect &r,
- const QStyleOption& = QStyleOption::Default ) const;
+ TQPainter *p,
+ const TQWidget *widget,
+ const TQRect &r,
+ const TQStyleOption& = TQStyleOption::Default ) const;
int pixelMetric( PixelMetric m,
- const QWidget *widget = 0 ) const;
+ const TQWidget *widget = 0 ) const;
- QSize sizeFromContents( ContentsType contents,
- const QWidget *widget,
- const QSize &contentSize,
- const QStyleOption& opt ) const;
+ TQSize sizeFromContents( ContentsType contents,
+ const TQWidget *widget,
+ const TQSize &contentSize,
+ const TQStyleOption& opt ) const;
- QRect subRect( SubRect r,
- const QWidget *widget ) const;
+ TQRect subRect( SubRect r,
+ const TQWidget *widget ) const;
- // Fix Qt3's wacky image positions
- QPixmap stylePixmap( StylePixmap stylepixmap,
- const QWidget *widget = 0,
- const QStyleOption& = QStyleOption::Default ) const;
+ // Fix TQt3's wacky image positions
+ TQPixmap stylePixmap( StylePixmap stylepixmap,
+ const TQWidget *widget = 0,
+ const TQStyleOption& = TQStyleOption::Default ) const;
- QRect querySubControlMetrics( ComplexControl control,
- const QWidget* widget,
+ TQRect querySubControlMetrics( ComplexControl control,
+ const TQWidget* widget,
SubControl subcontrol,
- const QStyleOption& opt = QStyleOption::Default ) const;
+ const TQStyleOption& opt = TQStyleOption::Default ) const;
protected:
enum Hover
@@ -141,36 +141,36 @@ protected:
};
- bool eventFilter( QObject *object, QEvent *event );
+ bool eventFilter( TQObject *object, TQEvent *event );
- void renderGradient(QPainter* p,
- const QRect& r,
- const QColor& ca,
- const QColor& cb ,
+ void renderGradient(TQPainter* p,
+ const TQRect& r,
+ const TQColor& ca,
+ const TQColor& cb ,
bool horizontal) const;
- QWidget *hoverWidget;
+ TQWidget *hoverWidget;
enum Hover hoverControl;
struct MandrivaColorData
{
~MandrivaColorData();
- QRgb spotColor;
+ TQRgb spotColor;
// gradient color
//rename to grey
- QColor shades[7];
+ TQColor shades[7];
// five blue color
- QColor blueMdkColor[5];
+ TQColor blueMdkColor[5];
// button gradients
- QColor buttonColor[7];
+ TQColor buttonColor[7];
- QColor radioColor;
+ TQColor radioColor;
- bool isGroup (const QColorGroup &cg)
+ bool isGroup (const TQColorGroup &cg)
{
return cg.button() == buttonColor[0] && cg.highlight().rgb() == spotColor;
}
@@ -184,73 +184,73 @@ private:
MandrivaStyle& operator=( const MandrivaStyle & );
void drawButton( const MandrivaColorData *cdata,
- const QRect & r, QPainter *p,
- const QColorGroup &cg,
+ const TQRect & r, TQPainter *p,
+ const TQColorGroup &cg,
SFlags flags) const;
void drawHandlePoint ( const MandrivaColorData *cdata,
- QPainter *p,
+ TQPainter *p,
int x,
int y) const;
void drawHandle( const MandrivaColorData *cdata,
- QPainter *p,
- const QRect &r,
- const QColorGroup &cg,
+ TQPainter *p,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags,
- const QStyleOption& opt,
+ const TQStyleOption& opt,
bool drawBorderAndGradient,
bool drawGradient = false ) const;
void drawGroupBox(const MandrivaColorData *cdata,
- const QColorGroup & cg,
- QPainter *p,
- const QRect & r,
+ const TQColorGroup & cg,
+ TQPainter *p,
+ const TQRect & r,
bool active,
bool sunken )const;
void drawLineSeparator(const MandrivaColorData *cdata,
- const QColorGroup & cg,
- QPainter *p,
- const QRect & r,
+ const TQColorGroup & cg,
+ TQPainter *p,
+ const TQRect & r,
bool horiziontal,
bool active,
bool sunken,
bool skipOffset = true) const;
void drawFrame( const MandrivaColorData *cdata,
- const QColorGroup & cg,
- QPainter *p,
- const QRect & r,
+ const TQColorGroup & cg,
+ TQPainter *p,
+ const TQRect & r,
bool active) const;
- void drawComboboxArrow( QPainter *p,
- const QWidget *widget,
- const QRect &r,
- const QColorGroup &cg,
+ void drawComboboxArrow( TQPainter *p,
+ const TQWidget *widget,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags,
SCFlags active)const;
- void drawMandrivaArrow( QPointArray a, QPainter *p,
- const QRect &r,
- const QColorGroup &cg,
+ void drawMandrivaArrow( TQPointArray a, TQPainter *p,
+ const TQRect &r,
+ const TQColorGroup &cg,
SFlags flags,
- const QStyleOption& opt ) const;
+ const TQStyleOption& opt ) const;
- MandrivaColorData *realizeData (const QColorGroup &cg) const;
- const MandrivaColorData *lookupData (const QColorGroup &cg) const;
- bool isFormWidget(const QWidget* widget) const;
- bool excludeColor(const QColor &col, bool active) const;
- void getShade (const QColorGroup &cg, int shadenr, QColor &res) const;
- void updateHoverControl(const QPoint &pos);
- QIntCache<MandrivaColorData> m_dataCache;
+ MandrivaColorData *realizeData (const TQColorGroup &cg) const;
+ const MandrivaColorData *lookupData (const TQColorGroup &cg) const;
+ bool isFormWidget(const TQWidget* widget) const;
+ bool excludeColor(const TQColor &col, bool active) const;
+ void getShade (const TQColorGroup &cg, int shadenr, TQColor &res) const;
+ void updateHoverControl(const TQPoint &pos);
+ TQIntCache<MandrivaColorData> m_dataCache;
static const double shading[8];
mutable bool formMode;
bool kickerMode;
// For KPE_ListViewBranch
- mutable QBitmap *verticalLine;
- mutable QBitmap *horizontalLine;
+ mutable TQBitmap *verticalLine;
+ mutable TQBitmap *horizontalLine;
// pixmap cache.
enum CacheEntryType
@@ -264,14 +264,14 @@ private:
CacheEntryType type;
int width;
int height;
- QRgb c1Rgb;
- QRgb c2Rgb;
+ TQRgb c1Rgb;
+ TQRgb c2Rgb;
bool horizontal;
- QPixmap* pixmap;
+ TQPixmap* pixmap;
- CacheEntry(CacheEntryType t, int w, int h, QRgb c1, QRgb c2 = 0,
- bool hor = false, QPixmap* p = 0 ):
+ CacheEntry(CacheEntryType t, int w, int h, TQRgb c1, TQRgb c2 = 0,
+ bool hor = false, TQPixmap* p = 0 ):
type(t), width(w), height(h), c1Rgb(c1), c2Rgb(c2), horizontal(hor), pixmap(p)
{}
@@ -282,7 +282,7 @@ private:
int key()
{
- // create an int key from the properties which is used to refer to entries in the QIntCache.
+ // create an int key from the properties which is used to refer to entries in the TQIntCache.
// the result may not be 100% correct as we don't have so much space in one integer -- use
// == operator after find to make sure we got the right one. :)
return horizontal ^ (type<<1) ^ (width<<5) ^ (height<<10) ^ (c1Rgb<<19) ^ (c2Rgb<<22);
@@ -299,7 +299,7 @@ private:
return match;
}
};
- QIntCache<CacheEntry> *pixmapCache;
+ TQIntCache<CacheEntry> *pixmapCache;
};