summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-17 22:24:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-17 22:24:01 +0900
commitdd46b9bdeae872ed7682913c898931f1aa6d3d42 (patch)
tree83a29165f950f0f51ef67b342d5a79a0417643c9
parentcc7a56e1bd1694b2d37ecd46691037f02381d6d3 (diff)
downloadtdemultimedia-dd46b9bdeae872ed7682913c898931f1aa6d3d42.tar.gz
tdemultimedia-dd46b9bdeae872ed7682913c898931f1aa6d3d42.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--arts/builder/execdlg.cpp2
-rw-r--r--arts/builder/interfacedlg.cpp2
-rw-r--r--arts/builder/mwidget.cpp2
-rw-r--r--arts/builder/portposdlg.cpp2
-rw-r--r--arts/builder/propertypanel.cpp4
-rw-r--r--arts/builder/qttableview.cpp128
-rw-r--r--arts/builder/qttableview.h18
-rw-r--r--arts/builder/retrievedlg.cpp2
-rw-r--r--arts/gui/kde/kpoti.cpp16
-rw-r--r--arts/midi/midisend.h2
-rw-r--r--arts/tools/choosebusdlg.cpp2
-rw-r--r--arts/tools/fftscopeview.cpp2
-rw-r--r--arts/tools/levelmeters.cpp6
-rw-r--r--arts/tools/midiinstdlg.cpp2
-rw-r--r--arts/tools/midiportdlg.cpp2
-rw-r--r--arts/tools/statusview.cpp2
-rw-r--r--kmix/KMixApp.cpp2
-rw-r--r--kmix/dialogselectmaster.cpp2
-rw-r--r--kmix/kmix.cpp2
-rw-r--r--kmix/kmixapplet.cpp6
-rw-r--r--kmix/ksmallslider.cpp4
-rw-r--r--kmix/mdwenum.cpp2
-rw-r--r--kmix/mixer_hpux.cpp4
-rw-r--r--kmix/mixer_sun.cpp12
-rw-r--r--kscd/bwlednum.cpp20
-rw-r--r--kscd/bwlednum.h6
-rw-r--r--kscd/configWidget.cpp2
-rw-r--r--kscd/libwm/scsi.c2
-rw-r--r--mpeglib/lib/util/audio/audioIO_BeOS.cpp2
-rw-r--r--noatun/modules/kaiman/style.cpp10
-rw-r--r--tdemid/channel.cpp28
-rw-r--r--tdemid/channelcfgdlg.cpp6
-rw-r--r--tdemid/collectdlg.cpp2
-rw-r--r--tdemid/kdisptext.cpp6
-rw-r--r--tdemid/klcdnumber.cpp6
-rw-r--r--tdemid/ktrianglebutton.cpp18
-rw-r--r--tdemid/midicfgdlg.cpp2
-rw-r--r--tdemid/tdemidclient.cpp36
38 files changed, 187 insertions, 187 deletions
diff --git a/arts/builder/execdlg.cpp b/arts/builder/execdlg.cpp
index e4fcb07c..9b673f38 100644
--- a/arts/builder/execdlg.cpp
+++ b/arts/builder/execdlg.cpp
@@ -47,7 +47,7 @@ static void min_size(TQWidget *w) {
ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
:TQDialog(parent,"X")
-/*, TRUE)*/
+/*, true)*/
{
this->structure = structure;
diff --git a/arts/builder/interfacedlg.cpp b/arts/builder/interfacedlg.cpp
index c036887b..cb090644 100644
--- a/arts/builder/interfacedlg.cpp
+++ b/arts/builder/interfacedlg.cpp
@@ -41,7 +41,7 @@
using namespace std;
-InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
+InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", true)
{
setCaption(i18n("aRts: Structureport View"));
diff --git a/arts/builder/mwidget.cpp b/arts/builder/mwidget.cpp
index e1b08ebf..7bfd506e 100644
--- a/arts/builder/mwidget.cpp
+++ b/arts/builder/mwidget.cpp
@@ -641,7 +641,7 @@ ModuleWidget::ModuleWidget(Structure *structure, TQWidget *parent, const char *n
this, TQ_SLOT(autoRedrawRouter()) );
arts_debug("PORT: mw; tstart");
- timer->start( 100, FALSE ); // 100 ms reoccurring check
+ timer->start( 100, false ); // 100 ms reoccurring check
}
ModuleWidget::~ModuleWidget()
diff --git a/arts/builder/portposdlg.cpp b/arts/builder/portposdlg.cpp
index 914be3c3..36fa7e93 100644
--- a/arts/builder/portposdlg.cpp
+++ b/arts/builder/portposdlg.cpp
@@ -40,7 +40,7 @@
using namespace std;
-PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,"Props", TRUE)
+PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,"Props", true)
{
this->structure = structure;
diff --git a/arts/builder/propertypanel.cpp b/arts/builder/propertypanel.cpp
index ad1a3fe0..46615711 100644
--- a/arts/builder/propertypanel.cpp
+++ b/arts/builder/propertypanel.cpp
@@ -355,12 +355,12 @@ bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e )
constantValueEdit->setText( entered );
constantValueEdit->setFocus();
// kdDebug() << "keyPress used in propPanel" << endl;
- return TRUE; // eat event
+ return true; // eat event
}
}
// else
// kdDebug() << "event type = " << e->type() << " != " << TQEvent::KeyPress << endl;
- return FALSE; // PropertyPanelBase::eventFilter( o, e );
+ return false; // PropertyPanelBase::eventFilter( o, e );
}
bool PropertyPanel::isEnum(const std::string& type)
diff --git a/arts/builder/qttableview.cpp b/arts/builder/qttableview.cpp
index 36236fe3..827b96d2 100644
--- a/arts/builder/qttableview.cpp
+++ b/arts/builder/qttableview.cpp
@@ -108,7 +108,7 @@ void TQCornerSquare::paintEvent( TQPaintEvent * )
\warning the functions setNumRows(), setNumCols(), setCellHeight(),
setCellWidth(), setTableFlags() and clearTableFlags() may cause
virtual functions such as cellWidth() and cellHeight() to be called,
- even if autoUpdate() is FALSE. This may cause errors if relevant
+ even if autoUpdate() is false. This may cause errors if relevant
state variables are not initialized.
\warning Experience has shown that use of this widget tends to cause
@@ -215,7 +215,7 @@ void QtTableView::show()
Repaints the table view directly by calling paintEvent() directly
unless updates are disabled.
- Erases the view area \a (x,y,w,h) if \a erase is TRUE. Parameters \a
+ Erases the view area \a (x,y,w,h) if \a erase is true. Parameters \a
(x,y) are in \e widget coordinates.
If \a w is negative, it is replaced with <code>width() - x</code>.
@@ -250,7 +250,7 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase )
/*!
\overload void QtTableView::repaint( const TQRect &r, bool erase )
- Replaints rectangle \a r. If \a erase is TRUE draws the background
+ Repaints rectangle \a r. If \a erase is true draws the background
using the palette's background.
*/
@@ -464,7 +464,7 @@ void QtTableView::setYOffset( int y )
in the view. Parameters \a (x,y) are in \e table coordinates.
The interaction with \link setTableFlags() Tbl_snapTo*Grid \endlink
- is tricky. If \a updateScrBars is TRUE, the scroll bars are
+ is tricky. If \a updateScrBars is true, the scroll bars are
updated.
\sa xOffset(), yOffset(), setXOffset(), setYOffset(), setTopLeftCell()
@@ -707,8 +707,8 @@ int QtTableView::totalHeight()
/*!
\fn bool QtTableView::testTableFlags( uint f ) const
- Returns TRUE if any of the table flags in \a f are currently set,
- otherwise FALSE.
+ Returns true if any of the table flags in \a f are currently set,
+ otherwise false.
\sa setTableFlags(), clearTableFlags(), tableFlags()
*/
@@ -717,7 +717,7 @@ int QtTableView::totalHeight()
Sets the table flags to \a f.
If a flag setting changes the appearance of the table, the table is
- repainted if - and only if - autoUpdate() is TRUE.
+ repainted if - and only if - autoUpdate() is true.
The table flags are mostly single bits, though there are some multibit
flags for convenience. Here is a complete list:
@@ -784,15 +784,15 @@ void QtTableView::setTableFlags( uint f )
tFlags |= f;
bool updateOn = autoUpdate();
- setAutoUpdate( FALSE );
+ setAutoUpdate( false );
uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH;
if ( f & Tbl_vScrollBar ) {
- setVerScrollBar( TRUE );
+ setVerScrollBar( true );
}
if ( f & Tbl_hScrollBar ) {
- setHorScrollBar( TRUE );
+ setHorScrollBar( true );
}
if ( f & Tbl_autoVScrollBar ) {
updateScrollBars( verRange );
@@ -822,7 +822,7 @@ void QtTableView::setTableFlags( uint f )
}
if ( updateOn ) {
- setAutoUpdate( TRUE );
+ setAutoUpdate( true );
updateScrollBars();
if ( isVisible() && (f & repaintMask) )
repaint();
@@ -850,15 +850,15 @@ void QtTableView::clearTableFlags( uint f )
tFlags &= ~f;
bool updateOn = autoUpdate();
- setAutoUpdate( FALSE );
+ setAutoUpdate( false );
uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH;
if ( f & Tbl_vScrollBar ) {
- setVerScrollBar( FALSE );
+ setVerScrollBar( false );
}
if ( f & Tbl_hScrollBar ) {
- setHorScrollBar( FALSE );
+ setHorScrollBar( false );
}
if ( f & Tbl_scrollLastHCell ) {
int maxX = maxXOffset();
@@ -891,7 +891,7 @@ void QtTableView::clearTableFlags( uint f )
updateScrollBars( verRange );
}
if ( updateOn ) {
- setAutoUpdate( TRUE );
+ setAutoUpdate( true );
updateScrollBars(); // returns immediately if nothing to do
if ( isVisible() && (f & repaintMask) )
repaint();
@@ -903,7 +903,7 @@ void QtTableView::clearTableFlags( uint f )
/*!
\fn bool QtTableView::autoUpdate() const
- Returns TRUE if the view updates itself automatically whenever it
+ Returns true if the view updates itself automatically whenever it
is changed in some way.
\sa setAutoUpdate()
@@ -912,11 +912,11 @@ void QtTableView::clearTableFlags( uint f )
/*!
Sets the auto-update option of the table view to \a enable.
- If \a enable is TRUE (this is the default), the view updates itself
+ If \a enable is true (this is the default), the view updates itself
automatically whenever it has changed in some way (for example, when a
\link setTableFlags() flag\endlink is changed).
- If \a enable is FALSE, the view does NOT repaint itself or update
+ If \a enable is false, the view does NOT repaint itself or update
its internal state variables when it is changed. This can be
useful to avoid flicker during large changes and is singularly
useless otherwise. Disable auto-update, do the changes, re-enable
@@ -926,7 +926,7 @@ void QtTableView::clearTableFlags( uint f )
(i.e., between events). If, for example, the user interacts with the
view when auto-update is off, strange things can happen.
- Setting auto-update to TRUE does not repaint the view; you must call
+ Setting auto-update to true does not repaint the view; you must call
repaint() to do this.
\sa autoUpdate(), repaint()
@@ -947,7 +947,7 @@ void QtTableView::setAutoUpdate( bool enable )
/*!
Repaints the cell at row \a row, column \a col if it is inside the view.
- If \a erase is TRUE, the relevant part of the view is cleared to the
+ If \a erase is true, the relevant part of the view is cleared to the
background color/pixmap before the contents are repainted.
\sa isVisible()
@@ -1043,7 +1043,7 @@ int QtTableView::lastColVisible() const
}
/*!
- Returns TRUE if \a row is at least partially visible.
+ Returns true if \a row is at least partially visible.
\sa colIsVisible()
*/
@@ -1053,7 +1053,7 @@ bool QtTableView::rowIsVisible( int row ) const
}
/*!
- Returns TRUE if \a col is at least partially visible.
+ Returns true if \a col is at least partially visible.
\sa rowIsVisible()
*/
@@ -1093,10 +1093,10 @@ void QtTableView::coverCornerSquare( bool enable )
\internal
Scroll the view to a position such that:
- If \a horizontal is TRUE, the leftmost column shown fits snugly
+ If \a horizontal is true, the leftmost column shown fits snugly
with the left edge of the view.
- If \a vertical is TRUE, the top row shown fits snugly with the top
+ If \a vertical is true, the top row shown fits snugly with the top
of the view.
You can achieve the same effect automatically by setting any of the
@@ -1142,7 +1142,7 @@ void QtTableView::horSbValue( int val )
tFlags |= Tbl_snapToHGrid;
}
}
- setOffset( val, yOffs, FALSE );
+ setOffset( val, yOffs, false );
}
/*!
@@ -1158,10 +1158,10 @@ void QtTableView::horSbSliding( int val )
if ( testTableFlags(Tbl_snapToHGrid) &&
testTableFlags(Tbl_smoothHScrolling) ) {
tFlags &= ~Tbl_snapToHGrid; // turn off snapping while sliding
- setOffset( val, yOffs, FALSE );
+ setOffset( val, yOffs, false );
tFlags |= Tbl_snapToHGrid; // turn on snapping again
} else {
- setOffset( val, yOffs, FALSE );
+ setOffset( val, yOffs, false );
}
}
@@ -1175,7 +1175,7 @@ void QtTableView::horSbSlidingDone( )
{
if ( testTableFlags(Tbl_snapToHGrid) &&
testTableFlags(Tbl_smoothHScrolling) )
- snapToGrid( TRUE, FALSE );
+ snapToGrid( true, false );
}
/*!
@@ -1196,7 +1196,7 @@ void QtTableView::verSbValue( int val )
tFlags |= Tbl_snapToVGrid;
}
}
- setOffset( xOffs, val, FALSE );
+ setOffset( xOffs, val, false );
}
/*!
@@ -1212,10 +1212,10 @@ void QtTableView::verSbSliding( int val )
if ( testTableFlags(Tbl_snapToVGrid) &&
testTableFlags(Tbl_smoothVScrolling) ) {
tFlags &= ~Tbl_snapToVGrid; // turn off snapping while sliding
- setOffset( xOffs, val, FALSE );
+ setOffset( xOffs, val, false );
tFlags |= Tbl_snapToVGrid; // turn on snapping again
} else {
- setOffset( xOffs, val, FALSE );
+ setOffset( xOffs, val, false );
}
}
@@ -1229,7 +1229,7 @@ void QtTableView::verSbSlidingDone( )
{
if ( testTableFlags(Tbl_snapToVGrid) &&
testTableFlags(Tbl_smoothVScrolling) )
- snapToGrid( FALSE, TRUE );
+ snapToGrid( false, true );
}
@@ -1280,7 +1280,7 @@ void QtTableView::paintEvent( TQPaintEvent *e )
TQPainter paint( this );
- if ( !contentsRect().contains( updateR, TRUE ) ) {// update frame ?
+ if ( !contentsRect().contains( updateR, true ) ) {// update frame ?
drawFrame( &paint );
if ( updateR.left() < frameWidth() ) //###
updateR.setLeft( frameWidth() );
@@ -1346,7 +1346,7 @@ void QtTableView::paintEvent( TQPaintEvent *e )
frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt
paint.setClipRect( cellUR );
paintCell( &paint, row, col );
- paint.setClipping( FALSE );
+ paint.setClipping( false );
} else {
paintCell( &paint, row, col );
}
@@ -1358,7 +1358,7 @@ void QtTableView::paintEvent( TQPaintEvent *e )
frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt
paint.setClipRect( cellUR );
paintCell( &paint, row, col );
- paint.setClipping( FALSE );
+ paint.setClipping( false );
} else {
paintCell( &paint, row, col );
}
@@ -1379,7 +1379,7 @@ void QtTableView::paintEvent( TQPaintEvent *e )
// Note that this needs to be done regardless whether we do
// eraseInPaint or not. Reason: a subclass may implement
- // flicker-freeness and encourage the use of repaint(FALSE).
+ // flicker-freeness and encourage the use of repaint(false).
// The subclass, however, cannot draw all pixels, just those
// inside the cells. So QtTableView is reponsible for all pixels
// outside the cells.
@@ -1445,7 +1445,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
#endif
sb->resize( sb->sizeHint() ); // height is irrelevant
TQ_CHECK_PTR(sb);
- sb->setTracking( FALSE );
+ sb->setTracking( false );
sb->setFocusPolicy( TQWidget::NoFocus );
connect( sb, TQ_SIGNAL(valueChanged(int)),
TQ_SLOT(verSbValue(int)));
@@ -1477,7 +1477,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
sb->resize( sb->sizeHint() ); // width is irrelevant
sb->setFocusPolicy( TQWidget::NoFocus );
TQ_CHECK_PTR(sb);
- sb->setTracking( FALSE );
+ sb->setTracking( false );
connect( sb, TQ_SIGNAL(valueChanged(int)),
TQ_SLOT(horSbValue(int)));
connect( sb, TQ_SIGNAL(sliderMoved(int)),
@@ -1506,14 +1506,14 @@ void QtTableView::setHorScrollBar( bool on, bool update )
else
sbDirty = sbDirty | (horMask | verMask);
if ( testTableFlags( Tbl_vScrollBar ) )
- coverCornerSquare( TRUE );
+ coverCornerSquare( true );
if ( autoUpdate() )
sbDirty = sbDirty | horMask;
} else {
tFlags &= ~Tbl_hScrollBar;
if ( !hScrollBar )
return;
- coverCornerSquare( FALSE );
+ coverCornerSquare( false );
bool hideScrollBar = autoUpdate() && hScrollBar->isVisible();
if ( hideScrollBar )
hScrollBar->hide();
@@ -1545,14 +1545,14 @@ void QtTableView::setVerScrollBar( bool on, bool update )
else
sbDirty = sbDirty | (horMask | verMask);
if ( testTableFlags( Tbl_hScrollBar ) )
- coverCornerSquare( TRUE );
+ coverCornerSquare( true );
if ( autoUpdate() )
sbDirty = sbDirty | verMask;
} else {
tFlags &= ~Tbl_vScrollBar;
if ( !vScrollBar )
return;
- coverCornerSquare( FALSE );
+ coverCornerSquare( false );
bool hideScrollBar = autoUpdate() && vScrollBar->isVisible();
if ( hideScrollBar )
vScrollBar->hide();
@@ -1707,8 +1707,8 @@ int QtTableView::findCol( int xPos ) const
/*!
Computes the position in the widget of row \a row.
- Returns TRUE and stores the result in \a *yPos (in \e widget
- coordinates) if the row is visible. Returns FALSE and does not modify
+ Returns true and stores the result in \a *yPos (in \e widget
+ coordinates) if the row is visible. Returns false and does not modify
\a *yPos if \a row is invisible or invalid.
\sa colXPos(), findRow()
@@ -1721,7 +1721,7 @@ bool QtTableView::rowYPos( int row, int *yPos ) const
if ( cellH ) {
int lastVisible = lastRowVisible();
if ( row > lastVisible || lastVisible == -1 )
- return FALSE;
+ return false;
y = (row - yCellOffs)*cellH + minViewY() - yCellDelta;
} else {
//##arnt3
@@ -1732,23 +1732,23 @@ bool QtTableView::rowYPos( int row, int *yPos ) const
while ( r < row && y <= maxY )
y += tw->cellHeight( r++ );
if ( y > maxY )
- return FALSE;
+ return false;
}
} else {
- return FALSE;
+ return false;
}
if ( yPos )
*yPos = y;
- return TRUE;
+ return true;
}
/*!
Computes the position in the widget of column \a col.
- Returns TRUE and stores the result in \a *xPos (in \e widget
- coordinates) if the column is visible. Returns FALSE and does not
+ Returns true and stores the result in \a *xPos (in \e widget
+ coordinates) if the column is visible. Returns false and does not
modify \a *xPos if \a col is invisible or invalid.
\sa rowYPos(), findCol()
@@ -1761,7 +1761,7 @@ bool QtTableView::colXPos( int col, int *xPos ) const
if ( cellW ) {
int lastVisible = lastColVisible();
if ( col > lastVisible || lastVisible == -1 )
- return FALSE;
+ return false;
x = (col - xCellOffs)*cellW + minViewX() - xCellDelta;
} else {
//##arnt3
@@ -1772,14 +1772,14 @@ bool QtTableView::colXPos( int col, int *xPos ) const
while ( c < col && x <= maxX )
x += tw->cellWidth( c++ );
if ( x > maxX )
- return FALSE;
+ return false;
}
} else {
- return FALSE;
+ return false;
}
if ( xPos )
*xPos = x;
- return TRUE;
+ return true;
}
@@ -1908,9 +1908,9 @@ void QtTableView::doAutoScrollBars()
w += cellWidth( i++ );
}
if ( w > viewW )
- hScrollOn = TRUE;
+ hScrollOn = true;
else
- hScrollOn = FALSE;
+ hScrollOn = false;
}
if ( testTableFlags(Tbl_autoVScrollBar) ) {
@@ -1923,21 +1923,21 @@ void QtTableView::doAutoScrollBars()
}
if ( h > viewH )
- vScrollOn = TRUE;
+ vScrollOn = true;
else
- vScrollOn = FALSE;
+ vScrollOn = false;
}
if ( testTableFlags(Tbl_autoHScrollBar) && vScrollOn && !hScrollOn )
if ( w > viewW - VSBEXT )
- hScrollOn = TRUE;
+ hScrollOn = true;
if ( testTableFlags(Tbl_autoVScrollBar) && hScrollOn && !vScrollOn )
if ( h > viewH - HSBEXT )
- vScrollOn = TRUE;
+ vScrollOn = true;
- setHorScrollBar( hScrollOn, FALSE );
- setVerScrollBar( vScrollOn, FALSE );
+ setHorScrollBar( hScrollOn, false );
+ setVerScrollBar( vScrollOn, false );
updateFrameSize();
}
@@ -2259,10 +2259,10 @@ void QtTableView::showOrHideScrollBars()
void QtTableView::updateTableSize()
{
bool updateOn = autoUpdate();
- setAutoUpdate( FALSE );
+ setAutoUpdate( false );
int xofs = xOffset();
xOffs++; //so that setOffset will not return immediately
- setOffset(xofs,yOffset(),FALSE); //to calculate internal state correctly
+ setOffset(xofs,yOffset(),false); //to calculate internal state correctly
setAutoUpdate(updateOn);
updateScrollBars( horSteps | horRange |
diff --git a/arts/builder/qttableview.h b/arts/builder/qttableview.h
index 9a944432..39f5d757 100644
--- a/arts/builder/qttableview.h
+++ b/arts/builder/qttableview.h
@@ -32,9 +32,9 @@ public:
virtual void setPalette( const TQPalette & );
void show();
- void repaint( bool erase=TRUE );
- void repaint( int x, int y, int w, int h, bool erase=TRUE );
- void repaint( const TQRect &, bool erase=TRUE );
+ void repaint( bool erase=true );
+ void repaint( int x, int y, int w, int h, bool erase=true );
+ void repaint( const TQRect &, bool erase=true );
protected:
QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 );
@@ -55,7 +55,7 @@ protected:
virtual void setXOffset( int );
int yOffset() const;
virtual void setYOffset( int );
- virtual void setOffset( int x, int y, bool updateScrBars = TRUE );
+ virtual void setOffset( int x, int y, bool updateScrBars = true );
virtual int cellWidth( int col );
virtual int cellHeight( int row );
@@ -75,7 +75,7 @@ protected:
bool autoUpdate() const;
virtual void setAutoUpdate( bool );
- void updateCell( int row, int column, bool erase=TRUE );
+ void updateCell( int row, int column, bool erase=true );
TQRect cellUpdateRect() const;
TQRect viewRect() const;
@@ -129,13 +129,13 @@ protected:
private:
void coverCornerSquare( bool );
void snapToGrid( bool horizontal, bool vertical );
- virtual void setHorScrollBar( bool on, bool update = TRUE );
- virtual void setVerScrollBar( bool on, bool update = TRUE );
+ virtual void setHorScrollBar( bool on, bool update = true );
+ virtual void setVerScrollBar( bool on, bool update = true );
void updateView();
int findRawRow( int yPos, int *cellMaxY, int *cellMinY = 0,
- bool goOutsideView = FALSE ) const;
+ bool goOutsideView = false ) const;
int findRawCol( int xPos, int *cellMaxX, int *cellMinX = 0,
- bool goOutsideView = FALSE ) const;
+ bool goOutsideView = false ) const;
int maxColsVisible() const;
void updateScrollBars( uint );
diff --git a/arts/builder/retrievedlg.cpp b/arts/builder/retrievedlg.cpp
index c912691a..f6da1294 100644
--- a/arts/builder/retrievedlg.cpp
+++ b/arts/builder/retrievedlg.cpp
@@ -40,7 +40,7 @@ static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
-RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
+RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", true)
{
setCaption(i18n("Retrieve Structure From Server"));
diff --git a/arts/gui/kde/kpoti.cpp b/arts/gui/kde/kpoti.cpp
index 03bd905d..96a19e90 100644
--- a/arts/gui/kde/kpoti.cpp
+++ b/arts/gui/kde/kpoti.cpp
@@ -218,8 +218,8 @@ void KPoti::init(int value)
potiPos = positionFromValue(value);
clickOffset = 0;
state = Idle;
- track = TRUE;
- ticks = TRUE;
+ track = true;
+ ticks = true;
m_bLabel = true;
tickInt = 0;
@@ -263,8 +263,8 @@ void KPoti::initTicks()
/**
- Enables slider tracking if \e enable is TRUE, or disables tracking
- if \e enable is FALSE.
+ Enables slider tracking if \e enable is true, or disables tracking
+ if \e enable is false.
If tracking is enabled (default), the slider emits the
valueChanged() signal whenever the slider is being dragged. If
@@ -283,7 +283,7 @@ void KPoti::setTracking( bool enable )
/**
\fn bool KPoti::tracking() const
- Returns TRUE if tracking is enabled, or FALSE if tracking is disabled.
+ Returns true if tracking is enabled, or false if tracking is disabled.
Tracking is initially enabled.
@@ -496,14 +496,14 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
if ( !timer )
timer = new TQTimer( this );
connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(repeatTimeout()) );
- timer->start( thresholdTime, TRUE );
+ timer->start( thresholdTime, true );
} else {
state = TimingUp;
addPage();
if ( !timer )
timer = new TQTimer( this );
connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(repeatTimeout()) );
- timer->start( thresholdTime, TRUE );
+ timer->start( thresholdTime, true );
}
}
@@ -698,7 +698,7 @@ void KPoti::repeatTimeout()
connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(subtractStep()) );
else if ( state == TimingUp )
connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(addStep()) );
- timer->start( repeatTime, FALSE );
+ timer->start( repeatTime, false );
}
diff --git a/arts/midi/midisend.h b/arts/midi/midisend.h
index cd732055..f2782c29 100644
--- a/arts/midi/midisend.h
+++ b/arts/midi/midisend.h
@@ -45,7 +45,7 @@ class CMidiMap {
public:
/*
Reads in the mapfile pszFileName.
- Returns TRUE, if successful.
+ Returns true, if successful.
*/
bool readMap(const char* pszFileName);
/*
diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp
index f611a205..19f3beb3 100644
--- a/arts/tools/choosebusdlg.cpp
+++ b/arts/tools/choosebusdlg.cpp
@@ -43,7 +43,7 @@ static void min_size(TQWidget *w) {
}
ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
- : KDialog(parent,"X", TRUE)
+ : KDialog(parent,"X", true)
, _newbusitemindex( -1 )
{
setCaption(i18n("Choose Bus"));
diff --git a/arts/tools/fftscopeview.cpp b/arts/tools/fftscopeview.cpp
index 975b2943..5d0a8672 100644
--- a/arts/tools/fftscopeview.cpp
+++ b/arts/tools/fftscopeview.cpp
@@ -60,7 +60,7 @@ kdDebug()<<k_funcinfo<<endl;
updateScopeData();
TQBoxLayout * l = new TQHBoxLayout( this );
- l->setAutoAdd( TRUE );
+ l->setAutoAdd( true );
for ( unsigned int i=0;i<scopeData->size();i++ )
{
diff --git a/arts/tools/levelmeters.cpp b/arts/tools/levelmeters.cpp
index 1d0b080c..fc8066e0 100644
--- a/arts/tools/levelmeters.cpp
+++ b/arts/tools/levelmeters.cpp
@@ -17,7 +17,7 @@ PeakBar::PeakBar(TQWidget *parent)
horizontalMode= false;
currentValue= 0.0f;
- lastValues.setAutoDelete( TRUE );
+ lastValues.setAutoDelete( true );
setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
@@ -190,7 +190,7 @@ void ScaleView::drawContents(TQPainter *p) {
LedMeter::LedMeter(TQWidget *parent, bool blueState) : ACLevelMeter(parent) {
setBackgroundColor(black);
TQBoxLayout * l = new TQVBoxLayout( this );
- l->setAutoAdd(TRUE);
+ l->setAutoAdd(true);
for(int i=0;i<12;i++) {
TQColor c;
if(blueState)
@@ -204,7 +204,7 @@ LedMeter::LedMeter(TQWidget *parent, bool blueState) : ACLevelMeter(parent) {
// put each led in its own frame, since it seems to be broken
TQFrame *lframe = new TQFrame(this);
TQBoxLayout *lfl = new TQVBoxLayout( lframe );
- lfl->setAutoAdd(TRUE);
+ lfl->setAutoAdd(true);
leds[i] =
new KLed(c,KLed::Off, KLed::Sunken, KLed::Circular,lframe);
}
diff --git a/arts/tools/midiinstdlg.cpp b/arts/tools/midiinstdlg.cpp
index 29530b57..cb920bdf 100644
--- a/arts/tools/midiinstdlg.cpp
+++ b/arts/tools/midiinstdlg.cpp
@@ -64,7 +64,7 @@ static TQStringList listFiles(TQString directory, TQString extension)
}
MidiInstDlg::MidiInstDlg(TQWidget *parent)
- :TQDialog(parent,"instrument",TRUE)
+ :TQDialog(parent,"instrument",true)
{
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
diff --git a/arts/tools/midiportdlg.cpp b/arts/tools/midiportdlg.cpp
index 370d7999..f2340ab5 100644
--- a/arts/tools/midiportdlg.cpp
+++ b/arts/tools/midiportdlg.cpp
@@ -32,7 +32,7 @@
#include <tqpushbutton.h>
#include <kstdguiitem.h>
-MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE)
+MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,true)
{
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
diff --git a/arts/tools/statusview.cpp b/arts/tools/statusview.cpp
index 4f21657d..5c1290ba 100644
--- a/arts/tools/statusview.cpp
+++ b/arts/tools/statusview.cpp
@@ -39,7 +39,7 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, con
{
this->setCaption( i18n( "aRts Status" ) );
TQBoxLayout *l= new TQVBoxLayout(this);
- //l->setAutoAdd(TRUE);
+ //l->setAutoAdd(true);
RealtimeStatus rs= server.realtimeStatus();
l->addWidget(new TQLabel(rs==rtRealtime?
diff --git a/kmix/KMixApp.cpp b/kmix/KMixApp.cpp
index b72135d0..407fc1aa 100644
--- a/kmix/KMixApp.cpp
+++ b/kmix/KMixApp.cpp
@@ -52,7 +52,7 @@ KMixApp::newInstance()
connect(this, TQ_SIGNAL(stopUpdatesOnVisibility()), m_kmix, TQ_SLOT(stopVisibilityUpdates()));
if ( isRestored() && TDEMainWindow::canBeRestored(0) )
{
- m_kmix->restore(0, FALSE);
+ m_kmix->restore(0, false);
}
}
diff --git a/kmix/dialogselectmaster.cpp b/kmix/dialogselectmaster.cpp
index 34ad8acd..1d1f2d61 100644
--- a/kmix/dialogselectmaster.cpp
+++ b/kmix/dialogselectmaster.cpp
@@ -79,7 +79,7 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer)
TQLabel *qlbl = new TQLabel( i18n("Current Mixer"), hboxMixerName );
qlbl->setFixedHeight(qlbl->sizeHint().height());
- m_cMixer = new KComboBox( FALSE, hboxMixerName, "mixerCombo" );
+ m_cMixer = new KComboBox( false, hboxMixerName, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
TQToolTip::add(m_cMixer, i18n("Current mixer"));
connect(m_cMixer, TQ_SIGNAL(activated(int)), this, TQ_SLOT(createPageByID(int)));
diff --git a/kmix/kmix.cpp b/kmix/kmix.cpp
index 21fa814b..3ce9940d 100644
--- a/kmix/kmix.cpp
+++ b/kmix/kmix.cpp
@@ -155,7 +155,7 @@ KMixWindow::initWidgets()
mixerNameLayout->setSpacing(KDialog::spacingHint());
TQLabel *qlbl = new TQLabel( i18n("Current mixer:"), mixerNameLayout );
qlbl->setFixedHeight(qlbl->sizeHint().height());
- m_cMixer = new KComboBox( FALSE, mixerNameLayout, "mixerCombo" );
+ m_cMixer = new KComboBox( false, mixerNameLayout, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
connect( m_cMixer, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( showSelectedMixer( int ) ) );
TQToolTip::add( m_cMixer, i18n("Current mixer" ) );
diff --git a/kmix/kmixapplet.cpp b/kmix/kmixapplet.cpp
index 05c92736..b65458c8 100644
--- a/kmix/kmixapplet.cpp
+++ b/kmix/kmixapplet.cpp
@@ -165,7 +165,7 @@ KMixApplet::KMixApplet( const TQString& configFile, Type t,
// init static vars
if ( s_instCount == 0) {
- Mixer::mixers().setAutoDelete( TRUE );
+ Mixer::mixers().setAutoDelete( true );
TQString dummyStringHwinfo;
MixerToolBox::initMixer(Mixer::mixers(), false, dummyStringHwinfo);
}
@@ -321,10 +321,10 @@ void KMixApplet::selectMixer()
n++;
}
- bool ok = FALSE;
+ bool ok = false;
TQString res = KInputDialog::getItem( i18n("Mixers"),
i18n("Available mixers:"),
- lst, 0, FALSE, &ok, this );
+ lst, 0, false, &ok, this );
if ( ok )
{
Mixer *mixer = Mixer::mixers().at( lst.findIndex( res ) );
diff --git a/kmix/ksmallslider.cpp b/kmix/ksmallslider.cpp
index 77ab0112..533b4646 100644
--- a/kmix/ksmallslider.cpp
+++ b/kmix/ksmallslider.cpp
@@ -65,7 +65,7 @@ void KSmallSlider::init()
// no signals or to do no initial paint.
// sliderPos = -1;
// state = Idle;
- //track = TRUE;
+ //track = true;
//setMouseTracking(true);
grayed = false;
setFocusPolicy( TQWidget::TabFocus );
@@ -225,7 +225,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
int sliderPos = positionFromValue( TQRangeControl::value() );
// ------------------------ draw 3d border ---------------------------------------------
- style().drawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
+ style().drawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), true );
// ------------------------ draw lower/left part ----------------------------------------
diff --git a/kmix/mdwenum.cpp b/kmix/mdwenum.cpp
index 23846644..8449818c 100644
--- a/kmix/mdwenum.cpp
+++ b/kmix/mdwenum.cpp
@@ -90,7 +90,7 @@ void MDWEnum::createWidgets()
_label = new TQLabel( m_mixdevice->name(), this);
_layout->addWidget(_label);
_label->setFixedHeight(_label->sizeHint().height());
- _enumCombo = new KComboBox( FALSE, this, "mixerCombo" );
+ _enumCombo = new KComboBox( false, this, "mixerCombo" );
// ------------ fill ComboBox start ------------
int maxEnumId= m_mixdevice->enumValues().count();
for (int i=0; i<maxEnumId; i++ ) {
diff --git a/kmix/mixer_hpux.cpp b/kmix/mixer_hpux.cpp
index 20ef91f3..0f491ac9 100644
--- a/kmix/mixer_hpux.cpp
+++ b/kmix/mixer_hpux.cpp
@@ -145,12 +145,12 @@ void Mixer_HPUX::setDevNumName_I(int devnum)
*/
bool Mixer_HPUX::setRecsrcHW( int devnum, bool on )
{
- return FALSE;
+ return false;
}
bool Mixer_HPUX::isRecsrcHW( int devnum )
{
- return FALSE;
+ return false;
}
int Mixer_HPUX::readVolumeFromHW( int devnum, Volume &vol )
diff --git a/kmix/mixer_sun.cpp b/kmix/mixer_sun.cpp
index ac5fe03f..af5cfb8b 100644
--- a/kmix/mixer_sun.cpp
+++ b/kmix/mixer_sun.cpp
@@ -267,14 +267,14 @@ int Mixer_SUN::readVolumeFromHW( int devnum, Volume& volume )
break;
case MIXERDEV_RECORD_MONITOR :
- volume.setMuted(FALSE);
+ volume.setMuted(false);
volume.setAllVolumes( audioinfo.monitor_gain );
break;
case MIXERDEV_INTERNAL_SPEAKER :
case MIXERDEV_HEADPHONE :
case MIXERDEV_LINE_OUT :
- volume.setMuted( (audioinfo.play.port & devMask) ? FALSE : TRUE );
+ volume.setMuted( !(audioinfo.play.port & devMask) );
GainBalanceToVolume( audioinfo.play.gain,
audioinfo.play.balance,
volume );
@@ -283,7 +283,7 @@ int Mixer_SUN::readVolumeFromHW( int devnum, Volume& volume )
case MIXERDEV_MICROPHONE :
case MIXERDEV_LINE_IN :
case MIXERDEV_CD :
- volume.setMuted( (audioinfo.record.port & devMask) ? FALSE : TRUE );
+ volume.setMuted( !(audioinfo.record.port & devMask) );
GainBalanceToVolume( audioinfo.record.gain,
audioinfo.record.balance,
volume );
@@ -384,7 +384,7 @@ int Mixer_SUN::writeVolumeToHW( int devnum, Volume &volume )
//======================================================================
bool Mixer_SUN::setRecsrcHW( int /* devnum */, bool /* on */ )
{
- return FALSE;
+ return false;
}
//======================================================================
@@ -398,10 +398,10 @@ bool Mixer_SUN::isRecsrcHW( int devnum )
case MIXERDEV_MICROPHONE :
case MIXERDEV_LINE_IN :
case MIXERDEV_CD :
- return TRUE;
+ return true;
default :
- return FALSE;
+ return false;
}
}
diff --git a/kscd/bwlednum.cpp b/kscd/bwlednum.cpp
index eb18917e..322cf38a 100644
--- a/kscd/bwlednum.cpp
+++ b/kscd/bwlednum.cpp
@@ -41,7 +41,7 @@ BW_LED_Number::BW_LED_Number( TQWidget *parent, const char *name )
offcolor = TQColor(100,0,0);
- showOffColon(FALSE);
+ showOffColon(false);
smallLED = false;
current_symbol = ' ';
old_segments = &segs[13][0]; // nothing
@@ -131,7 +131,7 @@ static char *getSegments( char s)
void BW_LED_Number::drawContents( TQPainter *p ){
- drawSymbol( p, current_symbol,TRUE );
+ drawSymbol( p, current_symbol,true );
}
@@ -155,7 +155,7 @@ void BW_LED_Number::display(char s){
current_symbol = s;
current_segments = getSegments(s);
- drawSymbol(&p,s,FALSE);
+ drawSymbol(&p,s,false);
p.end();
@@ -202,12 +202,12 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
// by default not shown.
for(int l = 0; l <= NUM_OF_SEGMENTS +1; l++){
- drawSegment(pos,(char) l,*p,Segment_Length,TRUE); //erase segment
+ drawSegment(pos,(char) l,*p,Segment_Length,true); //erase segment
}
}
else{
for(int l = 0; l <= NUM_OF_SEGMENTS -1; l++){
- drawSegment(pos,(char) l,*p,Segment_Length,TRUE); //erase segment
+ drawSegment(pos,(char) l,*p,Segment_Length,true); //erase segment
}
}
@@ -215,7 +215,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
for(int l = 0; l <= NUM_OF_SEGMENTS -1; l++){
if(current_segments[l] != STOP_CHAR){
- drawSegment(pos,current_segments[l],*p,Segment_Length,FALSE); // draw segment
+ drawSegment(pos,current_segments[l],*p,Segment_Length,false); // draw segment
}
else{
break;
@@ -229,7 +229,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
if(current_segments[l] != STOP_CHAR){
if(!seg_contained_in(current_segments[l],old_segments))
- drawSegment(pos,current_segments[l],*p,Segment_Length,FALSE); // draw segment
+ drawSegment(pos,current_segments[l],*p,Segment_Length,false); // draw segment
}
else{
break;
@@ -241,7 +241,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
if(old_segments[k] != STOP_CHAR){
if(!seg_contained_in(old_segments[k],current_segments))
- drawSegment(pos,old_segments[k],*p,Segment_Length,TRUE); //erase segment
+ drawSegment(pos,old_segments[k],*p,Segment_Length,true); //erase segment
}
else{
break;
@@ -254,12 +254,12 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
bool BW_LED_Number::seg_contained_in( char c, char* seg){
- bool result = FALSE;
+ bool result = false;
while ( *seg != STOP_CHAR){
// printf("Comparing %d with %d\n",c,*seg);
if ( c == *seg )
- result = TRUE;
+ result = true;
seg++;
}
diff --git a/kscd/bwlednum.h b/kscd/bwlednum.h
index 194c5823..79497a18 100644
--- a/kscd/bwlednum.h
+++ b/kscd/bwlednum.h
@@ -28,7 +28,7 @@ public:
~BW_LED_Number();
void setSmallLED(bool ); // if you LED is small it might look better
- // if you call setSmallLED(TRUE)
+ // if you call setSmallLED(true)
// this sets the fore and background color of the LED
// the forground defaults to yellow, the background defaults
@@ -42,7 +42,7 @@ public:
void setLEDoffColor(TQColor color);
- // calling showOffColon(TRUE) will show the colon if not illuminated
+ // calling showOffColon(true) will show the colon if not illuminated
// this is rather ugly -- the default is that they are not shown.
void showOffColon(bool off);
@@ -67,7 +67,7 @@ protected:
private:
bool seg_contained_in( char c, char* seg);
- void drawSegment( const TQPoint &, char, TQPainter &, int, bool = FALSE );
+ void drawSegment( const TQPoint &, char, TQPainter &, int, bool = false );
void drawSymbol( TQPainter *p,char s ,bool repaint);
char* old_segments;
diff --git a/kscd/configWidget.cpp b/kscd/configWidget.cpp
index 3cde9992..696e95f8 100644
--- a/kscd/configWidget.cpp
+++ b/kscd/configWidget.cpp
@@ -63,7 +63,7 @@ public:
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
+ * true to construct a modal dialog.
*/
configWidget::configWidget(KSCD* player, TQWidget* parent, const char* name)
: configWidgetUI(parent, name),
diff --git a/kscd/libwm/scsi.c b/kscd/libwm/scsi.c
index d056fe34..37343107 100644
--- a/kscd/libwm/scsi.c
+++ b/kscd/libwm/scsi.c
@@ -90,7 +90,7 @@ int wm_scsi2_set_volume(struct wm_drive *d, int left, int right);
* d Drive structure
* buf Buffer for data, both sending and receiving
* len Size of buffer
- * dir TRUE if the command expects data to be returned in the buffer.
+ * dir true if the command expects data to be returned in the buffer.
* a0- CDB bytes. Either 6, 10, or 12 of them, depending on the command.
*/
/*VARARGS4*/
diff --git a/mpeglib/lib/util/audio/audioIO_BeOS.cpp b/mpeglib/lib/util/audio/audioIO_BeOS.cpp
index ff73cd57..3c221f0e 100644
--- a/mpeglib/lib/util/audio/audioIO_BeOS.cpp
+++ b/mpeglib/lib/util/audio/audioIO_BeOS.cpp
@@ -145,7 +145,7 @@ int audioRead(char *buffer, int count)
bool stream_func(void *arg, char *buf, size_t count, void *header)
{
audioRead(buf, count);
- return TRUE;
+ return true;
}
void audioOpen() {
diff --git a/noatun/modules/kaiman/style.cpp b/noatun/modules/kaiman/style.cpp
index 06423016..ca96c933 100644
--- a/noatun/modules/kaiman/style.cpp
+++ b/noatun/modules/kaiman/style.cpp
@@ -160,7 +160,7 @@ void KaimanStyleElement::setPixmap( int num )
if ( num<0 ) num = 0;
_currentPixmap = num;
- repaint( FALSE );
+ repaint( false );
}
}
@@ -677,7 +677,7 @@ void KaimanStyleText::startAnimation( int delay )
_pos = 0;
_direction = 1;
_delay = delay;
- _timer->start( _delay, TRUE );
+ _timer->start( _delay, true );
}
@@ -693,7 +693,7 @@ void KaimanStyleText::timeout()
// reflect
if ( _pos+_direction<0 || (int)_value.length()-(_pos+_direction)<digits ) {
_direction = -_direction;
- _timer->start( _delay*5, TRUE );
+ _timer->start( _delay*5, true );
} else {
// check new position
if ( _pos+_direction>=0 && (int)_value.length()-(_pos+_direction)>=digits ) {
@@ -701,7 +701,7 @@ void KaimanStyleText::timeout()
repaint();
}
- _timer->start( _delay, TRUE );
+ _timer->start( _delay, true );
}
@@ -750,7 +750,7 @@ KaimanStyleAnimation::~KaimanStyleAnimation()
void KaimanStyleAnimation::start()
{
- _timer->start( _delay, FALSE );
+ _timer->start( _delay, false );
}
void KaimanStyleAnimation::pause()
diff --git a/tdemid/channel.cpp b/tdemid/channel.cpp
index 3cda48dd..91d63bc0 100644
--- a/tdemid/channel.cpp
+++ b/tdemid/channel.cpp
@@ -42,7 +42,7 @@
KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
{
channel=chn;
- replay=TRUE;
+ replay=true;
int i;
for (i=0;i<128;i++) pressed[i]=0;
keyboard = TQPixmap(locate("appdata","icons/keyboard.xpm"));
@@ -52,11 +52,11 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
TDEConfig *kcfg=TDEGlobal::instance()->config();
kcfg->setGroup("KMid");
- TQFont *qtextfontdefault=new TQFont("lucida",18,TQFont::Bold,TRUE);
+ TQFont *qtextfontdefault=new TQFont("lucida",18,TQFont::Bold,true);
qcvfont=new TQFont(kcfg->readFontEntry("ChannelViewFont",qtextfontdefault));
delete qtextfontdefault;
- instrumentCombo = new TQComboBox(FALSE,this,"instr");
+ instrumentCombo = new TQComboBox(false,this,"instr");
instrumentCombo->setGeometry(160,2,200,20);
for (i=0;i<128;i++)
@@ -66,7 +66,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
forcepgm=new KMidButton(this,"forcepgm");
forcepgm->setGeometry(135,4,16,16);
- forcepgm->setToggleButton(TRUE);
+ forcepgm->setToggleButton(true);
button1 = TQPixmap(locate("appdata","icons/button1.xpm"));
button2 = TQPixmap(locate("appdata","icons/button2.xpm"));
forcepgm->setPixmaps(button1,button2);
@@ -169,9 +169,9 @@ void KMidChannel::changeInstrument(int pgm)
void KMidChannel::changeForceState(bool i)
{
- replay=FALSE;
+ replay=false;
forcepgm->setOn(i);
- replay=TRUE;
+ replay=true;
}
void KMidChannel::reset(int level)
@@ -180,12 +180,12 @@ void KMidChannel::reset(int level)
if (level>=1)
{
instrumentCombo->setCurrentItem(0);
- replay=FALSE;
- forcepgm->setOn(FALSE);
- replay=TRUE;
+ replay=false;
+ forcepgm->setOn(false);
+ replay=true;
};
- repaint(FALSE);
+ repaint(false);
}
void KMidChannel::saveState(bool *p,int *pgm)
@@ -198,7 +198,7 @@ void KMidChannel::loadState(bool *p,int *pgm)
{
for (int i=0;i<128;i++) pressed[i]=p[i];
instrumentCombo->setCurrentItem(*pgm);
- repaint(FALSE);
+ repaint(false);
}
void KMidChannel::pgmChanged(int i)
@@ -209,9 +209,9 @@ void KMidChannel::pgmChanged(int i)
data[2]=i;
data[3]=0;
- replay=FALSE;
- forcepgm->setOn(TRUE);
- replay=TRUE;
+ replay=false;
+ forcepgm->setOn(true);
+ replay=true;
emit signalToKMidClient(data);
diff --git a/tdemid/channelcfgdlg.cpp b/tdemid/channelcfgdlg.cpp
index 76f6b87a..533a5573 100644
--- a/tdemid/channelcfgdlg.cpp
+++ b/tdemid/channelcfgdlg.cpp
@@ -12,7 +12,7 @@
#include <tqlayout.h>
#include <tqvbuttongroup.h>
-ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok)
+ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,true,i18n("Configure Channel View"),Ok|Cancel, Ok)
{
TQWidget *page = new TQWidget( this );
setMainWidget(page);
@@ -22,10 +22,10 @@ ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *na
rb0=new TQRadioButton(i18n("3D look"),qbg,"3d");
rb1=new TQRadioButton(i18n("3D - filled"),qbg,"4d");
- qbg->setExclusive(TRUE);
+ qbg->setExclusive(true);
topLayout->addWidget( qbg );
- ((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(TRUE);
+ ((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(true);
connect (qbg, TQ_SIGNAL(pressed(int)),this,TQ_SLOT(modeselected(int)));
}
diff --git a/tdemid/collectdlg.cpp b/tdemid/collectdlg.cpp
index 226d86d1..4f373b49 100644
--- a/tdemid/collectdlg.cpp
+++ b/tdemid/collectdlg.cpp
@@ -38,7 +38,7 @@
#include "songlist.h"
#include "slman.h"
-CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,const char *name) : TQDialog(parent,name,TRUE)
+CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,const char *name) : TQDialog(parent,name,true)
{
setCaption(i18n("Collections Manager"));
ok=new KPushButton(KStdGuiItem::ok(),this);
diff --git a/tdemid/kdisptext.cpp b/tdemid/kdisptext.cpp
index 51f8fc40..466c1564 100644
--- a/tdemid/kdisptext.cpp
+++ b/tdemid/kdisptext.cpp
@@ -125,7 +125,7 @@ void KDisplayText::ClearEv(bool totally)
this->killTimers();
autoscrollv=0;
resizeContents(0,0);
- viewport()->repaint(TRUE);
+ viewport()->repaint(true);
}
}
@@ -508,7 +508,7 @@ void KDisplayText::fontChanged(void)
qfmetr=new TQFontMetrics(*qtextfont);
calculatePositions();
nvisiblelines=height()/qfmetr->lineSpacing();
- viewport()->repaint(TRUE);
+ viewport()->repaint(true);
}
void KDisplayText::ChangeTypeOfTextEvents(int type)
@@ -534,7 +534,7 @@ void KDisplayText::ChangeTypeOfTextEvents(int type)
setContentsPos(0,first_line->ypos);
}
- viewport()->repaint(TRUE);
+ viewport()->repaint(true);
}
int KDisplayText::ChooseTypeOfTextEvents(void)
diff --git a/tdemid/klcdnumber.cpp b/tdemid/klcdnumber.cpp
index 57385a39..7b3ac247 100644
--- a/tdemid/klcdnumber.cpp
+++ b/tdemid/klcdnumber.cpp
@@ -197,7 +197,7 @@ void KLCDNumber::setValue(double v)
void KLCDNumber::display (double v)
{
setValue(v);
- repaint(FALSE);
+ repaint(false);
}
void KLCDNumber::display (int v)
@@ -317,13 +317,13 @@ void KLCDNumber::defaultValueClicked()
void KLCDNumber::setLCDBackgroundColor(int r,int g,int b)
{
backgcolor=TQColor(r,g,b);
- repaint(FALSE);
+ repaint(false);
}
void KLCDNumber::setLCDColor(int r,int g,int b)
{
LCDcolor=TQColor(r,g,b);
- repaint(FALSE);
+ repaint(false);
}
void KLCDNumber::setRange(double min, double max)
diff --git a/tdemid/ktrianglebutton.cpp b/tdemid/ktrianglebutton.cpp
index 0e2a1d3c..4f7fb139 100644
--- a/tdemid/ktrianglebutton.cpp
+++ b/tdemid/ktrianglebutton.cpp
@@ -34,7 +34,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam
: TQButton( _parent , name)
{
dir=d;
- raised = FALSE;
+ raised = false;
setFocusPolicy( TQWidget::NoFocus );
}
@@ -46,16 +46,16 @@ void KTriangleButton::enterEvent( TQEvent* )
{
if ( isEnabled() )
{
- raised = TRUE;
- repaint(FALSE);
+ raised = true;
+ repaint(false);
}
}
void KTriangleButton::leaveEvent( TQEvent * )
{
- if( raised != FALSE )
+ if( raised != false )
{
- raised = FALSE;
+ raised = false;
repaint();
}
}
@@ -77,19 +77,19 @@ void KTriangleButton::paint( TQPainter *painter )
{
if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(),
- height(), colorGroup(), TRUE );
+ height(), colorGroup(), true );
else
qDrawShadePanel( painter, 0, 0, width(),
- height(), colorGroup(), TRUE, 2, 0L );
+ height(), colorGroup(), true, 2, 0L );
}
else if ( raised )
{
if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), height(),
- colorGroup(), FALSE );
+ colorGroup(), false );
else
qDrawShadePanel( painter, 0, 0, width(), height(),
- colorGroup(), FALSE, 2, 0L );
+ colorGroup(), false, 2, 0L );
}
if (dir==Right)
diff --git a/tdemid/midicfgdlg.cpp b/tdemid/midicfgdlg.cpp
index 9a801bed..c5c55d6f 100644
--- a/tdemid/midicfgdlg.cpp
+++ b/tdemid/midicfgdlg.cpp
@@ -38,7 +38,7 @@
#include <tdestandarddirs.h>
MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
- TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,
+ TQWidget *parent,const char *name) : KDialogBase(parent,name,true,
i18n("Configure MIDI Devices"), KDialogBase::Ok|KDialogBase::Cancel)
{
setMinimumSize(360,240);
diff --git a/tdemid/tdemidclient.cpp b/tdemid/tdemidclient.cpp
index 1c7290db..8579ae88 100644
--- a/tdemid/tdemidclient.cpp
+++ b/tdemid/tdemidclient.cpp
@@ -111,11 +111,11 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
tempoLCD->setMinimumSize(tempoLCD->sizeHint());
connect(tempoLCD,TQ_SIGNAL(valueChanged(double)),this,TQ_SLOT(slotSetTempo(double)));
- comboSongs = new TQComboBox(FALSE, this,"Songs");
+ comboSongs = new TQComboBox(false, this,"Songs");
connect (comboSongs,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotSelectSong(int)));
comboSongs->setMinimumWidth(200);
- comboEncodings = new TQComboBox(FALSE, this, "Encodings");
+ comboEncodings = new TQComboBox(false, this, "Encodings");
connect (comboEncodings,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotSelectEncoding(int)));
comboEncodings->insertItem(i18n("Default"));
comboEncodings->insertStringList( TDEGlobal::charsets()->descriptiveEncodingNames() );
@@ -310,9 +310,9 @@ int tdemidClient::openFile(const char *filename)
midifile_opened=0L;
timebar->setRange(0,240000);
timebar->setValue(0);
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv();
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
topLevelWidget()->setCaption("KMid");
return -1;
@@ -327,7 +327,7 @@ int tdemidClient::openFile(const char *filename)
// noteArray=player->parseNotes();
noteArray=player->noteArray();
timebar->setRange(0,(int)(player->information()->millisecsTotal));
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv();
spev=player->specialEvents();
while (spev)
@@ -343,7 +343,7 @@ int tdemidClient::openFile(const char *filename)
kdispt->CursorToHome();
// kdispt->updateScrollBars();
emit mustRechooseTextEvent();
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
tempoLCD->display(tempoToMetronomeTempo(m_kMid.pctl->tempo));
currentTempo=tempoLCD->getValue();
tempoLCD->setDefaultValue(tempoToMetronomeTempo(m_kMid.pctl->tempo)*m_kMid.pctl->ratioTempo);
@@ -565,7 +565,7 @@ void tdemidClient::slotPlay()
int type;
ulong x=timeOfNextEvent(&type);
if (type!=0)
- timer4events->start(x,TRUE);
+ timer4events->start(x,true);
timer4timebar->start(1000);
@@ -669,12 +669,12 @@ void tdemidClient::slotSeek(int i)
int type;
ulong x=timeOfNextEvent(&type);
if (type!=0)
- timer4events->start(x-(currentmillisec-beginmillisec),TRUE);
+ timer4events->start(x-(currentmillisec-beginmillisec),true);
/*
if (spev==NULL) return;
ulong delaymillisec=spev->absmilliseconds-(currentmillisec-beginmillisec);
- timer4events->start(delaymillisec,TRUE);
+ timer4events->start(delaymillisec,true);
*/
m_kMid.pctl->OK=0;
@@ -892,7 +892,7 @@ void tdemidClient::slotPause()
int type;
ulong x=timeOfNextEvent(&type);
if (type!=0)
- timer4events->start(x-(currentmillisec-beginmillisec),TRUE);
+ timer4events->start(x-(currentmillisec-beginmillisec),true);
timer4timebar->start(1000);
if (noteArray!=NULL)
@@ -925,7 +925,7 @@ void tdemidClient::slotStop()
if (!shuttingdown)
{
- for (int i=0;i<16;i++) m_kMid.pctl->forcepgm[i]=FALSE;
+ for (int i=0;i<16;i++) m_kMid.pctl->forcepgm[i]=false;
if (channelView) channelView->reset();
if (tempoLCD)
{
@@ -1121,7 +1121,7 @@ void tdemidClient::processSpecialEvent()
if (delaymillisec<10) processNext=1;
}
- if (delaymillisec!=~(long)0) timer4events->start(delaymillisec,TRUE);
+ if (delaymillisec!=~(long)0) timer4events->start(delaymillisec,true);
}
@@ -1129,7 +1129,7 @@ void tdemidClient::repaintText(int type)
{
kdispt->ChangeTypeOfTextEvents(type);
typeoftextevents=type;
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
}
int tdemidClient::ChooseTypeOfTextEvents(void)
@@ -1265,11 +1265,11 @@ void tdemidClient::slotSelectSong(int i)
player->removeSong();
timebar->setRange(0,240000);
timebar->setValue(0);
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv();
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
comboSongs->clear();
- comboSongs->repaint(TRUE);
+ comboSongs->repaint(true);
topLevelWidget()->setCaption("KMid");
return;
}
@@ -1410,7 +1410,7 @@ void tdemidClient::rethinkNextEvent(void)
currentmillisec=tv.tv_sec*1000+tv.tv_usec/1000;
delaymillisec=x-(currentmillisec-beginmillisec);
- timer4events->start(delaymillisec,TRUE);
+ timer4events->start(delaymillisec,true);
}
void tdemidClient::communicationFromChannelView(int *i)
@@ -1487,7 +1487,7 @@ void tdemidClient::slotSetTempo(double value)
timebar->setRange(0,(int)(player->information()->millisecsTotal));
timebar->setValue(pausedatmillisec);
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv(false);