Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 35e9f174e4)
r14.1.x
Michele Calgaro 12 months ago
parent f6ddaa842a
commit 806da231c0
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -89,7 +89,7 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name )
label = new TQLabel( i18n("Size:"), group );
gl->addWidget(label, 2, 0);
comboSizes = new TQComboBox( TRUE, group );
comboSizes = new TQComboBox( true, group );
fillFontSizes();
gl->addWidget(comboSizes, 2, 1);
connect( comboSizes, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotSize( int ) ) );
@ -176,13 +176,13 @@ void KBannerSetup::readSettings()
speed = 50;*/
message=config->readEntry("Message","TDE");
showTime=config->readBoolEntry("ShowTime",FALSE);
showTime=config->readBoolEntry("ShowTime",false);
fontFamily=config->readEntry("FontFamily",(TQApplication::font()).family());
fontSize=config->readNumEntry("FontSize",48);
fontColor.setNamedColor(config->readEntry("FontColor","red"));
cyclingColor=config->readBoolEntry("CyclingColor",FALSE);
bold=config->readBoolEntry("FontBold",FALSE);
italic=config->readBoolEntry("FontItalic",FALSE);
cyclingColor=config->readBoolEntry("CyclingColor",false);
bold=config->readBoolEntry("FontBold",false);
italic=config->readBoolEntry("FontItalic",false);
}
void KBannerSetup::fillFontSizes()
@ -351,7 +351,7 @@ KBannerSaver::KBannerSaver( WId id ) : KScreenSaver( id )
readSettings();
initialize();
colorContext = TQColor::enterAllocContext();
needBlank = TRUE;
needBlank = true;
timer.start( speed );
connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
}
@ -387,29 +387,29 @@ void KBannerSaver::setFont( const TQString& family, int size, const TQColor &col
void KBannerSaver::setColor(TQColor &color)
{
fontColor = color;
cyclingColor = FALSE;
needUpdate = TRUE;
cyclingColor = false;
needUpdate = true;
}
void KBannerSaver::setCyclingColor( bool on )
{
cyclingColor = on;
needUpdate = TRUE;
needUpdate = true;
}
void KBannerSaver::setMessage( const TQString &msg )
{
showTime = FALSE;
showTime = false;
message = msg;
pixmapSize = TQSize();
needBlank = TRUE;
needBlank = true;
}
void KBannerSaver::setTimeDisplay()
{
showTime = TRUE;
showTime = true;
pixmapSize = TQSize();
needBlank = TRUE;
needBlank = true;
}
// read settings from config file
@ -422,7 +422,7 @@ void KBannerSaver::readSettings()
message=config->readEntry("Message","TDE");
showTime=config->readBoolEntry("ShowTime",FALSE);
showTime=config->readBoolEntry("ShowTime",false);
fontFamily=config->readEntry("FontFamily",(TQApplication::font()).family());
@ -430,10 +430,10 @@ void KBannerSaver::readSettings()
fontColor.setNamedColor(config->readEntry("FontColor","red"));
cyclingColor=config->readBoolEntry("CyclingColor",FALSE);
cyclingColor=config->readBoolEntry("CyclingColor",false);
bold=config->readBoolEntry("FontBold",FALSE);
italic=config->readBoolEntry("FontItalic",FALSE);
bold=config->readBoolEntry("FontBold",false);
italic=config->readBoolEntry("FontItalic",false);
if ( cyclingColor )
{
@ -450,7 +450,7 @@ void KBannerSaver::initialize()
font = TQFont( fontFamily, fsize, bold ? TQFont::Bold : TQFont::Normal, italic );
pixmapSize = TQSize();
needBlank = TRUE;
needBlank = true;
xpos = width();
ypos = fsize + (int) ((double)(height()-fsize)*krnd->getDouble());
@ -472,7 +472,7 @@ void KBannerSaver::slotTimeout()
{
TQString new_message = TDEGlobal::locale()->formatTime(TQTime::currentTime(), true);
if( new_message != message )
needUpdate = TRUE;
needUpdate = true;
message = new_message;
}
if ( !pixmapSize.isValid() || cyclingColor || needUpdate || needBlank )
@ -489,7 +489,7 @@ void KBannerSaver::slotTimeout()
p.setFont( font );
p.setPen( fontColor );
p.drawText( -rect.x(), -rect.y(), message );
needUpdate = FALSE;
needUpdate = false;
}
xpos -= step;
if ( xpos < -pixmapSize.width() ) {
@ -503,7 +503,7 @@ void KBannerSaver::slotTimeout()
{
setBackgroundColor( black );
erase();
needBlank = FALSE;
needBlank = false;
}
bitBlt( this, xpos, ypos, &pixmap, 0, 0, pixmapSize.width(), pixmapSize.height());
}

@ -56,7 +56,7 @@ extern "C"
// dialog to setup screen saver parameters
//
KFountainSetup::KFountainSetup( TQWidget *parent, const char *name )
: SetupUi( parent, name, TRUE )
: SetupUi( parent, name, true )
{
readSettings();
@ -152,7 +152,7 @@ KFountainSaver::KFountainSaver( WId id ) : KScreenSaver( id )
kdDebug() << "Blank" << endl;
timer = new TQTimer( this );
timer->start( 25, TRUE );
timer->start( 25, true );
setBackgroundColor( black );
erase();
fountain = new Fountain();
@ -178,7 +178,7 @@ void KFountainSaver::blank()
// Play fountain
fountain->updateGL();
timer->start( 25, TRUE );
timer->start( 25, true );
}
Fountain::Fountain( TQWidget * parent, const char * name) : TQGLWidget (parent,name)
@ -219,7 +219,7 @@ Fountain::~Fountain()
bool Fountain::loadParticle()
{
/* Status indicator */
bool Status = TRUE;
bool Status = true;
TQImage buf;
kdDebug() << "Loading: " << locate("data", "tdescreensaver/particle.png") << endl;
@ -238,7 +238,7 @@ bool Fountain::loadParticle()
}
/* Set the status to true */
//Status = TRUE;
//Status = true;
glGenTextures(1, &texture[0]); /* create three textures */
glBindTexture(GL_TEXTURE_2D, texture[0]);
/* use linear filtering */

@ -55,7 +55,7 @@ extern "C"
// dialog to setup screen saver parameters
//
KGravitySetup::KGravitySetup( TQWidget *parent, const char *name )
: SetupUi( parent, name, TRUE )
: SetupUi( parent, name, true )
{
readSettings();
@ -138,7 +138,7 @@ KGravitySaver::KGravitySaver( WId id ) : KScreenSaver( id )
kdDebug() << "Blank" << endl;
timer = new TQTimer( this );
timer->start( 25, TRUE );
timer->start( 25, true );
setBackgroundColor( black );
erase();
gravity = new Gravity();
@ -166,7 +166,7 @@ void KGravitySaver::blank()
// Play gravity
gravity->updateGL();
timer->start( 25, TRUE );
timer->start( 25, true );
}
Gravity::Gravity( TQWidget * parent, const char * name) : TQGLWidget (parent,name)
@ -207,7 +207,7 @@ Gravity::~Gravity()
bool Gravity::loadParticle()
{
/* Status indicator */
bool Status = TRUE;
bool Status = true;
TQImage buf;
kdDebug() << "Loading: " << locate("data", "tdescreensaver/particle.png") << endl;
@ -226,7 +226,7 @@ bool Gravity::loadParticle()
}
/* Set the status to true */
//Status = TRUE;
//Status = true;
glGenTextures(1, &texture[0]); /* create three textures */
glBindTexture(GL_TEXTURE_2D, texture[0]);
/* use linear filtering */

@ -378,7 +378,7 @@ KPendulumSaver::KPendulumSaver(WId id) :
// set up and start cyclic timer
timer = new TQTimer(this);
timer->start(deltaT, TRUE);
timer->start(deltaT, true);
connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(doTimeStep()));
}
@ -655,7 +655,7 @@ void KPendulumSaver::doTimeStep()
}
glArea->updateGL(); // repaint scenery
timer->start(deltaT, TRUE); // restart timer
timer->start(deltaT, true); // restart timer
}
// public slot of KPendulumSaver, forward resize event to public slot of glArea
@ -676,7 +676,7 @@ KPendulumSetup::KPendulumSetup(TQWidget* parent, const char* name)
{
// the dialog should block, no other control center input should be possible
// until the dialog is closed
setModal(TRUE);
setModal(true);
// create input validators
mEdit->setValidator(new TQDoubleValidator(

@ -192,7 +192,7 @@ void kPolygonSetup::slotHelp()
kPolygonSaver::kPolygonSaver( WId id ) : KScreenSaver( id )
{
polygons.setAutoDelete( TRUE );
polygons.setAutoDelete( true );
readSettings();

@ -490,7 +490,7 @@ KRotationSaver::KRotationSaver(WId id)
glArea->show(); // show gl widget
timer = new TQTimer(this);
timer->start(deltaT, TRUE);
timer->start(deltaT, true);
connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(doTimeStep()));
}
@ -675,7 +675,7 @@ void KRotationSaver::doTimeStep()
}
glArea->updateGL();
timer->start(deltaT, TRUE); // restart timer
timer->start(deltaT, true); // restart timer
}
// public slot of KRotationSaver, forward resize event to public slot of glArea
@ -696,7 +696,7 @@ KRotationSetup::KRotationSetup(TQWidget* parent, const char* name)
{
// the dialog should block, no other control center input should be possible
// until the dialog is closed
setModal(TRUE);
setModal(true);
lengthEdit->setValidator(
new TQDoubleValidator(

@ -57,7 +57,7 @@ extern "C"
// dialog to setup screen saver parameters
//
KWaveSetup::KWaveSetup( TQWidget *parent, const char *name )
: SetupUi( parent, name, TRUE )
: SetupUi( parent, name, true )
{
readSettings();
@ -116,7 +116,7 @@ KWaveSaver::KWaveSaver( WId id ) : KScreenSaver( id )
readSettings();
timer = new TQTimer( this );
timer->start( 50, TRUE );
timer->start( 50, true );
setBackgroundColor( black );
erase();
wave = new Wave();
@ -144,7 +144,7 @@ void KWaveSaver::blank()
// Play wave
wave->updateGL();
timer->start( 100, TRUE );
timer->start( 100, true );
}
Wave::Wave( TQWidget * parent, const char * name) : TQGLWidget (parent,name)
@ -289,7 +289,7 @@ void Wave::paintGL ()
bool Wave::LoadGLTextures()
{
/* Status indicator */
bool Status = TRUE;
bool Status = true;
TQImage buf; // = TQPixmap::grabWindow ( 0 ).convertToImage();
kdDebug() << "Loading: " << locate("data", "tdescreensaver/image.png") << endl;
@ -307,7 +307,7 @@ bool Wave::LoadGLTextures()
tex = convertToGLFormat( buf );
}
/* Set the status to true */
//Status = TRUE;
//Status = true;
glGenTextures(1, &texture[0]); /* create three textures */
glBindTexture(GL_TEXTURE_2D, texture[0]);
/* use linear filtering */

@ -39,8 +39,8 @@ bool KXSXml::parse( const TQString &filename )
TQXmlInputSource source( &file );
TQXmlSimpleReader reader;
reader.setContentHandler( handler );
if ( !reader.parse( &source, FALSE ) )
return FALSE;
if ( !reader.parse( &source, false ) )
return false;
return true;
}

@ -47,7 +47,7 @@ TQPixmap* dis_question_mark_pix = 0;
TQPixmap* titleBuffer = 0;
bool pixmaps_created = FALSE;
bool pixmaps_created = false;
inline const KDecorationOptions* options() { return KDecoration::options(); }
@ -281,8 +281,8 @@ void StdClient::init()
if ( !button[n] )
continue;
button[n]->setBackgroundMode( PaletteBackground );
button[n]->setMouseTracking( FALSE );
button[n]->setAutoRaise( TRUE );
button[n]->setMouseTracking( false );
button[n]->setAutoRaise( true );
button[n]->setFocusPolicy( TQWidget::NoFocus );
button[n]->setFixedSize( 20, 20 );
}
@ -430,7 +430,7 @@ void StdClient::resizeEvent( TQResizeEvent* )
*/
void StdClient::captionChange()
{
widget()->repaint( titlebar->geometry(), FALSE );
widget()->repaint( titlebar->geometry(), false );
}
@ -514,7 +514,7 @@ void StdClient::iconChange()
button[ButtonMenu]->setIconSet(isActive() ? *menu_pix : *dis_menu_pix);
else
button[ButtonMenu]->setIconSet( icon().pixmap( TQIconSet::Small, TQIconSet::Normal ) );
button[ButtonMenu]->repaint( FALSE );
button[ButtonMenu]->repaint( false );
}
}
@ -678,7 +678,7 @@ void StdToolClient::wheelEvent( TQWheelEvent * e )
void StdToolClient::captionChange()
{
widget()->repaint( titlebar->geometry(), FALSE );
widget()->repaint( titlebar->geometry(), false );
}
void StdToolClient::reset( unsigned long )

@ -463,7 +463,7 @@ void NextClient::initializeButtonsAndTitlebar(TQBoxLayout* titleLayout)
// Finally, activate all live buttons
for ( int i = 0; i < MAX_NUM_BUTTONS; i++) {
if (button[i]) {
button[i]->setMouseTracking( TRUE );
button[i]->setMouseTracking( true );
}
}
}

@ -1708,21 +1708,21 @@ static struct EmbedImage {
bool alpha;
const char *name;
} embed_image_vec[] = {
{ 41, 41, 32, (const unsigned char*)image_0_data, 1781, 0, 0, TRUE, "circle.png" },
{ 41, 41, 32, (const unsigned char*)image_1_data, 1724, 0, 0, TRUE, "close.png" },
{ 41, 41, 32, (const unsigned char*)image_2_data, 1555, 0, 0, TRUE, "help.png" },
{ 42, 41, 32, (const unsigned char*)image_3_data, 1879, 0, 0, TRUE, "keep_above_lit.png" },
{ 41, 41, 32, (const unsigned char*)image_4_data, 1734, 0, 0, TRUE, "keep_above.png" },
{ 41, 41, 32, (const unsigned char*)image_5_data, 1750, 0, 0, TRUE, "keep_below_lit.png" },
{ 41, 41, 32, (const unsigned char*)image_6_data, 1848, 0, 0, TRUE, "keep_below.png" },
{ 42, 41, 32, (const unsigned char*)image_7_data, 1343, 0, 0, TRUE, "maximize.png" },
{ 42, 41, 32, (const unsigned char*)image_8_data, 1141, 0, 0, TRUE, "minimize.png" },
{ 41, 41, 32, (const unsigned char*)image_9_data, 1529, 0, 0, TRUE, "restore.png" },
{ 45, 45, 32, (const unsigned char*)image_10_data, 885, 0, 0, TRUE, "shade.png" },
{ 42, 41, 32, (const unsigned char*)image_11_data, 2017, 0, 0, TRUE, "splat.png" },
{ 1, 30, 32, (const unsigned char*)image_12_data, 72, 0, 0, TRUE, "titlealpha.png" },
{ 42, 41, 32, (const unsigned char*)image_13_data, 1609, 0, 0, TRUE, "window_background.png" },
{ 41, 41, 32, (const unsigned char*)image_14_data, 1566, 0, 0, TRUE, "window_foreground.png" },
{ 41, 41, 32, (const unsigned char*)image_0_data, 1781, 0, 0, true, "circle.png" },
{ 41, 41, 32, (const unsigned char*)image_1_data, 1724, 0, 0, true, "close.png" },
{ 41, 41, 32, (const unsigned char*)image_2_data, 1555, 0, 0, true, "help.png" },
{ 42, 41, 32, (const unsigned char*)image_3_data, 1879, 0, 0, true, "keep_above_lit.png" },
{ 41, 41, 32, (const unsigned char*)image_4_data, 1734, 0, 0, true, "keep_above.png" },
{ 41, 41, 32, (const unsigned char*)image_5_data, 1750, 0, 0, true, "keep_below_lit.png" },
{ 41, 41, 32, (const unsigned char*)image_6_data, 1848, 0, 0, true, "keep_below.png" },
{ 42, 41, 32, (const unsigned char*)image_7_data, 1343, 0, 0, true, "maximize.png" },
{ 42, 41, 32, (const unsigned char*)image_8_data, 1141, 0, 0, true, "minimize.png" },
{ 41, 41, 32, (const unsigned char*)image_9_data, 1529, 0, 0, true, "restore.png" },
{ 45, 45, 32, (const unsigned char*)image_10_data, 885, 0, 0, true, "shade.png" },
{ 42, 41, 32, (const unsigned char*)image_11_data, 2017, 0, 0, true, "splat.png" },
{ 1, 30, 32, (const unsigned char*)image_12_data, 72, 0, 0, true, "titlealpha.png" },
{ 42, 41, 32, (const unsigned char*)image_13_data, 1609, 0, 0, true, "window_background.png" },
{ 41, 41, 32, (const unsigned char*)image_14_data, 1566, 0, 0, true, "window_foreground.png" },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0 }
};
@ -1743,7 +1743,7 @@ static TQImage uic_findImage( const TQString& name )
);
img = img.copy();
if ( embed_image_vec[i].alpha )
img.setAlphaBuffer(TRUE);
img.setAlphaBuffer(true);
return img;
}
}

Loading…
Cancel
Save