Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/27/head
Michele Calgaro 12 months ago
parent f2c4535fe0
commit bc4f430128
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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();

@ -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;

@ -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);

@ -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.");

@ -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

@ -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( ' ' );

@ -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
{

@ -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( ' ' );

Loading…
Cancel
Save