diff options
Diffstat (limited to 'src/styles/tqmotifstyle.cpp')
| -rw-r--r-- | src/styles/tqmotifstyle.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/styles/tqmotifstyle.cpp b/src/styles/tqmotifstyle.cpp index 5e71d6813..2b80b1e12 100644 --- a/src/styles/tqmotifstyle.cpp +++ b/src/styles/tqmotifstyle.cpp @@ -91,7 +91,7 @@ static const int motifCheckMarkSpace = 12; /*! Constructs a TQMotifStyle. - If \a useHighlightCols is FALSE (the default), the style will + If \a useHighlightCols is false (the default), the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color. @@ -108,7 +108,7 @@ TQMotifStyle::~TQMotifStyle() } /*! - If \a arg is FALSE, the style will polish the application's color + If \a arg is false, the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color. @@ -124,10 +124,10 @@ void TQMotifStyle::setUseHighlightColors( bool arg ) } /*! - Returns TRUE if the style treats the highlight colors of the + Returns true if the style treats the highlight colors of the palette in a Motif-like manner, which is a simple inversion - between the base and the text color; otherwise returns FALSE. The - default is FALSE. + between the base and the text color; otherwise returns false. The + default is false. */ bool TQMotifStyle::useHighlightColors() const { @@ -678,7 +678,7 @@ void TQMotifStyle::drawPrimitive( PrimitiveElement pe, qDrawShadeLine( p, 0, yPos, kPos, yPos, cg ); qDrawShadePanel( p, kPos, yPos - sw / 2 + 1, kSize, kSize, - cg, FALSE, 1, &cg.brush( TQColorGroup::Button ) ); + cg, false, 1, &cg.brush( TQColorGroup::Button ) ); qDrawShadeLine( p, kPos + kSize - 1, yPos, r.width(), yPos, cg ); } else { TQCOORD xPos = r.x() + r.width() / 2; @@ -687,7 +687,7 @@ void TQMotifStyle::drawPrimitive( PrimitiveElement pe, qDrawShadeLine( p, xPos, kPos + kSize - 1, xPos, r.height(), cg ); qDrawShadePanel( p, xPos - sw / 2 + 1, kPos, kSize, kSize, cg, - FALSE, 1, &cg.brush( TQColorGroup::Button ) ); + false, 1, &cg.brush( TQColorGroup::Button ) ); qDrawShadeLine( p, xPos, 0, xPos, kPos, cg ); } break; @@ -731,9 +731,9 @@ void TQMotifStyle::drawPrimitive( PrimitiveElement pe, p->setPen( cg.text() ); p->drawLineSegments( a ); - qDrawShadePanel( p, posX-2, posY-2, markW+4, markH+6, cg, TRUE, dfw); + qDrawShadePanel( p, posX-2, posY-2, markW+4, markH+6, cg, true, dfw); } else - qDrawShadePanel( p, posX, posY, markW, markH, cg, TRUE, dfw, + qDrawShadePanel( p, posX, posY, markW, markH, cg, true, dfw, &cg.brush( TQColorGroup::Mid ) ); break; @@ -765,7 +765,7 @@ void TQMotifStyle::drawPrimitive( PrimitiveElement pe, break; case PE_PanelScrollBar: - qDrawShadePanel(p, r, cg, TRUE, + qDrawShadePanel(p, r, cg, true, pixelMetric(PM_DefaultFrameWidth, ceData, elementFlags), &cg.brush(TQColorGroup::Mid)); break; @@ -785,7 +785,7 @@ void TQMotifStyle::drawPrimitive( PrimitiveElement pe, TQRect vrect = visualRect( TQRect( x+motifItemFrame, y+motifItemFrame, checkcol, h-2*motifItemFrame ), r ); int xvis = vrect.x(); - qDrawShadePanel( p, xvis, y+motifItemFrame, checkcol, h-2*motifItemFrame, cg, TRUE, 1, &cg.brush( TQColorGroup::Midlight ) ); + qDrawShadePanel( p, xvis, y+motifItemFrame, checkcol, h-2*motifItemFrame, cg, true, 1, &cg.brush( TQColorGroup::Midlight ) ); break; } @@ -867,7 +867,7 @@ void TQMotifStyle::drawControl( ControlElement element, x2 -= 2; y2 -= 2; } else { - qDrawShadePanel( p, r, newCg, TRUE ); + qDrawShadePanel( p, r, newCg, true ); } } if ( !( elementFlags & CEF_IsFlat ) || ( elementFlags & CEF_IsOn ) || ( elementFlags & CEF_IsDown ) ) { @@ -902,13 +902,13 @@ void TQMotifStyle::drawControl( ControlElement element, int dfw = pixelMetric( PM_DefaultFrameWidth, ceData, elementFlags, widget ); bool selected = flags & Style_Selected; int o = dfw > 1 ? 1 : 0; - bool lastTab = FALSE; + bool lastTab = false; TQRect r2( r ); if ( ceData.tabBarData.shape == TQTabBar::RoundedAbove ) { if ( styleHint( SH_TabBar_Alignment, ceData, elementFlags, TQStyleOption::Default, 0, widget ) == AlignRight && ceData.tabBarData.identIndexMap[t->identifier()] == ceData.tabBarData.tabCount-1 ) - lastTab = TRUE; + lastTab = true; if ( o ) { p->setPen( ceData.colorGroup.light() ); @@ -963,7 +963,7 @@ void TQMotifStyle::drawControl( ControlElement element, } else if ( ceData.tabBarData.shape == TQTabBar::RoundedBelow ) { if ( styleHint( SH_TabBar_Alignment, ceData, elementFlags, TQStyleOption::Default, 0, widget ) == AlignLeft && ceData.tabBarData.identIndexMap[t->identifier()] == ceData.tabBarData.tabCount-1 ) - lastTab = TRUE; + lastTab = true; if ( selected ) { p->fillRect( TQRect( r2.left()+1, r2.top(), r2.width()-3, 1), ceData.palette.active().brush( TQColorGroup::Background )); @@ -1010,7 +1010,7 @@ void TQMotifStyle::drawControl( ControlElement element, } case CE_ProgressBarGroove: - qDrawShadePanel(p, r, cg, TRUE, 2); + qDrawShadePanel(p, r, cg, true, 2); break; case CE_ProgressBarLabel: @@ -1083,10 +1083,10 @@ void TQMotifStyle::drawControl( ControlElement element, if ( act && !dis ) { // active item frame if (pixelMetric( PM_DefaultFrameWidth, ceData, elementFlags ) > 1) - qDrawShadePanel( p, x, y, w, h, cg, FALSE, pw, + qDrawShadePanel( p, x, y, w, h, cg, false, pw, &cg.brush( TQColorGroup::Button ) ); else - qDrawShadePanel( p, x+1, y+1, w-2, h-2, cg, TRUE, 1, + qDrawShadePanel( p, x+1, y+1, w-2, h-2, cg, true, 1, &cg.brush( TQColorGroup::Button ) ); } else // incognito frame @@ -1192,7 +1192,7 @@ void TQMotifStyle::drawControl( ControlElement element, case CE_MenuBarItem: { if ( flags & Style_Active ) // active item - qDrawShadePanel( p, r, cg, FALSE, motifItemFrame, + qDrawShadePanel( p, r, cg, false, motifItemFrame, &cg.brush(TQColorGroup::Button) ); else // other item p->fillRect( r, cg.brush(TQColorGroup::Button) ); @@ -1271,7 +1271,7 @@ void TQMotifStyle::drawComplexControl( ComplexControl control, case CC_SpinWidget: { SCFlags drawSub = SC_None; if ( sub & SC_SpinWidgetFrame ) - qDrawShadePanel( p, r, cg, TRUE, + qDrawShadePanel( p, r, cg, true, pixelMetric( PM_DefaultFrameWidth, ceData, elementFlags ) ); if ( sub & SC_SpinWidgetUp || sub & SC_SpinWidgetDown ) { @@ -1294,7 +1294,7 @@ void TQMotifStyle::drawComplexControl( ComplexControl control, opt, widget); if ((sub & SC_SliderGroove) && groove.isValid()) { - qDrawShadePanel( p, groove, cg, TRUE, 2, + qDrawShadePanel( p, groove, cg, true, 2, &cg.brush( TQColorGroup::Mid ) ); @@ -1311,12 +1311,12 @@ void TQMotifStyle::drawComplexControl( ComplexControl control, TQCOORD mid = handle.x() + handle.width() / 2; qDrawShadeLine( p, mid, handle.y(), mid, handle.y() + handle.height() - 2, - cg, TRUE, 1); + cg, true, 1); } else { TQCOORD mid = handle.y() + handle.height() / 2; qDrawShadeLine( p, handle.x(), mid, handle.x() + handle.width() - 2, mid, - cg, TRUE, 1); + cg, true, 1); } } @@ -1364,7 +1364,7 @@ void TQMotifStyle::drawComplexControl( ComplexControl control, TQRect er = TQStyle::visualRect( querySubControlMetrics( CC_ComboBox, ceData, elementFlags, SC_ComboBoxEditField, cb ), ceData, elementFlags ); er.addCoords( -1, -1, 1, 1); - qDrawShadePanel( p, er, cg, TRUE, 1, + qDrawShadePanel( p, er, cg, true, 1, &cg.brush( TQColorGroup::Button )); } } |
