diff options
author | Slávek Banko <[email protected]> | 2016-04-08 03:06:39 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-04-08 03:06:39 +0200 |
commit | 96603e8acb744f86139b900e45d030ad684b6a4d (patch) | |
tree | bc983a53582ffe8f32e3fa9320eff557f239ea01 /domino/domino.h | |
parent | 5d3112684ba2b692a07b0328ad308c402276e51e (diff) | |
download | tde-style-domino-96603e8acb744f86139b900e45d030ad684b6a4d.tar.gz tde-style-domino-96603e8acb744f86139b900e45d030ad684b6a4d.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'domino/domino.h')
-rw-r--r-- | domino/domino.h | 436 |
1 files changed, 218 insertions, 218 deletions
diff --git a/domino/domino.h b/domino/domino.h index 617f111..9142482 100644 --- a/domino/domino.h +++ b/domino/domino.h @@ -42,11 +42,11 @@ #define __DOMINO_H #include <kstyle.h> -#include <qintcache.h> +#include <tqintcache.h> #include <ktoolbarbutton.h> #include "misc.h" #include "data.h" -#include <qpixmapcache.h> +#include <tqpixmapcache.h> // #include <X11/extensions/Xrender.h> @@ -80,11 +80,11 @@ class Rubber; struct DSurface { int numGradients; - QColor g1Color1; - QColor g1Color2; - QColor g2Color1; - QColor g2Color2; - QColor background; + TQColor g1Color1; + TQColor g1Color2; + TQColor g2Color1; + TQColor g2Color2; + TQColor background; int g1Top; int g1Bottom; int g2Top; @@ -108,112 +108,112 @@ public: Palette_Widget }; - void polish(QApplication* app ); - void polish(QWidget* widget ); - void polish( QPalette &p ); - void unPolish(QWidget* widget ); + void polish(TQApplication* app ); + void polish(TQWidget* widget ); + void polish( TQPalette &p ); + void unPolish(TQWidget* widget ); 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 &opt = QStyleOption::Default ) const; + const TQStyleOption &opt = 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, QPainter *, const QWidget *, const QRect &, const QStyleOption &) const; + void drawControlMask( ControlElement, TQPainter *, const TQWidget *, const TQRect &, const TQStyleOption &) 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; int pixelMetric(PixelMetric m, - const QWidget *widget = 0 ) const; + const TQWidget *widget = 0 ) const; - QRect subRect(SubRect r, - const QWidget *widget ) const; + TQRect subRect(SubRect r, + const TQWidget *widget ) 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; - QSize sizeFromContents(QStyle::ContentsType t, - const QWidget *w, - const QSize &s, - const QStyleOption &o) const; + TQSize sizeFromContents(TQStyle::ContentsType t, + const TQWidget *w, + const TQSize &s, + const TQStyleOption &o) const; - int styleHint(StyleHint, const QWidget * = 0, - const QStyleOption & = QStyleOption::Default, - QStyleHintReturn * = 0 ) const; + int styleHint(StyleHint, const TQWidget * = 0, + const TQStyleOption & = TQStyleOption::Default, + TQStyleHintReturn * = 0 ) const; - QPixmap stylePixmap(StylePixmap stylepixmap, const QWidget* widget, const QStyleOption& opt) const; + TQPixmap stylePixmap(StylePixmap stylepixmap, const TQWidget* widget, const TQStyleOption& opt) const; - void drawItem( QPainter *p, const QRect &r, - int flags, const QColorGroup &g, bool enabled, - const QPixmap *pixmap, const QString &text, - int len = -1, const QColor *penColor = 0) const; + void drawItem( TQPainter *p, const TQRect &r, + int flags, const TQColorGroup &g, bool enabled, + const TQPixmap *pixmap, const TQString &text, + int len = -1, const TQColor *penColor = 0) const; - void dominoDrawItem( QPainter *p, const QRect &r, - int flags, const QColorGroup &g, bool enabled, - const QPixmap *pixmap, const QString &text, - int len = -1, const QColor *penColor = 0, bool buttonTextEffect = 0 ) const; + void dominoDrawItem( TQPainter *p, const TQRect &r, + int flags, const TQColorGroup &g, bool enabled, + const TQPixmap *pixmap, const TQString &text, + int len = -1, const TQColor *penColor = 0, bool buttonTextEffect = 0 ) const; - void setDominoButtonPalette(QWidget* widget, PaletteTyp type); + void setDominoButtonPalette(TQWidget* widget, PaletteTyp type); - virtual void drawFocusIndicator(QPainter *p, - const QRect &r, + virtual void drawFocusIndicator(TQPainter *p, + const TQRect &r, int flags, - const QColorGroup cg, + const TQColorGroup cg, bool /*enabled*/, - const QPixmap* /*pixmap*/, - const QString & text, + const TQPixmap* /*pixmap*/, + const TQString & text, int /*len = -1*/, - const QColor& highlight = 0, + const TQColor& highlight = 0, bool drawLine = true, bool isButton = false) const; - QPixmap renderOutlineIcon(const QPixmap* icon) const; + TQPixmap renderOutlineIcon(const TQPixmap* icon) const; - void renderSurface(QPainter *p, - const QRect &r, - const QColor &backgroundColor, - const QColor &buttonColor, - const QColor &highlightColor, + void renderSurface(TQPainter *p, + const TQRect &r, + const TQColor &backgroundColor, + const TQColor &buttonColor, + const TQColor &highlightColor, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom| Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const; - inline QWidget::BackgroundOrigin setPixmapOrigin(QWidget::BackgroundOrigin origin); + inline TQWidget::BackgroundOrigin setPixmapOrigin(TQWidget::BackgroundOrigin origin); mutable Rubber* rubber; - mutable QRect oldRubberRect; + mutable TQRect oldRubberRect; mutable bool viewPortPressed; mutable bool ignoreNextFocusRect; uint _argbRubberBandColor; mutable bool compositeManagerRunning; - const QWidget* rubberViewPort; + const TQWidget* rubberViewPort; protected: @@ -235,25 +235,25 @@ protected: struct TextEffectSettings { TextEffect mode; - QColor color; - QColor buttonColor; + TQColor color; + TQColor buttonColor; int opacity; int buttonOpacity; - QPoint pos; - QPoint buttonPos; + TQPoint pos; + TQPoint buttonPos; }; struct GroupBoxSettings { bool tintBackground; int brightness; bool customColor; - QColor color; + TQColor color; }; struct FocusIndicatorSettings { - QColor color; + TQColor color; int opacity; - QColor buttonColor; + TQColor buttonColor; int buttonOpacity; bool drawUnderline; bool indicateFocus; @@ -308,51 +308,51 @@ protected: PE_ScrollBarSubLine2 = 0xf000001 }; - void renderContour(QPainter *p, - const QRect &r, - const QColor &backgroundColor, - const QColor &contourColor, + void renderContour(TQPainter *p, + const TQRect &r, + const TQColor &backgroundColor, + const TQColor &contourColor, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom| Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const; - void renderButtonShadow(QPainter *p, const QRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom| + void renderButtonShadow(TQPainter *p, const TQRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom| Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const; - QPixmap* renderLineEditShadow(QWidget* widget, QRect rect, QColor bg, uint flags, bool reverse); + TQPixmap* renderLineEditShadow(TQWidget* widget, TQRect rect, TQColor bg, uint flags, bool reverse); - inline void renderPixel(QPainter *p, - const QPoint &pos, + inline void renderPixel(TQPainter *p, + const TQPoint &pos, const int alpha, - const QColor &color, - const QColor &background = QColor(), + const TQColor &color, + const TQColor &background = TQColor(), bool fullAlphaBlend = true) const; - void renderButton(QPainter *p, - const QRect &r, - const QColorGroup &g, + void renderButton(TQPainter *p, + const TQRect &r, + const TQColorGroup &g, bool sunken = false, bool mouseOver = false, bool horizontal = true, bool enabled = true, bool khtmlMode = false) const; - void renderHeader(QPainter *p, - const QRect &r, - const QColorGroup &g, + void renderHeader(TQPainter *p, + const TQRect &r, + const TQColorGroup &g, bool sunken = false, bool mouseOver = false, bool horizontal = true, bool enabled = true) const; - void renderGradient(QPainter *p, - const QRect &r, - const QColor &c1, - const QColor &c2, + void renderGradient(TQPainter *p, + const TQRect &r, + const TQColor &c1, + const TQColor &c2, bool horizontal = true) const; - void renderTab(QPainter *p, - const QRect &r, - const QColorGroup &g, + void renderTab(TQPainter *p, + const TQRect &r, + const TQColorGroup &g, bool mouseOver = false, const bool selected = false, const bool bottom = false, @@ -371,53 +371,53 @@ protected: DSurface headerSurface; DSurface checkItemSurface; - bool eventFilter(QObject *, QEvent *); - - QString configMode; - void removeCachedSbPix(const QColor &color) { - QPixmapCache::remove("sHCap"+QString::number(color.pixel(), 16)+"1"+configMode); - QPixmapCache::remove("sHCap"+QString::number(color.pixel(), 16)+"0"+configMode); - QPixmapCache::remove("sVCap"+QString::number(color.pixel(), 16)+"1"+configMode); - QPixmapCache::remove("sVCap"+QString::number(color.pixel(), 16)+"0"+configMode); - QPixmapCache::remove(QString::number(color.pixel(), 16)+"sh"+configMode); - QPixmapCache::remove(QString::number(color.pixel(), 16)+"sv"+configMode); - QPixmapCache::remove(QString::number(color.pixel(), 16)+"ah"+configMode); - QPixmapCache::remove(QString::number(color.pixel(), 16)+"av"+configMode); + bool eventFilter(TQObject *, TQEvent *); + + TQString configMode; + void removeCachedSbPix(const TQColor &color) { + TQPixmapCache::remove("sHCap"+TQString::number(color.pixel(), 16)+"1"+configMode); + TQPixmapCache::remove("sHCap"+TQString::number(color.pixel(), 16)+"0"+configMode); + TQPixmapCache::remove("sVCap"+TQString::number(color.pixel(), 16)+"1"+configMode); + TQPixmapCache::remove("sVCap"+TQString::number(color.pixel(), 16)+"0"+configMode); + TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"sh"+configMode); + TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"sv"+configMode); + TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"ah"+configMode); + TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"av"+configMode); }; - QColor getGroupBoxColor(const QWidget* w) const; - QPixmap* createCheckMark(const QColor color) const; - QPixmap* createRadioIndicator(const QColor color) const; - QPixmap disableIcon(const QPixmap* icon) const;; + TQColor getGroupBoxColor(const TQWidget* w) const; + TQPixmap* createCheckMark(const TQColor color) const; + TQPixmap* createRadioIndicator(const TQColor color) const; + TQPixmap disableIcon(const TQPixmap* icon) const;; - QWidget* hoverWidget; + TQWidget* hoverWidget; - QPixmap* checkMark; - QPixmap* radioIndicator; - QPixmap* popupFrame; - QPixmap* border1; + TQPixmap* checkMark; + TQPixmap* radioIndicator; + TQPixmap* popupFrame; + TQPixmap* border1; mutable bool alphaButtonMode; bool KApplicationMode; - QColor _checkMarkColor; + TQColor _checkMarkColor; - QMap<const QGroupBox*, const QPixmap*> groupBoxPixmaps; + TQMap<const TQGroupBox*, const TQPixmap*> groupBoxPixmaps; uint preMultiplyColor(const uint &c) const; - QToolButton* popupButton; - QTimer* popupTimer; - QPoint popupMousePressPos; + TQToolButton* popupButton; + TQTimer* popupTimer; + TQPoint popupMousePressPos; protected slots: - void khtmlWidgetDestroyed(QObject* w); - void groupBoxDestroyed(QObject* w); + void khtmlWidgetDestroyed(TQObject* w); + void groupBoxDestroyed(TQObject* w); //Animation slots. void updateProgressPos(); void updateScrollPos(); // smoothscroll - void progressBarDestroyed(QObject* bar); - inline QColor dGetColor(const QColor &color, const int value) const; - inline QColor lightenColor(const QColor &color, const int value) const; - inline QColor darkenColor(const QColor &color, const int value) const; + void progressBarDestroyed(TQObject* bar); + inline TQColor dGetColor(const TQColor &color, const int value) const; + inline TQColor lightenColor(const TQColor &color, const int value) const; + inline TQColor darkenColor(const TQColor &color, const int value) const; void updateTabWidgetFrame(); void spinBoxValueChanged(int); void toolPopupPressed(); @@ -439,12 +439,12 @@ private: bool _drawTriangularExpander; bool _customCheckMarkColor; bool _smoothScrolling; - QColor _toolTipColor; + TQColor _toolTipColor; int _buttonHeightAdjustment; bool _customPopupMenuColor; - QColor _popupMenuColor; + TQColor _popupMenuColor; bool _customSelMenuItemColor; - QColor _selMenuItemColor; + TQColor _selMenuItemColor; bool _drawPopupMenuGradient; bool _indentPopupMenuItems; bool _centerTabs; @@ -465,16 +465,16 @@ private: // smoothscrolling int scrollDistance; bool scrollVertical; - QScrollView* scrollWidget; - QTimer* scrollTimer; + TQScrollView* scrollWidget; + TQTimer* scrollTimer; bool hoveredToolBoxTab; // track khtml widgets. - QMap<const QWidget*,bool> khtmlWidgets; + TQMap<const TQWidget*,bool> khtmlWidgets; //Animation support. - QMap<QWidget*, int> progAnimWidgets; + TQMap<TQWidget*, int> progAnimWidgets; // pixmap cache. enum CacheEntryType { @@ -488,14 +488,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) {} @@ -506,7 +506,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); @@ -521,27 +521,27 @@ private: (c1Rgb == other.c1Rgb) && (horizontal = other.horizontal); // if(!match) { -// qDebug("operator ==: CacheEntries don't match!"); -// qDebug("width: %d\t\tother width: %d", width, other.width); -// qDebug("height: %d\t\tother height: %d", height, other.height); -// qDebug("fgRgb: %d\t\tother fgRgb: %d", fgRgb, other.fgRgb); -// qDebug("bgRgb: %d\t\tother bgRgb: %d", bgRgb, other.bgRgb); -// qDebug("surfaceFlags: %d\t\tother surfaceFlags: %d", surfaceFlags, other.surfaceFlags); +// tqDebug("operator ==: CacheEntries don't match!"); +// tqDebug("width: %d\t\tother width: %d", width, other.width); +// tqDebug("height: %d\t\tother height: %d", height, other.height); +// tqDebug("fgRgb: %d\t\tother fgRgb: %d", fgRgb, other.fgRgb); +// tqDebug("bgRgb: %d\t\tother bgRgb: %d", bgRgb, other.bgRgb); +// tqDebug("surfaceFlags: %d\t\tother surfaceFlags: %d", surfaceFlags, other.surfaceFlags); // } return match; } }; - QIntCache<CacheEntry> *pixmapCache; + TQIntCache<CacheEntry> *pixmapCache; // For KPE_ListViewBranch - mutable QBitmap *verticalLine; - mutable QBitmap *horizontalLine; + mutable TQBitmap *verticalLine; + mutable TQBitmap *horizontalLine; // For progress bar animation - QTimer *animationTimer; + TQTimer *animationTimer; - void renderTabSeparator(QPainter *p, const QRect &r, const QColor buttonColor, bool tabAbove) const; - void renderGroupBox(QObject *obj, QEvent *ev); + void renderTabSeparator(TQPainter *p, const TQRect &r, const TQColor buttonColor, bool tabAbove) const; + void renderGroupBox(TQObject *obj, TQEvent *ev); }; @@ -565,22 +565,22 @@ class ButtonContour int created[num_types][num_states]; int shadowCreated[num_states]; - QColor contour[num_states]; + TQColor contour[num_states]; uint c1[num_types][num_states]; // top shadow uint c2[num_types][num_states]; // outer ring uint c3[num_types][num_states]; // inner ring uint c4[num_types][num_states]; // bottom first shadow line uint c5[num_types][num_states]; // bottom second shadow line uint c6[num_types][num_states]; // first left shadow line - QPixmap* btnEdges[num_types][num_states]; - QPixmap* btnVLines[num_types][num_states]; - QPixmap* btnHLines[num_types][num_states]; + TQPixmap* btnEdges[num_types][num_states]; + TQPixmap* btnVLines[num_types][num_states]; + TQPixmap* btnHLines[num_types][num_states]; // for sunken type and sunken flat buttons - QPixmap* buttonShadowRectangular[num_states]; - QPixmap* buttonShadowRound [num_states]; - QPixmap* buttonShadowHlines[num_states]; - QPixmap* buttonShadowVlines[num_states]; + TQPixmap* buttonShadowRectangular[num_states]; + TQPixmap* buttonShadowRound [num_states]; + TQPixmap* buttonShadowHlines[num_states]; + TQPixmap* buttonShadowVlines[num_states]; bool alphaMode() { @@ -604,16 +604,16 @@ class ButtonContour uint color6() { return c6[type][state]; } - QColor contourColor(int t) { + TQColor contourColor(int t) { return contour[t]; } - QPixmap* buttonEdges() { + TQPixmap* buttonEdges() { return btnEdges[type][state]; } - QPixmap* buttonVLines() { + TQPixmap* buttonVLines() { return btnVLines[type][state]; } - QPixmap* buttonHLines() { + TQPixmap* buttonHLines() { return btnHLines[type][state]; } void setType(ContourType t = Contour_Sunken) { @@ -631,20 +631,20 @@ class ButtonContour state = s; createPixmaps(type, state); } - void setColor(ContourState s, QColor color) { + void setColor(ContourState s, TQColor color) { contour[s] = color; uint c2_tmp; uint c3_tmp; if(defaultType == Contour_Sunken /*|| defaultType == Contour_Simple*/) { - c2_tmp = qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 218); - c3_tmp = qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35); + c2_tmp = tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 218); + c3_tmp = tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35); } else { - c2_tmp = qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 203); + c2_tmp = tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 203); - QColor whiteColor(qRgba(Qt::white.red(), Qt::white.green(), Qt::white.blue(), 34)); - QColor blackColor(qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35)); + TQColor whiteColor(tqRgba(TQt::white.red(), TQt::white.green(), TQt::white.blue(), 34)); + TQColor blackColor(tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35)); c3_tmp = blendColors(whiteColor, blackColor).rgb(); } @@ -669,16 +669,16 @@ class ButtonContour alpha_mode = false; } - QPixmap* shadowRound() { + TQPixmap* shadowRound() { return buttonShadowRound[state]; } - QPixmap* shadowRectangular() { + TQPixmap* shadowRectangular() { return buttonShadowRectangular[state]; } - QPixmap* shadowHLines() { + TQPixmap* shadowHLines() { return buttonShadowHlines[state]; } - QPixmap* shadowVLines() { + TQPixmap* shadowVLines() { return buttonShadowVlines[state]; } @@ -690,11 +690,11 @@ class ButtonContour // for pressed sunken buttons + pressed KMultiTabbarTabs if(drawButtonSunkenShadow && !shadowCreated[state]) { - QColor shadowColor = alphaBlendColors(Qt::black, contour[state], 120); - buttonShadowRectangular[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowRectangular"), shadowColor)); - buttonShadowRound[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowRound"), shadowColor)); - buttonShadowHlines[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowHLines"), shadowColor)); - buttonShadowVlines[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowVLines"), shadowColor)); + TQColor shadowColor = alphaBlendColors(TQt::black, contour[state], 120); + buttonShadowRectangular[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowRectangular"), shadowColor)); + buttonShadowRound[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowRound"), shadowColor)); + buttonShadowHlines[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowHLines"), shadowColor)); + buttonShadowVlines[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowVLines"), shadowColor)); shadowCreated[state] = 1; } @@ -702,9 +702,9 @@ class ButtonContour if(created[type][state]) return; - QImage btnVLines_img; - QImage btnHLines_img; - QImage btnShadow_img; + TQImage btnVLines_img; + TQImage btnHLines_img; + TQImage btnShadow_img; switch(type) { case Contour_Simple: // now pressed raised! @@ -734,14 +734,14 @@ class ButtonContour break; } - btnEdges[type][state] = new QPixmap(btnShadow_img); - btnVLines[type][state] = new QPixmap(btnVLines_img); - btnHLines[type][state] = new QPixmap(btnHLines_img); + btnEdges[type][state] = new TQPixmap(btnShadow_img); + btnVLines[type][state] = new TQPixmap(btnVLines_img); + btnHLines[type][state] = new TQPixmap(btnHLines_img); created[type][state] = 1; } }; -class RubberWidget : public QWidget +class RubberWidget : public TQWidget { public: RubberWidget(Window window); @@ -763,7 +763,7 @@ class Rubber RubberWidget* parent; RubberWidget* rubber; - QRegion mask; + TQRegion mask; uint color; void destroy() { @@ -775,46 +775,46 @@ class Rubber rubber = 0; } } - void create(QRect& r, QRegion& mask); - void updateMask(QRegion& mask); + void create(TQRect& r, TQRegion& mask); + void updateMask(TQRegion& mask); }; // DominoXXX classes to access protected (or private...) members -class DominoQGroupBox : public QGroupBox +class DominoTQGroupBox : public TQGroupBox { friend class DominoStyle; public: - DominoQGroupBox( QWidget* parent=0, const char* name=0 ) - : QGroupBox( parent, name ) {} + DominoTQGroupBox( TQWidget* parent=0, const char* name=0 ) + : TQGroupBox( parent, name ) {} }; -class DominoQWidget : public QWidget +class DominoTQWidget : public TQWidget { friend class DominoStyleConfig; friend class DominoStyle; public: - DominoQWidget( QWidget* parent=0, const char* name=0 ) - : QWidget( parent, name ) {} + DominoTQWidget( TQWidget* parent=0, const char* name=0 ) + : TQWidget( parent, name ) {} }; -class DominoQFrame : public QFrame +class DominoTQFrame : public TQFrame { friend class DominoStyle; public: - DominoQFrame( QFrame* parent=0, const char* name=0 ) - : QFrame( parent, name ) {} + DominoTQFrame( TQFrame* parent=0, const char* name=0 ) + : TQFrame( parent, name ) {} }; -// QWhatsThis -class DominoQWhatsThat : public QWidget +// TQWhatsThis +class DominoTQWhatsThat : public TQWidget { friend class DominoStyle; public: - DominoQWhatsThat(): QWidget() {} + DominoTQWhatsThat(): TQWidget() {} private: - QString text; + TQString text; }; class DominoKToolBarButton : public KToolBarButton @@ -824,42 +824,42 @@ class DominoKToolBarButton : public KToolBarButton DominoKToolBarButton(): KToolBarButton() {} }; -class DominoQListBoxItem : public QListBoxItem +class DominoTQListBoxItem : public TQListBoxItem { friend class DominoStyle; public: - DominoQListBoxItem(): QListBoxItem() {} + DominoTQListBoxItem(): TQListBoxItem() {} }; -class DominoQTabWidget : public QTabWidget +class DominoTQTabWidget : public TQTabWidget { friend class DominoStyleConfig; friend class DominoStyle; public: - DominoQTabWidget( QWidget* parent=0, const char* name=0 ) - : QTabWidget( parent, name ) {} + DominoTQTabWidget( TQWidget* parent=0, const char* name=0 ) + : TQTabWidget( parent, name ) {} }; -class DominoQSpinBox : public QSpinBox +class DominoTQSpinBox : public TQSpinBox { friend class DominoStyle; public: - DominoQSpinBox( QFrame* parent=0, const char* name=0 ) - : QSpinBox( parent, name ) {} + DominoTQSpinBox( TQFrame* parent=0, const char* name=0 ) + : TQSpinBox( parent, name ) {} }; -class DominoQPixmap : public QPixmap +class DominoTQPixmap : public TQPixmap { friend class DominoStyle; public: - DominoQPixmap( int w, int h, int depth = -1) : QPixmap(w, h, depth) {} + DominoTQPixmap( int w, int h, int depth = -1) : TQPixmap(w, h, depth) {} }; -class DominoQButton : public QButton +class DominoTQButton : public TQButton { friend class DominoStyle; public: - DominoQButton(): QButton() {} + DominoTQButton(): TQButton() {} }; #endif // __DOMINO_H |