diff options
Diffstat (limited to 'kfloppy')
-rw-r--r-- | kfloppy/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kfloppy/CMakeLists.txt | 13 | ||||
-rw-r--r-- | kfloppy/KFloppy.desktop | 69 | ||||
-rw-r--r-- | kfloppy/floppy.cpp | 30 | ||||
-rw-r--r-- | kfloppy/floppy.h | 2 | ||||
-rw-r--r-- | kfloppy/floppy_format.desktop | 44 | ||||
-rw-r--r-- | kfloppy/format.cpp | 22 | ||||
-rw-r--r-- | kfloppy/format.h | 6 | ||||
-rw-r--r-- | kfloppy/zip.cpp | 18 | ||||
-rw-r--r-- | kfloppy/zip.h | 2 |
10 files changed, 53 insertions, 159 deletions
diff --git a/kfloppy/CMakeL10n.txt b/kfloppy/CMakeL10n.txt index 332898e..bd54920 100644 --- a/kfloppy/CMakeL10n.txt +++ b/kfloppy/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "kfloppy" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kfloppy-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kfloppy/CMakeLists.txt b/kfloppy/CMakeLists.txt index d5ed6bc..f9c0209 100644 --- a/kfloppy/CMakeLists.txt +++ b/kfloppy/CMakeLists.txt @@ -38,12 +38,13 @@ tde_install_icons( kfloppy) ##### other data ################################ -install( FILES KFloppy.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} +tde_create_translated_desktop( + SOURCE KFloppy.desktop + PO_DIR kfloppy-desktops ) -install( FILES floppy_format.desktop - DESTINATION - ${DATA_INSTALL_DIR}/konqueror/servicemenus +tde_create_translated_desktop( + SOURCE floppy_format.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus + PO_DIR kfloppy-desktops ) - diff --git a/kfloppy/KFloppy.desktop b/kfloppy/KFloppy.desktop index 28789d2..50d3fee 100644 --- a/kfloppy/KFloppy.desktop +++ b/kfloppy/KFloppy.desktop @@ -1,76 +1,7 @@ [Desktop Entry] Name=KFloppy -Name[hi]=केफ़्लॉपी GenericName=Floppy Formatter -GenericName[af]=Sagteskyf Formateerder -GenericName[ar]=مهئ الأقراص المرنة -GenericName[az]=Disket Şəkilləndirici -GenericName[bg]=Форматиране на дискети -GenericName[br]=Furmader pladennig -GenericName[bs]=Formatiranje disketa -GenericName[ca]=Formatador de disquet -GenericName[cs]=Formátovač disket -GenericName[cy]=Fformatio Disg Meddal -GenericName[da]=Disketteformatering -GenericName[de]=Diskettenformatierung -GenericName[el]=Εργαλείο διαμόρφωσης δισκέτας -GenericName[eo]=Formatilo por disketoj -GenericName[es]=Formateador de disquetes -GenericName[et]=Diskettide vormindamise utiliit -GenericName[eu]=Diskete Eratzailea -GenericName[fa]=قالببندیکنندۀ فلاپی -GenericName[fi]=Levykkeiden alustusohjelma -GenericName[fr]=Outil de formatage de disquette -GenericName[ga]=Uirlis Fhormáidithe Dioscaí Boga -GenericName[gl]=Formatador de Disquetes -GenericName[he]=מאתחל תקליטונים -GenericName[hi]=फ़्लॉपी फार्मेटर -GenericName[hr]=Formatiranje disketa -GenericName[hu]=Floppy-formázó -GenericName[id]=Pemformat disket -GenericName[is]=Tól til að forsníða disklinga -GenericName[it]=Formattatore di dischetti -GenericName[ja]=フロッピーをフォーマット -GenericName[ka]=დისკეტის დამფორმატებელი -GenericName[kk]=Иілгіш дискін пішімдеу -GenericName[km]=កម្មវិធីធ្វើទ្រង់ទ្រាយថាស់ទន់ -GenericName[ko]=플로피 디스크를 포맷해주는 도구 -GenericName[lt]=Diskelio formatavimas -GenericName[lv]=Diskešu Formatētājs -GenericName[mk]=Форматирање на дискети -GenericName[ms]=Pengformat Cakera Liut -GenericName[mt]=Għodda biex tifformattja floppies -GenericName[nb]=Diskettformaterer -GenericName[nds]=Diskettformaterer -GenericName[ne]=फ्लपी ढाँचाकर्ता -GenericName[nl]=Diskettes formatteren -GenericName[nn]=Formaterer diskettar -GenericName[pa]=ਫਲਾਪੀ ਫਾਰਮਿਟਰ -GenericName[pl]=Program formatujący dyskietki -GenericName[pt]=Formatação de Disquetes -GenericName[pt_BR]=Formatador de disquetes -GenericName[ro]=Formator floppy-disc-uri -GenericName[ru]=Форматирование дискет -GenericName[sk]=Formátovanie diskiet -GenericName[sl]=Formatiranje disket -GenericName[sr]=Форматирање дискета -GenericName[sr@Latn]=Formatiranje disketa -GenericName[sv]=Formatera disketter -GenericName[ta]=நெகிழ்வட்டு வடிவமைப்பான் -GenericName[tg]=Шаклбанднамоии Диски Нарм -GenericName[th]=เครื่องมือฟอร์แมตแผ่นฟลอปปี้้ -GenericName[tr]=Disket Biçimlendirici -GenericName[uk]=Відформатувати дискету -GenericName[uz]=Disketni formatlagich -GenericName[uz@cyrillic]=Дискетни форматлагич -GenericName[ven]=Muvhekanyi wa Floppy -GenericName[vi]=Trình định dạng đĩa -GenericName[wa]=Usteye po-z abwesner des plaketes -GenericName[xh]=Floppy formata -GenericName[zh_CN]=软盘格式化程序 -GenericName[zh_TW]=軟碟格式化程式 -GenericName[zu]=Umakhi we-floppy X-DocPath=kfloppy/index.html Exec=kfloppy -caption "%c" %i %m diff --git a/kfloppy/floppy.cpp b/kfloppy/floppy.cpp index 91593a6..e7d005a 100644 --- a/kfloppy/floppy.cpp +++ b/kfloppy/floppy.cpp @@ -184,7 +184,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) v1->addSpacing( 10 ); - buttongroup = new TQButtonGroup( 3, Qt::Vertical, i18n("&Formatting"), this, "ButtonGroup_1" ); + buttongroup = new TQButtonGroup( 3, TQt::Vertical, i18n("&Formatting"), this, "ButtonGroup_1" ); quick = new TQRadioButton( i18n( "Q&uick format" ), buttongroup, "RadioButton_2" ); @@ -255,7 +255,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) " Due to a limitation of MS-DOS the label can only be 11 characters long." " Please note that Minix does not support labels, whatever you enter here.</qt>") ); - connect(labellabel,TQT_SIGNAL(toggled(bool)),lineedit,TQT_SLOT(setEnabled(bool))); + connect(labellabel,TQ_SIGNAL(toggled(bool)),lineedit,TQ_SLOT(setEnabled(bool))); TQVBoxLayout* v3 = new TQVBoxLayout( h1 ); @@ -264,7 +264,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) formatbutton->setAutoRepeat( false ); if (!numFileSystems) formatbutton->setDisabled(false); // We have not any helper program for creating any file system - connect(formatbutton,TQT_SIGNAL(clicked()),this,TQT_SLOT(format())); + connect(formatbutton,TQ_SIGNAL(clicked()),this,TQ_SLOT(format())); v3->addWidget( formatbutton ); TQWhatsThis::add( formatbutton, i18n("<qt>Click here to start formatting.</qt>") ); @@ -281,7 +281,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) quitbutton = new KPushButton( KStdGuiItem::quit(), this ); quitbutton->setAutoRepeat( false ); - connect(quitbutton,TQT_SIGNAL(clicked()),this,TQT_SLOT(quit())); + connect(quitbutton,TQ_SIGNAL(clicked()),this,TQ_SLOT(quit())); v3->addWidget( quitbutton ); ml->addSpacing( 10 ); @@ -536,12 +536,12 @@ void FloppyData::format(){ } if (formatActions) delete formatActions; - formatActions = new KFActionQueue(TQT_TQOBJECT(this)); + formatActions = new KFActionQueue(this); - connect(formatActions,TQT_SIGNAL(status(const TQString &,int)), - this,TQT_SLOT(formatStatus(const TQString &,int))); - connect(formatActions,TQT_SIGNAL(done(KFAction *,bool)), - this,TQT_SLOT(reset())); + connect(formatActions,TQ_SIGNAL(status(const TQString &,int)), + this,TQ_SLOT(formatStatus(const TQString &,int))); + connect(formatActions,TQ_SIGNAL(done(KFAction *,bool)), + this,TQ_SLOT(reset())); if ( quick->isChecked()) { @@ -550,7 +550,7 @@ void FloppyData::format(){ } else if ( zerooutformat->isChecked() ) { - DDZeroOut* f = new DDZeroOut( TQT_TQOBJECT(this) ); + DDZeroOut* f = new DDZeroOut( this ); if ( userDevice ) { f->configureDevice( currentComboBoxDevice ); @@ -569,7 +569,7 @@ void FloppyData::format(){ } else { - FDFormat *f = new FDFormat(TQT_TQOBJECT(this)); + FDFormat *f = new FDFormat(this); f->configureDevice(drive,blocks); f->configure(verifylabel->isChecked()); formatActions->queue(f); @@ -577,7 +577,7 @@ void FloppyData::format(){ if ( filesystemComboBox->currentText() == i18n("DOS") ) { - FATFilesystem *f = new FATFilesystem(TQT_TQOBJECT(this)); + FATFilesystem *f = new FATFilesystem(this); f->configure(verifylabel->isChecked(), labellabel->isChecked(), lineedit->text()); @@ -594,7 +594,7 @@ void FloppyData::format(){ else if ( filesystemComboBox->currentText() == i18n("ext2") ) { - Ext2Filesystem *f = new Ext2Filesystem(TQT_TQOBJECT(this)); + Ext2Filesystem *f = new Ext2Filesystem(this); f->configure(verifylabel->isChecked(), labellabel->isChecked(), lineedit->text()); @@ -612,7 +612,7 @@ void FloppyData::format(){ #ifdef ANY_BSD else if ( filesystemComboBox->currentText() == i18n("UFS") ) { - FloppyAction *f = new UFSFilesystem(TQT_TQOBJECT(this)); + FloppyAction *f = new UFSFilesystem(this); f->configureDevice(drive,blocks); formatActions->queue(f); } @@ -621,7 +621,7 @@ void FloppyData::format(){ #ifdef ANY_LINUX else if ( filesystemComboBox->currentText() == i18n("Minix") ) { - MinixFilesystem *f = new MinixFilesystem(TQT_TQOBJECT(this)); + MinixFilesystem *f = new MinixFilesystem(this); f->configure(verifylabel->isChecked(), labellabel->isChecked(), lineedit->text()); diff --git a/kfloppy/floppy.h b/kfloppy/floppy.h index 240181c..901494f 100644 --- a/kfloppy/floppy.h +++ b/kfloppy/floppy.h @@ -43,7 +43,7 @@ class KFActionQueue; class FloppyData : public KDialog { - Q_OBJECT + TQ_OBJECT public: diff --git a/kfloppy/floppy_format.desktop b/kfloppy/floppy_format.desktop index 847c6ca..01be639 100644 --- a/kfloppy/floppy_format.desktop +++ b/kfloppy/floppy_format.desktop @@ -2,50 +2,6 @@ Exec=kfloppy %u Icon=kfloppy Name=Format -Name[ar]=تهيئة -Name[bg]=Форматиране -Name[br]=Furmadiñ -Name[ca]=Dona format -Name[cs]=Formátovat -Name[cy]=Fformat -Name[de]=Formatieren -Name[el]=Διαμόρφωση -Name[eo]=Formato -Name[es]=Formatear -Name[et]=Vorminda -Name[fa]=قالببندی -Name[fr]=Formater -Name[ga]=Formáid -Name[he]=פורמט -Name[hu]=Formázás -Name[is]=Forsníða -Name[it]=Formatta -Name[ja]=フォーマット -Name[ka]=ფორმატი -Name[kk]=Дискетаны пішімдеу -Name[km]=ធ្វើទ្រង់ទ្រាយ -Name[lt]=Formatas -Name[nds]=Formateren -Name[ne]=ढाँचा -Name[nl]=Formatteren -Name[nn]=Formater -Name[pa]=ਫਾਰਮਿਟ -Name[pl]=Formatuj -Name[pt]=Formatar -Name[pt_BR]=Formatar -Name[ru]=Форматирование дискет -Name[rw]=Imiterere -Name[sk]=Formátovanie -Name[sl]=Formatiraj -Name[sr]=Форматирај -Name[sr@Latn]=Formatiraj -Name[tr]=Biçimlendir -Name[uk]=Форматування -Name[uz]=Formatlash -Name[uz@cyrillic]=Форматлаш -Name[wa]=Abwesner -Name[zh_CN]=格式化 -Name[zh_TW]=格式化 [Desktop Entry] Actions=Format; diff --git a/kfloppy/format.cpp b/kfloppy/format.cpp index 5c3729c..daa74ed 100644 --- a/kfloppy/format.cpp +++ b/kfloppy/format.cpp @@ -146,12 +146,12 @@ void KFActionQueue::queue(KFAction *p) else { kdDebug(KFAREA) << "Running action " << next->name() << endl; - TQObject::connect(next,TQT_SIGNAL(done(KFAction *,bool)), - this,TQT_SLOT(actionDone(KFAction *,bool))); + TQObject::connect(next,TQ_SIGNAL(done(KFAction *,bool)), + this,TQ_SLOT(actionDone(KFAction *,bool))); // Propagate signals - TQObject::connect(next,TQT_SIGNAL(status(const TQString &,int)), - this,TQT_SIGNAL(status(const TQString &,int))); - TQTimer::singleShot(0,next,TQT_SLOT(exec())); + TQObject::connect(next,TQ_SIGNAL(status(const TQString &,int)), + this,TQ_SIGNAL(status(const TQString &,int))); + TQTimer::singleShot(0,next,TQ_SLOT(exec())); } } @@ -370,12 +370,12 @@ bool FloppyAction::startProcess() { DEBUGSETUP; - connect(theProcess,TQT_SIGNAL(processExited(TDEProcess *)), - this,TQT_SLOT(processDone(TDEProcess *))); - connect(theProcess,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)), - this,TQT_SLOT(processStdOut(TDEProcess *,char *,int))); - connect(theProcess,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)), - this,TQT_SLOT(processStdErr(TDEProcess *,char *,int))); + connect(theProcess,TQ_SIGNAL(processExited(TDEProcess *)), + this,TQ_SLOT(processDone(TDEProcess *))); + connect(theProcess,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)), + this,TQ_SLOT(processStdOut(TDEProcess *,char *,int))); + connect(theProcess,TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)), + this,TQ_SLOT(processStdErr(TDEProcess *,char *,int))); theProcess->setEnvironment( "LC_ALL", "C" ); // We need the untranslated output of the tool return theProcess->start(TDEProcess::NotifyOnExit, diff --git a/kfloppy/format.h b/kfloppy/format.h index 2da577c..c0caa15 100644 --- a/kfloppy/format.h +++ b/kfloppy/format.h @@ -65,7 +65,7 @@ */ class KFAction : public TQObject { -Q_OBJECT +TQ_OBJECT public: @@ -115,7 +115,7 @@ signals: */ class KFActionQueue : public KFAction { -Q_OBJECT +TQ_OBJECT public: @@ -175,7 +175,7 @@ class TDEProcess; class FloppyAction : public KFAction { -Q_OBJECT +TQ_OBJECT public: diff --git a/kfloppy/zip.cpp b/kfloppy/zip.cpp index a35a715..695d8cd 100644 --- a/kfloppy/zip.cpp +++ b/kfloppy/zip.cpp @@ -143,14 +143,14 @@ void ZipFormat::quit() if (statusTimer) delete statusTimer; statusTimer = new TQTimer(this); - connect(p,TQT_SIGNAL(processExited(TDEProcess *)), - this,TQT_SLOT(transition())); - connect(p,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)), - this,TQT_SLOT(processResult(TDEProcess *,char *,int))); - connect(p,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)), - this,TQT_SLOT(processResult(TDEProcess *,char *,int))); - connect(statusTimer,TQT_SIGNAL(timeout()), - this,TQT_SLOT(statusRequest())); + connect(p,TQ_SIGNAL(processExited(TDEProcess *)), + this,TQ_SLOT(transition())); + connect(p,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)), + this,TQ_SLOT(processResult(TDEProcess *,char *,int))); + connect(p,TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)), + this,TQ_SLOT(processResult(TDEProcess *,char *,int))); + connect(statusTimer,TQ_SIGNAL(timeout()), + this,TQ_SLOT(statusRequest())); transition(); } @@ -174,7 +174,7 @@ void ZipFormat::transition() // No point in making a dizzy display of it. statusTimer->start(10000); TQTimer::singleShot(1000,this, - TQT_SLOT(statusRequest())); + TQ_SLOT(statusRequest())); totalBlocks=12288; // 196608 * 512b = 12288 * 8192b ; } else diff --git a/kfloppy/zip.h b/kfloppy/zip.h index cb02d18..2bf2830 100644 --- a/kfloppy/zip.h +++ b/kfloppy/zip.h @@ -46,7 +46,7 @@ class TDEConfig; class ZipFormat : public DiskFormat { -Q_OBJECT +TQ_OBJECT public: |