diff options
Diffstat (limited to 'src/documentsourceview.cpp')
| -rw-r--r-- | src/documentsourceview.cpp | 38 | 
1 files changed, 19 insertions, 19 deletions
| diff --git a/src/documentsourceview.cpp b/src/documentsourceview.cpp index 0edce91..86d2322 100644 --- a/src/documentsourceview.cpp +++ b/src/documentsourceview.cpp @@ -17,9 +17,9 @@  *   Free Software Foundation, Inc.,                                       *  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *  ***************************************************************************/ -#include <qbuffer.h> -#include <qlayout.h> -#include <qfile.h> +#include <ntqbuffer.h> +#include <ntqlayout.h> +#include <ntqfile.h>  #include <klibloader.h>  #include <kxmlguifactory.h> @@ -46,8 +46,8 @@  namespace KBibTeX  { -    DocumentSourceView::DocumentSourceView( KBibTeX::DocumentWidget *docWidget, bool isReadOnly, QWidget *parent, const char *name ) -            : QWidget( parent, name ), m_isReadOnly( isReadOnly ), m_docWidget( docWidget ), m_bibtexFile( NULL ), m_document( NULL ), m_view( NULL ), m_progDlg( NULL ) +    DocumentSourceView::DocumentSourceView( KBibTeX::DocumentWidget *docWidget, bool isReadOnly, TQWidget *parent, const char *name ) +            : TQWidget( parent, name ), m_isReadOnly( isReadOnly ), m_docWidget( docWidget ), m_bibtexFile( NULL ), m_document( NULL ), m_view( NULL ), m_progDlg( NULL )      {          setupGUI(); @@ -97,7 +97,7 @@ namespace KBibTeX      /**       * Paste a line of text into the document at the designated position       */ -    void DocumentSourceView::insertLines( const QString& text, int line ) +    void DocumentSourceView::insertLines( const TQString& text, int line )      {          m_editInterface->insertLine( line < 0 ? m_editInterface->numLines() : ( uint ) line, text ); @@ -122,7 +122,7 @@ namespace KBibTeX      void DocumentSourceView::setFactory( KXMLGUIFactory *factory, KXMLGUIClient * client )      {          KTextEditor::PopupMenuInterface * popupInterface = dynamic_cast<KTextEditor::PopupMenuInterface*>( m_view ); -        popupInterface->installPopup(( QPopupMenu* )( factory ->container( "ktexteditor_popup", client ) ) ); +        popupInterface->installPopup(( TQPopupMenu* )( factory ->container( "ktexteditor_popup", client ) ) );      }      void DocumentSourceView::configureEditor() @@ -159,7 +159,7 @@ namespace KBibTeX          dlg.setSupportsCaseSensitiveFind( FALSE );          dlg.setSupportsRegularExpressionFind( FALSE );  #endif -        if ( dlg.exec() == QDialog::Accepted ) +        if ( dlg.exec() == TQDialog::Accepted )          {              m_lastSearchTerm = dlg.pattern();              m_findHistory = dlg.findHistory(); @@ -215,7 +215,7 @@ namespace KBibTeX          m_progDlg->setAllowCancel( false );          kapp->processEvents(); -        QBuffer buffer; +        TQBuffer buffer;          buffer.open( IO_WriteOnly );          BibTeX::FileExporterBibTeX * exporter = new BibTeX::FileExporterBibTeX();          connect( exporter, SIGNAL( progress( int, int ) ), this, SLOT( updateProgress( int, int ) ) ); @@ -231,9 +231,9 @@ namespace KBibTeX          {              kapp->processEvents();              buffer.open( IO_ReadOnly ); -            QTextStream in( &buffer ); -            in.setEncoding( QTextStream::UnicodeUTF8 ); -            QString text = in.read(); +            TQTextStream in( &buffer ); +            in.setEncoding( TQTextStream::UnicodeUTF8 ); +            TQString text = in.read();              buffer.close();              if ( m_editInterface ) @@ -259,11 +259,11 @@ namespace KBibTeX      {          if ( m_editInterface )          { -            QBuffer buffer; +            TQBuffer buffer;              buffer.open( IO_WriteOnly ); -            QTextStream stream( &buffer ); -            stream.setEncoding( QTextStream::UnicodeUTF8 ); +            TQTextStream stream( &buffer ); +            stream.setEncoding( TQTextStream::UnicodeUTF8 );              stream << m_editInterface->text();              buffer.close(); @@ -281,7 +281,7 @@ namespace KBibTeX          return NULL;      } -    void DocumentSourceView::focusInEvent( QFocusEvent* /*event*/ ) +    void DocumentSourceView::focusInEvent( TQFocusEvent* /*event*/ )      {          if ( m_view != NULL )              m_view->setFocus(); @@ -297,8 +297,8 @@ namespace KBibTeX          m_document->setReadWrite( !m_isReadOnly );          if ( !m_isReadOnly )              connect( m_document, SIGNAL( textChanged() ), this, SIGNAL( modified() ) ); -        QBoxLayout * layout = new QVBoxLayout( this ); -        layout->addWidget( static_cast<QWidget*>( m_view ) ); +        TQBoxLayout * layout = new TQVBoxLayout( this ); +        layout->addWidget( static_cast<TQWidget*>( m_view ) );          int c = m_document->hlModeCount() ;          int hlIdx = -1; @@ -366,7 +366,7 @@ namespace KBibTeX              fromLine = 0;              fromCol = 0;          } -        while ( KMessageBox::questionYesNo( this, QString( i18n( "Could not find text '%1' in the document.\nStart from the beginning?" ) ).arg( m_lastSearchTerm ), i18n( "Find text in source view" ), KGuiItem( i18n( "Restart search" ) ) ) == KMessageBox::Yes ); +        while ( KMessageBox::questionYesNo( this, TQString( i18n( "Could not find text '%1' in the document.\nStart from the beginning?" ) ).arg( m_lastSearchTerm ), i18n( "Find text in source view" ), KGuiItem( i18n( "Restart search" ) ) ) == KMessageBox::Yes );      }      void DocumentSourceView::updateProgress( int current, int total ) | 
