diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-20 20:15:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-21 23:04:19 +0900 |
commit | 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (patch) | |
tree | 5f1bb482f68ee0f95843fbf375cd2274acdabf25 /doc/html/themes-example.html | |
parent | 14c414378d96f7463b989384f4a0e5dd76632b6d (diff) | |
download | tqt3-1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3.tar.gz tqt3-1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3.zip |
Rename graphics class nt* related files to equivalent tq* (part 2)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/themes-example.html')
-rw-r--r-- | doc/html/themes-example.html | 382 |
1 files changed, 191 insertions, 191 deletions
diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index 8c0ac4f89..f9e4cf526 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -57,7 +57,7 @@ during runtime using the pulldown menu. #define WOOD_H -#include <<a href="qpalette-h.html">ntqpalette.h</a>> +#include <<a href="tqpalette-h.html">tqpalette.h</a>> #ifndef TQT_NO_STYLE_WINDOWS @@ -75,7 +75,7 @@ public: void drawPrimitive( PrimitiveElement pe, <a href="tqpainter.html">TQPainter</a> *p, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags flags = Style_Default, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; @@ -83,7 +83,7 @@ public: void drawControl( ControlElement element, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how = Style_Default, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; @@ -91,13 +91,13 @@ public: void drawControlMask( ControlElement element, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; void drawComplexControl( ComplexControl cc, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how = Style_Default, SCFlags sub = SC_All, @@ -107,23 +107,23 @@ public: void drawComplexControlMask( ComplexControl control, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; - <a href="ntqrect.html">TQRect</a> querySubControlMetrics( ComplexControl control, + <a href="tqrect.html">TQRect</a> querySubControlMetrics( ComplexControl control, const <a href="tqwidget.html">TQWidget</a> *widget, SubControl sc, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; - <a href="ntqrect.html">TQRect</a> subRect( SubRect r, const <a href="tqwidget.html">TQWidget</a> *widget ) const; + <a href="tqrect.html">TQRect</a> subRect( SubRect r, const <a href="tqwidget.html">TQWidget</a> *widget ) const; private: - void drawSemicircleButton(TQPainter *p, const <a href="ntqrect.html">TQRect</a> &r, int dir, + void drawSemicircleButton(TQPainter *p, const <a href="tqrect.html">TQRect</a> &r, int dir, bool sunken, const <a href="tqcolorgroup.html">TQColorGroup</a> &g ) const; - <a href="ntqpalette.html">TQPalette</a> oldPalette; - <a href="ntqpixmap.html">TQPixmap</a> *sunkenDark; - <a href="ntqpixmap.html">TQPixmap</a> *sunkenLight; + <a href="tqpalette.html">TQPalette</a> oldPalette; + <a href="tqpixmap.html">TQPixmap</a> *sunkenDark; + <a href="tqpixmap.html">TQPixmap</a> *sunkenLight; }; @@ -152,8 +152,8 @@ private: #include "ntqcombobox.h" #include "tqpainter.h" #include "ntqdrawutil.h" // for now -#include "ntqpixmap.h" // for now -#include "ntqpalette.h" // for now +#include "tqpixmap.h" // for now +#include "tqpalette.h" // for now #include "tqwidget.h" #include "ntqlabel.h" #include "tqimage.h" @@ -887,9 +887,9 @@ static void drawroundrect( <a href="tqpainter.html">TQPainter</a> *p, TQCOORD x, static inline int buttonthickness( int d ); -static TQRegion roundRectRegion( const <a href="ntqrect.html">TQRect</a>& g, int r ); +static TQRegion roundRectRegion( const <a href="tqrect.html">TQRect</a>& g, int r ); -static void get_combo_parameters( const <a href="ntqrect.html">TQRect</a> &r, +static void get_combo_parameters( const <a href="tqrect.html">TQRect</a> &r, int &ew, int &awh, int &ax, int &ay, int &sh, int &dh, int &sy ); @@ -917,8 +917,8 @@ enum { PointUp, PointDown, PointLeft, PointRight }; <a href="tqimage.html">TQImage</a> img(button_xpm); <a href="tqimage.html">TQImage</a> orig = img; <a name="x208"></a> orig.<a href="tqimage.html#detach">detach</a>(); - <a href="ntqpixmap.html">TQPixmap</a> button; -<a name="x228"></a> button.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(img); + <a href="tqpixmap.html">TQPixmap</a> button; +<a name="x228"></a> button.<a href="tqpixmap.html#convertFromImage">convertFromImage</a>(img); int i; @@ -928,8 +928,8 @@ enum { PointUp, PointDown, PointLeft, PointRight }; <a name="x192"></a> rgb = c.<a href="tqcolor.html#dark">dark</a>(120).rgb(); <a name="x210"></a> img.<a href="tqimage.html#setColor">setColor</a>(i,rgb); } - <a href="ntqpixmap.html">TQPixmap</a> mid; - mid.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(img); + <a href="tqpixmap.html">TQPixmap</a> mid; + mid.<a href="tqpixmap.html#convertFromImage">convertFromImage</a>(img); img = orig; img.<a href="tqimage.html#detach">detach</a>(); @@ -939,8 +939,8 @@ enum { PointUp, PointDown, PointLeft, PointRight }; <a name="x193"></a> rgb = c.<a href="tqcolor.html#light">light</a>().rgb(); img.<a href="tqimage.html#setColor">setColor</a>(i,rgb); } - <a href="ntqpixmap.html">TQPixmap</a> light; - light.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(img); + <a href="tqpixmap.html">TQPixmap</a> light; + light.<a href="tqpixmap.html#convertFromImage">convertFromImage</a>(img); img = orig; img.<a href="tqimage.html#detach">detach</a>(); @@ -950,13 +950,13 @@ enum { PointUp, PointDown, PointLeft, PointRight }; rgb = c.<a href="tqcolor.html#dark">dark</a>(180).rgb(); img.<a href="tqimage.html#setColor">setColor</a>(i,rgb); } - <a href="ntqpixmap.html">TQPixmap</a> dark; - dark.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(img); + <a href="tqpixmap.html">TQPixmap</a> dark; + dark.<a href="tqpixmap.html#convertFromImage">convertFromImage</a>(img); <a href="tqimage.html">TQImage</a> bgimage(polish_xpm); - <a href="ntqpixmap.html">TQPixmap</a> background; - background.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(bgimage); + <a href="tqpixmap.html">TQPixmap</a> background; + background.<a href="tqpixmap.html#convertFromImage">convertFromImage</a>(bgimage); img = bgimage; img.<a href="tqimage.html#detach">detach</a>(); @@ -966,8 +966,8 @@ enum { PointUp, PointDown, PointLeft, PointRight }; rgb = c.<a href="tqcolor.html#dark">dark</a>(180).rgb(); img.<a href="tqimage.html#setColor">setColor</a>(i,rgb); } - sunkenDark = new <a href="ntqpixmap.html">TQPixmap</a>; - sunkenDark-><a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(img); + sunkenDark = new <a href="tqpixmap.html">TQPixmap</a>; + sunkenDark-><a href="tqpixmap.html#convertFromImage">convertFromImage</a>(img); img = bgimage; @@ -978,32 +978,32 @@ enum { PointUp, PointDown, PointLeft, PointRight }; rgb = c.<a href="tqcolor.html#light">light</a>(130).rgb(); img.<a href="tqimage.html#setColor">setColor</a>(i,rgb); } - sunkenLight= new <a href="ntqpixmap.html">TQPixmap</a>; - sunkenLight-><a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(img); + sunkenLight= new <a href="tqpixmap.html">TQPixmap</a>; + sunkenLight-><a href="tqpixmap.html#convertFromImage">convertFromImage</a>(img); - <a href="ntqpalette.html">TQPalette</a> op(TQColor(212,140,95)); + <a href="tqpalette.html">TQPalette</a> op(TQColor(212,140,95)); // TQPalette op(white); -<a name="x224"></a> <a href="tqcolorgroup.html">TQColorGroup</a> active (op.<a href="ntqpalette.html#active">active</a>().foreground(), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().button(),button), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().light(), light), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().dark(), dark), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().mid(), mid), - op.<a href="ntqpalette.html#active">active</a>().text(), +<a name="x224"></a> <a href="tqcolorgroup.html">TQColorGroup</a> active (op.<a href="tqpalette.html#active">active</a>().foreground(), + TQBrush(op.<a href="tqpalette.html#active">active</a>().button(),button), + TQBrush(op.<a href="tqpalette.html#active">active</a>().light(), light), + TQBrush(op.<a href="tqpalette.html#active">active</a>().dark(), dark), + TQBrush(op.<a href="tqpalette.html#active">active</a>().mid(), mid), + op.<a href="tqpalette.html#active">active</a>().text(), TQt::white, TQColor(236,182,120), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().background(), background) + TQBrush(op.<a href="tqpalette.html#active">active</a>().background(), background) ); -<a name="x225"></a> <a href="tqcolorgroup.html">TQColorGroup</a> disabled (op.<a href="ntqpalette.html#disabled">disabled</a>().foreground(), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().button(),button), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().light(), light), - op.<a href="ntqpalette.html#disabled">disabled</a>().dark(), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().mid(), mid), - op.<a href="ntqpalette.html#disabled">disabled</a>().text(), +<a name="x225"></a> <a href="tqcolorgroup.html">TQColorGroup</a> disabled (op.<a href="tqpalette.html#disabled">disabled</a>().foreground(), + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().button(),button), + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().light(), light), + op.<a href="tqpalette.html#disabled">disabled</a>().dark(), + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().mid(), mid), + op.<a href="tqpalette.html#disabled">disabled</a>().text(), TQt::white, TQColor(236,182,120), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().background(), background) + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().background(), background) ); <a name="x187"></a> app-><a href="ntqapplication.html#setPalette">setPalette</a>(TQPalette(active, disabled, active), TRUE ); @@ -1056,22 +1056,22 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x260"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PrimitiveElement pe, <a href="tqpainter.html">TQPainter</a> *p, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags flags, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { int x, y, w, h; -<a name="x240"></a> r.<a href="ntqrect.html#rect">rect</a>( &x, &y, &w, &h ); +<a name="x240"></a> r.<a href="tqrect.html#rect">rect</a>( &x, &y, &w, &h ); switch ( pe ) { case PE_ButtonCommand: { int d = TQMIN( w, h ) / 2; int b = buttonthickness( d ); - <a href="ntqregion.html">TQRegion</a> internR = roundRectRegion( TQRect(x + b, y + b, + <a href="tqregion.html">TQRegion</a> internR = roundRectRegion( TQRect(x + b, y + b, w - 2 * b, h - 2 * b), d - b ); -<a name="x218"></a> <a href="ntqpen.html">TQPen</a> oldPen = p-><a href="tqpainter.html#pen">pen</a>(); +<a name="x218"></a> <a href="tqpen.html">TQPen</a> oldPen = p-><a href="tqpainter.html#pen">pen</a>(); <a name="x195"></a> <a href="tqbrush.html">TQBrush</a> brush( flags & Style_Sunken ? cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Mid) : cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Button) ); @@ -1079,11 +1079,11 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x216"></a> p-><a href="tqpainter.html#fillRect">fillRect</a>( r, brush ); int e = TQMIN( w, h ) / 2; - <a href="ntqpoint.html">TQPoint</a> p2( x + w - 1 - e, y + e ); - <a href="ntqpoint.html">TQPoint</a> p3( x + e, y + h - 1 - e ); + <a href="tqpoint.html">TQPoint</a> p2( x + w - 1 - e, y + e ); + <a href="tqpoint.html">TQPoint</a> p3( x + e, y + h - 1 - e ); - <a href="ntqpointarray.html">TQPointArray</a> a; -<a name="x232"></a><a name="x230"></a> a.setPoints( 5, x,y, x+w-1, y, p2.<a href="ntqpoint.html#x">x</a>(), p2.<a href="ntqpoint.html#y">y</a>(), p3.<a href="ntqpoint.html#x">x</a>(), p3.<a href="ntqpoint.html#y">y</a>(), + <a href="tqpointarray.html">TQPointArray</a> a; +<a name="x232"></a><a name="x230"></a> a.setPoints( 5, x,y, x+w-1, y, p2.<a href="tqpoint.html#x">x</a>(), p2.<a href="tqpoint.html#y">y</a>(), p3.<a href="tqpoint.html#x">x</a>(), p3.<a href="tqpoint.html#y">y</a>(), x, y + h - 1 ); p-><a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a) - internR ); @@ -1093,7 +1093,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" // A little inversion is needed the buttons // ( but not flat) if ( flags & Style_Raised || flags & Style_Sunken ) { -<a name="x231"></a> a.<a href="ntqpointarray.html#setPoint">setPoint</a>( 0, x + w - 1, y + w - 1 ); +<a name="x231"></a> a.<a href="tqpointarray.html#setPoint">setPoint</a>( 0, x + w - 1, y + w - 1 ); p-><a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion( a ) - internR ); <a name="x200"></a> p-><a href="tqpainter.html#fillRect">fillRect</a>( r, (flags & Style_Sunken ? TQBrush( cg.<a href="tqcolorgroup.html#light">light</a>(), *sunkenLight) : cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Dark ) ) ); @@ -1126,7 +1126,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x259"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawControl">drawControl</a>( ControlElement element, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { @@ -1149,7 +1149,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" flags |= Style_Raised; int x1, y1, x2, y2; -<a name="x237"></a> r.<a href="ntqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); +<a name="x237"></a> r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); p-><a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() ); <a name="x219"></a><a name="x196"></a> p-><a href="tqpainter.html#setBrush">setBrush</a>( TQBrush( cg.<a href="tqcolorgroup.html#button">button</a>(), NoBrush ) ); @@ -1175,9 +1175,9 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" myCg, flags, opt ); if ( btn-><a href="ntqpushbutton.html#isDefault">isDefault</a>() ) { - <a href="ntqpen.html">TQPen</a> pen( TQt::black, 4 ); -<a name="x226"></a> pen.<a href="ntqpen.html#setCapStyle">setCapStyle</a>( TQt::RoundCap ); -<a name="x227"></a> pen.<a href="ntqpen.html#setJoinStyle">setJoinStyle</a>( TQt::RoundJoin ); + <a href="tqpen.html">TQPen</a> pen( TQt::black, 4 ); +<a name="x226"></a> pen.<a href="tqpen.html#setCapStyle">setCapStyle</a>( TQt::RoundCap ); +<a name="x227"></a> pen.<a href="tqpen.html#setJoinStyle">setJoinStyle</a>( TQt::RoundJoin ); p-><a href="tqpainter.html#setPen">setPen</a>( pen ); drawroundrect( p, x1 - 1, y1 - 1, x2 - x1 + 3, y2 - y1 + 3, 8 ); } @@ -1203,10 +1203,10 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" const <a href="ntqpushbutton.html">TQPushButton</a> *btn; btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; int x, y, w, h; - r.<a href="ntqrect.html#rect">rect</a>( &x, &y, &w, &h ); + r.<a href="tqrect.html#rect">rect</a>( &x, &y, &w, &h ); int x1, y1, x2, y2; - r.<a href="ntqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); + r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); int dx = 0; int dy = 0; if ( btn-><a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() ) @@ -1237,16 +1237,16 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x205"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawControlMask">drawControlMask</a>( ControlElement element, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch( element ) { case CE_PushButton: { -<a name="x244"></a><a name="x238"></a> int d = TQMIN( r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ) / 2; +<a name="x244"></a><a name="x238"></a> int d = TQMIN( r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ) / 2; p-><a href="tqpainter.html#setPen">setPen</a>( color1 ); p-><a href="tqpainter.html#setBrush">setBrush</a>( color1 ); -<a name="x246"></a><a name="x245"></a> drawroundrect( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), d ); +<a name="x246"></a><a name="x245"></a> drawroundrect( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), d ); break; } default: @@ -1258,7 +1258,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x258"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( ComplexControl cc, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how, SCFlags sub, @@ -1283,7 +1283,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, TQRect(ax, ay, awh, awh), cg, how, opt ); - <a href="ntqpen.html">TQPen</a> oldPen = p-><a href="tqpainter.html#pen">pen</a>(); + <a href="tqpen.html">TQPen</a> oldPen = p-><a href="tqpainter.html#pen">pen</a>(); p-><a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#light">light</a>() ); <a name="x214"></a> p-><a href="tqpainter.html#drawLine">drawLine</a>( ax, sy, ax + awh - 1, sy ); p-><a href="tqpainter.html#drawLine">drawLine</a>( ax, sy, ax, sy + sh - 1 ); @@ -1293,7 +1293,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" p-><a href="tqpainter.html#setPen">setPen</a>( oldPen ); if ( cmb-><a href="ntqcombobox.html#editable">editable</a>() ) { - <a href="ntqrect.html">TQRect</a> r( <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget, + <a href="tqrect.html">TQRect</a> r( <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget, SC_ComboBoxEditField, opt) ); <a href="tqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, TRUE, 1, &cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Button) ); @@ -1311,16 +1311,16 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x204"></a>void NorwegianWoodStyle::<a href="tqstyle.html#drawComplexControlMask">drawComplexControlMask</a>( ComplexControl control, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { switch ( control ) { case CC_ComboBox: { - int d = TQMIN( r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ) / 2; + int d = TQMIN( r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ) / 2; p-><a href="tqpainter.html#setPen">setPen</a>( color1 ); p-><a href="tqpainter.html#setBrush">setBrush</a>( color1 ); - drawroundrect( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), d ); + drawroundrect( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), d ); break; } default: @@ -1334,7 +1334,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" SubControl sc, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { - <a href="ntqrect.html">TQRect</a> rect; + <a href="tqrect.html">TQRect</a> rect; switch ( control ) { case CC_ComboBox: { @@ -1342,9 +1342,9 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" case SC_ComboBoxEditField: { rect = <a href="tqstyle.html#subRect">subRect</a>( SR_PushButtonContents, widget ); - int ew = get_combo_extra_width( rect.<a href="ntqrect.html#height">height</a>(), 0 ); -<a name="x242"></a> rect.<a href="ntqrect.html#setRect">setRect</a>( rect.<a href="ntqrect.html#x">x</a>() + 1, rect.<a href="ntqrect.html#y">y</a>() + 1, - rect.<a href="ntqrect.html#width">width</a>() - 2 - ew, rect.<a href="ntqrect.html#height">height</a>() - 2 ); + int ew = get_combo_extra_width( rect.<a href="tqrect.html#height">height</a>(), 0 ); +<a name="x242"></a> rect.<a href="tqrect.html#setRect">setRect</a>( rect.<a href="tqrect.html#x">x</a>() + 1, rect.<a href="tqrect.html#y">y</a>() + 1, + rect.<a href="tqrect.html#width">width</a>() - 2 - ew, rect.<a href="tqrect.html#height">height</a>() - 2 ); break; } default: @@ -1364,14 +1364,14 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" switch ( sc ) { case SC_ScrollBarAddLine: - rect.<a href="ntqrect.html#setRect">setRect</a>( b, b, w - 2 * b, w - 2 * b ); + rect.<a href="tqrect.html#setRect">setRect</a>( b, b, w - 2 * b, w - 2 * b ); if ( horz ) -<a name="x239"></a> rect.<a href="ntqrect.html#moveBy">moveBy</a>( sb-><a href="tqwidget.html#width">width</a>() - w, 0 ); +<a name="x239"></a> rect.<a href="tqrect.html#moveBy">moveBy</a>( sb-><a href="tqwidget.html#width">width</a>() - w, 0 ); else - rect.<a href="ntqrect.html#moveBy">moveBy</a>( 0, sb-><a href="tqwidget.html#height">height</a>() - w ); + rect.<a href="tqrect.html#moveBy">moveBy</a>( 0, sb-><a href="tqwidget.html#height">height</a>() - w ); break; case SC_ScrollBarSubLine: - rect.<a href="ntqrect.html#setRect">setRect</a>( b, b, w - 2 * b, w - 2 * b ); + rect.<a href="tqrect.html#setRect">setRect</a>( b, b, w - 2 * b, w - 2 * b ); break; default: rect = TQWindowsStyle::<a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( control, widget, @@ -1390,33 +1390,33 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href=" <a name="x262"></a>TQRect NorwegianWoodStyle::<a href="tqstyle.html#subRect">subRect</a>( SubRect sr, const <a href="tqwidget.html">TQWidget</a> * widget ) const { - <a href="ntqrect.html">TQRect</a> r; + <a href="tqrect.html">TQRect</a> r; switch ( sr ) { case SR_PushButtonContents: { const <a href="ntqpushbutton.html">TQPushButton</a> *btn; btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; <a name="x254"></a> r = btn-><a href="tqwidget.html#rect">rect</a>(); - int d = TQMIN( r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ) / 2; + int d = TQMIN( r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ) / 2; int b = buttonthickness( d ); d -= b; b++; - if ( r.<a href="ntqrect.html#width">width</a>() < r.<a href="ntqrect.html#height">height</a>() ) - r.<a href="ntqrect.html#setRect">setRect</a>( r.<a href="ntqrect.html#x">x</a>() + b, r.<a href="ntqrect.html#y">y</a>() + d, - r.<a href="ntqrect.html#width">width</a>() - 2 * b, r.<a href="ntqrect.html#height">height</a>() - 2 * d ); + if ( r.<a href="tqrect.html#width">width</a>() < r.<a href="tqrect.html#height">height</a>() ) + r.<a href="tqrect.html#setRect">setRect</a>( r.<a href="tqrect.html#x">x</a>() + b, r.<a href="tqrect.html#y">y</a>() + d, + r.<a href="tqrect.html#width">width</a>() - 2 * b, r.<a href="tqrect.html#height">height</a>() - 2 * d ); else - r.<a href="ntqrect.html#setRect">setRect</a>( r.<a href="ntqrect.html#x">x</a>() + d, r.<a href="ntqrect.html#y">y</a>() + b, - r.<a href="ntqrect.html#width">width</a>() - 2 * d, r.<a href="ntqrect.html#height">height</a>() - 2 * b ); + r.<a href="tqrect.html#setRect">setRect</a>( r.<a href="tqrect.html#x">x</a>() + d, r.<a href="tqrect.html#y">y</a>() + b, + r.<a href="tqrect.html#width">width</a>() - 2 * d, r.<a href="tqrect.html#height">height</a>() - 2 * b ); break; } case SR_ComboBoxFocusRect: { r = <a href="tqstyle.html#subRect">subRect</a>( SR_PushButtonContents, widget ); - int ew = get_combo_extra_width( r.<a href="ntqrect.html#height">height</a>() ); - r.<a href="ntqrect.html#setRect">setRect</a>( r.<a href="ntqrect.html#x">x</a>() + 1, r.<a href="ntqrect.html#y">y</a>() + 1, r.<a href="ntqrect.html#width">width</a>() - 2 - ew, - r.<a href="ntqrect.html#height">height</a>() - 2 ); + int ew = get_combo_extra_width( r.<a href="tqrect.html#height">height</a>() ); + r.<a href="tqrect.html#setRect">setRect</a>( r.<a href="tqrect.html#x">x</a>() + 1, r.<a href="tqrect.html#y">y</a>() + 1, r.<a href="tqrect.html#width">width</a>() - 2 - ew, + r.<a href="tqrect.html#height">height</a>() - 2 ); break; } default: @@ -1434,19 +1434,19 @@ static void drawroundrect( <a href="tqpainter.html">TQPainter</a> *p, TQCOORD x, <a name="x215"></a> p-><a href="tqpainter.html#drawRoundRect">drawRoundRect</a>( x, y, w, h, rx, ry ); } -static TQRegion roundRectRegion( const <a href="ntqrect.html">TQRect</a>& g, int r ) +static TQRegion roundRectRegion( const <a href="tqrect.html">TQRect</a>& g, int r ) { - <a href="ntqpointarray.html">TQPointArray</a> a; -<a name="x241"></a> a.setPoints( 8, g.<a href="ntqrect.html#x">x</a>()+r, g.<a href="ntqrect.html#y">y</a>(), g.<a href="ntqrect.html#right">right</a>()-r, g.<a href="ntqrect.html#y">y</a>(), -<a name="x236"></a> g.<a href="ntqrect.html#right">right</a>(), g.<a href="ntqrect.html#y">y</a>()+r, g.<a href="ntqrect.html#right">right</a>(), g.<a href="ntqrect.html#bottom">bottom</a>()-r, - g.<a href="ntqrect.html#right">right</a>()-r, g.<a href="ntqrect.html#bottom">bottom</a>(), g.<a href="ntqrect.html#x">x</a>()+r, g.<a href="ntqrect.html#bottom">bottom</a>(), - g.<a href="ntqrect.html#x">x</a>(), g.<a href="ntqrect.html#bottom">bottom</a>()-r, g.<a href="ntqrect.html#x">x</a>(), g.<a href="ntqrect.html#y">y</a>()+r ); - <a href="ntqregion.html">TQRegion</a> reg( a ); + <a href="tqpointarray.html">TQPointArray</a> a; +<a name="x241"></a> a.setPoints( 8, g.<a href="tqrect.html#x">x</a>()+r, g.<a href="tqrect.html#y">y</a>(), g.<a href="tqrect.html#right">right</a>()-r, g.<a href="tqrect.html#y">y</a>(), +<a name="x236"></a> g.<a href="tqrect.html#right">right</a>(), g.<a href="tqrect.html#y">y</a>()+r, g.<a href="tqrect.html#right">right</a>(), g.<a href="tqrect.html#bottom">bottom</a>()-r, + g.<a href="tqrect.html#right">right</a>()-r, g.<a href="tqrect.html#bottom">bottom</a>(), g.<a href="tqrect.html#x">x</a>()+r, g.<a href="tqrect.html#bottom">bottom</a>(), + g.<a href="tqrect.html#x">x</a>(), g.<a href="tqrect.html#bottom">bottom</a>()-r, g.<a href="tqrect.html#x">x</a>(), g.<a href="tqrect.html#y">y</a>()+r ); + <a href="tqregion.html">TQRegion</a> reg( a ); int d = r*2-1; - reg += TQRegion( g.<a href="ntqrect.html#x">x</a>(),g.<a href="ntqrect.html#y">y</a>(),r*2,r*2, TQRegion::Ellipse ); - reg += TQRegion( g.<a href="ntqrect.html#right">right</a>()-d,g.<a href="ntqrect.html#y">y</a>(),r*2,r*2, TQRegion::Ellipse ); - reg += TQRegion( g.<a href="ntqrect.html#x">x</a>(),g.<a href="ntqrect.html#bottom">bottom</a>()-d,r*2,r*2, TQRegion::Ellipse ); - reg += TQRegion( g.<a href="ntqrect.html#right">right</a>()-d,g.<a href="ntqrect.html#bottom">bottom</a>()-d,r*2,r*2, TQRegion::Ellipse ); + reg += TQRegion( g.<a href="tqrect.html#x">x</a>(),g.<a href="tqrect.html#y">y</a>(),r*2,r*2, TQRegion::Ellipse ); + reg += TQRegion( g.<a href="tqrect.html#right">right</a>()-d,g.<a href="tqrect.html#y">y</a>(),r*2,r*2, TQRegion::Ellipse ); + reg += TQRegion( g.<a href="tqrect.html#x">x</a>(),g.<a href="tqrect.html#bottom">bottom</a>()-d,r*2,r*2, TQRegion::Ellipse ); + reg += TQRegion( g.<a href="tqrect.html#right">right</a>()-d,g.<a href="tqrect.html#bottom">bottom</a>()-d,r*2,r*2, TQRegion::Ellipse ); return reg; } @@ -1469,69 +1469,69 @@ static int get_combo_extra_width( int h, int *return_awh ) } -static void get_combo_parameters( const <a href="ntqrect.html">TQRect</a> &r, +static void get_combo_parameters( const <a href="tqrect.html">TQRect</a> &r, int &ew, int &awh, int &ax, int &ay, int &sh, int &dh, int &sy ) { - ew = get_combo_extra_width( r.<a href="ntqrect.html#height">height</a>(), &awh ); + ew = get_combo_extra_width( r.<a href="tqrect.html#height">height</a>(), &awh ); sh = (awh+3)/4; if ( sh < 3 ) sh = 3; dh = sh/2 + 1; - ay = r.<a href="ntqrect.html#y">y</a>() + (r.<a href="ntqrect.html#height">height</a>()-awh-sh-dh)/2; + ay = r.<a href="tqrect.html#y">y</a>() + (r.<a href="tqrect.html#height">height</a>()-awh-sh-dh)/2; if ( ay < 0 ) { //panic mode ay = 0; - sy = r.<a href="ntqrect.html#height">height</a>(); + sy = r.<a href="tqrect.html#height">height</a>(); } else { sy = ay+awh+dh; } - ax = r.<a href="ntqrect.html#x">x</a>() + r.<a href="ntqrect.html#width">width</a>() - ew +(ew-awh)/2; + ax = r.<a href="tqrect.html#x">x</a>() + r.<a href="tqrect.html#width">width</a>() - ew +(ew-awh)/2; } static inline int buttonthickness( int d ) { return d > 20 ? 5 : ( d < 10 ? 2: 3 ); } -void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="tqpainter.html">TQPainter</a> *p, const <a href="ntqrect.html">TQRect</a> &r, +void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqrect.html">TQRect</a> &r, int dir, bool sunken, const <a href="tqcolorgroup.html">TQColorGroup</a> &g ) const { int b = <a href="tqstyle.html#pixelMetric">pixelMetric</a>( PM_ScrollBarExtent ) > 20 ? 3 : 2; - <a href="ntqregion.html">TQRegion</a> extrn( r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), TQRegion::Ellipse ); - <a href="ntqregion.html">TQRegion</a> intern( r.<a href="ntqrect.html#x">x</a>()+b, r.<a href="ntqrect.html#y">y</a>()+b, r.<a href="ntqrect.html#width">width</a>()-2*b, r.<a href="ntqrect.html#height">height</a>()-2*b, TQRegion::Ellipse ); - int w2 = r.<a href="ntqrect.html#width">width</a>()/2; - int h2 = r.<a href="ntqrect.html#height">height</a>()/2; + <a href="tqregion.html">TQRegion</a> extrn( r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), TQRegion::Ellipse ); + <a href="tqregion.html">TQRegion</a> intern( r.<a href="tqrect.html#x">x</a>()+b, r.<a href="tqrect.html#y">y</a>()+b, r.<a href="tqrect.html#width">width</a>()-2*b, r.<a href="tqrect.html#height">height</a>()-2*b, TQRegion::Ellipse ); + int w2 = r.<a href="tqrect.html#width">width</a>()/2; + int h2 = r.<a href="tqrect.html#height">height</a>()/2; int bug = 1; //off-by-one somewhere!!!??? switch( dir ) { case PointRight: - extrn += TQRegion( r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), w2, r.<a href="ntqrect.html#height">height</a>() ); - intern += TQRegion( r.<a href="ntqrect.html#x">x</a>()+b,r.<a href="ntqrect.html#y">y</a>()+b, w2-2*b, r.<a href="ntqrect.html#height">height</a>()-2*b ); + extrn += TQRegion( r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), w2, r.<a href="tqrect.html#height">height</a>() ); + intern += TQRegion( r.<a href="tqrect.html#x">x</a>()+b,r.<a href="tqrect.html#y">y</a>()+b, w2-2*b, r.<a href="tqrect.html#height">height</a>()-2*b ); break; case PointLeft: - extrn += TQRegion( r.<a href="ntqrect.html#x">x</a>()+w2, r.<a href="ntqrect.html#y">y</a>(), w2, r.<a href="ntqrect.html#height">height</a>() ); - intern += TQRegion( r.<a href="ntqrect.html#x">x</a>()+w2+b,r.<a href="ntqrect.html#y">y</a>()+b, w2-2*b, r.<a href="ntqrect.html#height">height</a>()-2*b ); + extrn += TQRegion( r.<a href="tqrect.html#x">x</a>()+w2, r.<a href="tqrect.html#y">y</a>(), w2, r.<a href="tqrect.html#height">height</a>() ); + intern += TQRegion( r.<a href="tqrect.html#x">x</a>()+w2+b,r.<a href="tqrect.html#y">y</a>()+b, w2-2*b, r.<a href="tqrect.html#height">height</a>()-2*b ); break; case PointUp: - extrn += TQRegion( r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>()+h2, r.<a href="ntqrect.html#width">width</a>(), h2 ); - intern += TQRegion( r.<a href="ntqrect.html#x">x</a>()+b,r.<a href="ntqrect.html#y">y</a>()+h2+b, r.<a href="ntqrect.html#width">width</a>()-2*b-bug, h2-2*b-bug ); + extrn += TQRegion( r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>()+h2, r.<a href="tqrect.html#width">width</a>(), h2 ); + intern += TQRegion( r.<a href="tqrect.html#x">x</a>()+b,r.<a href="tqrect.html#y">y</a>()+h2+b, r.<a href="tqrect.html#width">width</a>()-2*b-bug, h2-2*b-bug ); break; case PointDown: - extrn += TQRegion( r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), h2 ); - intern += TQRegion( r.<a href="ntqrect.html#x">x</a>()+b,r.<a href="ntqrect.html#y">y</a>()+b, r.<a href="ntqrect.html#width">width</a>()-2*b-bug, h2-2*b-bug ); + extrn += TQRegion( r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), h2 ); + intern += TQRegion( r.<a href="tqrect.html#x">x</a>()+b,r.<a href="tqrect.html#y">y</a>()+b, r.<a href="tqrect.html#width">width</a>()-2*b-bug, h2-2*b-bug ); break; } extrn = extrn - intern; - <a href="ntqpointarray.html">TQPointArray</a> a; -<a name="x243"></a> a.setPoints( 3, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#bottom">bottom</a>(), r.<a href="ntqrect.html#right">right</a>(), r.<a href="ntqrect.html#top">top</a>() ); + <a href="tqpointarray.html">TQPointArray</a> a; +<a name="x243"></a> a.setPoints( 3, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#bottom">bottom</a>(), r.<a href="tqrect.html#right">right</a>(), r.<a href="tqrect.html#top">top</a>() ); -<a name="x213"></a> <a href="ntqregion.html">TQRegion</a> oldClip = p-><a href="tqpainter.html#clipRegion">clipRegion</a>(); +<a name="x213"></a> <a href="tqregion.html">TQRegion</a> oldClip = p-><a href="tqpainter.html#clipRegion">clipRegion</a>(); <a name="x217"></a> bool bReallyClip = p-><a href="tqpainter.html#hasClipping">hasClipping</a>(); // clip only if we really want. p-><a href="tqpainter.html#setClipRegion">setClipRegion</a>( intern ); p-><a href="tqpainter.html#fillRect">fillRect</a>( r, g.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button ) ); @@ -1539,8 +1539,8 @@ void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="tqpai p-><a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a)&extrn ); p-><a href="tqpainter.html#fillRect">fillRect</a>( r, sunken ? g.<a href="tqcolorgroup.html#dark">dark</a>() : g.<a href="tqcolorgroup.html#light">light</a>() ); - a.setPoints( 3, r.<a href="ntqrect.html#right">right</a>(), r.<a href="ntqrect.html#bottom">bottom</a>(), r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#bottom">bottom</a>(), - r.<a href="ntqrect.html#right">right</a>(), r.<a href="ntqrect.html#top">top</a>() ); + a.setPoints( 3, r.<a href="tqrect.html#right">right</a>(), r.<a href="tqrect.html#bottom">bottom</a>(), r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#bottom">bottom</a>(), + r.<a href="tqrect.html#right">right</a>(), r.<a href="tqrect.html#top">top</a>() ); p-><a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a) & extrn ); p-><a href="tqpainter.html#fillRect">fillRect</a>( r, sunken ? g.<a href="tqcolorgroup.html#light">light</a>() : g.<a href="tqcolorgroup.html#dark">dark</a>() ); @@ -1571,7 +1571,7 @@ void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="tqpai #define METAL_H -#include <<a href="qpalette-h.html">ntqpalette.h</a>> +#include <<a href="tqpalette-h.html">tqpalette.h</a>> #ifndef TQT_NO_STYLE_WINDOWS @@ -1589,7 +1589,7 @@ public: void drawPrimitive( PrimitiveElement pe, <a href="tqpainter.html">TQPainter</a> *p, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags flags = Style_Default, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default) const; @@ -1597,7 +1597,7 @@ public: void drawControl( ControlElement element, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how = Style_Default, const <a href="tqstyleoption.html">TQStyleOption</a>& = TQStyleOption::Default ) const; @@ -1605,7 +1605,7 @@ public: void drawComplexControl( ComplexControl cc, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how = Style_Default, SCFlags sub = SC_All, @@ -1620,7 +1620,7 @@ private: bool sunken, bool horz, bool flat=FALSE ) const; void drawMetalButton( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h, bool sunken, bool horz, bool flat=FALSE ) const; - <a href="ntqpalette.html">TQPalette</a> oldPalette; + <a href="tqpalette.html">TQPalette</a> oldPalette; }; #endif @@ -1648,8 +1648,8 @@ private: #include "ntqcombobox.h" #include "tqpainter.h" #include "ntqdrawutil.h" // for now -#include "ntqpixmap.h" // for now -#include "ntqpalette.h" // for now +#include "tqpixmap.h" // for now +#include "tqpalette.h" // for now #include "tqwidget.h" #include "ntqlabel.h" #include "tqimage.h" @@ -1692,42 +1692,42 @@ private: // TQPixmap button( stonedark_xpm ); <a href="tqcolor.html">TQColor</a> gold("#B9B9A5A54040"); //same as topgrad below -<a name="x292"></a> <a href="ntqpixmap.html">TQPixmap</a> button( 1, 1 ); button.<a href="ntqpixmap.html#fill">fill</a>( gold ); +<a name="x292"></a> <a href="tqpixmap.html">TQPixmap</a> button( 1, 1 ); button.<a href="tqpixmap.html#fill">fill</a>( gold ); - <a href="ntqpixmap.html">TQPixmap</a> background(marble_xpm); - <a href="ntqpixmap.html">TQPixmap</a> dark( 1, 1 ); dark.<a href="ntqpixmap.html#fill">fill</a>( red.dark() ); - <a href="ntqpixmap.html">TQPixmap</a> mid( stone1_xpm ); - <a href="ntqpixmap.html">TQPixmap</a> light( stone1_xpm );//1, 1 ); light.<a href="ntqpixmap.html#fill">fill</a>( green ); + <a href="tqpixmap.html">TQPixmap</a> background(marble_xpm); + <a href="tqpixmap.html">TQPixmap</a> dark( 1, 1 ); dark.<a href="tqpixmap.html#fill">fill</a>( red.dark() ); + <a href="tqpixmap.html">TQPixmap</a> mid( stone1_xpm ); + <a href="tqpixmap.html">TQPixmap</a> light( stone1_xpm );//1, 1 ); light.<a href="tqpixmap.html#fill">fill</a>( green ); - <a href="ntqpalette.html">TQPalette</a> op = app-><a href="ntqapplication.html#palette">palette</a>(); + <a href="tqpalette.html">TQPalette</a> op = app-><a href="ntqapplication.html#palette">palette</a>(); <a href="tqcolor.html">TQColor</a> backCol( 227,227,227 ); // TQPalette op(white); -<a name="x290"></a> <a href="tqcolorgroup.html">TQColorGroup</a> active (op.<a href="ntqpalette.html#active">active</a>().foreground(), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().button(),button), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().light(), light), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().dark(), dark), - TQBrush(op.<a href="ntqpalette.html#active">active</a>().mid(), mid), - op.<a href="ntqpalette.html#active">active</a>().text(), +<a name="x290"></a> <a href="tqcolorgroup.html">TQColorGroup</a> active (op.<a href="tqpalette.html#active">active</a>().foreground(), + TQBrush(op.<a href="tqpalette.html#active">active</a>().button(),button), + TQBrush(op.<a href="tqpalette.html#active">active</a>().light(), light), + TQBrush(op.<a href="tqpalette.html#active">active</a>().dark(), dark), + TQBrush(op.<a href="tqpalette.html#active">active</a>().mid(), mid), + op.<a href="tqpalette.html#active">active</a>().text(), TQt::white, - op.<a href="ntqpalette.html#active">active</a>().base(),// TQColor(236,182,120), + op.<a href="tqpalette.html#active">active</a>().base(),// TQColor(236,182,120), TQBrush(backCol, background) ); <a name="x279"></a> active.<a href="tqcolorgroup.html#setColor">setColor</a>( TQColorGroup::ButtonText, TQt::white ); active.<a href="tqcolorgroup.html#setColor">setColor</a>( TQColorGroup::Shadow, TQt::black ); -<a name="x291"></a> <a href="tqcolorgroup.html">TQColorGroup</a> disabled (op.<a href="ntqpalette.html#disabled">disabled</a>().foreground(), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().button(),button), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().light(), light), - op.<a href="ntqpalette.html#disabled">disabled</a>().dark(), - TQBrush(op.<a href="ntqpalette.html#disabled">disabled</a>().mid(), mid), - op.<a href="ntqpalette.html#disabled">disabled</a>().text(), +<a name="x291"></a> <a href="tqcolorgroup.html">TQColorGroup</a> disabled (op.<a href="tqpalette.html#disabled">disabled</a>().foreground(), + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().button(),button), + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().light(), light), + op.<a href="tqpalette.html#disabled">disabled</a>().dark(), + TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().mid(), mid), + op.<a href="tqpalette.html#disabled">disabled</a>().text(), TQt::white, - op.<a href="ntqpalette.html#disabled">disabled</a>().base(),// TQColor(236,182,120), + op.<a href="tqpalette.html#disabled">disabled</a>().base(),// TQColor(236,182,120), TQBrush(backCol, background) ); - <a href="ntqpalette.html">TQPalette</a> newPalette( active, disabled, active ); + <a href="tqpalette.html">TQPalette</a> newPalette( active, disabled, active ); <a name="x267"></a> app-><a href="ntqapplication.html#setPalette">setPalette</a>( newPalette, TRUE ); } @@ -1781,7 +1781,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget <a name="x312"></a>void MetalStyle::<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PrimitiveElement pe, <a href="tqpainter.html">TQPainter</a> *p, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags flags, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const { @@ -1792,21 +1792,21 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget // fall through case PE_ButtonBevel: case PE_ButtonCommand: -<a name="x303"></a><a name="x302"></a><a name="x301"></a><a name="x298"></a> drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), +<a name="x303"></a><a name="x302"></a><a name="x301"></a><a name="x298"></a> drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), (flags & (Style_Sunken|Style_On|Style_Down)), TRUE, !(flags & Style_Raised) ); break; case PE_PanelMenuBar: - drawMetalFrame( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ); + drawMetalFrame( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ); break; case PE_ScrollBarAddLine: - drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), + drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), flags & Style_Down, !( flags & Style_Horizontal ) ); <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( (flags & Style_Horizontal) ? PE_ArrowRight :PE_ArrowDown, p, r, cg, flags, opt ); break; case PE_ScrollBarSubLine: - drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), + drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), flags & Style_Down, !( flags & Style_Horizontal ) ); <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( (flags & Style_Horizontal) ? PE_ArrowLeft : PE_ArrowUp, p, r, cg, flags, opt ); @@ -1814,7 +1814,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget case PE_ScrollBarSlider: - drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), FALSE, + drawMetalButton( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), FALSE, flags & Style_Horizontal ); break; default: @@ -1826,7 +1826,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget <a name="x311"></a>void MetalStyle::<a href="tqstyle.html#drawControl">drawControl</a>( ControlElement element, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how, const <a href="tqstyleoption.html">TQStyleOption</a>& opt ) const @@ -1838,7 +1838,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; int x1, y1, x2, y2; -<a name="x297"></a> r.<a href="ntqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); +<a name="x297"></a> r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); <a name="x288"></a><a name="x277"></a> p-><a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() ); <a name="x275"></a> p-><a href="tqpainter.html#setBrush">setBrush</a>( TQBrush(cg.<a href="tqcolorgroup.html#button">button</a>(), NoBrush) ); @@ -1853,7 +1853,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button ); <a name="x294"></a> if ( btn-><a href="ntqpushbutton.html#isDefault">isDefault</a>() ) { - <a href="ntqpointarray.html">TQPointArray</a> a; + <a href="tqpointarray.html">TQPointArray</a> a; <a name="x293"></a> a.setPoints( 9, x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1, x2-1, y1+1, x2-1, y2-1, x1+1, y2-1, x1+1, y1+1 ); @@ -1894,10 +1894,10 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget const <a href="ntqpushbutton.html">TQPushButton</a> *btn; btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; int x, y, w, h; -<a name="x300"></a> r.<a href="ntqrect.html#rect">rect</a>( &x, &y, &w, &h ); +<a name="x300"></a> r.<a href="tqrect.html#rect">rect</a>( &x, &y, &w, &h ); int x1, y1, x2, y2; - r.<a href="ntqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); + r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); int dx = 0; int dy = 0; if ( btn-><a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() ) @@ -1929,7 +1929,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget <a name="x310"></a>void MetalStyle::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( ComplexControl cc, <a href="tqpainter.html">TQPainter</a> *p, const <a href="tqwidget.html">TQWidget</a> *widget, - const <a href="ntqrect.html">TQRect</a> &r, + const <a href="tqrect.html">TQRect</a> &r, const <a href="tqcolorgroup.html">TQColorGroup</a> &cg, SFlags how, SCFlags sub, @@ -1940,14 +1940,14 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget case CC_Slider: { const <a href="ntqslider.html">TQSlider</a> *slider = ( const <a href="ntqslider.html">TQSlider</a>* ) widget; - <a href="ntqrect.html">TQRect</a> handle = <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( CC_Slider, widget, + <a href="tqrect.html">TQRect</a> handle = <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( CC_Slider, widget, SC_SliderHandle, opt); if ( sub & SC_SliderGroove ) TQWindowsStyle::<a href="tqstyle.html#drawComplexControl">drawComplexControl</a>( cc, p, widget, r, cg, how, SC_SliderGroove, subActive, opt ); -<a name="x299"></a> if ( (sub & SC_SliderHandle) && handle.<a href="ntqrect.html#isValid">isValid</a>() ) - drawMetalButton( p, handle.<a href="ntqrect.html#x">x</a>(), handle.<a href="ntqrect.html#y">y</a>(), handle.<a href="ntqrect.html#width">width</a>(), - handle.<a href="ntqrect.html#height">height</a>(), FALSE, +<a name="x299"></a> if ( (sub & SC_SliderHandle) && handle.<a href="tqrect.html#isValid">isValid</a>() ) + drawMetalButton( p, handle.<a href="tqrect.html#x">x</a>(), handle.<a href="tqrect.html#y">y</a>(), handle.<a href="tqrect.html#width">width</a>(), + handle.<a href="tqrect.html#height">height</a>(), FALSE, <a name="x304"></a> slider-><a href="ntqslider.html#orientation">orientation</a>() == TQSlider::Horizontal); break; } @@ -1956,14 +1956,14 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget // not exactly correct... const <a href="ntqcombobox.html">TQComboBox</a> *cmb = ( const <a href="ntqcombobox.html">TQComboBox</a>* ) widget; - <a href="tqpainter.html#qDrawWinPanel">qDrawWinPanel</a>( p, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>(), cg, TRUE, + <a href="tqpainter.html#qDrawWinPanel">qDrawWinPanel</a>( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), cg, TRUE, cmb-><a href="tqwidget.html#isEnabled">isEnabled</a>() ? &cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Base ) : &cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Background ) ); - drawMetalButton( p, r.<a href="ntqrect.html#x">x</a>() + r.<a href="ntqrect.html#width">width</a>() - 2 - 16, r.<a href="ntqrect.html#y">y</a>() + 2, 16, r.<a href="ntqrect.html#height">height</a>() - 4, + drawMetalButton( p, r.<a href="tqrect.html#x">x</a>() + r.<a href="tqrect.html#width">width</a>() - 2 - 16, r.<a href="tqrect.html#y">y</a>() + 2, 16, r.<a href="tqrect.html#height">height</a>() - 4, how & Style_Sunken, TRUE ); <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p, - TQRect( r.<a href="ntqrect.html#x">x</a>() + r.<a href="ntqrect.html#width">width</a>() - 2 - 16 + 2, - r.<a href="ntqrect.html#y">y</a>() + 2 + 2, 16 - 4, r.<a href="ntqrect.html#height">height</a>() - 4 -4 ), + TQRect( r.<a href="tqrect.html#x">x</a>() + r.<a href="tqrect.html#width">width</a>() - 2 - 16 + 2, + r.<a href="tqrect.html#y">y</a>() + 2 + 2, 16 - 4, r.<a href="tqrect.html#height">height</a>() - 4 -4 ), cg, cmb-><a href="tqwidget.html#isEnabled">isEnabled</a>() ? Style_Enabled : Style_Default, opt ); @@ -2279,35 +2279,35 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="tqstring.html">TQString } else { tqApp-><a href="ntqapplication.html#setStyle">setStyle</a>(style); if(style == "Platinum") { - <a href="ntqpalette.html">TQPalette</a> p( TQColor( 239, 239, 239 ) ); + <a href="tqpalette.html">TQPalette</a> p( TQColor( 239, 239, 239 ) ); <a name="x324"></a> tqApp-><a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE ); <a name="x323"></a> tqApp-><a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE ); } else if(style == "Windows") { tqApp-><a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE ); } else if(style == "CDE") { - <a href="ntqpalette.html">TQPalette</a> p( TQColor( 75, 123, 130 ) ); -<a name="x332"></a> p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Highlight, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::HighlightedText, TQColor( 55, 77, 78 ) ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Highlight, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::HighlightedText, TQColor( 55, 77, 78 ) ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Highlight, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::HighlightedText, TQColor( 55, 77, 78 ) ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Foreground, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Text, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::ButtonText, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Foreground, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Text, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::ButtonText, TQt::white ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray ); - p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray ); + <a href="tqpalette.html">TQPalette</a> p( TQColor( 75, 123, 130 ) ); +<a name="x332"></a> p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Highlight, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::HighlightedText, TQColor( 55, 77, 78 ) ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Highlight, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::HighlightedText, TQColor( 55, 77, 78 ) ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Highlight, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::HighlightedText, TQColor( 55, 77, 78 ) ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Foreground, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Text, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::ButtonText, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Foreground, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::Text, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Inactive, TQColorGroup::ButtonText, TQt::white ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray ); + p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray ); tqApp-><a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE ); tqApp-><a href="ntqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE ); } else if(style == "Motif" || style == "MotifPlus") { - <a href="ntqpalette.html">TQPalette</a> p( TQColor( 192, 192, 192 ) ); + <a href="tqpalette.html">TQPalette</a> p( TQColor( 192, 192, 192 ) ); tqApp-><a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE ); tqApp-><a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE ); } |