summaryrefslogtreecommitdiffstats
path: root/doc/html/themes-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/themes-example.html')
-rw-r--r--doc/html/themes-example.html342
1 files changed, 171 insertions, 171 deletions
diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html
index 1a6d2da17..8c0ac4f89 100644
--- a/doc/html/themes-example.html
+++ b/doc/html/themes-example.html
@@ -74,38 +74,38 @@ public:
void unPolish( <a href="ntqapplication.html">TQApplication</a>*);
void drawPrimitive( PrimitiveElement pe,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags flags = Style_Default,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default ) const;
void drawControl( ControlElement element,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how = Style_Default,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default ) const;
void drawControlMask( ControlElement element,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default ) const;
void drawComplexControl( ComplexControl cc,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how = Style_Default,
SCFlags sub = SC_All,
SCFlags subActive = SC_None,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default ) const;
void drawComplexControlMask( ComplexControl control,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default ) const;
@@ -120,7 +120,7 @@ public:
private:
void drawSemicircleButton(TQPainter *p, const <a href="ntqrect.html">TQRect</a> &amp;r, int dir,
- bool sunken, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;g ) const;
+ bool sunken, const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;g ) const;
<a href="ntqpalette.html">TQPalette</a> oldPalette;
<a href="ntqpixmap.html">TQPixmap</a> *sunkenDark;
<a href="ntqpixmap.html">TQPixmap</a> *sunkenLight;
@@ -150,7 +150,7 @@ private:
#include "ntqapplication.h"
#include "ntqcombobox.h"
-#include "ntqpainter.h"
+#include "tqpainter.h"
#include "ntqdrawutil.h" // for now
#include "ntqpixmap.h" // for now
#include "ntqpalette.h" // for now
@@ -882,7 +882,7 @@ static const char *button_xpm[] = {
".rb..g.e#s.YaPbV#z.wbnbV.wbn#Dbn.OaP.4.y.4#N.K.K#T#t.U.Q#z.w#F#YazanaNan.bap#Ga0az#0#P#b#KbR.Z#aaz#ibK#h#u.wbC#B#b.1bebs#B#D#baLbcbA.k#P#G#E#S#2.K.8bAbL.Tbw.6.K#G#0.wbVbVbV#s#s.e.Oba.K.4aT.k.0"
};
-static void drawroundrect( <a href="ntqpainter.html">TQPainter</a> *p, TQCOORD x, TQCOORD y,
+static void drawroundrect( <a href="tqpainter.html">TQPainter</a> *p, TQCOORD x, TQCOORD y,
TQCOORD w, TQCOORD h, TQCOORD d );
static inline int buttonthickness( int d );
@@ -924,8 +924,8 @@ enum { PointUp, PointDown, PointLeft, PointRight };
int i;
<a name="x209"></a> for (i=0; i&lt;img.<a href="tqimage.html#numColors">numColors</a>(); i++) {
<a name="x207"></a> TQRgb rgb = img.<a href="tqimage.html#color">color</a>(i);
- <a href="ntqcolor.html">TQColor</a> c(rgb);
-<a name="x192"></a> rgb = c.<a href="ntqcolor.html#dark">dark</a>(120).rgb();
+ <a href="tqcolor.html">TQColor</a> c(rgb);
+<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;
@@ -935,8 +935,8 @@ enum { PointUp, PointDown, PointLeft, PointRight };
img.<a href="tqimage.html#detach">detach</a>();
for (i=0; i&lt;img.<a href="tqimage.html#numColors">numColors</a>(); i++) {
TQRgb rgb = img.<a href="tqimage.html#color">color</a>(i);
- <a href="ntqcolor.html">TQColor</a> c(rgb);
-<a name="x193"></a> rgb = c.<a href="ntqcolor.html#light">light</a>().rgb();
+ <a href="tqcolor.html">TQColor</a> c(rgb);
+<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;
@@ -946,8 +946,8 @@ enum { PointUp, PointDown, PointLeft, PointRight };
img.<a href="tqimage.html#detach">detach</a>();
for (i=0; i&lt;img.<a href="tqimage.html#numColors">numColors</a>(); i++) {
TQRgb rgb = img.<a href="tqimage.html#color">color</a>(i);
- <a href="ntqcolor.html">TQColor</a> c(rgb);
- rgb = c.<a href="ntqcolor.html#dark">dark</a>(180).rgb();
+ <a href="tqcolor.html">TQColor</a> c(rgb);
+ 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;
@@ -962,8 +962,8 @@ enum { PointUp, PointDown, PointLeft, PointRight };
img.<a href="tqimage.html#detach">detach</a>();
for (i=0; i&lt;img.<a href="tqimage.html#numColors">numColors</a>(); i++) {
TQRgb rgb = img.<a href="tqimage.html#color">color</a>(i);
- <a href="ntqcolor.html">TQColor</a> c(rgb);
- rgb = c.<a href="ntqcolor.html#dark">dark</a>(180).rgb();
+ <a href="tqcolor.html">TQColor</a> c(rgb);
+ 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>;
@@ -974,8 +974,8 @@ enum { PointUp, PointDown, PointLeft, PointRight };
img.<a href="tqimage.html#detach">detach</a>();
for (i=0; i&lt;img.<a href="tqimage.html#numColors">numColors</a>(); i++) {
TQRgb rgb = img.<a href="tqimage.html#color">color</a>(i);
- <a href="ntqcolor.html">TQColor</a> c(rgb);
- rgb = c.<a href="ntqcolor.html#light">light</a>(130).rgb();
+ <a href="tqcolor.html">TQColor</a> c(rgb);
+ 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>;
@@ -985,7 +985,7 @@ enum { PointUp, PointDown, PointLeft, PointRight };
<a href="ntqpalette.html">TQPalette</a> op(TQColor(212,140,95));
// TQPalette op(white);
-<a name="x224"></a> <a href="qcolorgroup.html">TQColorGroup</a> active (op.<a href="ntqpalette.html#active">active</a>().foreground(),
+<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),
@@ -995,7 +995,7 @@ enum { PointUp, PointDown, PointLeft, PointRight };
TQColor(236,182,120),
TQBrush(op.<a href="ntqpalette.html#active">active</a>().background(), background)
);
-<a name="x225"></a> <a href="qcolorgroup.html">TQColorGroup</a> disabled (op.<a href="ntqpalette.html#disabled">disabled</a>().foreground(),
+<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(),
@@ -1055,9 +1055,9 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags flags, const <a href="tqstyleoption.html">TQStyleOption</a>&amp; opt ) const
{
int x, y, w, h;
@@ -1071,12 +1071,12 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
<a href="ntqregion.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-&gt;<a href="ntqpainter.html#pen">pen</a>();
+<a name="x218"></a> <a href="ntqpen.html">TQPen</a> oldPen = p-&gt;<a href="tqpainter.html#pen">pen</a>();
-<a name="x195"></a> <a href="ntqbrush.html">TQBrush</a> brush( flags &amp; Style_Sunken ? cg.<a href="qcolorgroup.html#brush">brush</a>(TQColorGroup::Mid) :
- cg.<a href="qcolorgroup.html#brush">brush</a>(TQColorGroup::Button) );
-<a name="x220"></a> p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( internR );
-<a name="x216"></a> p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( r, brush );
+<a name="x195"></a> <a href="tqbrush.html">TQBrush</a> brush( flags &amp; Style_Sunken ? cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Mid) :
+ cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Button) );
+<a name="x220"></a> p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( internR );
+<a name="x216"></a> p-&gt;<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 );
@@ -1085,24 +1085,24 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
<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>(),
x, y + h - 1 );
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a) - internR );
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a) - internR );
-<a name="x198"></a> p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( r, (flags &amp; Style_Sunken ? TQBrush( cg.<a href="qcolorgroup.html#dark">dark</a>(), *sunkenDark)
- : cg.<a href="qcolorgroup.html#brush">brush</a>(TQColorGroup::Light)) );
+<a name="x198"></a> p-&gt;<a href="tqpainter.html#fillRect">fillRect</a>( r, (flags &amp; Style_Sunken ? TQBrush( cg.<a href="tqcolorgroup.html#dark">dark</a>(), *sunkenDark)
+ : cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Light)) );
// A little inversion is needed the buttons
// ( but not flat)
if ( flags &amp; Style_Raised || flags &amp; Style_Sunken ) {
<a name="x231"></a> a.<a href="ntqpointarray.html#setPoint">setPoint</a>( 0, x + w - 1, y + w - 1 );
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( TQRegion( a ) - internR );
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion( a ) - internR );
-<a name="x200"></a> p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( r, (flags &amp; Style_Sunken ? TQBrush( cg.<a href="qcolorgroup.html#light">light</a>(), *sunkenLight) : cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Dark ) ) );
+<a name="x200"></a> p-&gt;<a href="tqpainter.html#fillRect">fillRect</a>( r, (flags &amp; Style_Sunken ? TQBrush( cg.<a href="tqcolorgroup.html#light">light</a>(), *sunkenLight) : cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Dark ) ) );
}
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( internR );
-<a name="x221"></a> p-&gt;<a href="ntqpainter.html#setClipping">setClipping</a>( FALSE );
-<a name="x222"></a><a name="x199"></a> p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( cg.<a href="qcolorgroup.html#foreground">foreground</a>() );
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( internR );
+<a name="x221"></a> p-&gt;<a href="tqpainter.html#setClipping">setClipping</a>( FALSE );
+<a name="x222"></a><a name="x199"></a> p-&gt;<a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() );
drawroundrect( p, x, y, w, h, d );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( oldPen );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( oldPen );
break;
}
case PE_ScrollBarAddLine:
@@ -1124,10 +1124,10 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how, const <a href="tqstyleoption.html">TQStyleOption</a>&amp; opt ) const
{
switch( element ) {
@@ -1135,7 +1135,7 @@ 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;
- <a href="qcolorgroup.html">TQColorGroup</a> myCg( cg );
+ <a href="tqcolorgroup.html">TQColorGroup</a> myCg( cg );
SFlags flags = Style_Default;
<a name="x189"></a> if ( btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>() )
flags |= Style_On;
@@ -1151,17 +1151,17 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
int x1, y1, x2, y2;
<a name="x237"></a> r.<a href="ntqrect.html#coords">coords</a>( &amp;x1, &amp;y1, &amp;x2, &amp;y2 );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( cg.<a href="qcolorgroup.html#foreground">foreground</a>() );
-<a name="x219"></a><a name="x196"></a> p-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( TQBrush( cg.<a href="qcolorgroup.html#button">button</a>(), NoBrush ) );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() );
+<a name="x219"></a><a name="x196"></a> p-&gt;<a href="tqpainter.html#setBrush">setBrush</a>( TQBrush( cg.<a href="tqcolorgroup.html#button">button</a>(), NoBrush ) );
- <a href="ntqbrush.html">TQBrush</a> fill;
+ <a href="tqbrush.html">TQBrush</a> fill;
if ( btn-&gt;<a href="ntqbutton.html#isDown">isDown</a>() )
- fill = cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Mid );
+ fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Mid );
else if ( btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>() )
-<a name="x201"></a> fill = TQBrush( cg.<a href="qcolorgroup.html#mid">mid</a>(), Dense4Pattern );
+<a name="x201"></a> fill = TQBrush( cg.<a href="tqcolorgroup.html#mid">mid</a>(), Dense4Pattern );
else
- fill = cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Button );
-<a name="x202"></a> myCg.<a href="qcolorgroup.html#setBrush">setBrush</a>( TQColorGroup::Mid, fill );
+ fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button );
+<a name="x202"></a> myCg.<a href="tqcolorgroup.html#setBrush">setBrush</a>( TQColorGroup::Mid, fill );
if ( btn-&gt;<a href="ntqpushbutton.html#isDefault">isDefault</a>() ) {
x1 += 2;
@@ -1178,7 +1178,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
<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 );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( pen );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( pen );
drawroundrect( p, x1 - 1, y1 - 1, x2 - x1 + 3, y2 - y1 + 3, 8 );
}
@@ -1194,8 +1194,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
myCg, flags, opt );
}
-<a name="x212"></a> if ( p-&gt;<a href="ntqpainter.html#brush">brush</a>().style() != NoBrush )
- p-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( NoBrush );
+<a name="x212"></a> if ( p-&gt;<a href="tqpainter.html#brush">brush</a>().style() != NoBrush )
+ p-&gt;<a href="tqpainter.html#setBrush">setBrush</a>( NoBrush );
break;
}
case CE_PushButtonLabel:
@@ -1212,7 +1212,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
if ( btn-&gt;<a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() )
dx = ( y2 - y1 ) / 3;
if ( dx || dy )
-<a name="x223"></a> p-&gt;<a href="ntqpainter.html#translate">translate</a>( dx, dy );
+<a name="x223"></a> p-&gt;<a href="tqpainter.html#translate">translate</a>( dx, dy );
x += 2;
y += 2;
@@ -1222,10 +1222,10 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
AlignCenter | ShowPrefix,
cg, btn-&gt;<a href="tqwidget.html#isEnabled">isEnabled</a>(),
<a name="x191"></a><a name="x190"></a> btn-&gt;<a href="ntqbutton.html#pixmap">pixmap</a>(), btn-&gt;<a href="ntqbutton.html#text">text</a>(), -1,
-<a name="x194"></a> (btn-&gt;<a href="ntqbutton.html#isDown">isDown</a>() || btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>()) ? &amp;cg.<a href="qcolorgroup.html#brightText">brightText</a>()
-<a name="x197"></a> : &amp;cg.<a href="qcolorgroup.html#buttonText">buttonText</a>() );
+<a name="x194"></a> (btn-&gt;<a href="ntqbutton.html#isDown">isDown</a>() || btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>()) ? &amp;cg.<a href="tqcolorgroup.html#brightText">brightText</a>()
+<a name="x197"></a> : &amp;cg.<a href="tqcolorgroup.html#buttonText">buttonText</a>() );
if ( dx || dy )
- p-&gt;<a href="ntqpainter.html#translate">translate</a>( -dx, -dy );
+ p-&gt;<a href="tqpainter.html#translate">translate</a>( -dx, -dy );
break;
}
default:
@@ -1235,7 +1235,7 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; opt ) const
@@ -1244,8 +1244,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
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;
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( color1 );
- p-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( color1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( color1 );
+ p-&gt;<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 );
break;
}
@@ -1256,10 +1256,10 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how,
SCFlags sub,
SCFlags subActive,
@@ -1283,20 +1283,20 @@ 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-&gt;<a href="ntqpainter.html#pen">pen</a>();
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( cg.<a href="qcolorgroup.html#light">light</a>() );
-<a name="x214"></a> p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( ax, sy, ax + awh - 1, sy );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( ax, sy, ax, sy + sh - 1 );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( cg.<a href="qcolorgroup.html#dark">dark</a>() );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( ax + 1, sy + sh - 1, ax + awh - 1, sy + sh - 1 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( ax + awh - 1, sy + 1, ax + awh - 1, sy + sh - 1 );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( oldPen );
+ <a href="ntqpen.html">TQPen</a> oldPen = p-&gt;<a href="tqpainter.html#pen">pen</a>();
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#light">light</a>() );
+<a name="x214"></a> p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( ax, sy, ax + awh - 1, sy );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( ax, sy, ax, sy + sh - 1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#dark">dark</a>() );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( ax + 1, sy + sh - 1, ax + awh - 1, sy + sh - 1 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( ax + awh - 1, sy + 1, ax + awh - 1, sy + sh - 1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( oldPen );
if ( cmb-&gt;<a href="ntqcombobox.html#editable">editable</a>() ) {
<a href="ntqrect.html">TQRect</a> r( <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget,
SC_ComboBoxEditField, opt) );
- <a href="ntqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, TRUE, 1,
- &amp;cg.<a href="qcolorgroup.html#brush">brush</a>(TQColorGroup::Button) );
+ <a href="tqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, TRUE, 1,
+ &amp;cg.<a href="tqcolorgroup.html#brush">brush</a>(TQColorGroup::Button) );
}
break;
@@ -1309,7 +1309,7 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; opt ) const
@@ -1318,8 +1318,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
case CC_ComboBox:
{
int d = TQMIN( r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ) / 2;
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( color1 );
- p-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( color1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( color1 );
+ p-&gt;<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 );
break;
}
@@ -1426,12 +1426,12 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="
return r;
}
-static void drawroundrect( <a href="ntqpainter.html">TQPainter</a> *p, TQCOORD x, TQCOORD y,
+static void drawroundrect( <a href="tqpainter.html">TQPainter</a> *p, TQCOORD x, TQCOORD y,
TQCOORD w, TQCOORD h, TQCOORD d )
{
int rx = (200*d)/w;
int ry = (200*d)/h;
-<a name="x215"></a> p-&gt;<a href="ntqpainter.html#drawRoundRect">drawRoundRect</a>( x, y, w, h, rx, ry );
+<a name="x215"></a> p-&gt;<a href="tqpainter.html#drawRoundRect">drawRoundRect</a>( x, y, w, h, rx, ry );
}
static TQRegion roundRectRegion( const <a href="ntqrect.html">TQRect</a>&amp; g, int r )
@@ -1495,9 +1495,9 @@ static void get_combo_parameters( const <a href="ntqrect.html">TQRect</a> &amp;r
static inline int buttonthickness( int d )
{ return d &gt; 20 ? 5 : ( d &lt; 10 ? 2: 3 ); }
-void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="ntqrect.html">TQRect</a> &amp;r,
+void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="tqpainter.html">TQPainter</a> *p, const <a href="ntqrect.html">TQRect</a> &amp;r,
int dir, bool sunken,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;g ) const
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;g ) const
{
int b = <a href="tqstyle.html#pixelMetric">pixelMetric</a>( PM_ScrollBarExtent ) &gt; 20 ? 3 : 2;
@@ -1531,21 +1531,21 @@ void <a name="f226"></a>NorwegianWoodStyle::drawSemicircleButton( <a href="ntqpa
<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 name="x213"></a> <a href="ntqregion.html">TQRegion</a> oldClip = p-&gt;<a href="ntqpainter.html#clipRegion">clipRegion</a>();
-<a name="x217"></a> bool bReallyClip = p-&gt;<a href="ntqpainter.html#hasClipping">hasClipping</a>(); // clip only if we really want.
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( intern );
- p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( r, g.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Button ) );
+<a name="x213"></a> <a href="ntqregion.html">TQRegion</a> oldClip = p-&gt;<a href="tqpainter.html#clipRegion">clipRegion</a>();
+<a name="x217"></a> bool bReallyClip = p-&gt;<a href="tqpainter.html#hasClipping">hasClipping</a>(); // clip only if we really want.
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( intern );
+ p-&gt;<a href="tqpainter.html#fillRect">fillRect</a>( r, g.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button ) );
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a)&amp;extrn );
- p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( r, sunken ? g.<a href="qcolorgroup.html#dark">dark</a>() : g.<a href="qcolorgroup.html#light">light</a>() );
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a)&amp;extrn );
+ p-&gt;<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>() );
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a) &amp; extrn );
- p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( r, sunken ? g.<a href="qcolorgroup.html#light">light</a>() : g.<a href="qcolorgroup.html#dark">dark</a>() );
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( TQRegion(a) &amp; extrn );
+ p-&gt;<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>() );
- p-&gt;<a href="ntqpainter.html#setClipRegion">setClipRegion</a>( oldClip );
- p-&gt;<a href="ntqpainter.html#setClipping">setClipping</a>( bReallyClip );
+ p-&gt;<a href="tqpainter.html#setClipRegion">setClipRegion</a>( oldClip );
+ p-&gt;<a href="tqpainter.html#setClipping">setClipping</a>( bReallyClip );
}
#endif
@@ -1588,25 +1588,25 @@ public:
void unPolish( <a href="tqwidget.html">TQWidget</a>* );
void drawPrimitive( PrimitiveElement pe,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags flags = Style_Default,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default) const;
void drawControl( ControlElement element,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how = Style_Default,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; = TQStyleOption::Default ) const;
void drawComplexControl( ComplexControl cc,
- <a href="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how = Style_Default,
SCFlags sub = SC_All,
SCFlags subActive = SC_None,
@@ -1615,10 +1615,10 @@ public:
private:
- void drawMetalFrame( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, int w, int h ) const;
- void drawMetalGradient( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
+ void drawMetalFrame( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h ) const;
+ void drawMetalGradient( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
bool sunken, bool horz, bool flat=FALSE ) const;
- void drawMetalButton( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
+ 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;
};
@@ -1646,7 +1646,7 @@ private:
#include "ntqapplication.h"
#include "ntqcombobox.h"
-#include "ntqpainter.h"
+#include "tqpainter.h"
#include "ntqdrawutil.h" // for now
#include "ntqpixmap.h" // for now
#include "ntqpalette.h" // for now
@@ -1681,9 +1681,9 @@ private:
// we simply create a nice TQColorGroup with a couple of fancy
// pixmaps here and apply to it all widgets
-<a name="x264"></a> <a href="ntqfont.html">TQFont</a> f("times", app-&gt;<a href="ntqapplication.html#font">font</a>().pointSize() );
-<a name="x280"></a> f.<a href="ntqfont.html#setBold">setBold</a>( TRUE );
-<a name="x281"></a> f.<a href="ntqfont.html#setItalic">setItalic</a>( TRUE );
+<a name="x264"></a> <a href="tqfont.html">TQFont</a> f("times", app-&gt;<a href="ntqapplication.html#font">font</a>().pointSize() );
+<a name="x280"></a> f.<a href="tqfont.html#setBold">setBold</a>( TRUE );
+<a name="x281"></a> f.<a href="tqfont.html#setItalic">setItalic</a>( TRUE );
<a name="x266"></a> app-&gt;<a href="ntqapplication.html#setFont">setFont</a>( f, TRUE, "TQMenuBar");
app-&gt;<a href="ntqapplication.html#setFont">setFont</a>( f, TRUE, "TQPopupMenu");
@@ -1691,7 +1691,7 @@ private:
// TQPixmap button( stonedark_xpm );
- <a href="ntqcolor.html">TQColor</a> gold("#B9B9A5A54040"); //same as topgrad below
+ <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 href="ntqpixmap.html">TQPixmap</a> background(marble_xpm);
@@ -1701,10 +1701,10 @@ private:
<a href="ntqpalette.html">TQPalette</a> op = app-&gt;<a href="ntqapplication.html#palette">palette</a>();
- <a href="ntqcolor.html">TQColor</a> backCol( 227,227,227 );
+ <a href="tqcolor.html">TQColor</a> backCol( 227,227,227 );
// TQPalette op(white);
-<a name="x290"></a> <a href="qcolorgroup.html">TQColorGroup</a> active (op.<a href="ntqpalette.html#active">active</a>().foreground(),
+<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),
@@ -1714,9 +1714,9 @@ private:
op.<a href="ntqpalette.html#active">active</a>().base(),// TQColor(236,182,120),
TQBrush(backCol, background)
);
-<a name="x279"></a> active.<a href="qcolorgroup.html#setColor">setColor</a>( TQColorGroup::ButtonText, TQt::white );
- active.<a href="qcolorgroup.html#setColor">setColor</a>( TQColorGroup::Shadow, TQt::black );
-<a name="x291"></a> <a href="qcolorgroup.html">TQColorGroup</a> disabled (op.<a href="ntqpalette.html#disabled">disabled</a>().foreground(),
+<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(),
@@ -1780,9 +1780,9 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags flags, const <a href="tqstyleoption.html">TQStyleOption</a>&amp; opt ) const
{
switch( pe ) {
@@ -1824,10 +1824,10 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how,
const <a href="tqstyleoption.html">TQStyleOption</a>&amp; opt ) const
{
@@ -1840,25 +1840,25 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget
<a name="x297"></a> r.<a href="ntqrect.html#coords">coords</a>( &amp;x1, &amp;y1, &amp;x2, &amp;y2 );
-<a name="x288"></a><a name="x277"></a> p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( cg.<a href="qcolorgroup.html#foreground">foreground</a>() );
-<a name="x275"></a> p-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( TQBrush(cg.<a href="qcolorgroup.html#button">button</a>(), NoBrush) );
+<a name="x288"></a><a name="x277"></a> p-&gt;<a href="tqpainter.html#setPen">setPen</a>( cg.<a href="tqcolorgroup.html#foreground">foreground</a>() );
+<a name="x275"></a> p-&gt;<a href="tqpainter.html#setBrush">setBrush</a>( TQBrush(cg.<a href="tqcolorgroup.html#button">button</a>(), NoBrush) );
- <a href="ntqbrush.html">TQBrush</a> fill;
+ <a href="tqbrush.html">TQBrush</a> fill;
<a name="x268"></a> if ( btn-&gt;<a href="ntqbutton.html#isDown">isDown</a>() )
-<a name="x274"></a> fill = cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Mid );
+<a name="x274"></a> fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Mid );
<a name="x269"></a> else if ( btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>() )
-<a name="x278"></a> fill = TQBrush( cg.<a href="qcolorgroup.html#mid">mid</a>(), Dense4Pattern );
+<a name="x278"></a> fill = TQBrush( cg.<a href="tqcolorgroup.html#mid">mid</a>(), Dense4Pattern );
else
- fill = cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Button );
+ fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button );
<a name="x294"></a> if ( btn-&gt;<a href="ntqpushbutton.html#isDefault">isDefault</a>() ) {
<a href="ntqpointarray.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 );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( TQt::black );
-<a name="x285"></a> p-&gt;<a href="ntqpainter.html#drawPolyline">drawPolyline</a>( a );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( TQt::black );
+<a name="x285"></a> p-&gt;<a href="tqpainter.html#drawPolyline">drawPolyline</a>( a );
x1 += 2;
y1 += 2;
x2 -= 2;
@@ -1885,8 +1885,8 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget
TQRect(x2 - dx, dx, y1, y2 - y1),
cg, flags, opt );
}
-<a name="x283"></a> if ( p-&gt;<a href="ntqpainter.html#brush">brush</a>().style() != NoBrush )
- p-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( NoBrush );
+<a name="x283"></a> if ( p-&gt;<a href="tqpainter.html#brush">brush</a>().style() != NoBrush )
+ p-&gt;<a href="tqpainter.html#setBrush">setBrush</a>( NoBrush );
break;
}
case CE_PushButtonLabel:
@@ -1907,7 +1907,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget
dy--;
}
if ( dx || dy )
-<a name="x289"></a> p-&gt;<a href="ntqpainter.html#translate">translate</a>( dx, dy );
+<a name="x289"></a> p-&gt;<a href="tqpainter.html#translate">translate</a>( dx, dy );
x += 2;
y += 2;
w -= 4;
@@ -1916,9 +1916,9 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget
AlignCenter|ShowPrefix,
cg, btn-&gt;<a href="tqwidget.html#isEnabled">isEnabled</a>(),
<a name="x271"></a><a name="x270"></a> btn-&gt;<a href="ntqbutton.html#pixmap">pixmap</a>(), btn-&gt;<a href="ntqbutton.html#text">text</a>(), -1,
-<a name="x276"></a><a name="x273"></a> (btn-&gt;<a href="ntqbutton.html#isDown">isDown</a>() || btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>())? &amp;cg.<a href="qcolorgroup.html#brightText">brightText</a>() : &amp;cg.<a href="qcolorgroup.html#buttonText">buttonText</a>() );
+<a name="x276"></a><a name="x273"></a> (btn-&gt;<a href="ntqbutton.html#isDown">isDown</a>() || btn-&gt;<a href="ntqbutton.html#isOn">isOn</a>())? &amp;cg.<a href="tqcolorgroup.html#brightText">brightText</a>() : &amp;cg.<a href="tqcolorgroup.html#buttonText">buttonText</a>() );
if ( dx || dy )
- p-&gt;<a href="ntqpainter.html#translate">translate</a>( -dx, -dy );
+ p-&gt;<a href="tqpainter.html#translate">translate</a>( -dx, -dy );
break;
}
default:
@@ -1927,10 +1927,10 @@ 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="ntqpainter.html">TQPainter</a> *p,
+ <a href="tqpainter.html">TQPainter</a> *p,
const <a href="tqwidget.html">TQWidget</a> *widget,
const <a href="ntqrect.html">TQRect</a> &amp;r,
- const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ const <a href="tqcolorgroup.html">TQColorGroup</a> &amp;cg,
SFlags how,
SCFlags sub,
SCFlags subActive,
@@ -1956,9 +1956,9 @@ 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="ntqpainter.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,
- cmb-&gt;<a href="tqwidget.html#isEnabled">isEnabled</a>() ? &amp;cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Base ) :
- &amp;cg.<a href="qcolorgroup.html#brush">brush</a>( TQColorGroup::Background ) );
+ <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,
+ cmb-&gt;<a href="tqwidget.html#isEnabled">isEnabled</a>() ? &amp;cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Base ) :
+ &amp;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,
how &amp; Style_Sunken, TRUE );
<a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ArrowDown, p,
@@ -1982,7 +1982,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget
/a horz is TRUE.
*/
-void <a name="f228"></a>MetalStyle::drawMetalButton( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
+void <a name="f228"></a>MetalStyle::drawMetalButton( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
bool sunken, bool horz, bool flat ) const
{
@@ -1993,13 +1993,13 @@ void <a name="f228"></a>MetalStyle::drawMetalButton( <a href="ntqpainter.html">T
-void <a name="f229"></a>MetalStyle::drawMetalFrame( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, int w, int h ) const
+void <a name="f229"></a>MetalStyle::drawMetalFrame( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h ) const
{
- <a href="ntqcolor.html">TQColor</a> top1("#878769691515");
- <a href="ntqcolor.html">TQColor</a> top2("#C6C6B4B44949");
+ <a href="tqcolor.html">TQColor</a> top1("#878769691515");
+ <a href="tqcolor.html">TQColor</a> top2("#C6C6B4B44949");
- <a href="ntqcolor.html">TQColor</a> bot2("#70705B5B1414");
- <a href="ntqcolor.html">TQColor</a> bot1("#56564A4A0E0E"); //first from the bottom
+ <a href="tqcolor.html">TQColor</a> bot2("#70705B5B1414");
+ <a href="tqcolor.html">TQColor</a> bot1("#56564A4A0E0E"); //first from the bottom
int x2 = x + w - 1;
@@ -2007,39 +2007,39 @@ void <a name="f229"></a>MetalStyle::drawMetalFrame( <a href="ntqpainter.html">TQ
//frame:
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( top1 );
-<a name="x284"></a> p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x, y2, x, y );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x, y, x2-1, y );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( top2 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x+1, y2 -1, x+1, y+1 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x+1, y+1 , x2-2, y+1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( top1 );
+<a name="x284"></a> p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x, y2, x, y );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x, y, x2-1, y );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( top2 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x+1, y2 -1, x+1, y+1 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x+1, y+1 , x2-2, y+1 );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( bot1 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x+1, y2, x2, y2 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x2, y2, x2, y );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( bot2 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x+1, y2-1, x2-1, y2-1 );
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x2-1, y2-1, x2-1, y+1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( bot1 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x+1, y2, x2, y2 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x2, y2, x2, y );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( bot2 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x+1, y2-1, x2-1, y2-1 );
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x2-1, y2-1, x2-1, y+1 );
}
-void <a name="f230"></a>MetalStyle::drawMetalGradient( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
+void <a name="f230"></a>MetalStyle::drawMetalGradient( <a href="tqpainter.html">TQPainter</a> *p, int x, int y, int w, int h,
bool sunken, bool horz, bool flat ) const
{
- <a href="ntqcolor.html">TQColor</a> highlight("#E8E8DDDD6565");
- <a href="ntqcolor.html">TQColor</a> subh1("#CECEBDBD5151");
- <a href="ntqcolor.html">TQColor</a> subh2("#BFBFACAC4545");
+ <a href="tqcolor.html">TQColor</a> highlight("#E8E8DDDD6565");
+ <a href="tqcolor.html">TQColor</a> subh1("#CECEBDBD5151");
+ <a href="tqcolor.html">TQColor</a> subh2("#BFBFACAC4545");
- <a href="ntqcolor.html">TQColor</a> topgrad("#B9B9A5A54040");
- <a href="ntqcolor.html">TQColor</a> botgrad("#89896C6C1A1A");
+ <a href="tqcolor.html">TQColor</a> topgrad("#B9B9A5A54040");
+ <a href="tqcolor.html">TQColor</a> botgrad("#89896C6C1A1A");
if ( flat &amp;&amp; !sunken ) {
-<a name="x286"></a> p-&gt;<a href="ntqpainter.html#fillRect">fillRect</a>( x + 2, y + 2, w - 4,h -4, topgrad );
+<a name="x286"></a> p-&gt;<a href="tqpainter.html#fillRect">fillRect</a>( x + 2, y + 2, w - 4,h -4, topgrad );
} else {
// highlight:
int i = 0;
@@ -2053,18 +2053,18 @@ void <a name="f230"></a>MetalStyle::drawMetalGradient( <a href="ntqpainter.html"
y2 = y2 - 2;
#define DRAWLINE if (horz) \
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x1, y1+i, x2, y1+i ); \
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x1, y1+i, x2, y1+i ); \
else \
- p-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( x1+i, y1, x1+i, y2 ); \
+ p-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( x1+i, y1, x1+i, y2 ); \
i++;
if ( !sunken ) {
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( highlight );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( highlight );
DRAWLINE;
DRAWLINE;
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( subh1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( subh1 );
DRAWLINE;
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( subh2 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( subh2 );
DRAWLINE;
}
// gradient:
@@ -2072,32 +2072,32 @@ void <a name="f230"></a>MetalStyle::drawMetalGradient( <a href="ntqpainter.html"
int h1, h2, s1, s2, v1, v2;
if ( !sunken ) {
-<a name="x272"></a> topgrad.<a href="ntqcolor.html#hsv">hsv</a>( &amp;h1, &amp;s1, &amp;v1 );
- botgrad.<a href="ntqcolor.html#hsv">hsv</a>( &amp;h2, &amp;s2, &amp;v2 );
+<a name="x272"></a> topgrad.<a href="tqcolor.html#hsv">hsv</a>( &amp;h1, &amp;s1, &amp;v1 );
+ botgrad.<a href="tqcolor.html#hsv">hsv</a>( &amp;h2, &amp;s2, &amp;v2 );
} else {
- botgrad.<a href="ntqcolor.html#hsv">hsv</a>( &amp;h1, &amp;s1, &amp;v1 );
- topgrad.<a href="ntqcolor.html#hsv">hsv</a>( &amp;h2, &amp;s2, &amp;v2 );
+ botgrad.<a href="tqcolor.html#hsv">hsv</a>( &amp;h1, &amp;s1, &amp;v1 );
+ topgrad.<a href="tqcolor.html#hsv">hsv</a>( &amp;h2, &amp;s2, &amp;v2 );
}
if ( ng &gt; 1 ) {
for ( int j =0; j &lt; ng; j++ ) {
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( TQColor( h1 + ((h2-h1)*j)/(ng-1),
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( TQColor( h1 + ((h2-h1)*j)/(ng-1),
s1 + ((s2-s1)*j)/(ng-1),
v1 + ((v2-v1)*j)/(ng-1), TQColor::Hsv ) );
DRAWLINE;
}
} else if ( ng == 1 ) {
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( TQColor((h1+h2)/2, (s1+s2)/2, (v1+v2)/2, TQColor::Hsv) );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( TQColor((h1+h2)/2, (s1+s2)/2, (v1+v2)/2, TQColor::Hsv) );
DRAWLINE;
}
if ( sunken ) {
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( subh2 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( subh2 );
DRAWLINE;
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( subh1 );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( subh1 );
DRAWLINE;
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( highlight );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( highlight );
DRAWLINE;
DRAWLINE;
}
@@ -2135,7 +2135,7 @@ void <a name="f230"></a>MetalStyle::drawMetalGradient( <a href="ntqpainter.html"
#define THEMES_H
#include &lt;<a href="tqmainwindow-h.html">tqmainwindow.h</a>&gt;
-#include &lt;<a href="qfont-h.html">ntqfont.h</a>&gt;
+#include &lt;<a href="tqfont-h.html">tqfont.h</a>&gt;
class TQTabWidget;
@@ -2155,7 +2155,7 @@ protected slots:
void aboutTQt();
private:
- <a href="ntqfont.html">TQFont</a> appFont;
+ <a href="tqfont.html">TQFont</a> appFont;
};
@@ -2191,7 +2191,7 @@ private:
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
-#include &lt;<a href="qfont-h.html">ntqfont.h</a>&gt;
+#include &lt;<a href="tqfont-h.html">tqfont.h</a>&gt;
#include &lt;<a href="tqstylefactory-h.html">tqstylefactory.h</a>&gt;
#include &lt;<a href="tqaction-h.html">tqaction.h</a>&gt;
#include &lt;<a href="tqsignalmapper-h.html">tqsignalmapper.h</a>&gt;