diff options
Diffstat (limited to 'kstars/kstars/tools/modcalcapcoord.cpp')
-rw-r--r-- | kstars/kstars/tools/modcalcapcoord.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kstars/kstars/tools/modcalcapcoord.cpp b/kstars/kstars/tools/modcalcapcoord.cpp index 27f4bc0c..53f15753 100644 --- a/kstars/kstars/tools/modcalcapcoord.cpp +++ b/kstars/kstars/tools/modcalcapcoord.cpp @@ -28,7 +28,7 @@ #include <tqcheckbox.h> #include <tqradiobutton.h> -#include <tqdatetimeedit.h> //needed for QTimeEdit +#include <tqdatetimeedit.h> //needed for TQTimeEdit #include <klineedit.h> #include <tqtextstream.h> #include <klocale.h> @@ -37,7 +37,7 @@ //#include <kapplication.h> ..already included in modcalcapcoord.h -modCalcApCoord::modCalcApCoord(TQWidget *parentSplit, const char *name) : modCalcApCoordDlg(parentSplit,name) { +modCalcApCoord::modCalcApCoord(TQWidget *tqparentSplit, const char *name) : modCalcApCoordDlg(tqparentSplit,name) { showCurrentTime(); ra0Box->setDegType(FALSE); @@ -62,9 +62,9 @@ SkyPoint modCalcApCoord::getEquCoords (void) { void modCalcApCoord::showCurrentTime (void) { - KStars *ks = (KStars*) parent()->parent()->parent(); + KStars *ks = (KStars*) tqparent()->tqparent()->tqparent(); - KStarsDateTime dt = ks->data()->geo()->LTtoUT( KStarsDateTime::currentDateTime() ); + KStarsDateTime dt = ks->data()->geo()->LTtoUT( KStarsDateTime::tqcurrentDateTime() ); datBox->setDate( dt.date() ); timBox->setTime( dt.time() ); } @@ -98,7 +98,7 @@ void modCalcApCoord::slotClearCoords(){ rafBox->clearFields(); decfBox->clearFields(); epoch0Name->setText(""); - datBox->setDate(ExtDate::currentDate()); + datBox->setDate(ExtDate::tqcurrentDate()); timBox->setTime(TQTime(0,0,0)); } @@ -111,7 +111,7 @@ void modCalcApCoord::slotComputeCoords(){ SkyPoint sp; sp = getEquCoords(); - sp.apparentCoord(jd0, jd); + sp.aptqparentCoord(jd0, jd); showEquCoords( sp ); } @@ -182,7 +182,7 @@ void modCalcApCoord::slotRunBatch() { if ( TQFile::exists(inputFileName) ) { TQFile f( inputFileName ); if ( !f.open( IO_ReadOnly) ) { - TQString message = i18n( "Could not open file %1.").arg( f.name() ); + TQString message = i18n( "Could not open file %1.").tqarg( f.name() ); KMessageBox::sorry( 0, message, i18n( "Could Not Open File" ) ); inputFileName = ""; return; @@ -194,7 +194,7 @@ void modCalcApCoord::slotRunBatch() { // readFile( istream ); f.close(); } else { - TQString message = i18n( "Invalid file: %1" ).arg( inputFileName ); + TQString message = i18n( "Invalid file: %1" ).tqarg( inputFileName ); KMessageBox::sorry( 0, message, i18n( "Invalid file" ) ); inputFileName = ""; InputLineEditBatch->setText( inputFileName ); @@ -309,7 +309,7 @@ void modCalcApCoord::processLines( TQTextStream &istream ) { jd = KStarsDateTime(dtB,utB).djd(); jd0 = dt.djd(); sp = SkyPoint (raB, decB); - sp.apparentCoord(jd0, jd); + sp.aptqparentCoord(jd0, jd); ostream << sp.ra()->toHMSString() << sp.dec()->toDMSString() << endl; } |