diff options
Diffstat (limited to 'kstars/kstars/tools/modcalceclipticcoords.cpp')
-rw-r--r-- | kstars/kstars/tools/modcalceclipticcoords.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kstars/kstars/tools/modcalceclipticcoords.cpp b/kstars/kstars/tools/modcalceclipticcoords.cpp index 36a7e75b..c2873aa1 100644 --- a/kstars/kstars/tools/modcalceclipticcoords.cpp +++ b/kstars/kstars/tools/modcalceclipticcoords.cpp @@ -23,11 +23,11 @@ #include "ksutils.h" #include "ksnumbers.h" #include "kstarsdatetime.h" -#include <qradiobutton.h> -#include <qstring.h> -#include <qcheckbox.h> -#include <qradiobutton.h> -#include <qtextstream.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqcheckbox.h> +#include <tqradiobutton.h> +#include <tqtextstream.h> #include <klocale.h> #include <klineedit.h> #include <kapplication.h> @@ -35,7 +35,7 @@ #include <kmessagebox.h> -modCalcEclCoords::modCalcEclCoords(QWidget *parentSplit, const char *name) : modCalcEclCoordsDlg(parentSplit,name) { +modCalcEclCoords::modCalcEclCoords(TQWidget *parentSplit, const char *name) : modCalcEclCoordsDlg(parentSplit,name) { equRadio->setChecked(TRUE); raBox->setDegType(FALSE); @@ -59,7 +59,7 @@ void modCalcEclCoords::getEquCoords (void) { epoch = getEpoch( epochName->text() ); } -double modCalcEclCoords::getEpoch (QString eName) { +double modCalcEclCoords::getEpoch (TQString eName) { double epoch = eName.toDouble(); @@ -201,41 +201,41 @@ void modCalcEclCoords::slotEclLongCheckedBatch(){ } void modCalcEclCoords::slotInputFile() { - QString inputFileName; + TQString inputFileName; inputFileName = KFileDialog::getOpenFileName( ); InputLineEditBatch->setText( inputFileName ); } void modCalcEclCoords::slotOutputFile() { - QString outputFileName; + TQString outputFileName; outputFileName = KFileDialog::getSaveFileName( ); OutputLineEditBatch->setText( outputFileName ); } void modCalcEclCoords::slotRunBatch() { - QString inputFileName; + TQString inputFileName; inputFileName = InputLineEditBatch->text(); // We open the input file and read its content - if ( QFile::exists(inputFileName) ) { - QFile f( inputFileName ); + if ( TQFile::exists(inputFileName) ) { + TQFile f( inputFileName ); if ( !f.open( IO_ReadOnly) ) { - QString message = i18n( "Could not open file %1.").arg( f.name() ); + TQString message = i18n( "Could not open file %1.").arg( f.name() ); KMessageBox::sorry( 0, message, i18n( "Could Not Open File" ) ); inputFileName = ""; return; } // processLines(&f); - QTextStream istream(&f); + TQTextStream istream(&f); processLines(istream); // readFile( istream ); f.close(); } else { - QString message = i18n( "Invalid file: %1" ).arg( inputFileName ); + TQString message = i18n( "Invalid file: %1" ).arg( inputFileName ); KMessageBox::sorry( 0, message, i18n( "Invalid file" ) ); inputFileName = ""; InputLineEditBatch->setText( inputFileName ); @@ -243,19 +243,19 @@ void modCalcEclCoords::slotRunBatch() { } } -void modCalcEclCoords::processLines( QTextStream &istream ) { +void modCalcEclCoords::processLines( TQTextStream &istream ) { // we open the output file -// QTextStream istream(&fIn); - QString outputFileName; +// TQTextStream istream(&fIn); + TQString outputFileName; outputFileName = OutputLineEditBatch->text(); - QFile fOut( outputFileName ); + TQFile fOut( outputFileName ); fOut.open(IO_WriteOnly); - QTextStream ostream(&fOut); + TQTextStream ostream(&fOut); - QString line; - QString space = " "; + TQString line; + TQString space = " "; int i = 0; SkyPoint sp; dms raB, decB, eclLatB, eclLongB; @@ -267,7 +267,7 @@ void modCalcEclCoords::processLines( QTextStream &istream ) { //Go through the line, looking for parameters - QStringList fields = QStringList::split( " ", line ); + TQStringList fields = TQStringList::split( " ", line ); i = 0; |