diff options
Diffstat (limited to 'ktnef')
-rw-r--r-- | ktnef/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | ktnef/gui/CMakeLists.txt | 14 | ||||
-rw-r--r-- | ktnef/gui/attachpropertydialog.cpp | 2 | ||||
-rw-r--r-- | ktnef/gui/attachpropertydialogbase.ui | 4 | ||||
-rw-r--r-- | ktnef/gui/ktnef.desktop | 101 | ||||
-rw-r--r-- | ktnef/gui/ktnefmain.cpp | 48 | ||||
-rw-r--r-- | ktnef/gui/ktnefmain.h | 2 | ||||
-rw-r--r-- | ktnef/gui/ktnefview.cpp | 2 | ||||
-rw-r--r-- | ktnef/gui/ktnefview.h | 4 | ||||
-rw-r--r-- | ktnef/gui/messagepropertydialog.h | 2 | ||||
-rw-r--r-- | ktnef/gui/ms-tnef.desktop | 55 | ||||
-rw-r--r-- | ktnef/gui/qwmf.cpp | 56 | ||||
-rw-r--r-- | ktnef/ktnef/ktnefattach.h | 2 | ||||
-rw-r--r-- | ktnef/ktnef/ktnefmessage.h | 2 | ||||
-rw-r--r-- | ktnef/ktnef/ktnefparser.h | 2 | ||||
-rw-r--r-- | ktnef/ktnef/ktnefproperty.h | 2 | ||||
-rw-r--r-- | ktnef/ktnef/ktnefpropertyset.h | 2 | ||||
-rw-r--r-- | ktnef/lib/ktnefmessage.cpp | 2 | ||||
-rw-r--r-- | ktnef/lib/ktnefparser.cpp | 2 |
19 files changed, 90 insertions, 220 deletions
diff --git a/ktnef/CMakeL10n.txt b/ktnef/CMakeL10n.txt index 0a3e585b..18aa95ad 100644 --- a/ktnef/CMakeL10n.txt +++ b/ktnef/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "ktnef" ) + +tde_l10n_create_template( + CATALOG "desktop_files/ktnef-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/ktnef/gui/CMakeLists.txt b/ktnef/gui/CMakeLists.txt index a89cedbf..db2c178f 100644 --- a/ktnef/gui/CMakeLists.txt +++ b/ktnef/gui/CMakeLists.txt @@ -27,9 +27,19 @@ link_directories( ##### other data ################################ -install( FILES ktnef.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE ktnef.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} + PO_DIR ktnef-desktops +) + install( FILES ktnefui.rc DESTINATION ${DATA_INSTALL_DIR}/ktnef ) -install( FILES ms-tnef.desktop DESTINATION ${MIME_INSTALL_DIR}/application ) + +tde_create_translated_desktop( + SOURCE ms-tnef.desktop + DESTINATION ${MIME_INSTALL_DIR}/application + PO_DIR ktnef-desktops +) ##### ktnef (executable) ######################## diff --git a/ktnef/gui/attachpropertydialog.cpp b/ktnef/gui/attachpropertydialog.cpp index 73b20871..f8d8ce12 100644 --- a/ktnef/gui/attachpropertydialog.cpp +++ b/ktnef/gui/attachpropertydialog.cpp @@ -178,7 +178,7 @@ TQPixmap loadRenderingPixmap( KTNEFPropertySet *pSet, const TQColor& bgColor ) { pix.resize( w, h ); pix.fill( bgColor ); - wmfLoader.paint( &TQT_TQPAINTDEVICE_OBJECT(pix) ); + wmfLoader.paint( &pix ); } wmfBuffer.close(); } diff --git a/ktnef/gui/attachpropertydialogbase.ui b/ktnef/gui/attachpropertydialogbase.ui index ca34103a..afc6e500 100644 --- a/ktnef/gui/attachpropertydialogbase.ui +++ b/ktnef/gui/attachpropertydialogbase.ui @@ -271,9 +271,9 @@ <slot>saveClicked()</slot> </connection> </connections> -<Q_SLOTS> +<slots> <slot access="protected">saveClicked()</slot> -</Q_SLOTS> +</slots> <layoutdefaults spacing="6" margin="11"/> <includes> <include location="global" impldecl="in implementation">tdelistview.h</include> diff --git a/ktnef/gui/ktnef.desktop b/ktnef/gui/ktnef.desktop index 0d533f80..129989f3 100644 --- a/ktnef/gui/ktnef.desktop +++ b/ktnef/gui/ktnef.desktop @@ -1,107 +1,14 @@ [Desktop Entry] Name=KTnef -Name[sv]=Ktnef + GenericName=TNEF File Viewer -GenericName[af]=TNEF lêer leser -GenericName[bg]=Преглед на файлове TNEF -GenericName[br]=Gweler restr TNEF -GenericName[ca]=Visor de fitxers TNEF -GenericName[cs]=Prohlížeč TNEF souborů -GenericName[cy]=Syllwr Ffeil TNEF -GenericName[da]=TNEF Fil-fremviser -GenericName[de]=TNEF-Dateibetrachter -GenericName[el]=Προβολέας αρχείων TNEF -GenericName[eo]=TNEF-dosierorigardilo -GenericName[es]=Visor de archivos TNEF -GenericName[et]=TNEF-failide näitaja -GenericName[eu]=TNEF fitxategi ikustailea -GenericName[fa]=مشاهدهگر پروندۀ TNEF -GenericName[fi]=TNEF-tiedostonäytin -GenericName[fr]=Afficheur de fichiers TNEF -GenericName[fy]=TNEF-triemwerjefte -GenericName[ga]=Amharcán Comhad TNEF -GenericName[gl]=Visor de Ficheiros TNEF -GenericName[hu]=TNEF-fájlnézegető -GenericName[is]=TNEF skráarskoðari -GenericName[it]=Visualizzatore file TNEF -GenericName[ja]=TNEF ファイルビュー -GenericName[kk]=TNEF файлды қарау құралы -GenericName[km]=កម្មវិធីមើលឯកសារ TNEF -GenericName[lt]=TNEF bylų žiūryklė -GenericName[mk]=Прегледувач на TNEF-датотеки -GenericName[ms]=Pemapar Fail TNEF -GenericName[nb]=TNEF-filvisning -GenericName[nds]=TNEF-Dateikieker -GenericName[ne]=TNEF फाइल दर्शक -GenericName[nl]=TNEF-bestandsweergave -GenericName[nn]=TNEF filvisar -GenericName[pl]=Przeglądarka plików TNEF -GenericName[pt]=Visualizador de Ficheiros TNEF -GenericName[pt_BR]=Visualizador de Arquivos TNEF -GenericName[ru]=Просмотр файлов TNEF -GenericName[sk]=Prehliadač súborov TNEF -GenericName[sl]=Pregledovalnik datotek TNEF -GenericName[sr]=Приказивач TNEF фајлова -GenericName[sr@Latn]=Prikazivač TNEF fajlova -GenericName[sv]=TNEF-filvisning -GenericName[ta]=TNEF கோப்பு காட்சியாளன் -GenericName[tr]=TNEF Dosya Göstericisi -GenericName[uk]=Переглядач файлів TNEF -GenericName[zh_CN]=TNEF 文件查看器 -GenericName[zh_TW]=TNEF 檔案檢視器 + +Comment=A viewer/extractor for TNEF files + Exec=ktnef %i %m -caption "%c" Icon=ktnef Type=Application X-DocPath=ktnef/index.html -Comment=A viewer/extractor for TNEF files -Comment[af]='n Leeser en data onttrekker vir TNEF lêers -Comment[bg]=Програма за преглед и извличане на файлове TNEF -Comment[bs]=Preglednik/ekstraktor za TNEF datoteke -Comment[ca]=Un visor/extractor per a fitxers TNEF -Comment[cs]=Prohlížeč TNEF souborů -Comment[cy]=Gwelydd/echdynnydd i ffeiliau TNEF -Comment[da]=En fremviser/udpakker for TNEF-filer -Comment[de]=Betrachten und Extrahieren von TNEF-Dateien -Comment[el]=Ένας προβολέας/εξαγωγέας για αρχεία TNEF -Comment[es]=A visor/extractor para archivos TNEF -Comment[et]=TNEF-failide näitaja/ekstraktija -Comment[eu]=TNEF fitxategien ikustaile/erauzlea -Comment[fa]=یک مشاهدهگر/استخراجگر برای پروندههای TNEF -Comment[fi]=Näytin/purkaja TNEF-tiedostoille -Comment[fr]=Pour afficher / extraire des fichiers TNEF -Comment[fy]=In werjefteprogramma/útpakker foar TNEF-triemmen -Comment[gl]=Un visor/extractor para ficheiros TNEF -Comment[hi]=टीएनईएफ फ़ाइलों के लिए एक प्रदर्शक/एक्सट्रेक्टर -Comment[hr]=Prikazivač/izdvajač za TNEF datoteke -Comment[hu]=Nézegetőprogram TNEF-fájlokhoz -Comment[is]=Sýnir/lesari fyrir TNEF skrár -Comment[it]=Un visualizzatore/estrattore di file TNEF -Comment[ja]=TNEF ファイルのためのビューア/展開ツール -Comment[kk]=TNEF файдарды қарау/тарқату -Comment[km]=កម្មវិធីមើល និងស្រង់ឯកសារ TNEF -Comment[lt]=TNEF bylų žiūryklė - išpakuotojas -Comment[ms]=Pemapar/pengekstrak untuk fail TNEF -Comment[nb]=En utpakker/fremviser for TNEF-filer -Comment[nds]=TNEF-Dateien ankieken un Delen ruttrecken -Comment[ne]=TNEF फाइलका लागि दर्शक/निष्कासक -Comment[nl]=Een weergaveprogramma/uitpakker voor TNEF-bestanden -Comment[nn]=Ein framvisar/utpakkar for TNEF-filer -Comment[pl]=Przeglądarka/program wyciągający zawartość plików TNEF -Comment[pt]=Um visualizador/extractor de ficheiros TNEF -Comment[pt_BR]=Um visualizador/extrator para arquivos TNEF -Comment[ro]=Un vizualizor/extractor pentru fişiere TNEF -Comment[ru]=Просмотр и распаковка файлов TNEF -Comment[sk]=Prehliadač/extraktor pre TNEF súbory -Comment[sl]=Pregledovalnik/izvlečevalnik za datoteke TNEF -Comment[sr]=Приказивач/издвајач за TNEF фајлове -Comment[sr@Latn]=Prikazivač/izdvajač za TNEF fajlove -Comment[sv]=Visning och uppackning av TNEF-filer -Comment[ta]=TNEF கோப்புகளுக்கான காட்சியகம்/பிரித்தெடுப்பாளர் -Comment[tg]=Намоиш ва боз кардани файлҳои TNEF -Comment[tr]=TNEF dosyaları için gösterici/çıkarıcı -Comment[uk]=Переглядач/розпаковувач файлів TNEF -Comment[zh_CN]=TNEF 文件的查看/提取器 -Comment[zh_TW]=TNEF 檔案檢視器 Terminal=false MimeType=application/ms-tnef; Categories=Qt;TDE;Network;X-TDE-Office-PIM; diff --git a/ktnef/gui/ktnefmain.cpp b/ktnef/gui/ktnefmain.cpp index 35e6607d..3755fed0 100644 --- a/ktnef/gui/ktnefmain.cpp +++ b/ktnef/gui/ktnefmain.cpp @@ -85,19 +85,19 @@ KTNEFMain::~KTNEFMain() void KTNEFMain::setupActions() { // File menu - KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(openFile()), actionCollection()); - KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection()); + KStdAction::open(this, TQ_SLOT(openFile()), actionCollection()); + KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection()); // Action menu - new TDEAction(i18n("View"), TQString("viewmag"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewFile()), actionCollection(), "view_file"); - new TDEAction(i18n("View With..."), TQString("package_applications"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewFileAs()), actionCollection(), "view_file_as"); - new TDEAction(i18n("Extract"), 0, TQT_TQOBJECT(this), TQT_SLOT(extractFile()), actionCollection(), "extract_file"); - new TDEAction(i18n("Extract To..."), TQString("ktnef_extract_to"), 0, TQT_TQOBJECT(this), TQT_SLOT(extractFileTo()), actionCollection(), "extract_file_to"); - new TDEAction(i18n("Extract All To..."), TQString("ktnef_extract_all_to"), 0, TQT_TQOBJECT(this), TQT_SLOT(extractAllFiles()), actionCollection(), "extract_all_files"); - new TDEAction( i18n( "Message Properties" ), "help", 0, TQT_TQOBJECT(this), TQT_SLOT( slotShowMessageProperties() ), actionCollection(), "msg_properties" ); - new TDEAction(i18n("Properties"), TQString("contents"), 0, TQT_TQOBJECT(this), TQT_SLOT(propertiesFile()), actionCollection(), "properties_file"); - new TDEAction( i18n( "Show Message Text" ), "mail_generic", 0, TQT_TQOBJECT(this), TQT_SLOT( slotShowMessageText() ), actionCollection(), "msg_text" ); - new TDEAction( i18n( "Save Message Text As..." ), "document-save", 0, TQT_TQOBJECT(this), TQT_SLOT( slotSaveMessageText() ), actionCollection(), "msg_save" ); + new TDEAction(i18n("View"), TQString("viewmag"), 0, this, TQ_SLOT(viewFile()), actionCollection(), "view_file"); + new TDEAction(i18n("View With..."), TQString("package_applications"), 0, this, TQ_SLOT(viewFileAs()), actionCollection(), "view_file_as"); + new TDEAction(i18n("Extract"), 0, this, TQ_SLOT(extractFile()), actionCollection(), "extract_file"); + new TDEAction(i18n("Extract To..."), TQString("ktnef_extract_to"), 0, this, TQ_SLOT(extractFileTo()), actionCollection(), "extract_file_to"); + new TDEAction(i18n("Extract All To..."), TQString("ktnef_extract_all_to"), 0, this, TQ_SLOT(extractAllFiles()), actionCollection(), "extract_all_files"); + new TDEAction( i18n( "Message Properties" ), "help", 0, this, TQ_SLOT( slotShowMessageProperties() ), actionCollection(), "msg_properties" ); + new TDEAction(i18n("Properties"), TQString("contents"), 0, this, TQ_SLOT(propertiesFile()), actionCollection(), "properties_file"); + new TDEAction( i18n( "Show Message Text" ), "mail_generic", 0, this, TQ_SLOT( slotShowMessageText() ), actionCollection(), "msg_text" ); + new TDEAction( i18n( "Save Message Text As..." ), "document-save", 0, this, TQ_SLOT( slotSaveMessageText() ), actionCollection(), "msg_save" ); actionCollection()->action("view_file")->setEnabled(false); actionCollection()->action("view_file_as")->setEnabled(false); actionCollection()->action("extract_file")->setEnabled(false); @@ -106,12 +106,12 @@ void KTNEFMain::setupActions() actionCollection()->action("properties_file")->setEnabled(false); // Option menu - new TDEAction(i18n("Default Folder..."), TQString("folder_open"), 0, TQT_TQOBJECT(this), TQT_SLOT(optionDefaultDir()), actionCollection(), "options_default_dir"); + new TDEAction(i18n("Default Folder..."), TQString("folder_open"), 0, this, TQ_SLOT(optionDefaultDir()), actionCollection(), "options_default_dir"); createStandardStatusBarAction(); setStandardToolBarMenuEnabled(true); - KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotEditToolbars()), actionCollection()); - KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( slotConfigureKeys() ), actionCollection() ); + KStdAction::configureToolbars(this, TQ_SLOT(slotEditToolbars()), actionCollection()); + KStdAction::keyBindings( this, TQ_SLOT( slotConfigureKeys() ), actionCollection() ); createGUI(); } @@ -135,10 +135,10 @@ void KTNEFMain::setupTNEF() parser_ = new KTNEFParser; setCentralWidget(view_); - connect(view_, TQT_SIGNAL(selectionChanged()), TQT_SLOT(viewSelectionChanged())); - connect(view_, TQT_SIGNAL(rightButtonPressed(TQListViewItem*,const TQPoint&,int)), TQT_SLOT(viewRightButtonPressed(TQListViewItem*,const TQPoint&,int))); - connect(view_, TQT_SIGNAL(doubleClicked(TQListViewItem*)), TQT_SLOT(viewDoubleClicked(TQListViewItem*))); - connect(view_, TQT_SIGNAL(dragRequested(const TQValueList<KTNEFAttach*>&)), TQT_SLOT(viewDragRequested(const TQValueList<KTNEFAttach*>&))); + connect(view_, TQ_SIGNAL(selectionChanged()), TQ_SLOT(viewSelectionChanged())); + connect(view_, TQ_SIGNAL(rightButtonPressed(TQListViewItem*,const TQPoint&,int)), TQ_SLOT(viewRightButtonPressed(TQListViewItem*,const TQPoint&,int))); + connect(view_, TQ_SIGNAL(doubleClicked(TQListViewItem*)), TQ_SLOT(viewDoubleClicked(TQListViewItem*))); + connect(view_, TQ_SIGNAL(dragRequested(const TQValueList<KTNEFAttach*>&)), TQ_SLOT(viewDragRequested(const TQValueList<KTNEFAttach*>&))); } void KTNEFMain::loadFile(const TQString& filename) @@ -321,16 +321,16 @@ void KTNEFMain::viewRightButtonPressed(TQListViewItem*, const TQPoint& p, int) { if (list->count() == 1u) { - m.insertItem(SmallIcon("viewmag"), i18n("View"), this, TQT_SLOT(viewFile())); - m.insertItem(SmallIcon("package_applications"), i18n("View With..."), this, TQT_SLOT(viewFileAs())); + m.insertItem(SmallIcon("viewmag"), i18n("View"), this, TQ_SLOT(viewFile())); + m.insertItem(SmallIcon("package_applications"), i18n("View With..."), this, TQ_SLOT(viewFileAs())); m.insertSeparator(); } - m.insertItem(i18n("Extract"), this, TQT_SLOT(extractFile())); - m.insertItem(SmallIcon("ktnef_extract_to"), i18n("Extract To..."), this, TQT_SLOT(extractFileTo())); + m.insertItem(i18n("Extract"), this, TQ_SLOT(extractFile())); + m.insertItem(SmallIcon("ktnef_extract_to"), i18n("Extract To..."), this, TQ_SLOT(extractFileTo())); if (list->count() == 1u) { m.insertSeparator(); - m.insertItem(SmallIcon("contents"), i18n("Properties"), this, TQT_SLOT(propertiesFile())); + m.insertItem(SmallIcon("contents"), i18n("Properties"), this, TQ_SLOT(propertiesFile())); } } else if ( list->count() == 0 ) @@ -360,7 +360,7 @@ void KTNEFMain::slotEditToolbars() { saveMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") ); KEditToolbar dlg(actionCollection()); - connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() )); + connect(&dlg, TQ_SIGNAL( newToolbarConfig() ), this, TQ_SLOT( slotNewToolbarConfig() )); dlg.exec(); } diff --git a/ktnef/gui/ktnefmain.h b/ktnef/gui/ktnefmain.h index 491d6aa7..7d6a984a 100644 --- a/ktnef/gui/ktnefmain.h +++ b/ktnef/gui/ktnefmain.h @@ -28,7 +28,7 @@ class KTNEFAttach; class KTNEFMain : public TDEMainWindow { - Q_OBJECT + TQ_OBJECT public: diff --git a/ktnef/gui/ktnefview.cpp b/ktnef/gui/ktnefview.cpp index a28a7d51..058a11c2 100644 --- a/ktnef/gui/ktnefview.cpp +++ b/ktnef/gui/ktnefview.cpp @@ -75,7 +75,7 @@ KTNEFView::KTNEFView(TQWidget *parent, const char *name) setSelectionMode(TQListView::Extended); setHScrollBarMode(TQScrollView::AlwaysOff); setVScrollBarMode(TQScrollView::AlwaysOn); - TQTimer::singleShot( 0, this, TQT_SLOT(adjustColumnWidth()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(adjustColumnWidth()) ); } KTNEFView::~KTNEFView() diff --git a/ktnef/gui/ktnefview.h b/ktnef/gui/ktnefview.h index 0ddec104..60321bf4 100644 --- a/ktnef/gui/ktnefview.h +++ b/ktnef/gui/ktnefview.h @@ -20,13 +20,13 @@ #include <tdelistview.h> #include <tqptrlist.h> -#include <tdepimmacros.h> +#include <kdemacros.h> class KTNEFAttach; class KDE_EXPORT KTNEFView : public TDEListView { - Q_OBJECT + TQ_OBJECT public: diff --git a/ktnef/gui/messagepropertydialog.h b/ktnef/gui/messagepropertydialog.h index 98ddb374..44ee6c64 100644 --- a/ktnef/gui/messagepropertydialog.h +++ b/ktnef/gui/messagepropertydialog.h @@ -25,7 +25,7 @@ class KTNEFMessage; class MessagePropertyDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT public: MessagePropertyDialog( TQWidget *parent, KTNEFMessage *msg ); diff --git a/ktnef/gui/ms-tnef.desktop b/ktnef/gui/ms-tnef.desktop index 508f5ff9..affaf7e6 100644 --- a/ktnef/gui/ms-tnef.desktop +++ b/ktnef/gui/ms-tnef.desktop @@ -3,58 +3,5 @@ Type=MimeType MimeType=application/ms-tnef Icon=application-x-tar Patterns=*.tnf; + Comment=TNEF File -Comment[af]=TNEF lêer -Comment[be]=TNEF файл -Comment[bg]=Файл TNEF -Comment[br]=Restr TNEF -Comment[bs]=TNEF datoteka -Comment[ca]=Fitxer TNEF -Comment[cs]=TNEF soubor -Comment[cy]=Ffeil TNEF -Comment[de]=TNEF-Datei -Comment[el]=Αρχείο TNEF -Comment[eo]=TNEF-dosiero -Comment[es]=Archivo TNEF -Comment[et]=TNEF-fail -Comment[eu]=TNEF fitxategia -Comment[fa]=پروندۀ TNEF -Comment[fi]=TNEF-tiedosto -Comment[fr]=Fichier TNEF -Comment[fy]=TNEF-triem -Comment[ga]=Comhad TNEF -Comment[gl]=Ficheiro TNEF -Comment[he]=קובץ TNEF -Comment[hi]=टीएनईएफ फ़ाइल -Comment[hr]=TNEF datoteka -Comment[hu]=TNEF-fájl -Comment[is]=TNEF skrá -Comment[it]=File TNEF -Comment[ja]=TNEF ファイル -Comment[kk]=TNEF файлы -Comment[km]=ឯកសារ TNEF -Comment[lt]=TNEF byla -Comment[mk]=TNEF-датотека -Comment[ms]=Fail TNEF -Comment[nb]=TNEF-fil -Comment[nds]=TNEF-Datei -Comment[ne]=TNEF फाइल -Comment[nl]=TNEF-bestand -Comment[nn]=TNEF-fil -Comment[pl]=Plik TNEF -Comment[pt]=Ficheiro TNEF -Comment[pt_BR]=Arquivo TNEF -Comment[ro]=Fişier TNEF -Comment[ru]=Файл TNEF -Comment[sk]=TNEF súbor -Comment[sl]=Datoteka TNEF -Comment[sr]=TNEF фајл -Comment[sr@Latn]=TNEF fajl -Comment[sv]=TNEF-fil -Comment[ta]=TNEF கோப்பு -Comment[tg]=Файли TNEF -Comment[tr]=TNEF Dosyası -Comment[uk]=Файл TNEF -Comment[uz]=TNEF-файли -Comment[zh_CN]=TNEF 文件 -Comment[zh_TW]=TNEF 檔案 diff --git a/ktnef/gui/qwmf.cpp b/ktnef/gui/qwmf.cpp index e4baf41d..325cccc7 100644 --- a/ktnef/gui/qwmf.cpp +++ b/ktnef/gui/qwmf.cpp @@ -352,7 +352,7 @@ bool TQWinMetaFile::paint( const TQPaintDevice* aTarget, bool absolute ) mWinding = false; mAbsoluteCoord = absolute; - mPainter.begin( TQT_TQPAINTDEVICE(const_cast<TQPaintDevice*>(aTarget)) ); + mPainter.begin( const_cast<TQPaintDevice*>(aTarget) ); if ( TQWMF_DEBUG ) { kdDebug() << "Bounding box : " << mBBox.left() << " " << mBBox.top() << " " << mBBox.right() << " " << mBBox.bottom() << endl; @@ -624,8 +624,8 @@ void TQWinMetaFile::setBkColor( long, short* parm ) //----------------------------------------------------------------------------- void TQWinMetaFile::setBkMode( long, short* parm ) { - if ( parm[ 0 ]==1 ) mPainter.setBackgroundMode( Qt::TransparentMode ); - else mPainter.setBackgroundMode( Qt::OpaqueMode ); + if ( parm[ 0 ]==1 ) mPainter.setBackgroundMode( TQt::TransparentMode ); + else mPainter.setBackgroundMode( TQt::OpaqueMode ); } @@ -929,26 +929,26 @@ void TQWinMetaFile::createEmptyObject( long, short* ) //----------------------------------------------------------------------------- void TQWinMetaFile::createBrushIndirect( long, short* parm ) { - static Qt::BrushStyle hatchedStyleTab[] = + static TQt::BrushStyle hatchedStyleTab[] = { - Qt::HorPattern, - Qt::FDiagPattern, - Qt::BDiagPattern, - Qt::CrossPattern, - Qt::DiagCrossPattern + TQt::HorPattern, + TQt::FDiagPattern, + TQt::BDiagPattern, + TQt::CrossPattern, + TQt::DiagCrossPattern }; - static Qt::BrushStyle styleTab[] = - { Qt::SolidPattern, - Qt::NoBrush, - Qt::FDiagPattern, /* hatched */ - Qt::Dense4Pattern, /* should be custom bitmap pattern */ - Qt::HorPattern, /* should be BS_INDEXED (?) */ - Qt::VerPattern, /* should be device-independent bitmap */ - Qt::Dense6Pattern, /* should be device-independent packed-bitmap */ - Qt::Dense2Pattern, /* should be BS_PATTERN8x8 */ - Qt::Dense3Pattern /* should be device-independent BS_DIBPATTERN8x8 */ + static TQt::BrushStyle styleTab[] = + { TQt::SolidPattern, + TQt::NoBrush, + TQt::FDiagPattern, /* hatched */ + TQt::Dense4Pattern, /* should be custom bitmap pattern */ + TQt::HorPattern, /* should be BS_INDEXED (?) */ + TQt::VerPattern, /* should be device-independent bitmap */ + TQt::Dense6Pattern, /* should be device-independent packed-bitmap */ + TQt::Dense2Pattern, /* should be BS_PATTERN8x8 */ + TQt::Dense3Pattern /* should be device-independent BS_DIBPATTERN8x8 */ }; - Qt::BrushStyle style; + TQt::BrushStyle style; short arg; WinObjBrushHandle* handle = new WinObjBrushHandle; addHandle( handle ); @@ -961,7 +961,7 @@ void TQWinMetaFile::createBrushIndirect( long, short* parm ) else { kdDebug() << "TQWinMetaFile::createBrushIndirect: invalid hatched brush " << arg << endl; - style = Qt::SolidPattern; + style = TQt::SolidPattern; } } else if ( arg>=0 && arg<9 ) @@ -969,7 +969,7 @@ void TQWinMetaFile::createBrushIndirect( long, short* parm ) else { kdDebug() << "TQWinMetaFile::createBrushIndirect: invalid brush " << arg << endl; - style = Qt::SolidPattern; + style = TQt::SolidPattern; } handle->brush.setStyle( style ); handle->brush.setColor( color( parm+1 ) ); @@ -979,10 +979,10 @@ void TQWinMetaFile::createBrushIndirect( long, short* parm ) //----------------------------------------------------------------------------- void TQWinMetaFile::createPenIndirect( long, short* parm ) { - static Qt::PenStyle styleTab[] = - { Qt::SolidLine, Qt::DashLine, Qt::DotLine, Qt::DashDotLine, Qt::DashDotDotLine, - Qt::NoPen, Qt::SolidLine }; - Qt::PenStyle style; + static TQt::PenStyle styleTab[] = + { TQt::SolidLine, TQt::DashLine, TQt::DotLine, TQt::DashDotLine, TQt::DashDotDotLine, + TQt::NoPen, TQt::SolidLine }; + TQt::PenStyle style; WinObjPenHandle* handle = new WinObjPenHandle; addHandle( handle ); @@ -990,12 +990,12 @@ void TQWinMetaFile::createPenIndirect( long, short* parm ) else { kdDebug() << "TQWinMetaFile::createPenIndirect: invalid pen " << parm[ 0 ] << endl; - style = Qt::SolidLine; + style = TQt::SolidLine; } handle->pen.setStyle( style ); handle->pen.setColor( color( parm+3 ) ); - handle->pen.setCapStyle( Qt::RoundCap ); + handle->pen.setCapStyle( TQt::RoundCap ); //int width = 0; // TODO : width of pen proportional to device context width diff --git a/ktnef/ktnef/ktnefattach.h b/ktnef/ktnef/ktnefattach.h index 280c862f..24a14c2d 100644 --- a/ktnef/ktnef/ktnefattach.h +++ b/ktnef/ktnef/ktnefattach.h @@ -22,7 +22,7 @@ #include <tqmap.h> #include <tqvariant.h> #include <ktnef/ktnefpropertyset.h> -#include <tdepimmacros.h> +#include <kdemacros.h> class KTNEFProperty; diff --git a/ktnef/ktnef/ktnefmessage.h b/ktnef/ktnef/ktnefmessage.h index afc372e2..48d397c4 100644 --- a/ktnef/ktnef/ktnefmessage.h +++ b/ktnef/ktnef/ktnefmessage.h @@ -20,7 +20,7 @@ #include <ktnef/ktnefpropertyset.h> #include <tqptrlist.h> -#include <tdepimmacros.h> +#include <kdemacros.h> class KTNEFAttach; diff --git a/ktnef/ktnef/ktnefparser.h b/ktnef/ktnef/ktnefparser.h index fc93391c..ea098dd6 100644 --- a/ktnef/ktnef/ktnefparser.h +++ b/ktnef/ktnef/ktnefparser.h @@ -21,7 +21,7 @@ #include <tqptrlist.h> #include <tqstring.h> #include <tqmap.h> -#include <tdepimmacros.h> +#include <kdemacros.h> class KTNEFAttach; class KTNEFMessage; diff --git a/ktnef/ktnef/ktnefproperty.h b/ktnef/ktnef/ktnefproperty.h index 7b9d9d20..c0af8d94 100644 --- a/ktnef/ktnef/ktnefproperty.h +++ b/ktnef/ktnef/ktnefproperty.h @@ -20,7 +20,7 @@ #include <tqvariant.h> #include <tqstring.h> -#include <tdepimmacros.h> +#include <kdemacros.h> class KDE_EXPORT KTNEFProperty { diff --git a/ktnef/ktnef/ktnefpropertyset.h b/ktnef/ktnef/ktnefpropertyset.h index 44166e31..c35aa0e3 100644 --- a/ktnef/ktnef/ktnefpropertyset.h +++ b/ktnef/ktnef/ktnefpropertyset.h @@ -20,7 +20,7 @@ #include <tqmap.h> #include <tqvariant.h> -#include <tdepimmacros.h> +#include <kdemacros.h> class KTNEFProperty; diff --git a/ktnef/lib/ktnefmessage.cpp b/ktnef/lib/ktnefmessage.cpp index 27f98606..320ce411 100644 --- a/ktnef/lib/ktnefmessage.cpp +++ b/ktnef/lib/ktnefmessage.cpp @@ -76,7 +76,7 @@ TQString KTNEFMessage::rtfString() TQByteArray rtf; TQBuffer input( prop.asByteArray() ), output( rtf ); if ( input.open( IO_ReadOnly ) && output.open( IO_WriteOnly ) ) - lzfu_decompress( &TQT_TQIODEVICE_OBJECT(input), &TQT_TQIODEVICE_OBJECT(output) ); + lzfu_decompress( &input, &output ); return TQString( rtf ); } } diff --git a/ktnef/lib/ktnefparser.cpp b/ktnef/lib/ktnefparser.cpp index 749cb948..26bc157f 100644 --- a/ktnef/lib/ktnefparser.cpp +++ b/ktnef/lib/ktnefparser.cpp @@ -447,7 +447,7 @@ bool KTNEFParser::openFile(const TQString& filename) deleteDevice(); delete d->message_; d->message_ = new KTNEFMessage(); - d->device_ = TQT_TQIODEVICE(new TQFile( filename )); + d->device_ = new TQFile( filename ); d->deleteDevice_ = true; return parseDevice(); } |