diff options
Diffstat (limited to 'kdvi')
43 files changed, 77 insertions, 184 deletions
diff --git a/kdvi/CMakeL10n.txt b/kdvi/CMakeL10n.txt index ad14af79..7d30e76d 100644 --- a/kdvi/CMakeL10n.txt +++ b/kdvi/CMakeL10n.txt @@ -4,3 +4,9 @@ tde_l10n_create_template( CATALOG "kdvi" SOURCES "." "tips" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kdvi-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kdvi/CMakeLists.txt b/kdvi/CMakeLists.txt index 9c1ef8da..006137a2 100644 --- a/kdvi/CMakeLists.txt +++ b/kdvi/CMakeLists.txt @@ -28,13 +28,16 @@ link_directories( #### other data ################################# -install( FILES - kdvi.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kdvi.desktop + PO_DIR kdvi-desktops +) -install( FILES - kdvimultipage.desktop - DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kdvimultipage.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kdvi-desktops +) install( FILES kdvi.kcfg diff --git a/kdvi/TeXFont.h b/kdvi/TeXFont.h index 39fedb76..77923f12 100644 --- a/kdvi/TeXFont.h +++ b/kdvi/TeXFont.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // TeXFont.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/TeXFontDefinition.h b/kdvi/TeXFontDefinition.h index a059a405..6c345967 100644 --- a/kdvi/TeXFontDefinition.h +++ b/kdvi/TeXFontDefinition.h @@ -1,4 +1,3 @@ -// -*- C++ -*- /* * The layout of a font information block. * There is one of these for every loaded font or magnification thereof. diff --git a/kdvi/TeXFont_PFB.h b/kdvi/TeXFont_PFB.h index ed80d72b..4c3c2a7b 100644 --- a/kdvi/TeXFont_PFB.h +++ b/kdvi/TeXFont_PFB.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // TeXFont_PFB.cpp // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/TeXFont_PK.cpp b/kdvi/TeXFont_PK.cpp index 87d7de86..f84375cc 100644 --- a/kdvi/TeXFont_PK.cpp +++ b/kdvi/TeXFont_PK.cpp @@ -428,7 +428,7 @@ void TeXFont_PK::PK_skip_specials() #endif int i,j; - register FILE *fp = file; + FILE *fp = file; #ifdef DEBUG_PK if (fp == 0) @@ -478,8 +478,8 @@ void TeXFont_PK::read_PK_char(unsigned int ch) int row_bit_pos; bool paint_switch; TQ_UINT32 *cp; - register struct glyph *g; - register FILE *fp = file; + struct glyph *g; + FILE *fp = file; long fpwidth; TQ_UINT32 word = 0; int word_weight, bytes_wide; @@ -533,7 +533,7 @@ void TeXFont_PK::read_PK_char(unsigned int ch) { /* width must be multiple of 16 bits for raster_op */ characterBitmaps[ch]->bytes_wide = ROUNDUP((int) characterBitmaps[ch]->w, 32) * 4; - register unsigned int size = characterBitmaps[ch]->bytes_wide * characterBitmaps[ch]->h; + unsigned int size = characterBitmaps[ch]->bytes_wide * characterBitmaps[ch]->h; characterBitmaps[ch]->bits = new char[size != 0 ? size : 1]; } @@ -634,8 +634,8 @@ void TeXFont_PK::read_PK_char(unsigned int ch) // The data in the bitmap is now in the processor's bit order, // that is, big endian. Since XWindows needs little endian, we // need to change the bit order now. - register unsigned char* bitmapData = (unsigned char*) characterBitmaps[ch]->bits; - register unsigned char* endOfData = bitmapData + characterBitmaps[ch]->bytes_wide*characterBitmaps[ch]->h; + unsigned char* bitmapData = (unsigned char*) characterBitmaps[ch]->bits; + unsigned char* endOfData = bitmapData + characterBitmaps[ch]->bytes_wide*characterBitmaps[ch]->h; while(bitmapData < endOfData) { *bitmapData = bitflip[*bitmapData]; bitmapData++; diff --git a/kdvi/TeXFont_PK.h b/kdvi/TeXFont_PK.h index ab9c6b5c..c85eff47 100644 --- a/kdvi/TeXFont_PK.h +++ b/kdvi/TeXFont_PK.h @@ -1,5 +1,3 @@ -// -*- C++ -*- - #ifndef _TEXFONT_PK_H #define _TEXFONT_PK_H diff --git a/kdvi/TeXFont_TFM.h b/kdvi/TeXFont_TFM.h index 1d10dc1b..5c86aaf9 100644 --- a/kdvi/TeXFont_TFM.h +++ b/kdvi/TeXFont_TFM.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // TeXFont_TFM.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/bigEndianByteReader.h b/kdvi/bigEndianByteReader.h index 269d97d1..8bcc53f2 100644 --- a/kdvi/bigEndianByteReader.h +++ b/kdvi/bigEndianByteReader.h @@ -1,4 +1,3 @@ -// -*- C++ -*- /* This file is part of KDVI (C) 2001 by Stefan Kebekus (kebekus@kde.org) This library is free software; you can redistribute it and/or @@ -1,4 +1,3 @@ -// -*- C++ -*- /* * Mnemonics for bytes in dvi file. */ diff --git a/kdvi/dviFile.h b/kdvi/dviFile.h index b82d19de..5f6dd671 100644 --- a/kdvi/dviFile.h +++ b/kdvi/dviFile.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // // Class: dviFile // diff --git a/kdvi/dviPageCache.h b/kdvi/dviPageCache.h index 68e41c90..3aa34695 100644 --- a/kdvi/dviPageCache.h +++ b/kdvi/dviPageCache.h @@ -1,4 +1,3 @@ -// -*- C++ -*- /*************************************************************************** * Copyright (C) 2005 by Wilfried Huss * * Wilfried.Huss@gmx.at * @@ -26,7 +25,7 @@ class DVIPageCache : public DocumentPageCache { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/dviRenderer.cpp b/kdvi/dviRenderer.cpp index 46a56980..6fbe4a46 100644 --- a/kdvi/dviRenderer.cpp +++ b/kdvi/dviRenderer.cpp @@ -77,14 +77,14 @@ dviRenderer::dviRenderer(TQWidget *par) // initialize the dvi machinery dviFile = 0; - connect(&font_pool, TQT_SIGNAL( setStatusBarText( const TQString& ) ), this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) ); + connect(&font_pool, TQ_SIGNAL( setStatusBarText( const TQString& ) ), this, TQ_SIGNAL( setStatusBarText( const TQString& ) ) ); parentWidget = par; shrinkfactor = 3; current_page = 0; resolutionInDPI = 0.0; - connect( &clearStatusBarTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(clearStatusBar()) ); + connect( &clearStatusBarTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(clearStatusBar()) ); currentlyDrawnPage = 0; editorCommand = ""; @@ -103,7 +103,7 @@ dviRenderer::dviRenderer(TQWidget *par) PS_interface = new ghostscript_interface(); // pass status bar messages through - connect(PS_interface, TQT_SIGNAL( setStatusBarText( const TQString& ) ), this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) ); + connect(PS_interface, TQ_SIGNAL( setStatusBarText( const TQString& ) ), this, TQ_SIGNAL( setStatusBarText( const TQString& ) ) ); } @@ -225,7 +225,7 @@ void dviRenderer::drawPage(double resolution, RenderedDocumentPage *page) dviFile->sourceSpecialMarker = false; // Show the dialog as soon as event processing is finished, and // the program is idle - TQTimer::singleShot( 0, this, TQT_SLOT(showThatSourceInformationIsPresent()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(showThatSourceInformationIsPresent()) ); } } @@ -767,8 +767,8 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum // henceforth dimiss the output of the older programm. "If it // hasn't failed until now, we don't care." if (proc != 0) { - tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0); - tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0); + tqApp->disconnect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0); + tqApp->disconnect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0); proc = 0; } @@ -778,9 +778,9 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum kdError(4300) << "Could not allocate ShellProcess for the editor command." << endl; return; } - tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); - tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); - tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(editorCommand_terminated(TDEProcess *))); + tqApp->connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(editorCommand_terminated(TDEProcess *))); // Merge the editor-specific editor message here. export_errorString = i18n("<qt>The external program<br><br><tt><strong>%1</strong></tt><br/><br/>which was used to call the editor " "for inverse search, reported an error. You might wish to look at the <strong>document info " diff --git a/kdvi/dviRenderer.h b/kdvi/dviRenderer.h index 6dc76545..e8ccdb0b 100644 --- a/kdvi/dviRenderer.h +++ b/kdvi/dviRenderer.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // // Class: dviRenderer // @@ -84,7 +83,7 @@ struct drawinf { class dviRenderer : public DocumentRenderer, bigEndianByteReader { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/dviRenderer_export.cpp b/kdvi/dviRenderer_export.cpp index d6e15873..b07e9b87 100644 --- a/kdvi/dviRenderer_export.cpp +++ b/kdvi/dviRenderer_export.cpp @@ -61,8 +61,8 @@ void dviRenderer::exportPDF() // has been called meanwhile. See also the exportPS method. if (proc != 0) { // Make sure all further output of the programm is ignored - tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0); - tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0); + tqApp->disconnect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0); + tqApp->disconnect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0); proc = 0; } @@ -120,7 +120,7 @@ void dviRenderer::exportPDF() if (progress != 0) { progress->TextLabel2->setText( i18n("Please be patient") ); progress->setTotalSteps( dviFile->total_pages ); - tqApp->connect(progress, TQT_SIGNAL(finished()), this, TQT_SLOT(abortExternalProgramm())); + tqApp->connect(progress, TQ_SIGNAL(finished()), this, TQ_SLOT(abortExternalProgramm())); } proc = new KShellProcess(); @@ -128,11 +128,11 @@ void dviRenderer::exportPDF() kdError(4300) << "Could not allocate ShellProcess for the dvipdfm command." << endl; return; } - tqApp->disconnect( this, TQT_SIGNAL(mySignal()), 0, 0 ); + tqApp->disconnect( this, TQ_SIGNAL(mySignal()), 0, 0 ); - tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); - tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); - tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(dvips_terminated(TDEProcess *))); + tqApp->connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(dvips_terminated(TDEProcess *))); export_errorString = i18n("<qt>The external program 'dvipdf', which was used to export the file, reported an error. " "You might wish to look at the <strong>document info dialog</strong> which you will " @@ -167,8 +167,8 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin // enough to ignore the exit status of the editor if another command // has been called meanwhile. See also the exportPDF method. if (proc != 0) { - tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0); - tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0); + tqApp->disconnect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0); + tqApp->disconnect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0); proc = 0; } @@ -223,7 +223,7 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin if (progress != 0) { progress->TextLabel2->setText( i18n("Please be patient") ); progress->setTotalSteps( dviFile->total_pages ); - tqApp->connect(progress, TQT_SIGNAL(finished()), this, TQT_SLOT(abortExternalProgramm())); + tqApp->connect(progress, TQ_SIGNAL(finished()), this, TQ_SLOT(abortExternalProgramm())); } // There is a major problem with dvips, at least 5.86 and lower: the @@ -294,9 +294,9 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin return; } - tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); - tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); - tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(dvips_terminated(TDEProcess *))); + tqApp->connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQ_SLOT(dvips_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(dvips_terminated(TDEProcess *))); export_errorString = i18n("<qt>The external program 'dvips', which was used to export the file, reported an error. " "You might wish to look at the <strong>document info dialog</strong> which you will " "find in the File-Menu for a precise error report.</qt>") ; diff --git a/kdvi/dviWidget.cpp b/kdvi/dviWidget.cpp index 8b8545b6..614a2704 100644 --- a/kdvi/dviWidget.cpp +++ b/kdvi/dviWidget.cpp @@ -45,7 +45,7 @@ void DVIWidget::mousePressEvent(TQMouseEvent* e) // Check if the mouse is pressed on a source-hyperlink // source hyperlinks can be invoked with the Middle Mousebutton or alternatively // with Control+Left Mousebutton - if ((e->button() == Qt::MidButton || (e->button() == Qt::LeftButton && (e->state() & ControlButton))) + if ((e->button() == TQt::MidButton || (e->button() == TQt::LeftButton && (e->state() & ControlButton))) && (pageData->sourceHyperLinkList.size() > 0)) { int minIndex = 0; diff --git a/kdvi/dviWidget.h b/kdvi/dviWidget.h index 7b2a50aa..b0890499 100644 --- a/kdvi/dviWidget.h +++ b/kdvi/dviWidget.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // // Class: DVIWidget // @@ -22,7 +21,7 @@ class textSelection; class DVIWidget : public DocumentWidget { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/dvisourcesplitter.h b/kdvi/dvisourcesplitter.h index 35b84e7a..626911ad 100644 --- a/kdvi/dvisourcesplitter.h +++ b/kdvi/dvisourcesplitter.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // // C++ Interface: dvisourcesplitter // diff --git a/kdvi/fontEncoding.h b/kdvi/fontEncoding.h index 8ce0d18b..ecd73454 100644 --- a/kdvi/fontEncoding.h +++ b/kdvi/fontEncoding.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // fontEncoding.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/fontEncodingPool.h b/kdvi/fontEncodingPool.h index 05736137..7ddc8f43 100644 --- a/kdvi/fontEncodingPool.h +++ b/kdvi/fontEncodingPool.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // fontEncodingPool.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/fontMap.h b/kdvi/fontMap.h index 4e02f742..8b5c0bc5 100644 --- a/kdvi/fontMap.h +++ b/kdvi/fontMap.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // fontMap.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/fontpool.cpp b/kdvi/fontpool.cpp index 830d0f67..d7b73847 100644 --- a/kdvi/fontpool.cpp +++ b/kdvi/fontpool.cpp @@ -304,8 +304,8 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo // If PK fonts are generated, the kpsewhich command will re-route // the output of MetaFont into its stderr. Here we make sure this // output is intercepted and parsed. - tqApp->connect(&kpsewhichIO, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), - this, TQT_SLOT(mf_output_receiver(TDEProcess *, char *, int))); + tqApp->connect(&kpsewhichIO, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + this, TQ_SLOT(mf_output_receiver(TDEProcess *, char *, int))); kpsewhichIO.setUseShell(true); diff --git a/kdvi/fontpool.h b/kdvi/fontpool.h index d5575ff9..7928fed0 100644 --- a/kdvi/fontpool.h +++ b/kdvi/fontpool.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // fontpool.h // // (C) 2001-2004 Stefan Kebekus @@ -37,7 +36,7 @@ class KShellProcess; **/ class fontPool : public TQObject { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/fontprogress.cpp b/kdvi/fontprogress.cpp index 23bae486..a49fa384 100644 --- a/kdvi/fontprogress.cpp +++ b/kdvi/fontprogress.cpp @@ -61,7 +61,7 @@ fontProgressDialog::fontProgressDialog(const TQString& helpIndex, const TQString progress = 0; procIO = 0; - tqApp->connect(this, TQT_SIGNAL(finished()), this, TQT_SLOT(killProcIO())); + tqApp->connect(this, TQ_SIGNAL(finished()), this, TQ_SLOT(killProcIO())); } diff --git a/kdvi/fontprogress.h b/kdvi/fontprogress.h index 73b135e4..ddb34735 100644 --- a/kdvi/fontprogress.h +++ b/kdvi/fontprogress.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // // fontprogress.h // @@ -30,7 +29,7 @@ class TQLabel; **/ class fontProgressDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/glyph.h b/kdvi/glyph.h index 2265c6df..596adbce 100644 --- a/kdvi/glyph.h +++ b/kdvi/glyph.h @@ -1,5 +1,3 @@ -// -*- C++ -*- - #ifndef _GLYPH_H #define _GLYPH_H diff --git a/kdvi/infodialog.h b/kdvi/infodialog.h index 36946ded..0d0bdc00 100644 --- a/kdvi/infodialog.h +++ b/kdvi/infodialog.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // infodialog.h // // (C) 2001 Stefan Kebekus @@ -19,7 +18,7 @@ class TQWidget; class infoDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/kdvi.desktop b/kdvi/kdvi.desktop index 3eb980c3..111f6a0c 100644 --- a/kdvi/kdvi.desktop +++ b/kdvi/kdvi.desktop @@ -1,80 +1,6 @@ [Desktop Entry] GenericName=DVI Viewer -GenericName[af]=Dvi Aansig -GenericName[ar]=عارض ملفات DVI -GenericName[az]=DVI Nümayişçisi -GenericName[bg]=Преглед на документи DVI -GenericName[br]=Gweler DVI -GenericName[bs]=Preglednik DVI dokumenata -GenericName[ca]=Visualitzador de DVI -GenericName[cs]=Prohlížeč DVI souborů -GenericName[cy]=Gwelydd DVI -GenericName[da]=DVI-fremviser -GenericName[de]=DVI-Betrachter -GenericName[el]=Προβολέας DVI -GenericName[eo]=DVI-rigardilo -GenericName[es]=Visor de documentos DVI -GenericName[et]=DVI failide vaataja -GenericName[eu]=DVI ikustailea -GenericName[fa]=مشاهدهگر DVI -GenericName[fi]=DVI-näytin -GenericName[fr]=Afficheur DVI -GenericName[ga]=Amharcán DVI -GenericName[gl]=Visor de DVI -GenericName[he]=מציג DVI -GenericName[hi]=डीवीआई प्रदर्शक -GenericName[hr]=Preglednik DVI dokumenata -GenericName[hu]=DVI-nézegető -GenericName[id]=Viewer DVI -GenericName[is]=DVI sjá -GenericName[it]=Visore DVI -GenericName[ja]=DVI ビューア -GenericName[kk]=DVI файлдарын қарау -GenericName[km]=កម្មវិធីមើល DVI -GenericName[ko]=DVI 보기 -GenericName[lt]=DVI Žiūriklis -GenericName[lv]=DVI Skatītājs -GenericName[mk]=Прикажувач на DVI -GenericName[ms]=Pemapar DVI -GenericName[mt]=Werrej DVI -GenericName[nb]=DVI-fremviser -GenericName[nds]=DVI-Kieker -GenericName[ne]=DVI दर्शक -GenericName[nl]=DVI-weergaveprogramma -GenericName[nn]=DVI-lesar -GenericName[pa]=DVI ਦਰਸ਼ਕ -GenericName[pl]=Przeglądarka plików DVI -GenericName[pt]=Visualizador de DVIs -GenericName[pt_BR]=Visualizador de DVI -GenericName[ro]=Vizualizor DVI -GenericName[ru]=Просмотр файлов DVI -GenericName[rw]=Ikigaragaza DVI -GenericName[se]=DVI čájeheaddji -GenericName[sk]=Prehliadač DVI súborov -GenericName[sl]=Pregledovalnik datotek DVI -GenericName[sr]=DVI приказивач -GenericName[sr@Latn]=DVI prikazivač -GenericName[sv]=DVI-visare -GenericName[ta]=DVI காட்சி -GenericName[tg]=Намоиши файли DVI -GenericName[th]=ตัวแสดงผล DVI -GenericName[tr]=DVI Görüntüleyici -GenericName[uk]=Переглядач DVI -GenericName[uz]=DVI koʻruvchi -GenericName[uz@cyrillic]=DVI кўрувчи -GenericName[ven]=Muvhoni wa DVI -GenericName[wa]=Håyneu di fitchîs DVI -GenericName[xh]=Umboniseli we DVI -GenericName[zh_CN]=DVI 查看器 -GenericName[zh_HK]=DVI 檢視器 -GenericName[zh_TW]=DVI 檢視器 -GenericName[zu]=Umboniseli we DVI Name=KDVI -Name[af]=Kdvi -Name[ar]=برنامج KDVI -Name[eo]=DVI-rigardilo -Name[hi]=के-डीवीआई -Name[zh_TW]=KDVI 檢視器 MimeType=application/x-dvi;application/x-gzdvi;application/x-bz2dvi; X-TDE-InitialPreference=6 Exec=kdvi %f -caption "%c" %i %m diff --git a/kdvi/kdvi.h b/kdvi/kdvi.h index c04fe189..c204b660 100644 --- a/kdvi/kdvi.h +++ b/kdvi/kdvi.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // kdvi.h // // global variables and definitions for kdvi. diff --git a/kdvi/kdvi_multipage.cpp b/kdvi/kdvi_multipage.cpp index 2da7abc2..a6aa58b8 100644 --- a/kdvi/kdvi_multipage.cpp +++ b/kdvi/kdvi_multipage.cpp @@ -67,13 +67,13 @@ KDVIMultiPage::KDVIMultiPage(TQWidget *parentWidget, const char *widgetName, TQO DVIRenderer.setName("DVI renderer"); setRenderer(&DVIRenderer); - docInfoAction = new TDEAction(i18n("Document &Info"), "application-vnd.tde.info", 0, &DVIRenderer, TQT_SLOT(showInfo()), actionCollection(), "info_dvi"); - embedPSAction = new TDEAction(i18n("Embed External PostScript Files..."), 0, this, TQT_SLOT(slotEmbedPostScript()), actionCollection(), "embed_postscript"); - new TDEAction(i18n("Enable All Warnings && Messages"), 0, this, TQT_SLOT(doEnableWarnings()), actionCollection(), "enable_msgs"); - exportPSAction = new TDEAction(i18n("PostScript..."), 0, &DVIRenderer, TQT_SLOT(exportPS()), actionCollection(), "export_postscript"); - exportPDFAction = new TDEAction(i18n("PDF..."), 0, &DVIRenderer, TQT_SLOT(exportPDF()), actionCollection(), "export_pdf"); + docInfoAction = new TDEAction(i18n("Document &Info"), "application-vnd.tde.info", 0, &DVIRenderer, TQ_SLOT(showInfo()), actionCollection(), "info_dvi"); + embedPSAction = new TDEAction(i18n("Embed External PostScript Files..."), 0, this, TQ_SLOT(slotEmbedPostScript()), actionCollection(), "embed_postscript"); + new TDEAction(i18n("Enable All Warnings && Messages"), 0, this, TQ_SLOT(doEnableWarnings()), actionCollection(), "enable_msgs"); + exportPSAction = new TDEAction(i18n("PostScript..."), 0, &DVIRenderer, TQ_SLOT(exportPS()), actionCollection(), "export_postscript"); + exportPDFAction = new TDEAction(i18n("PDF..."), 0, &DVIRenderer, TQ_SLOT(exportPDF()), actionCollection(), "export_pdf"); - KStdAction::tipOfDay(this, TQT_SLOT(showTip()), actionCollection(), "help_tipofday"); + KStdAction::tipOfDay(this, TQ_SLOT(showTip()), actionCollection(), "help_tipofday"); setXMLFile("kdvi_part.rc"); @@ -81,7 +81,7 @@ KDVIMultiPage::KDVIMultiPage(TQWidget *parentWidget, const char *widgetName, TQO enableActions(false); // Show tip of the day, when the first main window is shown. - TQTimer::singleShot(0,this,TQT_SLOT(showTipOnStart())); + TQTimer::singleShot(0,this,TQ_SLOT(showTipOnStart())); } @@ -365,7 +365,7 @@ void KDVIMultiPage::print() default: break; } - // Qt::Orientation + // Orientation if ( printer->orientation() == KPrinter::Landscape ) dvips_options += "-t landscape "; @@ -435,12 +435,12 @@ DocumentWidget* KDVIMultiPage::createDocumentWidget() "singlePageWidget" ); // Lets not forget the connections we make in the KMultiPage - connect(documentWidget, TQT_SIGNAL(clearSelection()), this, TQT_SLOT(clearSelection())); - connect(this, TQT_SIGNAL(enableMoveTool(bool)), documentWidget, TQT_SLOT(slotEnableMoveTool(bool))); + connect(documentWidget, TQ_SIGNAL(clearSelection()), this, TQ_SLOT(clearSelection())); + connect(this, TQ_SIGNAL(enableMoveTool(bool)), documentWidget, TQ_SLOT(slotEnableMoveTool(bool))); // Handle source links - connect(documentWidget, TQT_SIGNAL(SRCLink(const TQString&, TQMouseEvent*, DocumentWidget*)), getRenderer(), - TQT_SLOT(handleSRCLink(const TQString& ,TQMouseEvent*, DocumentWidget*))); + connect(documentWidget, TQ_SIGNAL(SRCLink(const TQString&, TQMouseEvent*, DocumentWidget*)), getRenderer(), + TQ_SLOT(handleSRCLink(const TQString& ,TQMouseEvent*, DocumentWidget*))); return documentWidget; } diff --git a/kdvi/kdvi_multipage.h b/kdvi/kdvi_multipage.h index 29adbe26..099f472f 100644 --- a/kdvi/kdvi_multipage.h +++ b/kdvi/kdvi_multipage.h @@ -1,4 +1,3 @@ -// -*- C++ -*- #ifndef KDVIMULTIPAGE_H #define KDVIMULTIPAGE_H @@ -11,7 +10,7 @@ class KPrinter; class KDVIMultiPage : public KMultiPage { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/kdvimultipage.desktop b/kdvi/kdvimultipage.desktop index 9d3f6915..3ffa2cc0 100644 --- a/kdvi/kdvimultipage.desktop +++ b/kdvi/kdvimultipage.desktop @@ -2,16 +2,6 @@ Type=Service Comment=DVI Name=KDVIMultiPage -Name[es]=KDVIMultiPágina -Name[fr]=Multi-page KDVI -Name[hu]=KDVITöbbOldalas -Name[nb]=KDVI Flerside -Name[ne]=केडीभीआई बहुपृष्ठ -Name[nl]=KDVIMultiPagina -Name[nn]=KDVI-fleirside -Name[pt]=KDVIMultiPágina -Name[ro]=KDVI Pagini Multiple -Name[sv]=KDVI flera sidor X-TDE-ServiceTypes=KViewShell/MultiPage X-TDE-Library=kdvipart X-TDE-MimeTypes=application/x-dvi diff --git a/kdvi/kprinterwrapper.h b/kdvi/kprinterwrapper.h index d7133f03..d276abb4 100644 --- a/kdvi/kprinterwrapper.h +++ b/kdvi/kprinterwrapper.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // kprinterwrapper.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt diff --git a/kdvi/optionDialogFontsWidget.h b/kdvi/optionDialogFontsWidget.h index 975a826e..263409fe 100644 --- a/kdvi/optionDialogFontsWidget.h +++ b/kdvi/optionDialogFontsWidget.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // optionDialogFontsWidget.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt @@ -14,7 +13,7 @@ class optionDialogFontsWidget : public optionDialogFontsWidget_base { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/optionDialogFontsWidget_base.ui b/kdvi/optionDialogFontsWidget_base.ui index bb7e18f4..2a36bb98 100644 --- a/kdvi/optionDialogFontsWidget_base.ui +++ b/kdvi/optionDialogFontsWidget_base.ui @@ -56,9 +56,9 @@ <includes> <include location="global" impldecl="in implementation">kdialog.h</include> </includes> -<Q_SLOTS> +<slots> <slot>buttonGroup1_clicked(int)</slot> -</Q_SLOTS> +</slots> <layoutdefaults spacing="6" margin="11"/> <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> </UI> diff --git a/kdvi/optionDialogSpecialWidget.cpp b/kdvi/optionDialogSpecialWidget.cpp index 800a5d19..e365d9e2 100644 --- a/kdvi/optionDialogSpecialWidget.cpp +++ b/kdvi/optionDialogSpecialWidget.cpp @@ -73,8 +73,8 @@ optionDialogSpecialWidget::optionDialogSpecialWidget( TQWidget* parent, const c usersEditorCommand = currentEditorCommand; slotComboBox(i); - connect(urll, TQT_SIGNAL(leftClickedURL(const TQString&)), this, TQT_SLOT(slotExtraHelpButton(const TQString&))); - connect(editorChoice, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotComboBox( int ) ) ); + connect(urll, TQ_SIGNAL(leftClickedURL(const TQString&)), this, TQ_SLOT(slotExtraHelpButton(const TQString&))); + connect(editorChoice, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotComboBox( int ) ) ); // Editor description strings (and their translations) vary in // size. Find the longest description string available to make sure @@ -87,7 +87,7 @@ optionDialogSpecialWidget::optionDialogSpecialWidget( TQWidget* parent, const c } editorDescription->setMinimumWidth(maximumWidth+10); - connect(kcfg_EditorCommand, TQT_SIGNAL( textChanged (const TQString &) ), this, TQT_SLOT( slotUserDefdEditorCommand( const TQString & ) ) ); + connect(kcfg_EditorCommand, TQ_SIGNAL( textChanged (const TQString &) ), this, TQ_SLOT( slotUserDefdEditorCommand( const TQString & ) ) ); } optionDialogSpecialWidget::~optionDialogSpecialWidget() diff --git a/kdvi/optionDialogSpecialWidget.h b/kdvi/optionDialogSpecialWidget.h index b7772107..feb09a57 100644 --- a/kdvi/optionDialogSpecialWidget.h +++ b/kdvi/optionDialogSpecialWidget.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // optionDialogSpecialWidget.h // // Part of KDVI - A DVI previewer for the KDE desktop environemt @@ -14,7 +13,7 @@ class optionDialogSpecialWidget : public optionDialogSpecialWidget_base { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/performanceMeasurement.h b/kdvi/performanceMeasurement.h index d7e4c9b4..d9f82e16 100644 --- a/kdvi/performanceMeasurement.h +++ b/kdvi/performanceMeasurement.h @@ -1,5 +1,3 @@ -// -*- C++ -*- - //#define PERFORMANCE_MEASUREMENT #ifdef PERFORMANCE_MEASUREMENT diff --git a/kdvi/prebookmark.h b/kdvi/prebookmark.h index 412652b9..0b277b3f 100644 --- a/kdvi/prebookmark.h +++ b/kdvi/prebookmark.h @@ -1,4 +1,3 @@ -// -*- C++ -*- /*************************************************************************** * Copyright (C) 2005 by Stefan Kebekus * * kebekus@kde.org * diff --git a/kdvi/psgs.h b/kdvi/psgs.h index 74dc1015..d5750bd2 100644 --- a/kdvi/psgs.h +++ b/kdvi/psgs.h @@ -1,4 +1,3 @@ -// -*- C++ -*- // // ghostscript_interface // @@ -33,7 +32,7 @@ public: class ghostscript_interface : public TQObject { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/renderedDviPagePixmap.h b/kdvi/renderedDviPagePixmap.h index 9f020057..cd7da3d7 100644 --- a/kdvi/renderedDviPagePixmap.h +++ b/kdvi/renderedDviPagePixmap.h @@ -1,4 +1,3 @@ -// -*- C++ -*- /*************************************************************************** * Copyright (C) 2005 by Wilfried Huss * * Wilfried.Huss@gmx.at * @@ -29,7 +28,7 @@ class RenderedDviPagePixmap : public RenderedDocumentPagePixmap { - Q_OBJECT + TQ_OBJECT public: diff --git a/kdvi/util.cpp b/kdvi/util.cpp index 2942cf08..bcdc3130 100644 --- a/kdvi/util.cpp +++ b/kdvi/util.cpp @@ -96,7 +96,7 @@ please report the problem.")); unsigned long num(FILE *fp, int size) { - register long x = 0; + long x = 0; while (size--) x = (x << 8) | one(fp); return x; @@ -104,7 +104,7 @@ unsigned long num(FILE *fp, int size) long snum(FILE *fp, int size) { - register long x; + long x; #ifdef __STDC__ x = (signed char) getc(fp); diff --git a/kdvi/xdvi.h b/kdvi/xdvi.h index 0770cd8b..d3602164 100644 --- a/kdvi/xdvi.h +++ b/kdvi/xdvi.h @@ -1,4 +1,3 @@ -// -*- C++ -*- #ifndef _xdvi_h #define _xdvi_h |