@ -665,7 +665,7 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa
iconHeight = gdk_pixbuf_get_height ( pixbuf ) ;
buttonicon = TQPixmap ( iconWidth , iconHeight ) ;
buttonicon_mask = TQBitmap ( iconWidth , iconHeight ) ;
buttonicon . fill ( tqApp - > palette( ) . active ( ) . background ( ) ) ;
buttonicon . fill ( tqApp - > tq palette( ) . active ( ) . background ( ) ) ;
buttonicon_mask . fill ( TQt : : color0 ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( buttonicon . handle ( ) ) ;
GdkBitmap * bmp = gdk_pixmap_foreign_new ( buttonicon_mask . handle ( ) ) ;
@ -701,7 +701,7 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa
sflags | = TQStyle : : Style_ButtonDefault ;
button . setDefault ( defaultButton ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . background ( ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . background ( ) ) ;
button . setText ( gwLabel ) ;
if ( tde_showIconsOnPushButtons )
@ -710,9 +710,9 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa
button . setOn ( sflags & TQStyle : : Style_On ) ;
// This emulates ::drawButton() in the Qt qbutton.cpp file
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_PushButton , & painter , & button ,
TQRect ( 0 , 0 , w , h ) , button . palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_PushButtonLabel , & painter , & button ,
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_PushButton , & painter , & button ,
TQRect ( 0 , 0 , w , h ) , button . tq palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_PushButtonLabel , & painter , & button ,
tqApp - > tqstyle ( ) . subRect ( TQStyle : : SR_PushButtonContents , & button ) ,
button . colorGroup ( ) , sflags ) ;
@ -737,10 +737,10 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa
sflags | = TQStyle : : Style_ButtonDefault ;
button . setDefault ( defaultButton ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . background ( ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . background ( ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_PushButton , & painter , & button ,
TQRect ( 0 , 0 , w , h ) , button . palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_PushButton , & painter , & button ,
TQRect ( 0 , 0 , w , h ) , button . tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -786,15 +786,15 @@ void drawToolbar(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w1 , h1 , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w1 , h1 , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , w1 , h1 , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelDockWindow , & painter ,
TQRect ( 0 , 0 , w1 , h1 ) , tqApp - > palette( ) . active ( ) , sflags ) ;
TQRect ( 0 , 0 , w1 , h1 ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
if ( isKeramik )
{
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_DockWindowSeparator , & painter ,
TQRect ( 0 , 0 , w1 , h1 ) , tqApp - > palette( ) . active ( ) , sflags ) ;
TQRect ( 0 , 0 , w1 , h1 ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
}
bitBlt ( & p , 0 , 0 , & pixmap , 0 , 0 , w , h ) ;
@ -841,10 +841,10 @@ void drawMenubar(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w1 , h1 , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w1 , h1 , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , w1 , h1 , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelMenuBar , & painter ,
TQRect ( 0 , 0 , w1 , h1 ) , tqApp - > palette( ) . active ( ) , sflags ) ;
TQRect ( 0 , 0 , w1 , h1 ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
bitBlt ( & p , 0 , 0 , & pixmap , 0 , 0 , w , h ) ;
@ -874,8 +874,8 @@ void drawTab(GdkWindow* window, GtkStyle* style, GtkStateType state, int x, int
if ( state ! = GTK_STATE_ACTIVE )
sflags = TQStyle : : Style_Selected ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_TabBarTab , & painter , meepTabBar , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , TQStyleOption ( tab ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_TabBarTab , & painter , meepTabBar , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyleOption ( tab ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -900,10 +900,10 @@ void drawVLine(GdkWindow* window, GtkStyle* style, GtkStateType state, int x, in
TQPixmap pixmap ( width , height ) ;
TQPainter painter ( & pixmap ) ;
painter . fillRect ( 2 , 0 , width - 2 , height , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . setPen ( tqApp - > palette( ) . active ( ) . mid ( ) ) ;
painter . fillRect ( 2 , 0 , width - 2 , height , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . setPen ( tqApp - > tq palette( ) . active ( ) . mid ( ) ) ;
painter . drawLine ( 0 , 0 , 0 , height ) ;
painter . setPen ( tqApp - > palette( ) . active ( ) . light ( ) ) ;
painter . setPen ( tqApp - > tq palette( ) . active ( ) . light ( ) ) ;
painter . drawLine ( 1 , 0 , 1 , height ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
@ -925,10 +925,10 @@ void drawHLine(GdkWindow* window, GtkStyle* style, GtkStateType state, int y, in
TQPixmap pixmap ( width , height ) ;
TQPainter painter ( & pixmap ) ;
painter . fillRect ( 0 , 2 , width , height - 2 , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . setPen ( tqApp - > palette( ) . active ( ) . mid ( ) ) ;
painter . fillRect ( 0 , 2 , width , height - 2 , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . setPen ( tqApp - > tq palette( ) . active ( ) . mid ( ) ) ;
painter . drawLine ( 0 , 0 , width , 0 ) ;
painter . setPen ( tqApp - > palette( ) . active ( ) . light ( ) ) ;
painter . setPen ( tqApp - > tq palette( ) . active ( ) . light ( ) ) ;
painter . drawLine ( 0 , 1 , width , 1 ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
@ -951,8 +951,8 @@ void drawLineEdit(GdkWindow* window, GtkStyle* style, GtkStateType state, int ha
if ( hasFocus )
sflags | = TQStyle : : Style_HasFocus ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . base ( ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelLineEdit , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , TQStyleOption ( 1 , 1 ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . base ( ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelLineEdit , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyleOption ( 1 , 1 ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -977,9 +977,9 @@ void drawFrame(GdkWindow* window, GtkStyle* style, GtkStateType state, GtkShadow
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_Panel , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , TQStyleOption ( 2 , 2 ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_Panel , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyleOption ( 2 , 2 ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1006,8 +1006,8 @@ void drawComboBox(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
if ( state = = GTK_STATE_PRELIGHT )
activeflags = TQStyle : : Style_MouseOver ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawComplexControl( TQStyle : : CC_ComboBox , & painter , & cb , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , scflags , activeflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawComplexControl( TQStyle : : CC_ComboBox , & painter , & cb , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , scflags , activeflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1019,8 +1019,8 @@ void drawCheckBox(GdkWindow* window, GtkStyle* style, GtkStateType state, int ch
if ( ! gtkQtEnable )
return ;
int realH = tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_IndicatorHeight ) ;
int realW = tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_IndicatorWidth ) ;
int realH = tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_IndicatorHeight ) ;
int realW = tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_IndicatorWidth ) ;
if ( ( realW < 1 ) | | ( realH < 1 ) )
return ;
@ -1032,8 +1032,8 @@ void drawCheckBox(GdkWindow* window, GtkStyle* style, GtkStateType state, int ch
TQStyle : : SFlags sflags = stateToSFlags ( state ) ;
sflags | = ( checked ? TQStyle : : Style_On : TQStyle : : Style_Off ) ;
painter . fillRect ( 0 , 0 , realW , realH , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_CheckBox , & painter , & checkbox , TQRect ( 0 , 0 , realW , realH ) , tqApp - > palette( ) . active ( ) , sflags ) ;
painter . fillRect ( 0 , 0 , realW , realH , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_CheckBox , & painter , & checkbox , TQRect ( 0 , 0 , realW , realH ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
// Qt checkboxes are usually bigger than GTK wants.
// We cheat, and draw them over the expected area.
@ -1055,8 +1055,8 @@ void drawMenuCheck(GdkWindow* window, GtkStyle* style, GtkStateType state, int x
/* A previous version of the function followed the sizehints exclusively
Now follow w and h provided by GTK , but if the checkmark is too big we might have to scale it */
/*
int w1 = checkbox . sizeHint( ) . width ( ) ;
int h1 = checkbox . sizeHint( ) . height ( ) ; */
int w1 = checkbox . tq sizeHint( ) . width ( ) ;
int h1 = checkbox . tq sizeHint( ) . height ( ) ; */
if ( ( w < 1 ) | | ( h < 1 ) )
return ;
@ -1072,8 +1072,8 @@ void drawMenuCheck(GdkWindow* window, GtkStyle* style, GtkStateType state, int x
else if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_CheckMark , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_CheckMark , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1085,8 +1085,8 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
if ( ! gtkQtEnable )
return ;
int realH = tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_IndicatorHeight ) ;
int realW = tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_IndicatorWidth ) ;
int realH = tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_IndicatorHeight ) ;
int realW = tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_IndicatorWidth ) ;
if ( ( realW < 1 ) | | ( realH < 1 ) )
return ;
@ -1103,9 +1103,9 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
else if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , realW , realH , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , realW , realH , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , realW , realH , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_RadioButton , & painter , & radio , TQRect ( 0 , 0 , realH , realW ) , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_RadioButton , & painter , & radio , TQRect ( 0 , 0 , realH , realW ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
// Qt checkboxes are usually bigger than GTK wants.
// We cheat, and draw them over the expected area.
@ -1142,7 +1142,7 @@ void drawScrollBarSlider(GdkWindow* window, GtkStyle* style, GtkStateType state,
if ( orientation = = GTK_ORIENTATION_HORIZONTAL )
sflags | = TQStyle : : Style_Horizontal ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_ScrollBarSlider , & painter , TQRect ( 0 , 0 , wCorrected , hCorrected ) , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_ScrollBarSlider , & painter , TQRect ( 0 , 0 , wCorrected , hCorrected ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
// The domino style doesn't draw the entire slider in PE_ScrollBarSlider
// We have to draw PE_ScrollBarAddPage and PE_ScrollBarSubPage and piece the bits together
@ -1166,11 +1166,11 @@ void drawScrollBarSlider(GdkWindow* window, GtkStyle* style, GtkStateType state,
}
TQPainter dominoPainter ( & leftPix ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_ScrollBarSubPage , & dominoPainter , leftRect , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_ScrollBarSubPage , & dominoPainter , leftRect , tqApp - > tq palette( ) . active ( ) , sflags ) ;
dominoPainter . end ( ) ;
dominoPainter . begin ( & rightPix ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_ScrollBarAddPage , & dominoPainter , rightRect , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_ScrollBarAddPage , & dominoPainter , rightRect , tqApp - > tq palette( ) . active ( ) , sflags ) ;
if ( orientation = = GTK_ORIENTATION_HORIZONTAL )
{
@ -1258,10 +1258,10 @@ void drawScrollBar(GdkWindow* window, GtkStyle* style, GtkStateType state, int o
scrollBar - > resize ( w , h + thumbSize ) ;
painter2 . fillRect ( 0 , 0 , w , h + thumbSize ,
tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawComplexControl( TQStyle : : CC_ScrollBar ,
tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawComplexControl( TQStyle : : CC_ScrollBar ,
& painter2 , scrollBar , TQRect ( 0 , 0 , w , h + thumbSize ) ,
tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tq palette( ) . active ( ) , sflags ) ;
bitBlt ( & pixmap , 0 , 0 , & tmpPixmap , 0 , 0 , w , offset , Qt : : CopyROP ) ;
bitBlt ( & pixmap , 0 , offset , & tmpPixmap , 0 , offset + thumbSize ,
@ -1283,10 +1283,10 @@ void drawScrollBar(GdkWindow* window, GtkStyle* style, GtkStateType state, int o
scrollBar - > resize ( w + thumbSize , h ) ;
painter2 . fillRect ( 0 , 0 , w + thumbSize , h ,
tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawComplexControl( TQStyle : : CC_ScrollBar ,
tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawComplexControl( TQStyle : : CC_ScrollBar ,
& painter2 , scrollBar , TQRect ( 0 , 0 , w + thumbSize , h ) ,
tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tq palette( ) . active ( ) , sflags ) ;
bitBlt ( & pixmap , 0 , 0 , & tmpPixmap , 0 , 0 , offset , h , Qt : : CopyROP ) ;
bitBlt ( & pixmap , offset , 0 , & tmpPixmap , offset + thumbSize , 0 ,
@ -1310,8 +1310,8 @@ void drawToolButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
button . resize ( w , h ) ;
/*
int realW = button . sizeHint( ) . width ( ) ;
int realH = button . sizeHint( ) . height ( ) ; */
int realW = button . tq sizeHint( ) . width ( ) ;
int realH = button . tq sizeHint( ) . height ( ) ; */
TQStyle : : SFlags sflags = stateToSFlags ( state ) ;
TQStyle : : SCFlags activeflags = TQStyle : : SC_None ;
@ -1329,8 +1329,8 @@ void drawToolButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawComplexControl( TQStyle : : CC_ToolButton , & painter , & button , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , TQStyle : : SC_ToolButton , activeflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawComplexControl( TQStyle : : CC_ToolButton , & painter , & button , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyle : : SC_ToolButton , activeflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1352,7 +1352,7 @@ void drawMenuBarItem(GdkWindow* window, GtkStyle* style, GtkStateType state, int
TQStyle : : SFlags sflags = TQStyle : : Style_Down | TQStyle : : Style_Enabled | TQStyle : : Style_Active | TQStyle : : Style_HasFocus ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_MenuBarItem , & painter , & mb , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , TQStyleOption ( & mi ) ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_MenuBarItem , & painter , & mb , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyleOption ( & mi ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1376,8 +1376,8 @@ void drawMenuItem(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
TQStyleOption opt ( mi , 16 , 16 ) ;
TQStyle : : SFlags sflags = TQStyle : : Style_Active | TQStyle : : Style_Enabled ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_PopupMenuItem , & painter , & pm , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , opt ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_PopupMenuItem , & painter , & pm , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , opt ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1399,8 +1399,8 @@ void drawSplitter(GdkWindow* window, GtkStyle* style, GtkStateType state, int or
// No idea why this works...
if ( orientation ! = GTK_ORIENTATION_HORIZONTAL ) sflags | = TQStyle : : Style_Horizontal ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_Splitter , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_Splitter , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1424,15 +1424,15 @@ void drawTabFrame(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelTabWidget , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , opt ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelTabWidget , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , opt ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
g_object_unref ( pix ) ;
// Drawing tab base
int th = tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_TabBarBaseHeight , meepTabBar ) ;
int th = tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_TabBarBaseHeight , meepTabBar ) ;
int tw = w ;
if ( ( tw < 1 ) | | ( th < 1 ) )
@ -1443,10 +1443,10 @@ void drawTabFrame(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter1 . fillRect ( 0 , 0 , tw , th , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter1 . fillRect ( 0 , 0 , tw , th , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter1 . fillRect ( 0 , 0 , tw , th , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_TabBarBase , & painter1 , TQRect ( 0 , 0 , tw , th ) , tqApp - > palette( ) . active ( ) , sflags , TQStyleOption ( 1 , 1 ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_TabBarBase , & painter1 , TQRect ( 0 , 0 , tw , th ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyleOption ( 1 , 1 ) ) ;
if ( pos = = GTK_POS_BOTTOM )
{
TQWMatrix m ;
@ -1454,13 +1454,13 @@ void drawTabFrame(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
pixmap1 = pixmap1 . xForm ( m ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap1 . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y + h + tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_TabBarBaseOverlap , meepTabBar ) , tw , th ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y + h + tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_TabBarBaseOverlap , meepTabBar ) , tw , th ) ;
g_object_unref ( pix ) ;
}
else
{
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap1 . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y - tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_TabBarBaseOverlap , meepTabBar ) , tw , th ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y - tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_TabBarBaseOverlap , meepTabBar ) , tw , th ) ;
g_object_unref ( pix ) ;
}
}
@ -1480,8 +1480,8 @@ void drawMenu(GdkWindow* window, GtkStyle* style, GtkStateType state, int x, int
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelPopup , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_PanelPopup , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1530,9 +1530,9 @@ void drawProgressChunk(GdkWindow * window, GtkStyle * style, GtkStateType state,
TQStyle : : SFlags sflags = stateToSFlags ( state ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_ProgressBarContents , & painter , & bar , TQRect ( 0 , 0 , w2 , h2 ) , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_ProgressBarContents , & painter , & bar , TQRect ( 0 , 0 , w2 , h2 ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
if ( isAlloy )
@ -1616,8 +1616,8 @@ void drawSpinButton(GdkWindow * window, GtkStyle * style, GtkStateType state, in
TQStyle : : SFlags sflags = stateToSFlags ( state ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( ( direction ? TQStyle : : PE_SpinWidgetDown : TQStyle : : PE_SpinWidgetUp ) , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( ( direction ? TQStyle : : PE_SpinWidgetDown : TQStyle : : PE_SpinWidgetUp ) , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1637,8 +1637,8 @@ void drawListHeader(GdkWindow* window, GtkStyle* style, GtkStateType state, int
TQStyle : : SFlags sflags = stateToSFlags ( state ) | TQStyle : : Style_Horizontal ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_HeaderSection , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_HeaderSection , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1683,10 +1683,10 @@ void drawSquareButton(GdkWindow* window, GtkStyle* style, GtkStateType state, in
else if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , 20 , 20 , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , 20 , 20 , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , 20 , 20 , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_PushButton , & painter , & button ,
TQRect ( 0 , 0 , 20 , 20 ) , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_PushButton , & painter , & button ,
TQRect ( 0 , 0 , 20 , 20 ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
TQImage image = pixmap . convertToImage ( ) . smoothScale ( w , h ) ;
@ -1761,8 +1761,8 @@ void drawTabNG(GdkWindow *window, GtkStyle* style, GtkStateType state, int x, in
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_TabBarTab , & painter , ( TQTabBar * ) meepTabBar , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags , TQStyleOption ( tab ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_TabBarTab , & painter , ( TQTabBar * ) meepTabBar , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags , TQStyleOption ( tab ) ) ;
painter . end ( ) ; // So the pixmap assignment below won't give an error
// Account for tab position -- if its in the bottom flip the image
@ -1811,9 +1811,9 @@ void drawArrow(GdkWindow* window, GtkStyle* style, GtkStateType state, GtkArrowT
else if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , w , h , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , w , h , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , w , h , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( element , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( element , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , sflags ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ state ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1830,10 +1830,10 @@ void drawFocusRect(GdkWindow * window, GtkStyle * style, int x, int y, int w, in
TQPixmap pixmap ( w , h ) ;
TQPainter painter ( & pixmap ) ;
TQColor bg ( tqApp - > palette( ) . active ( ) . background ( ) ) ;
TQColor bg ( tqApp - > tq palette( ) . active ( ) . background ( ) ) ;
painter . fillRect ( 0 , 0 , w , h , bg ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_FocusRect , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > palette( ) . active ( ) , TQStyle : : Style_Default , TQStyleOption ( bg ) ) ;
tqApp - > tqstyle ( ) . tqdrawPrimitive ( TQStyle : : PE_FocusRect , & painter , TQRect ( 0 , 0 , w , h ) , tqApp - > tq palette( ) . active ( ) , TQStyle : : Style_Default , TQStyleOption ( bg ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
gdk_draw_drawable ( window , style - > bg_gc [ GTK_STATE_NORMAL ] , pix , 0 , 0 , x , y , w , h ) ;
@ -1974,34 +1974,34 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
// Set colors
// Normal
setColour ( " fg[NORMAL] " , tqApp - > palette( ) . active ( ) . text ( ) ) ;
setColour ( " bg[NORMAL] " , tqApp - > palette( ) . active ( ) . background ( ) ) ;
setColour ( " text[NORMAL] " , tqApp - > palette( ) . active ( ) . text ( ) ) ;
setColour ( " base[NORMAL] " , tqApp - > palette( ) . active ( ) . base ( ) ) ;
setColour ( " fg[NORMAL] " , tqApp - > tq palette( ) . active ( ) . text ( ) ) ;
setColour ( " bg[NORMAL] " , tqApp - > tq palette( ) . active ( ) . background ( ) ) ;
setColour ( " text[NORMAL] " , tqApp - > tq palette( ) . active ( ) . text ( ) ) ;
setColour ( " base[NORMAL] " , tqApp - > tq palette( ) . active ( ) . base ( ) ) ;
// Active (on)
setColour ( " fg[ACTIVE] " , tqApp - > palette( ) . active ( ) . text ( ) ) ;
setColour ( " bg[ACTIVE] " , tqApp - > palette( ) . active ( ) . background ( ) ) ;
setColour ( " text[ACTIVE] " , tqApp - > palette( ) . active ( ) . text ( ) ) ;
setColour ( " base[ACTIVE] " , tqApp - > palette( ) . active ( ) . base ( ) ) ;
setColour ( " fg[ACTIVE] " , tqApp - > tq palette( ) . active ( ) . text ( ) ) ;
setColour ( " bg[ACTIVE] " , tqApp - > tq palette( ) . active ( ) . background ( ) ) ;
setColour ( " text[ACTIVE] " , tqApp - > tq palette( ) . active ( ) . text ( ) ) ;
setColour ( " base[ACTIVE] " , tqApp - > tq palette( ) . active ( ) . base ( ) ) ;
// Mouseover
setColour ( " fg[PRELIGHT] " , tqApp - > palette( ) . active ( ) . text ( ) ) ; // menu items - change?
setColour ( " bg[PRELIGHT] " , tqApp - > palette( ) . active ( ) . highlight ( ) ) ;
setColour ( " text[PRELIGHT] " , tqApp - > palette( ) . active ( ) . text ( ) ) ;
setColour ( " base[PRELIGHT] " , tqApp - > palette( ) . active ( ) . base ( ) ) ;
setColour ( " fg[PRELIGHT] " , tqApp - > tq palette( ) . active ( ) . text ( ) ) ; // menu items - change?
setColour ( " bg[PRELIGHT] " , tqApp - > tq palette( ) . active ( ) . highlight ( ) ) ;
setColour ( " text[PRELIGHT] " , tqApp - > tq palette( ) . active ( ) . text ( ) ) ;
setColour ( " base[PRELIGHT] " , tqApp - > tq palette( ) . active ( ) . base ( ) ) ;
// Selected
setColour ( " fg[SELECTED] " , tqApp - > palette( ) . active ( ) . highlightedText ( ) ) ;
setColour ( " bg[SELECTED] " , tqApp - > palette( ) . active ( ) . highlight ( ) ) ;
setColour ( " text[SELECTED] " , tqApp - > palette( ) . active ( ) . highlightedText ( ) ) ;
setColour ( " base[SELECTED] " , tqApp - > palette( ) . active ( ) . highlight ( ) ) ;
setColour ( " fg[SELECTED] " , tqApp - > tq palette( ) . active ( ) . highlightedText ( ) ) ;
setColour ( " bg[SELECTED] " , tqApp - > tq palette( ) . active ( ) . highlight ( ) ) ;
setColour ( " text[SELECTED] " , tqApp - > tq palette( ) . active ( ) . highlightedText ( ) ) ;
setColour ( " base[SELECTED] " , tqApp - > tq palette( ) . active ( ) . highlight ( ) ) ;
// Disabled
setColour ( " fg[INSENSITIVE] " , tqApp - > palette( ) . disabled ( ) . text ( ) ) ;
setColour ( " bg[INSENSITIVE] " , tqApp - > palette( ) . disabled ( ) . background ( ) ) ;
setColour ( " text[INSENSITIVE] " , tqApp - > palette( ) . disabled ( ) . text ( ) ) ;
setColour ( " base[INSENSITIVE] " , tqApp - > palette( ) . disabled ( ) . background ( ) ) ;
setColour ( " fg[INSENSITIVE] " , tqApp - > tq palette( ) . disabled ( ) . text ( ) ) ;
setColour ( " bg[INSENSITIVE] " , tqApp - > tq palette( ) . disabled ( ) . background ( ) ) ;
setColour ( " text[INSENSITIVE] " , tqApp - > tq palette( ) . disabled ( ) . text ( ) ) ;
setColour ( " base[INSENSITIVE] " , tqApp - > tq palette( ) . disabled ( ) . background ( ) ) ;
gtk_rc_parse_string ( ( " gtk-button-images = " + TQString : : number ( showIconsOnButtons ) ) . latin1 ( ) ) ;
@ -2084,11 +2084,11 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
stream < < parse_rc_string ( " GtkScrollbar::stepper-size = " + TQString : : number ( tqApp - > tqstyle ( ) . querySubControlMetrics ( TQStyle : : CC_ScrollBar , & sbar , TQStyle : : SC_ScrollBarSubLine ) . width ( ) - 1 ) , " * " ) ;
stream < < parse_rc_string ( " GtkScrollbar::min-slider-length = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_ScrollBarSliderMin ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkScrollbar::slider-width = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_ScrollBarExtent ) - 2 ) , " * " ) ;
stream < < parse_rc_string ( " GtkScrollbar::min-slider-length = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_ScrollBarSliderMin ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkScrollbar::slider-width = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_ScrollBarExtent ) - 2 ) , " * " ) ;
stream < < parse_rc_string ( " GtkButton::child-displacement-x = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_ButtonShiftHorizontal ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkButton::child-displacement-y = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_ButtonShiftVertical ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkButton::child-displacement-x = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_ButtonShiftHorizontal ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkButton::child-displacement-y = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_ButtonShiftVertical ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkButton::default-border = { 0, 0, 0, 0 } " , " * " ) ;
stream < < parse_rc_string ( " GtkButton::default-outside-border = {0, 0, 0, 0} " , " * " ) ;
# ifdef USE_NATIVE_GTK_BUTTON_DRAWING
@ -2107,10 +2107,10 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
stream < < parse_rc_string ( " GtkButtonBox::child_internal_pad_y = 0 " , " * " ) ;
TQSlider slider ( NULL ) ; // To keep BlueCurve happy
stream < < parse_rc_string ( " GtkScale::slider-length = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_SliderLength , & slider ) ) , " * " ) ;
stream < < parse_rc_string ( " GtkScale::slider-length = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_SliderLength , & slider ) ) , " * " ) ;
stream < < parse_rc_string ( " xthickness = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_DefaultFrameWidth ) ) , " *.GtkMenu " ) ;
stream < < parse_rc_string ( " ythickness = " + TQString : : number ( tqApp - > tqstyle ( ) . pixelMetric( TQStyle : : PM_DefaultFrameWidth ) ) , " *.GtkMenu " ) ;
stream < < parse_rc_string ( " xthickness = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_DefaultFrameWidth ) ) , " *.GtkMenu " ) ;
stream < < parse_rc_string ( " ythickness = " + TQString : : number ( tqApp - > tqstyle ( ) . tq pixelMetric( TQStyle : : PM_DefaultFrameWidth ) ) , " *.GtkMenu " ) ;
stream < < parse_rc_string ( " xthickness = 5 " , " *.GtkMenu.Gtk*MenuItem " ) ;
stream < < parse_rc_string ( " xthickness = 3 " , " *.GtkNotebook " ) ;
stream < < parse_rc_string ( " ythickness = 3 " , " *.GtkNotebook " ) ;
@ -2134,7 +2134,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
stream < < parse_rc_string ( " GtkNotebook::tab-overlap = 1 " , " * " ) ;
// This one may not work...
//insertIntProperty(rc_style, "GtkCheckButton", "indicator-size", tqApp->tqstyle(). pixelMetric(TQStyle::PM_IndicatorHeight) );
//insertIntProperty(rc_style, "GtkCheckButton", "indicator-size", tqApp->tqstyle(). tq pixelMetric(TQStyle::PM_IndicatorHeight) );
// For icons
@ -2301,8 +2301,8 @@ void setMenuBackground(GtkStyle* style)
if ( ( backgroundTile ) & & ( ! backgroundTile - > isNull ( ) ) )
painter . fillRect ( 0 , 0 , 1024 , 25 , TQBrush ( TQColor ( 255 , 255 , 255 ) , * backgroundTile ) ) ;
else
painter . fillRect ( 0 , 0 , 1024 , 25 , tqApp - > palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . drawControl( TQStyle : : CE_PopupMenuItem , & painter , & pm , TQRect ( 0 , 0 , 1024 , 25 ) , tqApp - > palette( ) . active ( ) , sflags , opt ) ;
painter . fillRect ( 0 , 0 , 1024 , 25 , tqApp - > tq palette( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tq drawControl( TQStyle : : CE_PopupMenuItem , & painter , & pm , TQRect ( 0 , 0 , 1024 , 25 ) , tqApp - > tq palette( ) . active ( ) , sflags , opt ) ;
menuBackgroundPixmapGdk = gdk_pixmap_foreign_new ( menuBackgroundPixmap - > handle ( ) ) ;
}
@ -2346,9 +2346,9 @@ void getTextColor(GdkColor *color, GtkStateType state_type)
return ;
if ( ( state_type = = GTK_STATE_PRELIGHT ) | | ( state_type = = GTK_STATE_ACTIVE ) | | ( state_type = = GTK_STATE_SELECTED ) )
setColour ( color , tqApp - > palette( ) . active ( ) . highlightedText ( ) ) ;
setColour ( color , tqApp - > tq palette( ) . active ( ) . highlightedText ( ) ) ;
else if ( state_type = = GTK_STATE_NORMAL )
setColour ( color , tqApp - > palette( ) . active ( ) . text ( ) ) ;
setColour ( color , tqApp - > tq palette( ) . active ( ) . text ( ) ) ;
else if ( state_type = = GTK_STATE_INSENSITIVE )
setColour ( color , tqApp - > palette( ) . disabled ( ) . text ( ) ) ;
setColour ( color , tqApp - > tq palette( ) . disabled ( ) . text ( ) ) ;
}