diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-08 12:10:45 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-08 16:46:41 +0900 |
commit | 0821b7f9badc0bb1bf74d8b9040bce6f47997569 (patch) | |
tree | b8f15cd99f25ad3a97d2eb83ba03d914e6567534 | |
parent | 7fe83e6a30ffeb074d4e16a507d27439a733f4b3 (diff) | |
download | tdesdk-0821b7f9badc0bb1bf74d8b9040bce6f47997569.tar.gz tdesdk-0821b7f9badc0bb1bf74d8b9040bce6f47997569.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fb63dae0e786f0bcf421bdff1d0bef70ba587f8b)
-rw-r--r-- | cervisia/qttableview.cpp | 162 | ||||
-rw-r--r-- | cervisia/qttableview.h | 18 | ||||
-rw-r--r-- | kbabel/datatools/accelerators/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/arguments/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/context/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/equations/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/pluralforms/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/punctuation/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/setfuzzy/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/datatools/xml/main.cpp | 8 | ||||
-rw-r--r-- | kbabel/kbabel/mymultilineedit.h | 2 | ||||
-rw-r--r-- | kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp | 4 | ||||
-rw-r--r-- | kbugbuster/gui/loadallbugsdlg.cpp | 2 | ||||
-rw-r--r-- | kompare/komparepart/komparesplitter.cpp | 24 | ||||
-rw-r--r-- | kompare/komparepart/komparesplitter.h | 2 | ||||
-rw-r--r-- | tdeioslave/svn/svn.cpp | 32 |
16 files changed, 155 insertions, 155 deletions
diff --git a/cervisia/qttableview.cpp b/cervisia/qttableview.cpp index ea9f0c74..91447276 100644 --- a/cervisia/qttableview.cpp +++ b/cervisia/qttableview.cpp @@ -107,7 +107,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 @@ -155,13 +155,13 @@ QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f ) vScrollBar = hScrollBar = 0; // no scroll bars cornerSquare = 0; sbDirty = 0; - eraseInPaint = FALSE; - verSliding = FALSE; - verSnappingOff = FALSE; - horSliding = FALSE; - horSnappingOff = FALSE; - coveringCornerSquare = FALSE; - inSbUpdate = FALSE; + eraseInPaint = false; + verSliding = false; + verSnappingOff = false; + horSliding = false; + horSnappingOff = false; + coveringCornerSquare = false; + inSbUpdate = false; } /*! @@ -214,7 +214,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>. @@ -242,14 +242,14 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase ) return; // nothing to do TQPaintEvent e( r ); if ( erase && backgroundMode() != NoBackground ) - eraseInPaint = TRUE; // erase when painting + eraseInPaint = true; // erase when painting paintEvent( &e ); - eraseInPaint = FALSE; + eraseInPaint = false; } /*! \overload void QtTableView::repaint( const TQRect &r, bool erase ) - Replaints rectangle \a r. If \a erase is TRUE draws the background + Replaints rectangle \a r. If \a erase is true draws the background using the palette's background. */ @@ -463,7 +463,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() @@ -706,8 +706,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() */ @@ -716,7 +716,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: @@ -783,15 +783,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 ); @@ -821,7 +821,7 @@ void QtTableView::setTableFlags( uint f ) } if ( updateOn ) { - setAutoUpdate( TRUE ); + setAutoUpdate( true ); updateScrollBars(); if ( isVisible() && (f & repaintMask) ) repaint(); @@ -849,15 +849,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(); @@ -890,7 +890,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(); @@ -902,7 +902,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() @@ -911,11 +911,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 @@ -925,7 +925,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() @@ -946,7 +946,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() @@ -1042,7 +1042,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() */ @@ -1052,7 +1052,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() */ @@ -1092,10 +1092,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 @@ -1135,13 +1135,13 @@ void QtTableView::snapToGrid( bool horizontal, bool vertical ) void QtTableView::horSbValue( int val ) { if ( horSliding ) { - horSliding = FALSE; + horSliding = false; if ( horSnappingOff ) { - horSnappingOff = FALSE; + horSnappingOff = false; tFlags |= Tbl_snapToHGrid; } } - setOffset( val, yOffs, FALSE ); + setOffset( val, yOffs, false ); } /*! @@ -1157,10 +1157,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 ); } } @@ -1174,7 +1174,7 @@ void QtTableView::horSbSlidingDone( ) { if ( testTableFlags(Tbl_snapToHGrid) && testTableFlags(Tbl_smoothHScrolling) ) - snapToGrid( TRUE, FALSE ); + snapToGrid( true, false ); } /*! @@ -1189,13 +1189,13 @@ void QtTableView::horSbSlidingDone( ) void QtTableView::verSbValue( int val ) { if ( verSliding ) { - verSliding = FALSE; + verSliding = false; if ( verSnappingOff ) { - verSnappingOff = FALSE; + verSnappingOff = false; tFlags |= Tbl_snapToVGrid; } } - setOffset( xOffs, val, FALSE ); + setOffset( xOffs, val, false ); } /*! @@ -1211,10 +1211,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 ); } } @@ -1228,7 +1228,7 @@ void QtTableView::verSbSlidingDone( ) { if ( testTableFlags(Tbl_snapToVGrid) && testTableFlags(Tbl_smoothVScrolling) ) - snapToGrid( FALSE, TRUE ); + snapToGrid( false, true ); } @@ -1279,7 +1279,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() ); @@ -1345,7 +1345,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 ); } @@ -1357,7 +1357,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 ); } @@ -1378,7 +1378,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. @@ -1449,7 +1449,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))); @@ -1481,7 +1481,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)), @@ -1510,14 +1510,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(); @@ -1549,14 +1549,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(); @@ -1711,8 +1711,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() @@ -1725,7 +1725,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 @@ -1736,23 +1736,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() @@ -1765,7 +1765,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 @@ -1776,14 +1776,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; } @@ -1912,9 +1912,9 @@ void QtTableView::doAutoScrollBars() w += cellWidth( i++ ); } if ( w > viewW ) - hScrollOn = TRUE; + hScrollOn = true; else - hScrollOn = FALSE; + hScrollOn = false; } if ( testTableFlags(Tbl_autoVScrollBar) ) { @@ -1927,21 +1927,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(); } @@ -1967,7 +1967,7 @@ void QtTableView::updateScrollBars( uint f ) sbDirty = sbDirty | f; if ( inSbUpdate ) return; - inSbUpdate = TRUE; + inSbUpdate = true; if ( testTableFlags(Tbl_autoHScrollBar) && (sbDirty & horRange) || testTableFlags(Tbl_autoVScrollBar) && (sbDirty & verRange) ) @@ -1975,7 +1975,7 @@ void QtTableView::updateScrollBars( uint f ) doAutoScrollBars(); // turn scroll bars on/off if needed if ( !autoUpdate() ) { - inSbUpdate = FALSE; + inSbUpdate = false; return; } if ( yOffset() > 0 && testTableFlags( Tbl_autoVScrollBar ) && @@ -1987,7 +1987,7 @@ void QtTableView::updateScrollBars( uint f ) setXOffset( 0 ); } if ( !isVisible() ) { - inSbUpdate = FALSE; + inSbUpdate = false; return; } @@ -2044,7 +2044,7 @@ void QtTableView::updateScrollBars( uint f ) maxViewY() + frameWidth() + 1 ); sbDirty = 0; - inSbUpdate = FALSE; + inSbUpdate = false; } @@ -2263,10 +2263,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/cervisia/qttableview.h b/cervisia/qttableview.h index df85cd71..c911dca2 100644 --- a/cervisia/qttableview.h +++ b/cervisia/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; @@ -130,13 +130,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/kbabel/datatools/accelerators/main.cpp b/kbabel/datatools/accelerators/main.cpp index 0c7cae3a..476bbdfd 100644 --- a/kbabel/datatools/accelerators/main.cpp +++ b/kbabel/datatools/accelerators/main.cpp @@ -64,20 +64,20 @@ bool AcceleratorTool::run( const TQString& command, void* data, const TQString& { kdDebug(KBABEL) << "Accelerator Tool does only accept the command 'validate'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "Accelerator Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "Accelerator Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -131,7 +131,7 @@ bool AcceleratorTool::run( const TQString& command, void* data, const TQString& return !hasError; } - return FALSE; + return false; } #include "main.moc" diff --git a/kbabel/datatools/arguments/main.cpp b/kbabel/datatools/arguments/main.cpp index b6c3fa5a..66896fbc 100644 --- a/kbabel/datatools/arguments/main.cpp +++ b/kbabel/datatools/arguments/main.cpp @@ -63,20 +63,20 @@ bool ArgumentTool::run( const TQString& command, void* data, const TQString& dat { kdDebug(KBABEL) << "Argument Tool does only accept the command 'validate' and 'shortcut'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "Argument Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "Argument Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -271,7 +271,7 @@ bool ArgumentTool::run( const TQString& command, void* data, const TQString& dat return !hasError; } - return FALSE; + return false; } #include "main.moc" diff --git a/kbabel/datatools/context/main.cpp b/kbabel/datatools/context/main.cpp index 0fb989d2..109b1084 100644 --- a/kbabel/datatools/context/main.cpp +++ b/kbabel/datatools/context/main.cpp @@ -64,20 +64,20 @@ bool ContextTool::run( const TQString& command, void* data, const TQString& data { kdDebug(KBABEL) << "Context Tool does only accept the command 'validate' and 'shortcut'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "Context Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "Context Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -109,7 +109,7 @@ bool ContextTool::run( const TQString& command, void* data, const TQString& data return !hasError; } - return FALSE; + return false; } #include "main.moc" diff --git a/kbabel/datatools/equations/main.cpp b/kbabel/datatools/equations/main.cpp index c0dbbba2..895bbd2d 100644 --- a/kbabel/datatools/equations/main.cpp +++ b/kbabel/datatools/equations/main.cpp @@ -64,20 +64,20 @@ bool EquationsTool::run( const TQString& command, void* data, const TQString& da { kdDebug(KBABEL) << "Equations Tool does only accept the command 'validate' and 'shortcut'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "Equations Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "Equations Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -107,7 +107,7 @@ bool EquationsTool::run( const TQString& command, void* data, const TQString& da return !hasError; } - return FALSE; + return false; } #include "main.moc" diff --git a/kbabel/datatools/pluralforms/main.cpp b/kbabel/datatools/pluralforms/main.cpp index 693a843b..65057631 100644 --- a/kbabel/datatools/pluralforms/main.cpp +++ b/kbabel/datatools/pluralforms/main.cpp @@ -65,20 +65,20 @@ bool PluralsTool::run( const TQString& command, void* data, const TQString& data { kdDebug(KBABEL) << "Plural Forms Tool does only accept the command 'validate' and 'shortcut'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "Plural Forms Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "Plural Forms Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -123,7 +123,7 @@ bool PluralsTool::run( const TQString& command, void* data, const TQString& data return !hasError; } - return FALSE; + return false; } #include "main.moc" diff --git a/kbabel/datatools/punctuation/main.cpp b/kbabel/datatools/punctuation/main.cpp index 6d779518..7f86e0ce 100644 --- a/kbabel/datatools/punctuation/main.cpp +++ b/kbabel/datatools/punctuation/main.cpp @@ -64,20 +64,20 @@ bool PunctuationTool::run( const TQString& command, void* data, const TQString& { kdDebug(KBABEL) << "Punctuation Tool does only accept the command 'validate'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "Punctuation Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "Punctuation Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -151,7 +151,7 @@ bool PunctuationTool::run( const TQString& command, void* data, const TQString& return !hasError; } - return FALSE; + return false; } #include "main.moc" diff --git a/kbabel/datatools/setfuzzy/main.cpp b/kbabel/datatools/setfuzzy/main.cpp index 7bc0ed16..8ff83492 100644 --- a/kbabel/datatools/setfuzzy/main.cpp +++ b/kbabel/datatools/setfuzzy/main.cpp @@ -60,20 +60,20 @@ bool SetFuzzyTool::run( const TQString& command, void* data, const TQString& dat { kdDebug(KBABEL) << "Fuzzy Toggling Tool does only accept the command 'allfuzzy'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "Catalog" ) { kdDebug(KBABEL) << "Fuzzy Toggling Tool only accepts datatype Catalog" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalog" ) { kdDebug(KBABEL) << "Plural Forms Tool only accepts mimetype application/x-kbabel-catalog" << endl; - return FALSE; + return false; } if( command == "allfuzzy" ) @@ -92,7 +92,7 @@ bool SetFuzzyTool::run( const TQString& command, void* data, const TQString& dat catalog->applyEndCommand(0,Msgstr,0); } - return TRUE; + return true; } #include "main.moc" diff --git a/kbabel/datatools/xml/main.cpp b/kbabel/datatools/xml/main.cpp index 59342c0d..07b65c3b 100644 --- a/kbabel/datatools/xml/main.cpp +++ b/kbabel/datatools/xml/main.cpp @@ -66,20 +66,20 @@ bool XMLTool::run( const TQString& command, void* data, const TQString& datatype { kdDebug(KBABEL) << "XML Tool does only accept the command 'validate' and 'shortcut'" << endl; kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl; - return FALSE; + return false; } // Check wether we can accept the data if ( datatype != "CatalogItem" ) { kdDebug(KBABEL) << "XML Tool only accepts datatype CatalogItem" << endl; - return FALSE; + return false; } if ( mimetype != "application/x-kbabel-catalogitem" ) { kdDebug(KBABEL) << "XML Tool only accepts mimetype application/x-kbabel-catalogitem" << endl; - return FALSE; + return false; } if( command == "validate" ) @@ -168,7 +168,7 @@ bool XMLTool::run( const TQString& command, void* data, const TQString& datatype return !hasError; } - return FALSE; + return false; } bool XMLTool::isFullyCompliant( const TQString& text) diff --git a/kbabel/kbabel/mymultilineedit.h b/kbabel/kbabel/mymultilineedit.h index 1c27d264..2fac95af 100644 --- a/kbabel/kbabel/mymultilineedit.h +++ b/kbabel/kbabel/mymultilineedit.h @@ -155,7 +155,7 @@ protected: bool _dontUpdate; protected slots: - virtual void insert ( const TQString & text, bool indent = FALSE, bool checkNewLine = TRUE, bool removeSelected = TRUE ); + virtual void insert ( const TQString & text, bool indent = false, bool checkNewLine = true, bool removeSelected = true ); virtual void emitCursorPosition(); signals: diff --git a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp index 7280bbbd..80be8f86 100644 --- a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp +++ b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp @@ -91,8 +91,8 @@ SearchEngine (parent, name) searching = false; stopNow = false; - norm = false; // Normalize white space = FALSE - comm = true; // Remove Comments = TRUE + norm = false; // Normalize white space = false + comm = true; // Remove Comments = true } diff --git a/kbugbuster/gui/loadallbugsdlg.cpp b/kbugbuster/gui/loadallbugsdlg.cpp index fd9db670..63210965 100644 --- a/kbugbuster/gui/loadallbugsdlg.cpp +++ b/kbugbuster/gui/loadallbugsdlg.cpp @@ -21,7 +21,7 @@ #include <tqtimer.h> LoadAllBugsDlg::LoadAllBugsDlg( const Package& pkg, const TQString &component ) - : TQDialog( 0L, "progressdlg", TRUE ) + : TQDialog( 0L, "progressdlg", true ) { m_bugLoadingProgress = new TDEIO::DefaultProgress( this ); connect( m_bugLoadingProgress, TQ_SIGNAL( stopped() ), diff --git a/kompare/komparepart/komparesplitter.cpp b/kompare/komparepart/komparesplitter.cpp index 64f3d518..8c3e4c52 100644 --- a/kompare/komparepart/komparesplitter.cpp +++ b/kompare/komparepart/komparesplitter.cpp @@ -92,11 +92,11 @@ KompareSplitter::~KompareSplitter(){} /* Inserts the widget \a w at the end (or at the beginning if \a - prepend is TRUE) of the splitter's list of widgets. + prepend is true) of the splitter's list of widgets. It is the responsibility of the caller to make sure that \a w is not already in the splitter and to call recalcId() if needed. (If - \a prepend is TRUE, then recalcId() is very probably needed.) + \a prepend is true, then recalcId() is very probably needed.) */ TQSplitterLayoutStruct *KompareSplitter::addWidget( KompareListViewFrame *w, bool prepend ) @@ -120,7 +120,7 @@ TQSplitterLayoutStruct *KompareSplitter::addWidget( KompareListViewFrame *w, boo newHandle = new KompareConnectWidgetFrame(lw, rw, m_settings, this, tmp.latin1()); s->wid = newHandle; newHandle->setId( d->list.count() ); - s->isHandle = TRUE; + s->isHandle = true; s->sizer = pick( newHandle->sizeHint() ); if ( prepend ) d->list.prepend( s ); @@ -130,7 +130,7 @@ TQSplitterLayoutStruct *KompareSplitter::addWidget( KompareListViewFrame *w, boo s = new TQSplitterLayoutStruct; s->resizeMode = DefaultResizeMode; s->wid = w; - s->isHandle = FALSE; + s->isHandle = false; if ( prepend ) d->list.prepend( s ); else d->list.append( s ); if ( newHandle && isVisible() ) @@ -231,12 +231,12 @@ void KompareSplitter::moveSplitter( TQCOORD p, int id ) bool upLeft; if ( TQApplication::reverseLayout() && orient ==TQt::Horizontal ) { int q = p + s->wid->width(); - doMove( FALSE, q, id - 1, -1, (p > max), poss, ws ); - doMove( TRUE, q, id, -1, (p < min), poss, ws ); + doMove( false, q, id - 1, -1, (p > max), poss, ws ); + doMove( true, q, id, -1, (p < min), poss, ws ); upLeft = (q > oldP); } else { - doMove( FALSE, p, id, +1, (p > max), poss, ws ); - doMove( TRUE, p, id - 1, +1, (p < min), poss, ws ); + doMove( false, p, id, +1, (p > max), poss, ws ); + doMove( true, p, id - 1, +1, (p < min), poss, ws ); upLeft = (p < oldP); } if ( upLeft ) { @@ -244,13 +244,13 @@ void KompareSplitter::moveSplitter( TQCOORD p, int id ) for ( int id = 0; id < count; ++id ) { w = d->list.at( id )->wid; if( !w->isHidden() ) - setGeo( w, poss[id], ws[id], TRUE ); + setGeo( w, poss[id], ws[id], true ); } } else { for ( int id = d->list.count() - 1; id >= 0; --id ) { w = d->list.at( id )->wid; if( !w->isHidden() ) - setGeo( w, poss[id], ws[id], TRUE ); + setGeo( w, poss[id], ws[id], true ); } } storeSizes(); @@ -266,7 +266,7 @@ void KompareSplitter::doMove( bool backwards, int pos, int id, int delta, s = d->list.at( id ); w = s->wid; if ( w->isHidden() ) { - mayCollapse = TRUE; + mayCollapse = true; } else { if ( s->isHandle ) { int dd = s->getSizer( orient ); @@ -286,7 +286,7 @@ void KompareSplitter::doMove( bool backwards, int pos, int id, int delta, positions[id] = backwards ? pos - dd : pos; widths[id] = dd; pos = backwards ? pos - dd : pos + dd; - mayCollapse = TRUE; + mayCollapse = true; } } } diff --git a/kompare/komparepart/komparesplitter.h b/kompare/komparepart/komparesplitter.h index 6b672596..74677dbc 100644 --- a/kompare/komparepart/komparesplitter.h +++ b/kompare/komparepart/komparesplitter.h @@ -84,7 +84,7 @@ private slots: private: TQSplitterLayoutStruct *addWidget(KompareListViewFrame *w, - bool prepend = FALSE ); + bool prepend = false ); void doMove( bool backwards, int pos, int id, int delta, bool mayCollapse, int* positions, int* widths ); diff --git a/tdeioslave/svn/svn.cpp b/tdeioslave/svn/svn.cpp index 92481417..baac8bf7 100644 --- a/tdeioslave/svn/svn.cpp +++ b/tdeioslave/svn/svn.cpp @@ -96,7 +96,7 @@ open_tmp_file (apr_file_t **fp, /* Open a unique file; use APR_DELONCLOSE. */ SVN_ERR (svn_io_open_unique_file (fp, &ignored_filename, - truepath, ".tmp", TRUE, pool)); + truepath, ".tmp", true, pool)); return SVN_NO_ERROR; } @@ -131,7 +131,7 @@ apr_array_header_t* svn_sort__hash(apr_hash_t *ht, ary = apr_array_make(pool, apr_hash_count(ht), sizeof(svn_sort_item_type)); /* loop over hash table and push all keys into the array */ - sorted = TRUE; + sorted = true; prev_item = NULL; for (hi = apr_hash_first(pool, ht); hi; hi = apr_hash_next(hi)) { @@ -241,13 +241,13 @@ void tdeio_svnProtocol::initNotifier(bool is_checkout, bool is_export, bool supp ctx->notify_func = tdeio_svnProtocol::notify; struct notify_baton *nb = ( struct notify_baton* )apr_palloc(spool, sizeof( *nb ) ); nb->master = this; - nb->received_some_change = FALSE; - nb->sent_first_txdelta = FALSE; + nb->received_some_change = false; + nb->sent_first_txdelta = false; nb->is_checkout = is_checkout; nb->is_export = is_export; nb->suppress_final_line = suppress_final_line; - nb->in_external = FALSE; - nb->had_print_error = FALSE; + nb->in_external = false; + nb->had_print_error = false; nb->pool = svn_pool_create (spool); ctx->notify_baton = nb; @@ -953,7 +953,7 @@ void tdeio_svnProtocol::svn_diff(const KURL & url1, const KURL& url2,int rev1, i << endl ; apr_pool_t *subpool = svn_pool_create (pool); - apr_array_header_t *options = svn_cstring_split( "", "\t\r\n", TRUE, subpool ); + apr_array_header_t *options = svn_cstring_split( "", "\t\r\n", true, subpool ); KURL nurl1 = url1; KURL nurl2 = url2; @@ -1230,7 +1230,7 @@ void tdeio_svnProtocol::wc_status(const KURL& wc, bool checkRepos, bool fullRecu apr_pool_t *subpool = svn_pool_create (pool); svn_revnum_t result_rev; - bool no_ignore = FALSE; + bool no_ignore = false; KURL nurl = wc; nurl.setProtocol( "file" ); @@ -1304,7 +1304,7 @@ TQString tdeio_svnProtocol::chooseProtocol ( const TQString& kproto ) const { svn_error_t *tdeio_svnProtocol::trustSSLPrompt(svn_auth_cred_ssl_server_trust_t **cred_p, void *, const char */*realm*/, apr_uint32_t /*failures*/, const svn_auth_ssl_server_cert_info_t */*cert_info*/, svn_boolean_t /*may_save*/, apr_pool_t *pool) { //when ksvnd is ready make it prompt for the SSL certificate ... XXX *cred_p = (svn_auth_cred_ssl_server_trust_t*)apr_pcalloc (pool, sizeof (**cred_p)); - (*cred_p)->may_save = FALSE; + (*cred_p)->may_save = false; return SVN_NO_ERROR; } @@ -1407,7 +1407,7 @@ void tdeio_svnProtocol::notify(void *baton, const char *path, svn_wc_notify_acti case svn_wc_notify_copy: //copy break; case svn_wc_notify_delete: //delete - nb->received_some_change = TRUE; + nb->received_some_change = true; userstring = i18n( "D %1" ).arg( path ); break; case svn_wc_notify_restore : //restore @@ -1429,11 +1429,11 @@ void tdeio_svnProtocol::notify(void *baton, const char *path, svn_wc_notify_acti userstring=i18n("Skipped %1.").arg( path ); break; case svn_wc_notify_update_delete: //update_delete - nb->received_some_change = TRUE; + nb->received_some_change = true; userstring=i18n( "D %1" ).arg( path ); break; case svn_wc_notify_update_add: //update_add - nb->received_some_change = TRUE; + nb->received_some_change = true; userstring=i18n( "A %1" ).arg( path ); break; case svn_wc_notify_update_update: //update_update @@ -1445,7 +1445,7 @@ void tdeio_svnProtocol::notify(void *baton, const char *path, svn_wc_notify_acti && ((prop_state == svn_wc_notify_state_inapplicable) || (prop_state == svn_wc_notify_state_unknown) || (prop_state == svn_wc_notify_state_unchanged)))) { - nb->received_some_change = TRUE; + nb->received_some_change = true; if (kind == svn_node_file) { if (content_state == svn_wc_notify_state_conflicted) @@ -1521,10 +1521,10 @@ void tdeio_svnProtocol::notify(void *baton, const char *path, svn_wc_notify_acti } } if (nb->in_external) - nb->in_external = FALSE; + nb->in_external = false; break; case svn_wc_notify_update_external: //update_external - nb->in_external = TRUE; + nb->in_external = true; userstring = i18n("Fetching external item into %1." ).arg( path ); break; case svn_wc_notify_status_completed: //status_completed @@ -1552,7 +1552,7 @@ void tdeio_svnProtocol::notify(void *baton, const char *path, svn_wc_notify_acti break; case svn_wc_notify_commit_postfix_txdelta: //commit_postfix_txdelta if (! nb->sent_first_txdelta) { - nb->sent_first_txdelta = TRUE; + nb->sent_first_txdelta = true; userstring=i18n("Transmitting file data "); } else { userstring="."; |