summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcvlsr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/modcalcvlsr.cpp')
-rw-r--r--kstars/kstars/tools/modcalcvlsr.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kstars/kstars/tools/modcalcvlsr.cpp b/kstars/kstars/tools/modcalcvlsr.cpp
index 601f9e77..412e1d72 100644
--- a/kstars/kstars/tools/modcalcvlsr.cpp
+++ b/kstars/kstars/tools/modcalcvlsr.cpp
@@ -28,16 +28,16 @@
#include "kstarsdatetime.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-#include <qdatetimeedit.h> //need for QTimeEdit
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqdatetimeedit.h> //need for QTimeEdit
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
-modCalcVlsr::modCalcVlsr(QWidget *parentSplit, const char *name) : modCalcVlsrDlg (parentSplit,name) {
+modCalcVlsr::modCalcVlsr(TQWidget *parentSplit, const char *name) : modCalcVlsrDlg (parentSplit,name) {
showCurrentDateTime();
initGeo();
@@ -92,7 +92,7 @@ KStarsDateTime modCalcVlsr::getDateTime (void)
return KStarsDateTime( datBox->date() , timBox->time() );
}
-double modCalcVlsr::getEpoch (QString eName)
+double modCalcVlsr::getEpoch (TQString eName)
{
bool ok = false;
double epoch = eName.toDouble(&ok);
@@ -213,7 +213,7 @@ void modCalcVlsr::slotClearCoords()
vTopoBox->setText("");
datBox->setDate(ExtDate::currentDate());
- timBox->setTime(QTime(0,0,0));
+ timBox->setTime(TQTime(0,0,0));
}
@@ -352,40 +352,40 @@ void modCalcVlsr::slotVlsrChecked(){
}
void modCalcVlsr::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcVlsr::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcVlsr::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 );
@@ -393,19 +393,19 @@ void modCalcVlsr::slotRunBatch() {
}
}
-void modCalcVlsr::processLines( QTextStream &istream ) {
+void modCalcVlsr::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;
long double jd0;
SkyPoint spB;
@@ -413,7 +413,7 @@ void modCalcVlsr::processLines( QTextStream &istream ) {
dms raB, decB, latB, longB;
double epoch0B, vhB, vgB, vtB, vlsrB, heightB;
double vtopo[3];
- QTime utB;
+ TQTime utB;
ExtDate dtB;
KStarsDateTime dt0B;
@@ -423,14 +423,14 @@ void modCalcVlsr::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
// Read Ut and write in ostream if corresponds
if(utCheckBatch->isChecked() ) {
- utB = QTime::fromString( fields[i] );
+ utB = TQTime::fromString( fields[i] );
i++;
} else
utB = utBoxBatch->time();