diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 13:27:28 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 10:33:06 +0900 |
commit | 4617a1f7472b61e05b84f120ec0c7090c7450e75 (patch) | |
tree | 58bc08aa57139ffa1501d8ec0b5145fcbdb2b5b3 | |
parent | ce01cefae3be1b5a2e60e254fe268f393866c5fa (diff) | |
download | kipi-plugins-r14.1.4.tar.gz kipi-plugins-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bc4f430128b875962c42c46d79ea8d70167f41e0)
-rw-r--r-- | kipi-plugins/batchprocessimages/renameimageswidget.cpp | 2 | ||||
-rw-r--r-- | kipi-plugins/cdarchiving/cdarchiving.cpp | 12 | ||||
-rw-r--r-- | kipi-plugins/kameraklient/cameraselection.cpp | 2 | ||||
-rw-r--r-- | kipi-plugins/mpegencoder/checkbinprog.cpp | 18 | ||||
-rw-r--r-- | kipi-plugins/mpegencoder/kshowdebuggingoutput.cpp | 4 | ||||
-rw-r--r-- | kipi-plugins/slideshow/slideshow.cpp | 8 | ||||
-rw-r--r-- | kipi-plugins/slideshow/slideshowconfig.cpp | 28 | ||||
-rw-r--r-- | kipi-plugins/slideshow/slideshowgl.cpp | 8 |
8 files changed, 41 insertions, 41 deletions
diff --git a/kipi-plugins/batchprocessimages/renameimageswidget.cpp b/kipi-plugins/batchprocessimages/renameimageswidget.cpp index 79efe58..4e03852 100644 --- a/kipi-plugins/batchprocessimages/renameimageswidget.cpp +++ b/kipi-plugins/batchprocessimages/renameimageswidget.cpp @@ -86,7 +86,7 @@ RenameImagesWidget::RenameImagesWidget(TQWidget *parent, #if KDE_IS_VERSION(3,4,0) // next can be done directly into designer but it seems not to compile // under kde < 3.4.0 - m_listView->setShadeSortColumn( FALSE ); + m_listView->setShadeSortColumn( false ); #endif readSettings(); diff --git a/kipi-plugins/cdarchiving/cdarchiving.cpp b/kipi-plugins/cdarchiving/cdarchiving.cpp index 5e8d128..d1ef3fa 100644 --- a/kipi-plugins/cdarchiving/cdarchiving.cpp +++ b/kipi-plugins/cdarchiving/cdarchiving.cpp @@ -797,7 +797,7 @@ void CDArchiving::createBody(TQTextStream& stream, ++urlIt) { TQFileInfo imInfo( (*urlIt).fileName()); - TQString imgName = makeFileNameUnique(fileNameList, webifyFileName(imInfo.baseName(TRUE))); + TQString imgName = makeFileNameUnique(fileNameList, webifyFileName(imInfo.baseName(true))); } for ( KURL::List::iterator urlIt = images.begin() ; !m_cancelled && (urlIt != images.end()); @@ -1076,7 +1076,7 @@ bool CDArchiving::createPage(const TQString& imgGalleryDir, const TQDir pagesDir(imgGalleryDir + TQString::fromLatin1("/pages/")); const TQDir thumbsDir(imgGalleryDir + TQString::fromLatin1("/thumbs/")); const TQFileInfo fi (imgURL.fileName()); - const TQString imgName = uniqueImgName + "." + fi.extension(FALSE); + const TQString imgName = uniqueImgName + "." + fi.extension(false); kdDebug( 51000 ) << "CreatePage: FileName: " << imgURL.fileName() << endl; kdDebug( 51000 ) << "CreatePage: uniqueFileName: " << imgName << endl; kdDebug( 51000 ) << "CreatePage: uniquePrevFileName: " << prevUniqueImgName << endl; @@ -1706,11 +1706,11 @@ bool CDArchiving::addCollectionToK3bXMLProjectFile(const KIPI::ImageCollection& kdDebug( 51000 ) << " Filename: " << (*it).fileName() << endl; TQFileInfo fInfo((*it).fileName()); if (m_useHTMLInterface) - fName = makeFileNameUnique(fileNameList, webifyFileName(fInfo.baseName(TRUE))) - + "." + fInfo.extension( FALSE ); + fName = makeFileNameUnique(fileNameList, webifyFileName(fInfo.baseName(true))) + + "." + fInfo.extension( false ); else - fName = makeFileNameUnique(fileNameList, fInfo.baseName(TRUE)) - + "." + fInfo.extension( FALSE ); + fName = makeFileNameUnique(fileNameList, fInfo.baseName(true)) + + "." + fInfo.extension( false ); kdDebug( 51000 ) << " Unique filename: " << fName << endl; kdDebug( 51000 ) << "num of unique files: "<< fileNameList.size() << endl; diff --git a/kipi-plugins/kameraklient/cameraselection.cpp b/kipi-plugins/kameraklient/cameraselection.cpp index f271d90..de121d3 100644 --- a/kipi-plugins/kameraklient/cameraselection.cpp +++ b/kipi-plugins/kameraklient/cameraselection.cpp @@ -123,7 +123,7 @@ CameraSelection::CameraSelection(TQWidget* parent) portPathBoxLayout->addWidget( portPathLabel_ ); portPathComboBox_ = new TQComboBox( false, portPathBox ); - portPathComboBox_->setDuplicatesEnabled( FALSE ); + portPathComboBox_->setDuplicatesEnabled( false ); portPathBoxLayout->addWidget(portPathComboBox_); mainBoxLayout->addWidget(portPathBox, 2, 1); diff --git a/kipi-plugins/mpegencoder/checkbinprog.cpp b/kipi-plugins/mpegencoder/checkbinprog.cpp index e2fffbb..f17524b 100644 --- a/kipi-plugins/mpegencoder/checkbinprog.cpp +++ b/kipi-plugins/mpegencoder/checkbinprog.cpp @@ -82,33 +82,33 @@ if (MjpegToolsPath.isEmpty()) // ImageMagick external programs. - if (montage.exists(TQString (ImageMagickPath+"/montage")) == FALSE) + if (montage.exists(TQString (ImageMagickPath+"/montage")) == false) str = i18n("Cannot find 'montage' binary program from ImageMagick package. Please install it."); - if (composite.exists(TQString (ImageMagickPath+"/composite")) == FALSE) + if (composite.exists(TQString (ImageMagickPath+"/composite")) == false) str = i18n("Cannot find 'composite' binary program from ImageMagick package. Please install it."); - if (convert.exists(TQString (ImageMagickPath+"/convert")) == FALSE) + if (convert.exists(TQString (ImageMagickPath+"/convert")) == false) str = i18n("Cannot find 'convert' binary program from ImageMagick package. Please install it."); - if (identify.exists(TQString (ImageMagickPath+"/identify")) == FALSE) + if (identify.exists(TQString (ImageMagickPath+"/identify")) == false) str = i18n("Cannot find 'identify' binary program from ImageMagick package. Please install it."); // MjpegTools external programs. - if (ppmtoy4m.exists(TQString (MjpegToolsPath+"/ppmtoy4m")) == FALSE) + if (ppmtoy4m.exists(TQString (MjpegToolsPath+"/ppmtoy4m")) == false) str = i18n("Cannot find 'ppmtoy4m' binary program from MjpegTools package. Please install it."); - if (yuvscaler.exists(TQString (MjpegToolsPath+"/yuvscaler")) == FALSE) + if (yuvscaler.exists(TQString (MjpegToolsPath+"/yuvscaler")) == false) str = i18n("Cannot find 'yuvscaler' binary program from MjpegTools package. Please install it."); - if (mpeg2enc.exists(TQString (MjpegToolsPath+"/mpeg2enc")) == FALSE) + if (mpeg2enc.exists(TQString (MjpegToolsPath+"/mpeg2enc")) == false) str = i18n("Cannot find 'mpeg2enc' binary program from MjpegTools package. Please install it."); - if ( mplex.exists(TQString (MjpegToolsPath+"/mplex")) == FALSE) + if ( mplex.exists(TQString (MjpegToolsPath+"/mplex")) == false) str = i18n("Cannot find 'mplex' binary program from MjpegTools package. Please install it."); - if (mp2enc.exists(TQString (MjpegToolsPath+"/mp2enc")) == FALSE) + if (mp2enc.exists(TQString (MjpegToolsPath+"/mp2enc")) == false) { str = i18n("Cannot find 'mp2enc' binary program from MjpegTools package. Please install it.\n" "Audio capabilities will be disabled."); diff --git a/kipi-plugins/mpegencoder/kshowdebuggingoutput.cpp b/kipi-plugins/mpegencoder/kshowdebuggingoutput.cpp index 8fb90f8..ba1a1e7 100644 --- a/kipi-plugins/mpegencoder/kshowdebuggingoutput.cpp +++ b/kipi-plugins/mpegencoder/kshowdebuggingoutput.cpp @@ -72,9 +72,9 @@ KShowDebuggingOutput::~KShowDebuggingOutput() void KShowDebuggingOutput::slotCopyToCliboard( void ) { - debugView->selectAll(TRUE); + debugView->selectAll(true); debugView->copy(); - debugView->selectAll(FALSE); + debugView->selectAll(false); } } // NameSpace KIPIMPEGEncoderPlugin diff --git a/kipi-plugins/slideshow/slideshow.cpp b/kipi-plugins/slideshow/slideshow.cpp index 24ca219..a09f403 100644 --- a/kipi-plugins/slideshow/slideshow.cpp +++ b/kipi-plugins/slideshow/slideshow.cpp @@ -463,7 +463,7 @@ void SlideShow::printComments() while (commentsIndex < comments.length()) { TQString newLine; - bool breakLine = FALSE; // End Of Line found + bool breakLine = false; // End Of Line found uint currIndex; // Comments TQString current index // Check minimal lines dimension @@ -471,18 +471,18 @@ void SlideShow::printComments() uint commentsLinesLengthLocal = m_commentsLinesLength; for ( currIndex = commentsIndex; currIndex < comments.length() && !breakLine; currIndex++ ) - if( comments[currIndex] == TQChar('\n') || comments[currIndex].isSpace() ) breakLine = TRUE; + if( comments[currIndex] == TQChar('\n') || comments[currIndex].isSpace() ) breakLine = true; if (commentsLinesLengthLocal <= (currIndex - commentsIndex)) commentsLinesLengthLocal = (currIndex - commentsIndex); - breakLine = FALSE; + breakLine = false; for ( currIndex = commentsIndex; currIndex <= commentsIndex + commentsLinesLengthLocal && currIndex < comments.length() && !breakLine; currIndex++ ) { - breakLine = (comments[currIndex] == TQChar('\n')) ? TRUE : FALSE; + breakLine = comments[currIndex] == TQChar('\n'); if (breakLine) newLine.append( ' ' ); diff --git a/kipi-plugins/slideshow/slideshowconfig.cpp b/kipi-plugins/slideshow/slideshowconfig.cpp index b1b3ab4..0dbfa26 100644 --- a/kipi-plugins/slideshow/slideshowconfig.cpp +++ b/kipi-plugins/slideshow/slideshowconfig.cpp @@ -157,8 +157,8 @@ SlideShowConfig::SlideShowConfig(bool allowSelectedOnly, KIPI::Interface * inter // Host application images has comments if ( ! ImagesHasComments ) { - m_printCommentsCheckBox->setEnabled(FALSE); - m_tabWidget->setTabEnabled(commentsTab, FALSE); + m_printCommentsCheckBox->setEnabled(false); + m_tabWidget->setTabEnabled(commentsTab, false); } m_urlList = urlList; @@ -545,10 +545,10 @@ void SlideShowConfig::slotSelection() { urlList = m_interface->currentSelection().images(); - m_ImagesFilesButtonAdd->setEnabled(FALSE); - m_ImagesFilesButtonDelete->setEnabled(FALSE); - m_ImagesFilesButtonUp->setEnabled(FALSE); - m_ImagesFilesButtonDown->setEnabled(FALSE); + m_ImagesFilesButtonAdd->setEnabled(false); + m_ImagesFilesButtonDelete->setEnabled(false); + m_ImagesFilesButtonUp->setEnabled(false); + m_ImagesFilesButtonDown->setEnabled(false); } else if (m_allFilesButton->isChecked()) @@ -563,18 +563,18 @@ void SlideShowConfig::slotSelection() if (currentPath.isParentOf((*it).path()) && !((*it).path() == currentPath)) urlList += (*it).images(); - m_ImagesFilesButtonAdd->setEnabled(FALSE); - m_ImagesFilesButtonDelete->setEnabled(FALSE); - m_ImagesFilesButtonUp->setEnabled(FALSE); - m_ImagesFilesButtonDown->setEnabled(FALSE); + m_ImagesFilesButtonAdd->setEnabled(false); + m_ImagesFilesButtonDelete->setEnabled(false); + m_ImagesFilesButtonUp->setEnabled(false); + m_ImagesFilesButtonDown->setEnabled(false); } if ( m_customButton->isChecked() ) // Custom selected { - m_ImagesFilesButtonAdd->setEnabled(TRUE); - m_ImagesFilesButtonDelete->setEnabled(TRUE); - m_ImagesFilesButtonUp->setEnabled(TRUE); - m_ImagesFilesButtonDown->setEnabled(TRUE); + m_ImagesFilesButtonAdd->setEnabled(true); + m_ImagesFilesButtonDelete->setEnabled(true); + m_ImagesFilesButtonUp->setEnabled(true); + m_ImagesFilesButtonDown->setEnabled(true); } else { diff --git a/kipi-plugins/slideshow/slideshowgl.cpp b/kipi-plugins/slideshow/slideshowgl.cpp index f18b997..28d900d 100644 --- a/kipi-plugins/slideshow/slideshowgl.cpp +++ b/kipi-plugins/slideshow/slideshowgl.cpp @@ -635,7 +635,7 @@ void SlideShowGL::printComments(TQImage& layer) while (commentsIndex < comments.length()) { TQString newLine; - bool breakLine = FALSE; // End Of Line found + bool breakLine = false; // End Of Line found uint currIndex; // Comments TQString current index // Check miminal lines dimension @@ -643,18 +643,18 @@ void SlideShowGL::printComments(TQImage& layer) int commentsLinesLengthLocal = m_commentsLinesLength; for ( currIndex = commentsIndex; currIndex < comments.length() && !breakLine; currIndex++ ) - if( comments[currIndex] == TQChar('\n') || comments[currIndex].isSpace() ) breakLine = TRUE; + if( comments[currIndex] == TQChar('\n') || comments[currIndex].isSpace() ) breakLine = true; if (commentsLinesLengthLocal <= (int)((currIndex - commentsIndex))) commentsLinesLengthLocal = (currIndex - commentsIndex); - breakLine = FALSE; + breakLine = false; for ( currIndex = commentsIndex; currIndex <= commentsIndex + commentsLinesLengthLocal && currIndex < comments.length() && !breakLine; currIndex++ ) { - breakLine = (comments[currIndex] == TQChar('\n')) ? TRUE : FALSE; + breakLine = comments[currIndex] == TQChar('\n'); if (breakLine) newLine.append( ' ' ); |