summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-05 12:06:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 10:48:18 +0900
commit806da231c0cdfdaaf963cf6fec0d88ac3dedbc33 (patch)
tree909a5990ad9ad8096c2528072294fd291457cc36
parentf6ddaa842ae396ad256d43678df5b93fdc84be00 (diff)
downloadtdeartwork-806da231.tar.gz
tdeartwork-806da231.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 35e9f174e4415e4f7be3b01b94f01fc15bb18144)
-rw-r--r--tdescreensaver/kdesavers/banner.cpp42
-rw-r--r--tdescreensaver/kdesavers/fountain.cpp10
-rw-r--r--tdescreensaver/kdesavers/gravity.cpp10
-rw-r--r--tdescreensaver/kdesavers/pendulum.cpp6
-rw-r--r--tdescreensaver/kdesavers/polygon.cpp2
-rw-r--r--tdescreensaver/kdesavers/rotation.cpp6
-rw-r--r--tdescreensaver/kdesavers/wave.cpp10
-rw-r--r--tdescreensaver/kxsconfig/kxsxml.cpp4
-rw-r--r--twin-styles/kde1/kde1client.cpp12
-rw-r--r--twin-styles/kstep/nextclient.cpp2
-rw-r--r--twin-styles/smooth-blend/client/buttons.h32
11 files changed, 68 insertions, 68 deletions
diff --git a/tdescreensaver/kdesavers/banner.cpp b/tdescreensaver/kdesavers/banner.cpp
index 3e23c0e7..3849e16e 100644
--- a/tdescreensaver/kdesavers/banner.cpp
+++ b/tdescreensaver/kdesavers/banner.cpp
@@ -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());
}
diff --git a/tdescreensaver/kdesavers/fountain.cpp b/tdescreensaver/kdesavers/fountain.cpp
index e022f384..57f6dbb4 100644
--- a/tdescreensaver/kdesavers/fountain.cpp
+++ b/tdescreensaver/kdesavers/fountain.cpp
@@ -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 */
diff --git a/tdescreensaver/kdesavers/gravity.cpp b/tdescreensaver/kdesavers/gravity.cpp
index 9e0355b7..43cf8b5d 100644
--- a/tdescreensaver/kdesavers/gravity.cpp
+++ b/tdescreensaver/kdesavers/gravity.cpp
@@ -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 */
diff --git a/tdescreensaver/kdesavers/pendulum.cpp b/tdescreensaver/kdesavers/pendulum.cpp
index 5027fdc8..82aa8c49 100644
--- a/tdescreensaver/kdesavers/pendulum.cpp
+++ b/tdescreensaver/kdesavers/pendulum.cpp
@@ -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(
diff --git a/tdescreensaver/kdesavers/polygon.cpp b/tdescreensaver/kdesavers/polygon.cpp
index b62c8b61..a6c08a76 100644
--- a/tdescreensaver/kdesavers/polygon.cpp
+++ b/tdescreensaver/kdesavers/polygon.cpp
@@ -192,7 +192,7 @@ void kPolygonSetup::slotHelp()
kPolygonSaver::kPolygonSaver( WId id ) : KScreenSaver( id )
{
- polygons.setAutoDelete( TRUE );
+ polygons.setAutoDelete( true );
readSettings();
diff --git a/tdescreensaver/kdesavers/rotation.cpp b/tdescreensaver/kdesavers/rotation.cpp
index a51cfb19..b7dc691a 100644
--- a/tdescreensaver/kdesavers/rotation.cpp
+++ b/tdescreensaver/kdesavers/rotation.cpp
@@ -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(
diff --git a/tdescreensaver/kdesavers/wave.cpp b/tdescreensaver/kdesavers/wave.cpp
index 4d65bfe3..92b39a53 100644
--- a/tdescreensaver/kdesavers/wave.cpp
+++ b/tdescreensaver/kdesavers/wave.cpp
@@ -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 */
diff --git a/tdescreensaver/kxsconfig/kxsxml.cpp b/tdescreensaver/kxsconfig/kxsxml.cpp
index 3891d75a..3e0eafc0 100644
--- a/tdescreensaver/kxsconfig/kxsxml.cpp
+++ b/tdescreensaver/kxsconfig/kxsxml.cpp
@@ -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;
}
diff --git a/twin-styles/kde1/kde1client.cpp b/twin-styles/kde1/kde1client.cpp
index e13d1b06..44e15d88 100644
--- a/twin-styles/kde1/kde1client.cpp
+++ b/twin-styles/kde1/kde1client.cpp
@@ -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 )
diff --git a/twin-styles/kstep/nextclient.cpp b/twin-styles/kstep/nextclient.cpp
index 1176db08..97a9fd91 100644
--- a/twin-styles/kstep/nextclient.cpp
+++ b/twin-styles/kstep/nextclient.cpp
@@ -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 );
}
}
}
diff --git a/twin-styles/smooth-blend/client/buttons.h b/twin-styles/smooth-blend/client/buttons.h
index 3d777144..282a85c1 100644
--- a/twin-styles/smooth-blend/client/buttons.h
+++ b/twin-styles/smooth-blend/client/buttons.h
@@ -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;
}
}