diff options
Diffstat (limited to 'src/documentsourceview.cpp')
-rw-r--r-- | src/documentsourceview.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/documentsourceview.cpp b/src/documentsourceview.cpp index 9d2b06b..4455609 100644 --- a/src/documentsourceview.cpp +++ b/src/documentsourceview.cpp @@ -56,7 +56,7 @@ namespace KBibTeX DocumentSourceView::~DocumentSourceView() { - kapp->config() ->sync(); + tdeApp->config() ->sync(); } /** @@ -88,10 +88,10 @@ namespace KBibTeX if ( clip ) { clip->paste(); - return TRUE; + return true; } else - return FALSE; + return false; } /** @@ -150,14 +150,14 @@ namespace KBibTeX void DocumentSourceView::find() { - KFindDialog dlg( TRUE, this ); + KFindDialog dlg( true, this ); dlg.setFindHistory( m_findHistory ); - dlg.setHasSelection( FALSE ); + dlg.setHasSelection( false ); #if KDE_IS_VERSION(3,4,0) - dlg.setSupportsWholeWordsFind( FALSE ); - dlg.setSupportsBackwardsFind( FALSE ); - dlg.setSupportsCaseSensitiveFind( FALSE ); - dlg.setSupportsRegularExpressionFind( FALSE ); + dlg.setSupportsWholeWordsFind( false ); + dlg.setSupportsBackwardsFind( false ); + dlg.setSupportsCaseSensitiveFind( false ); + dlg.setSupportsRegularExpressionFind( false ); #endif if ( dlg.exec() == TQDialog::Accepted ) { @@ -210,15 +210,15 @@ namespace KBibTeX { Settings * settings = Settings::self(); - bool result = FALSE; + bool result = false; m_progDlg = new KProgressDialog( this, NULL, i18n( "Source View" ), i18n( "Converting BibTeX document to plain text ..." ), true ); m_progDlg->setAllowCancel( false ); - kapp->processEvents(); + tdeApp->processEvents(); TQBuffer buffer; buffer.open( IO_WriteOnly ); BibTeX::FileExporterBibTeX * exporter = new BibTeX::FileExporterBibTeX(); - connect( exporter, SIGNAL( progress( int, int ) ), this, SLOT( updateProgress( int, int ) ) ); + connect( exporter, TQ_SIGNAL( progress( int, int ) ), this, TQ_SLOT( updateProgress( int, int ) ) ); exporter->setStringDelimiter( settings->fileIO_BibtexStringOpenDelimiter, settings->fileIO_BibtexStringCloseDelimiter ); exporter->setKeywordCasing( settings->fileIO_KeywordCasing ); exporter->setEncoding( "latex" ); @@ -229,7 +229,7 @@ namespace KBibTeX if ( result ) { - kapp->processEvents(); + tdeApp->processEvents(); buffer.open( IO_ReadOnly ); TQTextStream in( &buffer ); in.setEncoding( TQTextStream::UnicodeUTF8 ); @@ -238,10 +238,10 @@ namespace KBibTeX if ( m_editInterface ) { - kapp->processEvents(); + tdeApp->processEvents(); // very strange: to set the text, you have to set - // readwrite to TRUE... - m_document->setReadWrite( TRUE ); + // readwrite to true... + m_document->setReadWrite( true ); m_editInterface->setText( text ); m_document->setReadWrite( !m_isReadOnly ); } @@ -249,7 +249,7 @@ namespace KBibTeX m_bibtexFile = bibtexFile; } - kapp->processEvents(); + tdeApp->processEvents(); delete m_progDlg; return result; @@ -296,7 +296,7 @@ namespace KBibTeX m_editInterface = editInterface( m_document ); m_document->setReadWrite( !m_isReadOnly ); if ( !m_isReadOnly ) - connect( m_document, SIGNAL( textChanged() ), this, SIGNAL( modified() ) ); + connect( m_document, TQ_SIGNAL( textChanged() ), this, TQ_SIGNAL( modified() ) ); TQBoxLayout * layout = new TQVBoxLayout( this ); layout->addWidget( static_cast<TQWidget*>( m_view ) ); @@ -314,13 +314,13 @@ namespace KBibTeX void DocumentSourceView::readConfig() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); readConfig( config ); } void DocumentSourceView::writeConfig() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); writeConfig( config ); } @@ -355,7 +355,7 @@ namespace KBibTeX do { - bool result = searchIf->searchText( fromLine, fromCol, m_lastSearchTerm, &foundAtLine, &foundAtCol, &matchLen, FALSE ); + bool result = searchIf->searchText( fromLine, fromCol, m_lastSearchTerm, &foundAtLine, &foundAtCol, &matchLen, false ); if ( result ) { selectionIf->setSelection( foundAtLine, foundAtCol, foundAtLine, foundAtCol + matchLen ); @@ -373,7 +373,7 @@ namespace KBibTeX { m_progDlg->progressBar()->setTotalSteps( total ); m_progDlg->progressBar()->setValue( current ); - kapp->processEvents(); + tdeApp->processEvents(); } } |