diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-22 14:06:03 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-23 10:40:15 +0900 |
| commit | e7c7a00cc24697ba5ce25a236089608091975f5a (patch) | |
| tree | 85fb5906cd3c781cdb5f26b09920860e49e31bb4 /src/modules | |
| parent | a2bd363864dea4771da98b4c6f7ba85ca75a3784 (diff) | |
| download | kvirc-e7c7a00cc24697ba5ce25a236089608091975f5a.tar.gz kvirc-e7c7a00cc24697ba5ce25a236089608091975f5a.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 291b4f5da2f98283b7c98ee90401df7c3cb34dad)
Diffstat (limited to 'src/modules')
33 files changed, 106 insertions, 106 deletions
diff --git a/src/modules/aliaseditor/aliaseditor.cpp b/src/modules/aliaseditor/aliaseditor.cpp index 8ebd9f2..30353a5 100644 --- a/src/modules/aliaseditor/aliaseditor.cpp +++ b/src/modules/aliaseditor/aliaseditor.cpp @@ -677,7 +677,7 @@ void KviAliasEditor::exportAliases(bool bSelectedOnly,bool bSingleFiles) g_pAliasEditorModule->unlock(); return; } - m_szDir=TQFileInfo(szFile).dirPath(TRUE); + m_szDir=TQFileInfo(szFile).dirPath(true); g_pAliasEditorModule->unlock(); if(!KviFileUtils::writeFile(szFile,out)) diff --git a/src/modules/dcc/canvaswidget.cpp b/src/modules/dcc/canvaswidget.cpp index 70e928e..d012a05 100644 --- a/src/modules/dcc/canvaswidget.cpp +++ b/src/modules/dcc/canvaswidget.cpp @@ -1259,8 +1259,8 @@ TQWidget * KviVariantTableItem::createEditor() const case TQVariant::Bool: { TQComboBox * b = new TQComboBox(false,table()->viewport()); - b->insertItem("FALSE"); - b->insertItem("TRUE"); + b->insertItem("false"); + b->insertItem("true"); b->setCurrentItem(m_property.toBool() ? 1 : 0); return b; } @@ -1370,7 +1370,7 @@ void KviVariantTableItem::paint(TQPainter *p,const TQColorGroup &cg,const TQRect sz = m_property.toString(); break; case TQVariant::Bool: - sz = m_property.toBool() ? "TRUE" : "FALSE"; + sz = m_property.toBool() ? "true" : "false"; break; case TQVariant::Font: sz.setNum(m_property.toFont().pointSize()); diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index 6ae4740..68a70d3 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -785,7 +785,7 @@ int KviScriptSyntaxHighlighter::highlightParagraph(const TQString &text,int endS } } - bool i=TRUE; + bool i=true; TQString szFind=((KviScriptEditorWidget *)textEdit())->m_szFind; if (!szFind.isEmpty()) { @@ -1123,7 +1123,7 @@ KviScriptEditorReplaceDialog::KviScriptEditorReplaceDialog( TQWidget* parent, co replacebutton = new TQPushButton( this, "replacebutton" ); replacebutton->setText(tr("&Replace")); - replacebutton->setEnabled( FALSE ); + replacebutton->setEnabled( false ); layout->addWidget( replacebutton, 5, 0 ); checkReplaceAll = new KviStyledCheckBox( this, "replaceAll" ); @@ -1157,8 +1157,8 @@ KviScriptEditorReplaceDialog::~KviScriptEditorReplaceDialog() void KviScriptEditorReplaceDialog::textChanged(const TQString &txt) { - if (!txt.isEmpty()) replacebutton->setEnabled(TRUE); - else replacebutton->setEnabled(FALSE); + if (!txt.isEmpty()) replacebutton->setEnabled(true); + else replacebutton->setEnabled(false); } void KviScriptEditorReplaceDialog::slotReplace() diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp index a032dc6..2b29e00 100644 --- a/src/modules/file/libkvifile.cpp +++ b/src/modules/file/libkvifile.cpp @@ -1161,7 +1161,7 @@ static bool file_kvs_fnc_extractpath(KviKvsModuleFunctionCall * c) KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("filepath",KVS_PT_NONEMPTYSTRING,0,szName) KVSM_PARAMETERS_END(c) - c->returnValue()->setString(TQFileInfo(szName).dirPath(TRUE)); + c->returnValue()->setString(TQFileInfo(szName).dirPath(true)); return true; } diff --git a/src/modules/filetransferwindow/filetransferwindow.cpp b/src/modules/filetransferwindow/filetransferwindow.cpp index 7d78098..4561321 100644 --- a/src/modules/filetransferwindow/filetransferwindow.cpp +++ b/src/modules/filetransferwindow/filetransferwindow.cpp @@ -208,7 +208,7 @@ bool KviFileTransferWindow::eventFilter( TQObject *obj, TQEvent *ev ) if(m_pListView->currentItem()) { delete m_pListView->currentItem(); - return TRUE; + return true; } break; } @@ -589,7 +589,7 @@ void KviFileTransferWindow::openLocalFileFolder() if(!t)return; TQString tmp = t->localFileName(); if(tmp.isEmpty())return; - tmp=TQFileInfo(tmp).dirPath(TRUE); + tmp=TQFileInfo(tmp).dirPath(true); tmp.replace('/','\\'); tmp.prepend("explorer.exe "); WinExec(tmp.local8Bit().data(), SW_MAXIMIZE); diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp index 56f8663..1911e65 100644 --- a/src/modules/help/helpwindow.cpp +++ b/src/modules/help/helpwindow.cpp @@ -46,7 +46,7 @@ extern Index * g_pDocIndex; extern KviPointerList<KviHelpWindow> * g_pHelpWindowList; extern KviPointerList<KviHelpWidget> * g_pHelpWidgetList; -bool g_bIndexingDone = FALSE; +bool g_bIndexingDone = false; KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name) : KviWindow(KVI_WINDOW_TYPE_HELP,lpFrm,name) { @@ -68,7 +68,7 @@ KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name) g_pDocIndex->writeDocumentList(); delete pProgressDialog; } - g_bIndexingDone=TRUE; + g_bIndexingDone=true; } g_pHelpWindowList->append(this); @@ -150,7 +150,7 @@ void KviHelpWindow::refreshIndex() g_pDocIndex->writeDict(); g_pDocIndex->writeDocumentList(); delete pProgressDialog; - g_bIndexingDone=TRUE; + g_bIndexingDone=true; TQStringList docList=g_pDocIndex->titlesList(); m_pIndexListBox->insertStringList(docList); m_pIndexListBox->sort(); @@ -210,7 +210,7 @@ void KviHelpWindow::startSearch() m_pResultBox->insertItem( g_pDocIndex->getDocumentTitle( *it ) ); m_terms.clear(); - bool isPhrase = FALSE; + bool isPhrase = false; TQString s = ""; for ( int i = 0; i < (int)buf.length(); ++i ) { if ( buf[i] == '\"' ) { diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp index 1596d4e..82c5f57 100644 --- a/src/modules/help/index.cpp +++ b/src/modules/help/index.cpp @@ -37,8 +37,8 @@ Index::Index( const TQString &dp, const TQString &hp ) : TQObject( 0, 0 ), dict( 8999 ), docPath( dp ) { - alreadyHaveDocList = FALSE; - lastWindowClosed = FALSE; + alreadyHaveDocList = false; + lastWindowClosed = false; connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), this, TQ_SLOT( setLastWinClosed() ) ); } @@ -51,8 +51,8 @@ Index::Index( const TQStringList &dl, const TQString &hp ) { docList = dl; - alreadyHaveDocList = TRUE; - lastWindowClosed = FALSE; + alreadyHaveDocList = true; + lastWindowClosed = false; connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), this, TQ_SLOT( setLastWinClosed() ) ); } @@ -63,7 +63,7 @@ void Index::setLastWinClosed() { - lastWindowClosed = TRUE; + lastWindowClosed = true; } @@ -163,7 +163,7 @@ void Index::parseDocument( const TQString &filename, int docNum ) TQString text = s.read(); if (text.isNull()) return; - bool valid = TRUE; + bool valid = true; const TQChar *buf = text.unicode(); TQChar str[64]; TQChar c = buf[0]; @@ -171,7 +171,7 @@ void Index::parseDocument( const TQString &filename, int docNum ) int i = 0; while ( (uint)j < text.length() ) { if ( c == '<' || c == '&' ) { - valid = FALSE; + valid = false; if ( i > 1 ) insertInDict( TQString(str,i), docNum ); i = 0; @@ -179,7 +179,7 @@ void Index::parseDocument( const TQString &filename, int docNum ) continue; } if ( ( c == '>' || c == ';' ) && !valid ) { - valid = TRUE; + valid = true; c = buf[++j]; continue; } @@ -379,7 +379,7 @@ TQStringList Index::query( const TQStringList &terms, const TQStringList &termSe while ( C != minDocs.end() ) { - bool found = FALSE; + bool found = false; for ( It = docs.begin(); It != docs.end(); ++It ) { @@ -387,7 +387,7 @@ TQStringList Index::query( const TQStringList &terms, const TQStringList &termSe (*C).frequency += (*It).frequency; - found = TRUE; + found = true; break; @@ -462,9 +462,9 @@ TQString Index::getDocumentTitle( const TQString &fileName ) - int start = text.find( "<title>", 0, FALSE ) + 7; + int start = text.find( "<title>", 0, false ) + 7; - int end = text.find( "</title>", 0, FALSE ); + int end = text.find( "</title>", 0, false ); @@ -493,7 +493,7 @@ TQStringList Index::getWildcardTerms( const TQString &term ) int index = 0; - bool found = FALSE; + bool found = false; TQString text( it.currentKey() ); @@ -501,7 +501,7 @@ TQStringList Index::getWildcardTerms( const TQString &term ) if ( *iter == "*" ) { - found = TRUE; + found = true; continue; @@ -509,7 +509,7 @@ TQStringList Index::getWildcardTerms( const TQString &term ) if ( iter == terms.begin() && (*iter)[0] != text[0] ) { - found = FALSE; + found = false; break; @@ -523,7 +523,7 @@ TQStringList Index::getWildcardTerms( const TQString &term ) if ( index != (int)text.length() - (int)(*iter).length() ) { - found = FALSE; + found = false; break; @@ -533,7 +533,7 @@ TQStringList Index::getWildcardTerms( const TQString &term ) if ( index != -1 ) { - found = TRUE; + found = true; index += (*iter).length(); @@ -541,7 +541,7 @@ TQStringList Index::getWildcardTerms( const TQString &term ) } else { - found = FALSE; + found = false; break; @@ -697,7 +697,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & tqWarning( "cannot open file %s", fileName.ascii() ); - return FALSE; + return false; } @@ -719,7 +719,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & TQString text = s.read(); - bool valid = TRUE; + bool valid = true; const TQChar *buf = text.unicode(); @@ -735,7 +735,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & if ( c == '<' || c == '&' ) { - valid = FALSE; + valid = false; if ( i > 1 ) @@ -751,7 +751,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & if ( ( c == '>' || c == ';' ) && !valid ) { - valid = TRUE; + valid = true; c = buf[++j]; @@ -837,9 +837,9 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & if ( a.count() ) - return TRUE; + return true; - return FALSE; + return false; } diff --git a/src/modules/list/listwindow.cpp b/src/modules/list/listwindow.cpp index b43eef2..b75f855 100644 --- a/src/modules/list/listwindow.cpp +++ b/src/modules/list/listwindow.cpp @@ -210,7 +210,7 @@ KviListWindow::KviListWindow(KviFrame * lpFrm,KviConsole * lpConsole) m_pListView->addColumn(__tr2qs("Channel")); m_pListView->addColumn(__tr2qs("Users")); m_pListView->addColumn(__tr2qs("Topic")); - m_pListView->setAllColumnsShowFocus(TRUE); + m_pListView->setAllColumnsShowFocus(true); m_pListView->setColumnWidthMode(2,KviTalListView::Maximum); m_pListView->setColumnWidthMode(3,KviTalListView::Maximum); m_pListView->setSorting(100); diff --git a/src/modules/logview/logviewmdiwindow.cpp b/src/modules/logview/logviewmdiwindow.cpp index 2b15ac1..1f4a7f7 100644 --- a/src/modules/logview/logviewmdiwindow.cpp +++ b/src/modules/logview/logviewmdiwindow.cpp @@ -240,7 +240,7 @@ void KviLogViewMDIWindow::setupItemList() TQString textBuffer; TQProgressDialog progress( __tr2qs_ctx("Filtering files...","logview"), __tr2qs_ctx("Abort filtering","logview"), m_logList.count(), - this, "progress", TRUE ); + this, "progress", true ); int i=0; diff --git a/src/modules/objects/class_groupbox.cpp b/src/modules/objects/class_groupbox.cpp index f96b3c0..5f24409 100644 --- a/src/modules/objects/class_groupbox.cpp +++ b/src/modules/objects/class_groupbox.cpp @@ -68,13 +68,13 @@ const int align_cod[] = { !fn: <string> $title() Returns the group box title text. !fn: $setFlat(<bflag:boolean>) - Sets whether the group box is painted flat. Valid Values are 1 or 0. + Sets whether the group box is painted flat. Valid Values are true or false. !fn: <boolean> $isFlat() - Returns 1 (TRUE) if the group box is painted flat; otherwise returns 0 (FALSE). + Returns true if the group box is painted flat; otherwise returns false. !fn: <boolean> $isCheckable() - Returns 1 (TRUE) if the group box has a checkbox in its title; otherwise returns 0 (FALSE). + Returns true if the group box has a checkbox in its title; otherwise returns false. !fn: $setCheckable(<bflag:boolean>) - Sets whether the group box has a checkbox in its title: Valid values are 1 or 0. + Sets whether the group box has a checkbox in its title: Valid values are true or false. !fn: $setInsideMargin(<margin:uint>) Sets the the width of the inside margin to m pixels. !fn: <integer> $insideMargin() diff --git a/src/modules/objects/class_lcd.cpp b/src/modules/objects/class_lcd.cpp index 79ddea0..88c665f 100644 --- a/src/modules/objects/class_lcd.cpp +++ b/src/modules/objects/class_lcd.cpp @@ -58,12 +58,12 @@ !fn: $setNumDigits(<number:integer>) Sets the lcd number value. !fn: <boolean> $checkOverflow() - Returns TRUE if num is too big to be displayed in its entirety; - otherwise returns FALSE. + Returns true if num is too big to be displayed in its entirety; + otherwise returns false. !fn: $setSmallDecimalPoint(<bflag:boolean>) Sets the the decimal point style, valid bool values are 1 or 0. !fn: <boolean> $checkOverflow(<number:integer>) - Returns 1 (TRUE) if num is too big to be displayed in its entirety; otherwise returns 0 (FALSE). + Returns true if num is too big to be displayed in its entirety; otherwise returns false. */ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_lcd,"lcdnumber","widget") diff --git a/src/modules/objects/class_listview.cpp b/src/modules/objects/class_listview.cpp index c23abd5..34a66b5 100644 --- a/src/modules/objects/class_listview.cpp +++ b/src/modules/objects/class_listview.cpp @@ -66,7 +66,7 @@ Adds a width pixels wide column with the column header label to the list view. !fn: $setSorting(<column:integer>,<bAscending:boolean>) - Sets the list view to be sorted by column column in ascending order if ascending is 1 or descending order if it is FALSE. + Sets the list view to be sorted by column column in ascending order if ascending is 1 or descending order if it is false. If column is -1, sorting is disabled and the user cannot sort columns by clicking on the column headers !fn: $hideListViewHeader() @@ -510,7 +510,7 @@ KviKvsMdmListView::KviKvsMdmListView(TQWidget * par,const char * name,KviKvsObje { m_pParentScript=parent; setAcceptDrops(true); - viewport()->setAcceptDrops( TRUE ); + viewport()->setAcceptDrops( true ); } KviKvsMdmListView::~KviKvsMdmListView() diff --git a/src/modules/objects/class_listviewitem.cpp b/src/modules/objects/class_listviewitem.cpp index 605fcee..a4dba4c 100644 --- a/src/modules/objects/class_listviewitem.cpp +++ b/src/modules/objects/class_listviewitem.cpp @@ -62,7 +62,7 @@ Pixmap can be a Kvirc imageid, an image file or a [class]pixmap[/class] object. !fn: $setRenameEnabled(<col:integer>,<bEnabled:boolean>) - If b is TRUE (1), this item can be in-place renamed in the column col by the user; otherwise it cannot be renamed in-place. + If b is true, this item can be in-place renamed in the column col by the user; otherwise it cannot be renamed in-place. !fn: $setEnabled(<bEnabled:boolean>) Enables or disables the item diff --git a/src/modules/objects/class_mainwindow.cpp b/src/modules/objects/class_mainwindow.cpp index 674575e..bd0dd25 100644 --- a/src/modules/objects/class_mainwindow.cpp +++ b/src/modules/objects/class_mainwindow.cpp @@ -93,7 +93,7 @@ bool KviKvsObject_mainwindow::functionsetCentralWidget(KviKvsObjectFunctionCall if(!pObject->object()->inherits("KviKvsObject_widget")) { c->warning(__tr2qs("Widget object required")); - return TRUE; + return true; } if(widget()) ((KviTalMainWindow *)widget())->setCentralWidget(((TQWidget *)(pObject->object()))); return true; diff --git a/src/modules/objects/class_multilineedit.cpp b/src/modules/objects/class_multilineedit.cpp index 9ee232b..ac8ce39 100644 --- a/src/modules/objects/class_multilineedit.cpp +++ b/src/modules/objects/class_multilineedit.cpp @@ -106,9 +106,9 @@ static int mod_cod[] = { Sets the editor to be read-only if bReadOnly is 1 or removes the read-only status is ReadOnly is 0 !fn: <boolean> $atBeginning() - Returns 1(TRUE) if the cursor is placed at the beginning of the text; otherwise returns 0(FALSE). + Returns true if the cursor is placed at the beginning of the text; otherwise returns false. !fn: <boolean> $atEnd() - Returns 1(TRUE) if the cursor is placed at the end of the text; otherwise returns 0(FALSE). + Returns true if the cursor is placed at the end of the text; otherwise returns false. !fn: $setWordWrap(<wrap_mode:string>) Sets the word wrap mode to mode. Valid Values are:[br] - NoWrap - Do not wrap the text.[br] @@ -144,11 +144,11 @@ static int mod_cod[] = { !fn: $setUnderline(<bUnderline:boolean>) If the bool value is 1 sets the current format to underline; otherwise, if it's 0 sets the current format to no-underline. !fn: <boolean> $italic() - Returns 1(TRUE) if the current format is italic; otherwise returns 0(FALSE). + Returns true if the current format is italic; otherwise returns false. !fn: <boolean> $bold() - Returns 1(TRUE) if the current format is bold; otherwise returns 0(FALSE). + Returns true if the current format is bold; otherwise returns false. !fn: <boolean> $underline() - Returns 1(TRUE) if the current format is underline; otherwise returns 0(FALSE). + Returns true if the current format is underline; otherwise returns false. !fn: $zoomIn(<zoom_range:integer>) Zooms in on the text by making the base font size range points larger. !fn: $zoomOut(<zoom_range:integer>) @@ -166,7 +166,7 @@ static int mod_cod[] = { !fn: $setUndoDepth(<undo_depth:integer>) Sets the depth of the undo history to x. !fn: <boolean> $isUndoRedoEnabled() - Returns 1 (TRUE) if undo/redo is enabled; otherwise returns 0 (FALSE). + Returns true if undo/redo is enabled; otherwise returns false. !fn: <integer> $undoDepth() Returns the depth of the undo history. !fn: $indent() @@ -188,7 +188,7 @@ static int mod_cod[] = { - array(red:integer,green:integer,blue:integer) - red:integer,green:integer,blue:integer. !fn: $setModified(<bModified:boolean>) - Sets whether the document has been modified by the user. Valid Values are 1(TRUE) or 0(FALSE) + Sets whether the document has been modified by the user. Valid Values are true or false !fn: $insertParagraph(<text:string>,<paragraph:integer>) Inserts text as a new paragraph at position <paragraph>. !fn: $removeParagraph(<paragraph:integer>) @@ -210,9 +210,9 @@ static int mod_cod[] = { !fn: $loadFile(<path:string>) Load the file specified in the <path>, also html files. !fn: <boolean> $isUndoAvailable () - Returns 1(TRUE) if undo is available; otherwise returns 0(FALSE). + Returns true if undo is available; otherwise returns false. !fn: <boolean> $isRedoAvailable () - Returns 1(TRUE) if redo is available; otherwise returns 0(FALSE). + Returns true if redo is available; otherwise returns false. !fn: $setAlignment(<alignment:string>) Sets the alignment of the current paragraph to <alignment>. Valid values are:[br] - AlignAuto - Aligns according to the language.[br] diff --git a/src/modules/objects/class_painter.cpp b/src/modules/objects/class_painter.cpp index 3627b9e..b2f76a6 100644 --- a/src/modules/objects/class_painter.cpp +++ b/src/modules/objects/class_painter.cpp @@ -500,12 +500,12 @@ bool KviKvsObject_painter::functionSetFont(KviKvsObjectFunctionCall *c) TQFont font=m_pPainter->font(); font.setFamily(szFamily); font.setPointSize(uSize); - if(KviTQString::equalCI(szStyle,"italic")) font.setItalic(TRUE); - if(KviTQString::equalCI(szStyle,"bold")) font.setBold(TRUE); - if(KviTQString::equalCI(szStyle,"underline"))font.setUnderline(TRUE); - if(KviTQString::equalCI(szStyle,"overline")) font.setOverline(TRUE); - if(KviTQString::equalCI(szStyle,"strikeout"))font.setStrikeOut(TRUE); - if(KviTQString::equalCI(szStyle,"fixedpitch")) font.setFixedPitch(TRUE); + if(KviTQString::equalCI(szStyle,"italic")) font.setItalic(true); + if(KviTQString::equalCI(szStyle,"bold")) font.setBold(true); + if(KviTQString::equalCI(szStyle,"underline"))font.setUnderline(true); + if(KviTQString::equalCI(szStyle,"overline")) font.setOverline(true); + if(KviTQString::equalCI(szStyle,"strikeout"))font.setStrikeOut(true); + if(KviTQString::equalCI(szStyle,"fixedpitch")) font.setFixedPitch(true); m_pPainter->setFont(font); return true; } diff --git a/src/modules/objects/class_popupmenu.cpp b/src/modules/objects/class_popupmenu.cpp index 3c4cc75..3216300 100644 --- a/src/modules/objects/class_popupmenu.cpp +++ b/src/modules/objects/class_popupmenu.cpp @@ -233,7 +233,7 @@ bool KviKvsObject_popupmenu::functioninsertWidget(KviKvsObjectFunctionCall *c) if(!pObject->object()->isWidgetType()) { c->warning(__tr2qs("Can't add a non-widget object")); - return TRUE; + return true; } if (widget()) ((KviTalPopupMenu *)widget())->insertItem(((KviTalPopupMenu *)(pObject->object()))); return true; @@ -252,7 +252,7 @@ bool KviKvsObject_popupmenu::functioninsertHandle(KviKvsObjectFunctionCall *c) if(!ob->object()->inherits("KviKvsObject_popupmenu")) { c->warning(__tr2qs("Can't add a non - popupmenu object")); - return TRUE; + return true; } if(!widget())return true; TQPixmap *pix = 0; diff --git a/src/modules/objects/class_process.cpp b/src/modules/objects/class_process.cpp index 256c821..2ffdadb 100644 --- a/src/modules/objects/class_process.cpp +++ b/src/modules/objects/class_process.cpp @@ -141,7 +141,7 @@ !fn: <boolean> $isRunning() Return 1 if the process is running, else return 0. !fn: <boolean> $normalExit() - Returns TRUE if the process has exited normally; otherwise returns FALSE. + Returns true if the process has exited normally; otherwise returns false. !fn: $readyReadStdoutEvent() This function is invoched by the process when there are new datas.[br] The default implementation emits the [classfnc]$readyReadStdout[/classfnc]() signal. diff --git a/src/modules/objects/class_radiobutton.cpp b/src/modules/objects/class_radiobutton.cpp index 85bc9ec..b068b38 100644 --- a/src/modules/objects/class_radiobutton.cpp +++ b/src/modules/objects/class_radiobutton.cpp @@ -45,7 +45,7 @@ !fn: $settext(<text:string>) Sets the text that will appear in the radiobutton. !fn: <boolean> $isChecked() - Returns 1 (TRUE) if the radio button is checked; otherwise returns 0 (FALSE). + Returns true if the radio button is checked; otherwise returns false. !fn: $setChecked(<bChecked:boolean>) Sets whether the radio button is checked to check. !fn: $setPixmap(<image_id>) diff --git a/src/modules/objects/class_toolbar.cpp b/src/modules/objects/class_toolbar.cpp index 385c184..d40edf6 100644 --- a/src/modules/objects/class_toolbar.cpp +++ b/src/modules/objects/class_toolbar.cpp @@ -137,7 +137,7 @@ bool KviKvsObject_toolbar::functionsetStretchableWidget(KviKvsObjectFunctionCall if(!ob->object()->inherits("KviKvsObject_widget")) { c->warning(__tr2qs("Widget object required")); - return TRUE; + return true; } if(widget()) ((KviTalToolBar *)widget())->setStretchableWidget(((TQWidget *)(ob->object()))); return true; diff --git a/src/modules/objects/class_toolbutton.cpp b/src/modules/objects/class_toolbutton.cpp index f7fc1f4..8ff37ea 100644 --- a/src/modules/objects/class_toolbutton.cpp +++ b/src/modules/objects/class_toolbutton.cpp @@ -55,7 +55,7 @@ !fn:$usesTextLabel() Return 1 if the setUsesTextLabel is enabled, otherwise return 0. !fn:$setTextLabel(<text:String>,[tooltip:string]) - Sets the label of this button to <text> and automatically sets it as a tool tip if <tip> is TRUE. + Sets the label of this button to <text> and automatically sets it as a tool tip if <tip> is true. !fn:<string> $textLabel() Returns the label of tthe button. !fn:$setAutoRaise(<bAutoraise:boolean>) @@ -265,7 +265,7 @@ bool KviKvsObject_toolbutton::functionsetPopup(KviKvsObjectFunctionCall *c) if(!ob->object()->inherits("KviKvsObject_popupmenu")) { c->warning(__tr2qs("Can't add a non - popupmenu object")); - return TRUE; + return true; } if(widget()) ((TQToolButton *)widget())->setPopup(((KviTalPopupMenu *)(ob->object()))); diff --git a/src/modules/objects/class_widget.cpp b/src/modules/objects/class_widget.cpp index a5da660..f3b11d2 100644 --- a/src/modules/objects/class_widget.cpp +++ b/src/modules/objects/class_widget.cpp @@ -110,7 +110,7 @@ const int widgettypes_cod[] = { See also [classfnc]$show[/classfnc]() and [classfnc]$isVisible[/classfnc]. !fn: $repaint(<bool erase>) Repaints the widget directly by calling [classfnc]$paintEvent[/classfnc]() immediately.[br] - If erase is TRUE, erases the widget before the $paintEvent() call. + If erase is true, erases the widget before the $paintEvent() call. !fn: $x() Returns the x coordinate of the upper-left corner of this widget relative to the parent widget, @@ -1514,12 +1514,12 @@ bool KviKvsObject_widget::function_setFont(KviKvsObjectFunctionCall *c) TQFont font=widget()->font(); font.setFamily(szFamily); font.setPointSize(uSize); - if(KviTQString::equalCI(szStyle,"italic")) font.setItalic(TRUE); - else if(KviTQString::equalCI(szStyle,"bold")) font.setBold(TRUE); - else if(KviTQString::equalCI(szStyle,"underline"))font.setUnderline(TRUE); - else if(KviTQString::equalCI(szStyle,"overline")) font.setOverline(TRUE); - else if(KviTQString::equalCI(szStyle,"strikeout"))font.setStrikeOut(TRUE); - else if(KviTQString::equalCI(szStyle,"fixedpitch")) font.setFixedPitch(TRUE); + if(KviTQString::equalCI(szStyle,"italic")) font.setItalic(true); + else if(KviTQString::equalCI(szStyle,"bold")) font.setBold(true); + else if(KviTQString::equalCI(szStyle,"underline"))font.setUnderline(true); + else if(KviTQString::equalCI(szStyle,"overline")) font.setOverline(true); + else if(KviTQString::equalCI(szStyle,"strikeout"))font.setStrikeOut(true); + else if(KviTQString::equalCI(szStyle,"fixedpitch")) font.setFixedPitch(true); else c->warning(__tr2qs("Unknown style '%Q'"),&szStyle); widget()->setFont(font); return true; diff --git a/src/modules/objects/class_workspace.cpp b/src/modules/objects/class_workspace.cpp index 98f0a2f..38ad499 100644 --- a/src/modules/objects/class_workspace.cpp +++ b/src/modules/objects/class_workspace.cpp @@ -51,7 +51,7 @@ !fn: <object> $activeWindow() Returns the active window, or 0 if no window is active. !fn: <boolean> $scrollBarsEnabled() - Returns TRUE if the workspace provides scrollbars; otherwise returns FALSE. + Returns true if the workspace provides scrollbars; otherwise returns false. !fn: $setscrollBarsEnabled(<bEnabled:boolean>) Sets whether the workspace provides scrollbars to enable. (bEnabled 1 or 0) !fn: $cascade() diff --git a/src/modules/options/libkvioptions.cpp b/src/modules/options/libkvioptions.cpp index ea27a76..bdca209 100644 --- a/src/modules/options/libkvioptions.cpp +++ b/src/modules/options/libkvioptions.cpp @@ -226,7 +226,7 @@ static bool options_kvs_cmd_edit(KviKvsModuleCommandCall * c) // a trick for the dialog covering the splash screen before the time (this is prolly a WM or TQt bug) if(g_pSplashScreen) { - if(g_pSplashScreen->isVisible()) // another bug: this ALWAYS RETURNS TRUE, even if the splash was hidden by a mouse click... + if(g_pSplashScreen->isVisible()) // another bug: this always returns true, even if the splash was hidden by a mouse click... { TQObject::connect(g_pSplashScreen,TQ_SIGNAL(destroyed()),wc,TQ_SLOT(show())); return true; diff --git a/src/modules/perlcore/ppport.h b/src/modules/perlcore/ppport.h index 611ecf1..8c8a706 100644 --- a/src/modules/perlcore/ppport.h +++ b/src/modules/perlcore/ppport.h @@ -192,7 +192,7 @@ __DATA__ #endif /* PERL_REVISION != 5 */ #ifndef ERRSV -# define ERRSV perl_get_sv("@",FALSE) +# define ERRSV perl_get_sv("@",false) #endif #if (PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)) @@ -376,7 +376,7 @@ SV *sv; start_subparse(0), # else /* 5.003_23 onwards */ - start_subparse(FALSE, 0), + start_subparse(false, 0), # endif #endif @@ -426,11 +426,11 @@ SV *sv; #if (PERL_VERSION < 4 || (PERL_VERSION == 4 && PERL_SUBVERSION < 68 )) /* Fetches the SV that keeps the per-interpreter data. */ #define dMY_CXT_SV \ - SV *my_cxt_sv = perl_get_sv(MY_CXT_KEY, FALSE) + SV *my_cxt_sv = perl_get_sv(MY_CXT_KEY, false) #else /* >= perl5.004_68 */ #define dMY_CXT_SV \ SV *my_cxt_sv = *hv_fetch(PL_modglobal, MY_CXT_KEY, \ - sizeof(MY_CXT_KEY)-1, TRUE) + sizeof(MY_CXT_KEY)-1, true) #endif /* < perl5.004_68 */ /* This declaration should be used within all functions that use the diff --git a/src/modules/perlcore/typemap b/src/modules/perlcore/typemap index 1124eb6..8d2c796 100644 --- a/src/modules/perlcore/typemap +++ b/src/modules/perlcore/typemap @@ -282,7 +282,7 @@ T_STDIO { GV *gv = newGVgen("$Package"); PerlIO *fp = PerlIO_importFILE($var,0); - if ( fp && do_open(gv, "+<&", 3, FALSE, 0, 0, fp) ) + if ( fp && do_open(gv, "+<&", 3, false, 0, 0, fp) ) sv_setsv($arg, sv_bless(newRV((SV*)gv), gv_stashpv("$Package",1))); else $arg = &PL_sv_undef; @@ -290,7 +290,7 @@ T_STDIO T_IN { GV *gv = newGVgen("$Package"); - if ( do_open(gv, "<&", 2, FALSE, 0, 0, $var) ) + if ( do_open(gv, "<&", 2, false, 0, 0, $var) ) sv_setsv($arg, sv_bless(newRV((SV*)gv), gv_stashpv("$Package",1))); else $arg = &PL_sv_undef; @@ -298,7 +298,7 @@ T_IN T_INOUT { GV *gv = newGVgen("$Package"); - if ( do_open(gv, "+<&", 3, FALSE, 0, 0, $var) ) + if ( do_open(gv, "+<&", 3, false, 0, 0, $var) ) sv_setsv($arg, sv_bless(newRV((SV*)gv), gv_stashpv("$Package",1))); else $arg = &PL_sv_undef; @@ -306,7 +306,7 @@ T_INOUT T_OUT { GV *gv = newGVgen("$Package"); - if ( do_open(gv, "+>&", 3, FALSE, 0, 0, $var) ) + if ( do_open(gv, "+>&", 3, false, 0, 0, $var) ) sv_setsv($arg, sv_bless(newRV((SV*)gv), gv_stashpv("$Package",1))); else $arg = &PL_sv_undef; diff --git a/src/modules/reguser/dialog.cpp b/src/modules/reguser/dialog.cpp index d0eee4a..876740d 100644 --- a/src/modules/reguser/dialog.cpp +++ b/src/modules/reguser/dialog.cpp @@ -178,7 +178,7 @@ KviRegisteredUsersDialog::KviRegisteredUsersDialog(TQWidget * par) m_pListView->setAllColumnsShowFocus(true); m_pListView->setSelectionMode(KviTalListView::Extended); - m_pListView->setRootIsDecorated(TRUE); + m_pListView->setRootIsDecorated(true); #ifdef COMPILE_INFO_TIPS TQToolTip::add(m_pListView,__tr2qs("<center>This is the list of registered users. " \ @@ -463,7 +463,7 @@ void KviRegisteredUsersDialog::fillList() { KviRegisteredUsersGroupItem* pCur = new KviRegisteredUsersGroupItem(m_pListView,g); groupItems.insert(g->name(),pCur); - pCur->setOpen(TRUE); + pCur->setOpen(true); } KviPointerHashTable<TQString,KviRegisteredUser> * d = g_pLocalRegisteredUserDataBase->userDict(); diff --git a/src/modules/reguser/wizard.cpp b/src/modules/reguser/wizard.cpp index f77a435..fa453b0 100644 --- a/src/modules/reguser/wizard.cpp +++ b/src/modules/reguser/wizard.cpp @@ -75,7 +75,7 @@ KviRegistrationWizard::KviRegistrationWizard(const char * startMask,KviRegistere setCaption(__tr2qs("User Registration Wizard - KVIrc")); setIcon(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_LINUX))); - setSizeGripEnabled( TRUE ); + setSizeGripEnabled( true ); m_pPage1 = new TQWidget(this); m_pPage1Layout = new TQGridLayout(m_pPage1); diff --git a/src/modules/setup/libkvisetup.cpp b/src/modules/setup/libkvisetup.cpp index 0fc0495..33184cc 100644 --- a/src/modules/setup/libkvisetup.cpp +++ b/src/modules/setup/libkvisetup.cpp @@ -118,14 +118,14 @@ KVIMODULEEXPORTFUNC void setup_finish() pParams->append(szUrl); KviKvsScript::run("openurl $0",g_pActiveWindow,pParams); delete pParams; - KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = TRUE; + KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = true; } else if(!szHost.isEmpty()) { KviKvsVariantList * pParams = new KviKvsVariantList(); pParams->append(szHost); pParams->append((kvs_int_t)uPort); KviKvsScript::run("server $0 $1",g_pActiveWindow,pParams); delete pParams; - KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = TRUE; + KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = true; } } } diff --git a/src/modules/setup/setupwizard.cpp b/src/modules/setup/setupwizard.cpp index 207704c..b08de95 100644 --- a/src/modules/setup/setupwizard.cpp +++ b/src/modules/setup/setupwizard.cpp @@ -300,7 +300,7 @@ KviSetupWizard::KviSetupWizard() #endif // Pragma: Unused, takes only space. //m_pDirRestore = new TQRadioButton(__tr2qs("Restore from backup archive"),m_pDirButtonGroup); - //m_pDirRestore->setEnabled(FALSE); + //m_pDirRestore->setEnabled(false); //l = new TQLabel(m_pDirectory->m_pVBox,"<b> </b>"); @@ -538,9 +538,9 @@ KviSetupWizard::KviSetupWizard() */ /* m_pServersLoadConfig = new TQRadioButton(__tr2qs("Use server config"),m_pServersButtonGroup); - m_pServersLoadConfig->setEnabled(FALSE); + m_pServersLoadConfig->setEnabled(false); m_pServerConfigSelector = new KviFileSelector(m_pServersButtonGroup,__tr2qs("Config file:"),&m_szServerConfigFile,true); - m_pServerConfigSelector->setEnabled(FALSE); + m_pServerConfigSelector->setEnabled(false); */ /* m_pServersChooseFromList->toggle(); @@ -557,7 +557,7 @@ KviSetupWizard::KviSetupWizard() { KviConfig cfg(szTmp,KviConfig::Read); cfg.setGroup("Setup"); - if(cfg.readBoolEntry("hideServerList",FALSE)) + if(cfg.readBoolEntry("hideServerList",false)) { //setPageEnabled(m_pServers,false); //setFinishEnabled(m_pIdentity,true); @@ -1095,12 +1095,12 @@ void KviSetupWizard::accept() if(m_pServersSpecifyManually->isOn()) { - KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = FALSE; + KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = false; szHost = m_szServerHost; uPort=m_uServerPort; } else if(m_pServersOpenIrcUrl->isOn()) { - KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = FALSE; + KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = false; szUrl=m_szServerUrl; } */ diff --git a/src/modules/snd/libkvisnd.cpp b/src/modules/snd/libkvisnd.cpp index 255e5dd..d508ed3 100644 --- a/src/modules/snd/libkvisnd.cpp +++ b/src/modules/snd/libkvisnd.cpp @@ -629,7 +629,7 @@ static bool snd_kvs_cmd_mute(KviKvsModuleCommandCall * c) { KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETERS_END(c) - g_pSoundPlayer->setMuted(TRUE); + g_pSoundPlayer->setMuted(true); return true; } @@ -651,7 +651,7 @@ static bool snd_kvs_cmd_unmute(KviKvsModuleCommandCall * c) { KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETERS_END(c) - g_pSoundPlayer->setMuted(FALSE); + g_pSoundPlayer->setMuted(false); return true; } diff --git a/src/modules/torrent/tc_ktorrentdcopinterface.cpp b/src/modules/torrent/tc_ktorrentdcopinterface.cpp index 1ffd120..4d5c72d 100644 --- a/src/modules/torrent/tc_ktorrentdcopinterface.cpp +++ b/src/modules/torrent/tc_ktorrentdcopinterface.cpp @@ -114,7 +114,7 @@ KviKTorrentDCOPInterface::KviKTorrentDCOPInterface() TQTimer *timer = new TQTimer(this); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimer())); - timer->start(250, FALSE); + timer->start(250, false); // make sure we have a list of files, // otherwise functions dealing would diff --git a/src/modules/torrent/tc_statusbarapplet.cpp b/src/modules/torrent/tc_statusbarapplet.cpp index 79ae46d..88e84c5 100644 --- a/src/modules/torrent/tc_statusbarapplet.cpp +++ b/src/modules/torrent/tc_statusbarapplet.cpp @@ -9,7 +9,7 @@ KviTorrentStatusBarApplet::KviTorrentStatusBarApplet(KviStatusBar *parent, KviSt { TQTimer *timer = new TQTimer(this); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(update())); - timer->start(250, FALSE); + timer->start(250, false); // updateDisplay(); // setText("torrent client"); |
