summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools')
-rw-r--r--kstars/kstars/tools/altvstime.cpp104
-rw-r--r--kstars/kstars/tools/altvstime.h20
-rw-r--r--kstars/kstars/tools/astrocalc.cpp76
-rw-r--r--kstars/kstars/tools/astrocalc.h22
-rw-r--r--kstars/kstars/tools/jmoontool.cpp30
-rw-r--r--kstars/kstars/tools/jmoontool.h6
-rw-r--r--kstars/kstars/tools/kstarsplotwidget.cpp70
-rw-r--r--kstars/kstars/tools/kstarsplotwidget.h12
-rw-r--r--kstars/kstars/tools/lcgenerator.cpp132
-rw-r--r--kstars/kstars/tools/lcgenerator.h70
-rw-r--r--kstars/kstars/tools/modcalcangdist.cpp42
-rw-r--r--kstars/kstars/tools/modcalcangdist.h4
-rw-r--r--kstars/kstars/tools/modcalcapcoord.cpp52
-rw-r--r--kstars/kstars/tools/modcalcapcoord.h8
-rw-r--r--kstars/kstars/tools/modcalcazel.cpp52
-rw-r--r--kstars/kstars/tools/modcalcazel.h8
-rw-r--r--kstars/kstars/tools/modcalcdaylength.cpp20
-rw-r--r--kstars/kstars/tools/modcalcdaylength.h4
-rw-r--r--kstars/kstars/tools/modcalceclipticcoords.cpp46
-rw-r--r--kstars/kstars/tools/modcalceclipticcoords.h6
-rw-r--r--kstars/kstars/tools/modcalcequinox.cpp50
-rw-r--r--kstars/kstars/tools/modcalcequinox.h8
-rw-r--r--kstars/kstars/tools/modcalcgalcoord.cpp46
-rw-r--r--kstars/kstars/tools/modcalcgalcoord.h6
-rw-r--r--kstars/kstars/tools/modcalcgeodcoord.cpp44
-rw-r--r--kstars/kstars/tools/modcalcgeodcoord.h10
-rw-r--r--kstars/kstars/tools/modcalcjd.cpp8
-rw-r--r--kstars/kstars/tools/modcalcjd.h4
-rw-r--r--kstars/kstars/tools/modcalcplanets.cpp60
-rw-r--r--kstars/kstars/tools/modcalcplanets.h8
-rw-r--r--kstars/kstars/tools/modcalcprec.cpp46
-rw-r--r--kstars/kstars/tools/modcalcprec.h8
-rw-r--r--kstars/kstars/tools/modcalcsidtime.cpp70
-rw-r--r--kstars/kstars/tools/modcalcsidtime.h16
-rw-r--r--kstars/kstars/tools/modcalcvlsr.cpp52
-rw-r--r--kstars/kstars/tools/modcalcvlsr.h8
-rw-r--r--kstars/kstars/tools/observinglist.cpp136
-rw-r--r--kstars/kstars/tools/observinglist.h10
-rw-r--r--kstars/kstars/tools/obslistwizard.cpp76
-rw-r--r--kstars/kstars/tools/obslistwizard.h10
-rw-r--r--kstars/kstars/tools/planetviewer.cpp52
-rw-r--r--kstars/kstars/tools/planetviewer.h36
-rw-r--r--kstars/kstars/tools/scriptbuilder.cpp646
-rw-r--r--kstars/kstars/tools/scriptbuilder.h28
-rw-r--r--kstars/kstars/tools/scriptfunction.cpp20
-rw-r--r--kstars/kstars/tools/scriptfunction.h46
-rw-r--r--kstars/kstars/tools/wutdialog.cpp72
-rw-r--r--kstars/kstars/tools/wutdialog.h10
48 files changed, 1185 insertions, 1185 deletions
diff --git a/kstars/kstars/tools/altvstime.cpp b/kstars/kstars/tools/altvstime.cpp
index 1ce505ff..458b467f 100644
--- a/kstars/kstars/tools/altvstime.cpp
+++ b/kstars/kstars/tools/altvstime.cpp
@@ -15,8 +15,8 @@
* *
***************************************************************************/
-#include <qlayout.h>
-#include <qpainter.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
#include <klocale.h>
#include <klineedit.h>
#include <klistbox.h>
@@ -41,19 +41,19 @@
#include "kstarsdatetime.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-AltVsTime::AltVsTime( QWidget* parent) :
+AltVsTime::AltVsTime( TQWidget* parent) :
KDialogBase( KDialogBase::Plain, i18n( "Altitude vs. Time" ), Close, Close, parent )
{
ks = (KStars*) parent;
- QFrame *page = plainPage();
+ TQFrame *page = plainPage();
setMainWidget(page);
- topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ topLayout = new TQVBoxLayout( page, 0, spacingHint() );
View = new AVTPlotWidget( -12.0, 12.0, -90.0, 90.0, page );
View->setMinimumSize( 400, 400 );
- View->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
+ View->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding );
View->setXAxisType( KStarsPlotWidget::TIME );
View->setYAxisType( KStarsPlotWidget::ANGLE );
View->setShowGrid( false );
@@ -87,18 +87,18 @@ AltVsTime::AltVsTime( QWidget* parent) :
setLSTLimits();
View->updateTickmarks();
- connect( avtUI->browseButton, SIGNAL( clicked() ), this, SLOT( slotBrowseObject() ) );
- connect( avtUI->cityButton, SIGNAL( clicked() ), this, SLOT( slotChooseCity() ) );
- connect( avtUI->updateButton, SIGNAL( clicked() ), this, SLOT( slotUpdateDateLoc() ) );
- connect( avtUI->clearButton, SIGNAL( clicked() ), this, SLOT( slotClear() ) );
- connect( avtUI->addButton, SIGNAL( clicked() ), this, SLOT( slotAddSource() ) );
- connect( avtUI->nameBox, SIGNAL( returnPressed() ), this, SLOT( slotAddSource() ) );
- connect( avtUI->raBox, SIGNAL( returnPressed() ), this, SLOT( slotAddSource() ) );
- connect( avtUI->decBox, SIGNAL( returnPressed() ), this, SLOT( slotAddSource() ) );
- connect( avtUI->clearFieldsButton, SIGNAL( clicked() ), this, SLOT( slotClearBoxes() ) );
- connect( avtUI->longBox, SIGNAL( returnPressed() ), this, SLOT( slotAdvanceFocus() ) );
- connect( avtUI->latBox, SIGNAL( returnPressed() ), this, SLOT( slotAdvanceFocus() ) );
- connect( avtUI->PlotList, SIGNAL( highlighted(int) ), this, SLOT( slotHighlight() ) );
+ connect( avtUI->browseButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotBrowseObject() ) );
+ connect( avtUI->cityButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChooseCity() ) );
+ connect( avtUI->updateButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotUpdateDateLoc() ) );
+ connect( avtUI->clearButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClear() ) );
+ connect( avtUI->addButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddSource() ) );
+ connect( avtUI->nameBox, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotAddSource() ) );
+ connect( avtUI->raBox, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotAddSource() ) );
+ connect( avtUI->decBox, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotAddSource() ) );
+ connect( avtUI->clearFieldsButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClearBoxes() ) );
+ connect( avtUI->longBox, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotAdvanceFocus() ) );
+ connect( avtUI->latBox, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotAdvanceFocus() ) );
+ connect( avtUI->PlotList, TQT_SIGNAL( highlighted(int) ), this, TQT_SLOT( slotHighlight() ) );
pList.setAutoDelete(FALSE);
deleteList.setAutoDelete(TRUE); //needed for skypoints which may be created in this class
@@ -122,7 +122,7 @@ void AltVsTime::slotAddSource(void) {
//First, attempt to find the object name in the list of known objects
if ( ! avtUI->nameBox->text().isEmpty() ) {
ObjectNameList &ObjNames = ks->data()->ObjNames;
- QString text = avtUI->nameBox->text().lower();
+ TQString text = avtUI->nameBox->text().lower();
for( SkyObjectName *name = ObjNames.first( text ); name; name = ObjNames.next() ) {
if ( name->text().lower() == text ) {
@@ -181,13 +181,13 @@ void AltVsTime::slotAddSource(void) {
//If the Ra and Dec boxes are filled, but the name field is empty,
//move input focus to nameBox`
} else if ( avtUI->nameBox->text().isEmpty() && ! avtUI->raBox->text().isEmpty() && ! avtUI->decBox->text().isEmpty() ) {
- avtUI->nameBox->QWidget::setFocus();
+ avtUI->nameBox->TQWidget::setFocus();
//nameBox is empty, and one of the ra or dec fields is empty. Move input focus to empty coord box
} else if ( avtUI->raBox->text().isEmpty() ) {
- avtUI->raBox->QWidget::setFocus();
+ avtUI->raBox->TQWidget::setFocus();
} else if ( avtUI->decBox->text().isEmpty() ) {
- avtUI->decBox->QWidget::setFocus();
+ avtUI->decBox->TQWidget::setFocus();
}
View->repaint(false);
@@ -196,7 +196,7 @@ void AltVsTime::slotAddSource(void) {
//Use find dialog to choose an object
void AltVsTime::slotBrowseObject(void) {
FindDialog fd(ks);
- if ( fd.exec() == QDialog::Accepted ) {
+ if ( fd.exec() == TQDialog::Accepted ) {
SkyObject *o = fd.currentItem()->objName()->skyObject();
processObject( o );
}
@@ -252,7 +252,7 @@ void AltVsTime::processObject( SkyObject *o, bool forceAdd ) {
avtUI->nameBox->setText(o->translatedName() );
//Set epochName to epoch shown in date tab
- avtUI->epochName->setText( QString().setNum( getDate().epoch() ) );
+ avtUI->epochName->setText( TQString().setNum( getDate().epoch() ) );
}
kdDebug() << "Currently, there are " << View->objectCount() << " objects displayed." << endl;
@@ -307,11 +307,11 @@ void AltVsTime::slotHighlight(void) {
//move input focus to the next logical widget
void AltVsTime::slotAdvanceFocus(void) {
- if ( sender()->name() == QString( "nameBox" ) ) avtUI->addButton->setFocus();
- if ( sender()->name() == QString( "raBox" ) ) avtUI->decBox->setFocus();
- if ( sender()->name() == QString( "decbox" ) ) avtUI->addButton->setFocus();
- if ( sender()->name() == QString( "longBox" ) ) avtUI->latBox->setFocus();
- if ( sender()->name() == QString( "latBox" ) ) avtUI->updateButton->setFocus();
+ if ( sender()->name() == TQString( "nameBox" ) ) avtUI->addButton->setFocus();
+ if ( sender()->name() == TQString( "raBox" ) ) avtUI->decBox->setFocus();
+ if ( sender()->name() == TQString( "decbox" ) ) avtUI->addButton->setFocus();
+ if ( sender()->name() == TQString( "longBox" ) ) avtUI->latBox->setFocus();
+ if ( sender()->name() == TQString( "latBox" ) ) avtUI->updateButton->setFocus();
}
void AltVsTime::slotClear(void) {
@@ -339,8 +339,8 @@ void AltVsTime::computeSunRiseSetTimes() {
KStarsDateTime today = getDate();
SkyObject *oSun = (SkyObject*) ks->data()->PCat->planetSun();
- double sunRise = -1.0 * oSun->riseSetTime( today.djd() + 1.0, geo, true ).secsTo(QTime()) / 86400.0;
- double sunSet = -1.0 * oSun->riseSetTime( today.djd(), geo, false ).secsTo(QTime()) / 86400.0;
+ double sunRise = -1.0 * oSun->riseSetTime( today.djd() + 1.0, geo, true ).secsTo(TQTime()) / 86400.0;
+ double sunSet = -1.0 * oSun->riseSetTime( today.djd(), geo, false ).secsTo(TQTime()) / 86400.0;
//check to see if Sun is circumpolar
//requires temporary repositioning of Sun to target date
@@ -381,7 +381,7 @@ void AltVsTime::slotUpdateDateLoc(void) {
computeSunRiseSetTimes();
for ( unsigned int i = 0; i < avtUI->PlotList->count(); ++i ) {
- QString oName = avtUI->PlotList->text( i ).lower();
+ TQString oName = avtUI->PlotList->text( i ).lower();
ObjectNameList &ObjNames = ks->data()->ObjNames;
bool objFound(false);
@@ -444,7 +444,7 @@ void AltVsTime::slotUpdateDateLoc(void) {
void AltVsTime::slotChooseCity(void) {
LocationDialog ld(ks);
- if ( ld.exec() == QDialog::Accepted ) {
+ if ( ld.exec() == TQDialog::Accepted ) {
GeoLocation *newGeo = ld.selectedCity();
if ( newGeo ) {
geo = newGeo;
@@ -469,19 +469,19 @@ void AltVsTime::setLSTLimits(void) {
void AltVsTime::showCurrentDate (void)
{
KStarsDateTime dt = KStarsDateTime::currentDateTime();
- if ( dt.time() > QTime( 12, 0, 0 ) ) dt = dt.addDays( 1 );
+ if ( dt.time() > TQTime( 12, 0, 0 ) ) dt = dt.addDays( 1 );
avtUI->dateBox->setDate( dt.date() );
}
KStarsDateTime AltVsTime::getDate (void)
{
//convert midnight local time to UT:
- KStarsDateTime dt( avtUI->dateBox->date(), QTime() );
+ KStarsDateTime dt( avtUI->dateBox->date(), TQTime() );
dt = geo->LTtoUT( dt );
return dt;
}
-double AltVsTime::getEpoch (QString eName)
+double AltVsTime::getEpoch (TQString eName)
{
//If Epoch field not a double, assume J2000
bool ok(false);
@@ -495,7 +495,7 @@ double AltVsTime::getEpoch (QString eName)
return epoch;
}
-AVTPlotWidget::AVTPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent, const char* name )
+AVTPlotWidget::AVTPlotWidget( double x1, double x2, double y1, double y2, TQWidget *parent, const char* name )
: KStarsPlotWidget( x1, x2, y1, y2, parent, name )
{
//Default SunRise/SunSet values
@@ -503,12 +503,12 @@ AVTPlotWidget::AVTPlotWidget( double x1, double x2, double y1, double y2, QWidge
SunSet = 0.75;
}
-void AVTPlotWidget::mousePressEvent( QMouseEvent *e ) {
+void AVTPlotWidget::mousePressEvent( TQMouseEvent *e ) {
mouseMoveEvent( e );
}
-void AVTPlotWidget::mouseMoveEvent( QMouseEvent *e ) {
- QRect checkRect( leftPadding(), topPadding(), PixRect.width(), PixRect.height() );
+void AVTPlotWidget::mouseMoveEvent( TQMouseEvent *e ) {
+ TQRect checkRect( leftPadding(), topPadding(), PixRect.width(), PixRect.height() );
int Xcursor = e->x();
int Ycursor = e->y();
@@ -522,19 +522,19 @@ void AVTPlotWidget::mouseMoveEvent( QMouseEvent *e ) {
Xcursor -= leftPadding();
Ycursor -= topPadding();
- QPixmap buffer2( *buffer );
- QPainter p;
+ TQPixmap buffer2( *buffer );
+ TQPainter p;
p.begin( &buffer2 );
p.translate( leftPadding(), topPadding() );
- p.setPen( QPen( "grey", 1, SolidLine ) );
+ p.setPen( TQPen( "grey", 1, SolidLine ) );
p.drawLine( Xcursor, 0, Xcursor, PixRect.height() );
p.drawLine( 0, Ycursor, PixRect.width(), Ycursor );
p.end();
bitBlt( this, 0, 0, &buffer2 );
}
-void AVTPlotWidget::paintEvent( QPaintEvent */*e*/ ) {
- QPainter p;
+void AVTPlotWidget::paintEvent( TQPaintEvent */*e*/ ) {
+ TQPainter p;
p.begin( buffer );
p.fillRect( 0, 0, width(), height(), bgColor() );
@@ -549,18 +549,18 @@ void AVTPlotWidget::paintEvent( QPaintEvent */*e*/ ) {
if ( SunSet != -1.0 ) {
//If Sun does not set, then just fill the daytime sky color
if ( SunSet == 1.0 ) {
- p.fillRect( 0, 0, pW, int(0.5*pH), QColor( 0, 100, 200 ) );
+ p.fillRect( 0, 0, pW, int(0.5*pH), TQColor( 0, 100, 200 ) );
} else {
//Display centered on midnight, so need to modulate dawn/dusk by 0.5
int dawn = int(pW*(0.5 + SunRise));
int dusk = int(pW*(SunSet - 0.5));
- p.fillRect( 0, 0, dusk, int(0.5*pH), QColor( 0, 100, 200 ) );
- p.fillRect( dawn, 0, pW - dawn, int(0.5*pH), QColor( 0, 100, 200 ) );
+ p.fillRect( 0, 0, dusk, int(0.5*pH), TQColor( 0, 100, 200 ) );
+ p.fillRect( dawn, 0, pW - dawn, int(0.5*pH), TQColor( 0, 100, 200 ) );
//draw twilight gradients
unsigned short int W = 40;
for ( unsigned short int i=0; i<W; ++i ) {
- p.setPen( QColor( 0, int(100*i/W), 200*i/W ) );
+ p.setPen( TQColor( 0, int(100*i/W), 200*i/W ) );
p.drawLine( dusk - (i-20), 0, dusk - (i-20), pH );
p.drawLine( dawn + (i-20), 0, dawn + (i-20), pH );
}
@@ -568,17 +568,17 @@ void AVTPlotWidget::paintEvent( QPaintEvent */*e*/ ) {
}
//draw ground
- p.fillRect( 0, int(0.5*pH), pW, int(0.5*pH), QColor( "#002200" ) );
+ p.fillRect( 0, int(0.5*pH), pW, int(0.5*pH), TQColor( "#002200" ) );
drawBox( &p );
drawObjects( &p );
//Add vertical line indicating "now"
- QTime t = QTime::currentTime();
+ TQTime t = TQTime::currentTime();
double x = 12.0 + t.hour() + t.minute()/60.0 + t.second()/3600.0;
while ( x > 24.0 ) x -= 24.0;
int ix = int(x*pW/24.0); //convert to screen pixel coords
- p.setPen( QPen( "white", 2, DotLine ) );
+ p.setPen( TQPen( "white", 2, DotLine ) );
p.drawLine( ix, 0, ix, pH );
p.end();
diff --git a/kstars/kstars/tools/altvstime.h b/kstars/kstars/tools/altvstime.h
index 1f07b05f..7bf738f7 100644
--- a/kstars/kstars/tools/altvstime.h
+++ b/kstars/kstars/tools/altvstime.h
@@ -51,7 +51,7 @@ class AVTPlotWidget : public KStarsPlotWidget
public:
/**Constructor
*/
- AVTPlotWidget( double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0, QWidget *parent=0, const char* name=0 );
+ AVTPlotWidget( double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0, TQWidget *parent=0, const char* name=0 );
/**Set the fractional positions of the Sunrise and Sunset positions,
*in units where last midnight was 0.0, and next midnight is 1.0.
@@ -68,15 +68,15 @@ protected:
*draw crosshair lines centered at the cursor position. This
*allows the user to pinpoint specific position sin the plot.
*/
- void mouseMoveEvent( QMouseEvent *e );
+ void mouseMoveEvent( TQMouseEvent *e );
/**Simply calls mouseMoveEvent().
*/
- void mousePressEvent( QMouseEvent *e );
+ void mousePressEvent( TQMouseEvent *e );
/**Redraw the plot.
*/
- void paintEvent( QPaintEvent *e );
+ void paintEvent( TQPaintEvent *e );
private:
double SunRise, SunSet;
@@ -97,7 +97,7 @@ class AltVsTime : public KDialogBase
public:
/**Constructor
*/
- AltVsTime( QWidget* parent = 0);
+ AltVsTime( TQWidget* parent = 0);
/**Destructor
*/
@@ -133,7 +133,7 @@ public:
*@param eName the epoch string to be parsed
*@return the epoch number
*/
- double getEpoch (QString eName);
+ double getEpoch (TQString eName);
/**@short Add a SkyObject to the display.
*Constructs a PLotObject representing the Alt-vs-time curve for the object.
@@ -162,7 +162,7 @@ public:
/**@return a pointer to the list of SkyPoints representing the
*objects being displayed.
*/
- QPtrList<SkyPoint>* skyPointList() { return &pList; }
+ TQPtrList<SkyPoint>* skyPointList() { return &pList; }
public slots:
/**@short Update the plot to reflec new Date and Location settings.
@@ -207,12 +207,12 @@ public slots:
private:
AVTPlotWidget *View;
AltVsTimeUI *avtUI;
- QVBoxLayout *topLayout;
+ TQVBoxLayout *topLayout;
GeoLocation *geo;
KStars *ks;
- QPtrList<SkyPoint> pList;
- QPtrList<SkyPoint> deleteList;
+ TQPtrList<SkyPoint> pList;
+ TQPtrList<SkyPoint> deleteList;
int DayOffset;
bool dirtyFlag;
diff --git a/kstars/kstars/tools/astrocalc.cpp b/kstars/kstars/tools/astrocalc.cpp
index 5deec02f..3b87826b 100644
--- a/kstars/kstars/tools/astrocalc.cpp
+++ b/kstars/kstars/tools/astrocalc.cpp
@@ -34,21 +34,21 @@
#include "modcalcvlsr.h"
#include <klocale.h>
-#include <qlistview.h>
-#include <qtextview.h>
+#include <tqlistview.h>
+#include <tqtextview.h>
-AstroCalc::AstroCalc( QWidget* parent ) :
+AstroCalc::AstroCalc( TQWidget* parent ) :
KDialogBase( parent, "starscalculator", true, i18n("Calculator"), Close ),
JDFrame(0), GeodCoordFrame(0), GalFrame(0), SidFrame(0), PrecFrame(0),
AppFrame(0), DayFrame(0), AzelFrame(0), PlanetsFrame(0), EquinoxFrame(0),
EclFrame(0), AngDistFrame(0)
{
- split = new QSplitter ( this );
+ split = new TQSplitter ( this );
setMainWidget(split);
- navigationPanel = new QListView (split,"NavigationPanel");
- splashScreen = new QTextView (i18n("<H2>KStars Astrocalculator</H2>"),"",split);
+ navigationPanel = new TQListView (split,"NavigationPanel");
+ splashScreen = new TQTextView (i18n("<H2>KStars Astrocalculator</H2>"),"",split);
splashScreen->setMaximumWidth(550);
splashScreen->setMinimumWidth(400);
@@ -58,51 +58,51 @@ AstroCalc::AstroCalc( QWidget* parent ) :
navigationPanel->addColumn("Section");
navigationPanel->setRootIsDecorated(1);
- QPixmap jdIcon = QPixmap ("jd.png");
- QPixmap geodIcon = QPixmap ("geodetic.png");
- QPixmap solarIcon = QPixmap ("geodetic.png");
- QPixmap sunsetIcon = QPixmap ("sunset.png");
- QPixmap timeIcon = QPixmap ("sunclock.png");
+ TQPixmap jdIcon = TQPixmap ("jd.png");
+ TQPixmap geodIcon = TQPixmap ("geodetic.png");
+ TQPixmap solarIcon = TQPixmap ("geodetic.png");
+ TQPixmap sunsetIcon = TQPixmap ("sunset.png");
+ TQPixmap timeIcon = TQPixmap ("sunclock.png");
- QListViewItem * timeItem = new QListViewItem(navigationPanel,i18n("Time Calculators"));
+ TQListViewItem * timeItem = new TQListViewItem(navigationPanel,i18n("Time Calculators"));
timeItem->setPixmap(0,timeIcon);
- QListViewItem * jdItem = new QListViewItem(timeItem,i18n("Julian Day"));
+ TQListViewItem * jdItem = new TQListViewItem(timeItem,i18n("Julian Day"));
jdItem->setPixmap(0,jdIcon);
- new QListViewItem(timeItem,i18n("Sidereal Time"));
- new QListViewItem(timeItem,i18n("Day Duration"));
- new QListViewItem(timeItem,i18n("Equinoxes & Solstices"));
+ new TQListViewItem(timeItem,i18n("Sidereal Time"));
+ new TQListViewItem(timeItem,i18n("Day Duration"));
+ new TQListViewItem(timeItem,i18n("Equinoxes & Solstices"));
// dayItem->setPixmap(0,sunsetIcon);
- QListViewItem * coordItem = new QListViewItem(navigationPanel,i18n("Celestial Coordinates"));
- new QListViewItem(coordItem,i18n("Galactic Coordinates"));
- new QListViewItem(coordItem,i18n("Precession"));
- new QListViewItem(coordItem,i18n("Apparent Coordinates"));
- new QListViewItem(coordItem,i18n("Horizontal Coordinates"));
- new QListViewItem(coordItem,i18n("Ecliptic Coordinates"));
- new QListViewItem(coordItem,i18n("Angular Distance"));
- new QListViewItem(coordItem,i18n("LSR Velocity"));
+ TQListViewItem * coordItem = new TQListViewItem(navigationPanel,i18n("Celestial Coordinates"));
+ new TQListViewItem(coordItem,i18n("Galactic Coordinates"));
+ new TQListViewItem(coordItem,i18n("Precession"));
+ new TQListViewItem(coordItem,i18n("Apparent Coordinates"));
+ new TQListViewItem(coordItem,i18n("Horizontal Coordinates"));
+ new TQListViewItem(coordItem,i18n("Ecliptic Coordinates"));
+ new TQListViewItem(coordItem,i18n("Angular Distance"));
+ new TQListViewItem(coordItem,i18n("LSR Velocity"));
- QListViewItem * geoItem = new QListViewItem(navigationPanel,i18n("Earth Coordinates"));
+ TQListViewItem * geoItem = new TQListViewItem(navigationPanel,i18n("Earth Coordinates"));
geoItem->setPixmap(0,geodIcon);
- /*QListViewItem * cartItem = */new QListViewItem(geoItem,i18n("Geodetic Coordinates"));
+ /*TQListViewItem * cartItem = */new TQListViewItem(geoItem,i18n("Geodetic Coordinates"));
- QListViewItem * solarItem = new QListViewItem(navigationPanel,i18n("Solar System"));
+ TQListViewItem * solarItem = new TQListViewItem(navigationPanel,i18n("Solar System"));
solarItem->setPixmap(0,solarIcon);
- /*QListViewItem * planetsItem = */new QListViewItem(solarItem,i18n("Planets Coordinates"));
+ /*TQListViewItem * planetsItem = */new TQListViewItem(solarItem,i18n("Planets Coordinates"));
- connect(navigationPanel, SIGNAL(clicked(QListViewItem *)), this,
- SLOT(slotItemSelection(QListViewItem *)));
+ connect(navigationPanel, TQT_SIGNAL(clicked(TQListViewItem *)), this,
+ TQT_SLOT(slotItemSelection(TQListViewItem *)));
}
AstroCalc::~AstroCalc()
{
}
-void AstroCalc::slotItemSelection(QListViewItem *item)
+void AstroCalc::slotItemSelection(TQListViewItem *item)
{
- QString election;
+ TQString election;
if (item==0L) return;
@@ -150,7 +150,7 @@ void AstroCalc::genTimeText(void)
{
delRightPanel();
- splashScreen = new QTextView ("","",split);
+ splashScreen = new TQTextView ("","",split);
splashScreen->setMaximumWidth(550);
splashScreen->setMinimumWidth(400);
splashScreen->show();
@@ -177,7 +177,7 @@ void AstroCalc::genTimeText(void)
void AstroCalc::genCoordText(void)
{
delRightPanel();
- splashScreen = new QTextView ("","",split);
+ splashScreen = new TQTextView ("","",split);
splashScreen->setMaximumWidth(550);
splashScreen->setMinimumWidth(400);
splashScreen->show();
@@ -213,7 +213,7 @@ void AstroCalc::genCoordText(void)
void AstroCalc::genGeodText(void)
{
delRightPanel();
- splashScreen = new QTextView ("","",split);
+ splashScreen = new TQTextView ("","",split);
splashScreen->setMaximumWidth(550);
splashScreen->setMinimumWidth(400);
splashScreen->show();
@@ -232,7 +232,7 @@ void AstroCalc::genGeodText(void)
void AstroCalc::genSolarText(void)
{
delRightPanel();
- splashScreen = new QTextView ("","",split);
+ splashScreen = new TQTextView ("","",split);
splashScreen->setMaximumWidth(550);
splashScreen->setMinimumWidth(400);
splashScreen->show();
@@ -374,7 +374,7 @@ void AstroCalc::genVlsrFrame(void)
rightPanel = Vlsr;
}
-QSize AstroCalc::sizeHint() const
+TQSize AstroCalc::sizeHint() const
{
- return QSize(640,430);
+ return TQSize(640,430);
}
diff --git a/kstars/kstars/tools/astrocalc.h b/kstars/kstars/tools/astrocalc.h
index 84604103..95051f2b 100644
--- a/kstars/kstars/tools/astrocalc.h
+++ b/kstars/kstars/tools/astrocalc.h
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdialogbase.h>
#include <kapplication.h>
@@ -60,7 +60,7 @@ class AstroCalc : public KDialogBase
Q_OBJECT
public:
/** construtor */
- AstroCalc(QWidget *parent = 0);
+ AstroCalc(TQWidget *parent = 0);
/** destructor */
~AstroCalc();
@@ -120,22 +120,22 @@ Q_OBJECT
void delRightPanel(void);
/**@returns suggested size of calculator window. */
- QSize sizeHint() const;
+ TQSize sizeHint() const;
public slots:
- /**Determine which item is selected in the function menu QListBox.
+ /**Determine which item is selected in the function menu TQListBox.
*Generate the corresponding calculator module.
*/
- void slotItemSelection(QListViewItem *it);
+ void slotItemSelection(TQListViewItem *it);
private:
- QSplitter *split;
- QListView *navigationPanel, *auxiliar;
- QTextView *splashScreen;
-// QListViewItem *timeItem, *coordItem, *jdItem, *stItem, *dayItem;
- QVBox *vbox, *rightBox;
- QString previousElection;
+ TQSplitter *split;
+ TQListView *navigationPanel, *auxiliar;
+ TQTextView *splashScreen;
+// TQListViewItem *timeItem, *coordItem, *jdItem, *stItem, *dayItem;
+ TQVBox *vbox, *rightBox;
+ TQString previousElection;
enum typeOfPanel {GenText, TimeText, GeoText, SolarText, CoordText, JD, SidTime, DayLength, Equinox, GeoCoord, Galactic, Precessor, Apparent, Azel, Planets, Ecliptic, AngDist, Vlsr};
typeOfPanel rightPanel;
diff --git a/kstars/kstars/tools/jmoontool.cpp b/kstars/kstars/tools/jmoontool.cpp
index 76d4aa67..7d7add93 100644
--- a/kstars/kstars/tools/jmoontool.cpp
+++ b/kstars/kstars/tools/jmoontool.cpp
@@ -14,8 +14,8 @@
* *
***************************************************************************/
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kdebug.h>
#include <klocale.h>
@@ -30,13 +30,13 @@
#include "dms.h"
#include "ksnumbers.h"
-JMoonTool::JMoonTool(QWidget *parent, const char *name)
+JMoonTool::JMoonTool(TQWidget *parent, const char *name)
: KDialogBase( KDialogBase::Plain, i18n("Jupiter Moons Tool"), Close, Close, parent, name )
{
ksw = (KStars*)parent;
- QFrame *page = plainPage();
- QVBoxLayout *vlay = new QVBoxLayout( page, 0, 0 );
+ TQFrame *page = plainPage();
+ TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, 0 );
colJp = "White";
colIo = "Red";
@@ -44,15 +44,15 @@ JMoonTool::JMoonTool(QWidget *parent, const char *name)
colGn = "Orange";
colCa = "YellowGreen";
- QLabel *labIo = new QLabel( "Io", page );
- QLabel *labEu = new QLabel( "Europa", page );
- QLabel *labGn = new QLabel( "Ganymede", page );
- QLabel *labCa = new QLabel( "Callisto", page );
+ TQLabel *labIo = new TQLabel( "Io", page );
+ TQLabel *labEu = new TQLabel( "Europa", page );
+ TQLabel *labGn = new TQLabel( "Ganymede", page );
+ TQLabel *labCa = new TQLabel( "Callisto", page );
- labIo->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
- labEu->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
- labGn->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
- labCa->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
+ labIo->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
+ labEu->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
+ labGn->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
+ labCa->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
labIo->setAlignment( AlignHCenter );
labEu->setAlignment( AlignHCenter );
labGn->setAlignment( AlignHCenter );
@@ -67,7 +67,7 @@ JMoonTool::JMoonTool(QWidget *parent, const char *name)
labGn->setPaletteBackgroundColor( "Black" );
labCa->setPaletteBackgroundColor( "Black" );
- QGridLayout *glay = new QGridLayout( 2, 2, 0 );
+ TQGridLayout *glay = new TQGridLayout( 2, 2, 0 );
glay->addWidget( labIo, 0, 0 );
glay->addWidget( labEu, 1, 0 );
glay->addWidget( labGn, 0, 1 );
@@ -128,7 +128,7 @@ void JMoonTool::initPlotObjects() {
pw->addObject( jpath );
}
-void JMoonTool::keyPressEvent( QKeyEvent *e ) {
+void JMoonTool::keyPressEvent( TQKeyEvent *e ) {
switch ( e->key() ) {
case Key_BracketRight:
{
diff --git a/kstars/kstars/tools/jmoontool.h b/kstars/kstars/tools/jmoontool.h
index 57ba53ab..70c33e79 100644
--- a/kstars/kstars/tools/jmoontool.h
+++ b/kstars/kstars/tools/jmoontool.h
@@ -31,17 +31,17 @@ class JMoonTool : public KDialogBase
{
Q_OBJECT
public:
- JMoonTool(QWidget *parent = 0, const char *name = 0);
+ JMoonTool(TQWidget *parent = 0, const char *name = 0);
~JMoonTool();
protected:
- virtual void keyPressEvent( QKeyEvent *e );
+ virtual void keyPressEvent( TQKeyEvent *e );
private:
void initPlotObjects();
KStarsPlotWidget *pw;
KStars *ksw;
- QString colJp, colIo, colEu, colGn, colCa;
+ TQString colJp, colIo, colEu, colGn, colCa;
};
#endif
diff --git a/kstars/kstars/tools/kstarsplotwidget.cpp b/kstars/kstars/tools/kstarsplotwidget.cpp
index 5e66e2a6..dcbe36b7 100644
--- a/kstars/kstars/tools/kstarsplotwidget.cpp
+++ b/kstars/kstars/tools/kstarsplotwidget.cpp
@@ -19,16 +19,16 @@
#include <kdebug.h>
#include <kglobal.h>
#include <klocale.h>
-#include <qcolor.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qstring.h>
+#include <tqcolor.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
#include "kstarsplotwidget.h"
-KStarsPlotWidget::KStarsPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent, const char* name )
+KStarsPlotWidget::KStarsPlotWidget( double x1, double x2, double y1, double y2, TQWidget *parent, const char* name )
: KPlotWidget( x1, x2, y1, y2, parent, name ),
dXtick2(0.0), dYtick2(0.0),
nmajX2(0), nminX2(0), nmajY2(0), nminY2(0),
@@ -280,7 +280,7 @@ void KStarsPlotWidget::updateTickmarks() {
} //end for iaxis
}
-void KStarsPlotWidget::drawBox( QPainter *p ) {
+void KStarsPlotWidget::drawBox( TQPainter *p ) {
int pW = PixRect.width(), pH = PixRect.height();
//First, fill in padding region with bgColor() to mask out-of-bounds plot data
@@ -334,7 +334,7 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
if ( dataHeight2() > 0.0 && ( yb() != y() || yb2() != y2() ) ) secondaryYLimits = true;
//set small font for tick labels
- QFont f = p->font();
+ TQFont f = p->font();
int s = f.pointSize();
f.setPointSize( s - 2 );
p->setFont( f );
@@ -358,13 +358,13 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
switch ( xAxisType() ) {
case DOUBLE :
{
- QString str = QString( "%1" ).arg( lab, 0, 'g', 2 );
+ TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
int idot = str.find( '.' );
if ( idot >= 0 )
str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( px > 0 && px < pW ) {
- QRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
+ TQRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -376,18 +376,18 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
while ( h > 24 ) { h -= 24; }
while ( h < 0 ) { h += 24; }
- QString str = QString().sprintf( "%02d:%02d", h, m );
+ TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( px > 0 && px < pW ) {
- QRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
+ TQRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
}
case ANGLE :
{
- QString str = QString().sprintf( "%d%c", int(lab), 176 );
+ TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( px > 0 && px < pW ) {
- QRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
+ TQRect r( px - BIGTICKSIZE, pH+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -426,13 +426,13 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
switch ( yAxisType() ) {
case DOUBLE :
{
- QString str = QString( "%1" ).arg( lab, 0, 'g', 2 );
+ TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
int idot = str.find( '.' );
if ( idot >= 0 )
str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( py > 0 && py < pH ) {
- QRect r( -2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
+ TQRect r( -2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -444,18 +444,18 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
while ( h > 24 ) { h -= 24; }
while ( h < 0 ) { h += 24; }
- QString str = QString().sprintf( "%02d:%02d", h, m );
+ TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( py > 0 && py < pH ) {
- QRect r( -3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
+ TQRect r( -3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
}
case ANGLE :
{
- QString str = QString().sprintf( "%d%c", int(lab), 176 );
+ TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( py > 0 && py < pH ) {
- QRect r( -3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
+ TQRect r( -3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -492,13 +492,13 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
switch ( xAxisType() ) {
case DOUBLE :
{
- QString str = QString( "%1" ).arg( lab, 0, 'g', 2 );
+ TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
int idot = str.find( '.' );
if ( idot >= 0 )
str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( px > 0 && px < pW ) {
- QRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
+ TQRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -510,18 +510,18 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
while ( h > 24 ) { h -= 24; }
while ( h < 0 ) { h += 24; }
- QString str = QString().sprintf( "%02d:%02d", h, m );
+ TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( px > 0 && px < pW ) {
- QRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
+ TQRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
}
case ANGLE :
{
- QString str = QString().sprintf( "%d%c", int(lab), 176 );
+ TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( px > 0 && px < pW ) {
- QRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
+ TQRect r( px - BIGTICKSIZE, -2*BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -556,13 +556,13 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
switch ( yAxisType() ) {
case DOUBLE :
{
- QString str = QString( "%1" ).arg( lab, 0, 'g', 2 );
+ TQString str = TQString( "%1" ).arg( lab, 0, 'g', 2 );
int idot = str.find( '.' );
if ( idot >= 0 )
str = str.replace( idot, 1, KGlobal::locale()->decimalSymbol() );
if ( py > 0 && py < pH ) {
- QRect r( pW + 2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
+ TQRect r( pW + 2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -574,18 +574,18 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
while ( h > 24 ) { h -= 24; }
while ( h < 0 ) { h += 24; }
- QString str = QString().sprintf( "%02d:%02d", h, m );
+ TQString str = TQString().sprintf( "%02d:%02d", h, m );
if ( py > 0 && py < pH ) {
- QRect r( pW + 2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
+ TQRect r( pW + 2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
}
case ANGLE :
{
- QString str = QString().sprintf( "%d%c", int(lab), 176 );
+ TQString str = TQString().sprintf( "%d%c", int(lab), 176 );
if ( py > 0 && py < pH ) {
- QRect r( pW + 3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
+ TQRect r( pW + 3*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
}
break;
@@ -610,11 +610,11 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
//Draw X Axis Label(s)
if ( ! BottomAxis.label().isEmpty() ) {
- QRect r( 0, PixRect.height() + 2*YPADDING, PixRect.width(), YPADDING );
+ TQRect r( 0, PixRect.height() + 2*YPADDING, PixRect.width(), YPADDING );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, BottomAxis.label() );
}
if ( ! XAxisLabel2.isEmpty() ) {
- QRect r( 0, -3*YPADDING, PixRect.width(), YPADDING );
+ TQRect r( 0, -3*YPADDING, PixRect.width(), YPADDING );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, XAxisLabel2 );
}
@@ -627,7 +627,7 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
p->translate( -3*XPADDING, PixRect.height() );
p->rotate( -90.0 );
- QRect r( 0, 0, PixRect.height(), XPADDING );
+ TQRect r( 0, 0, PixRect.height(), XPADDING );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, LeftAxis.label() ); //draw the label, now that we are sideways
p->restore(); //restore translation/rotation state
@@ -640,7 +640,7 @@ void KStarsPlotWidget::drawBox( QPainter *p ) {
p->translate( PixRect.width() + 2*XPADDING, PixRect.height() );
p->rotate( -90.0 );
- QRect r( 0, 0, PixRect.height(), XPADDING );
+ TQRect r( 0, 0, PixRect.height(), XPADDING );
p->drawText( r, Qt::AlignCenter | Qt::DontClip, YAxisLabel2 ); //draw the label, now that we are sideways
p->restore(); //restore translation/rotation state
diff --git a/kstars/kstars/tools/kstarsplotwidget.h b/kstars/kstars/tools/kstarsplotwidget.h
index 554f4a80..dd28f195 100644
--- a/kstars/kstars/tools/kstarsplotwidget.h
+++ b/kstars/kstars/tools/kstarsplotwidget.h
@@ -18,7 +18,7 @@
#ifndef _KSTARSPLOTWIDGET_H_
#define _KSTARSPLOTWIDGET_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include <libkdeedu/kdeeduplot/kplotwidget.h>
#define BIGTICKSIZE 10
@@ -41,7 +41,7 @@ class KStarsPlotWidget : public KPlotWidget {
public:
/**Constructor
*/
- KStarsPlotWidget( double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0, QWidget *parent=0, const char* name=0 );
+ KStarsPlotWidget( double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0, TQWidget *parent=0, const char* name=0 );
/**Destructor (empty)
*/
@@ -95,12 +95,12 @@ public:
*@param xlabel a short string describing the data plotted on the x-axis.
*Set the label to an empty string to omit the axis label.
*/
- virtual void setXAxisLabel2( QString xlabel ) { XAxisLabel2 = xlabel; }
+ virtual void setXAxisLabel2( TQString xlabel ) { XAxisLabel2 = xlabel; }
/**@short set the secondary Y-axis label
*@param ylabel a short string describing the data plotted on the y-axis.
*Set the label to an empty string to omit the axis label.
*/
- virtual void setYAxisLabel2( QString ylabel ) { YAxisLabel2 = ylabel; }
+ virtual void setYAxisLabel2( TQString ylabel ) { YAxisLabel2 = ylabel; }
/**@returns the number of pixels to the right of the plot area.
*Padding values are set to -1 by default; if unchanged, this function will try to guess
@@ -114,7 +114,7 @@ public:
int topPadding() const;
protected:
- void drawBox( QPainter *p );
+ void drawBox( TQPainter *p );
double dXtick2, dYtick2;
int nmajX2, nminX2, nmajY2, nminY2;
@@ -122,7 +122,7 @@ protected:
double XScaleFactor, YScaleFactor;
DRect DataRect2;
- QString XAxisLabel2, YAxisLabel2;
+ TQString XAxisLabel2, YAxisLabel2;
};
#endif
diff --git a/kstars/kstars/tools/lcgenerator.cpp b/kstars/kstars/tools/lcgenerator.cpp
index 39a535f2..bc682bbb 100644
--- a/kstars/kstars/tools/lcgenerator.cpp
+++ b/kstars/kstars/tools/lcgenerator.cpp
@@ -15,18 +15,18 @@
* *
***************************************************************************/
-#include <qvariant.h>
+#include <tqvariant.h>
#include <klineedit.h>
#include <klistbox.h>
#include <kpushbutton.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qfile.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqfile.h>
#include <kio/netaccess.h>
#include <kmessagebox.h>
@@ -39,7 +39,7 @@
#include <kapplication.h>
-LCGenerator::LCGenerator( QWidget* parent)
+LCGenerator::LCGenerator( TQWidget* parent)
: KDialogBase( parent, "lcgenerator", false, i18n( "AAVSO Light Curve Generator"),0) , Hostprefix("http://www.aavso.org/cgi-bin/kstar.pl"), JDCutOff(2437600)
{
@@ -48,7 +48,7 @@ LCGenerator::LCGenerator( QWidget* parent)
downloadJob = 0;
- file = new QFile();
+ file = new TQFile();
}
LCGenerator::~LCGenerator()
@@ -60,24 +60,24 @@ LCGenerator::~LCGenerator()
void LCGenerator::createGUI()
{
- QWidget *page = new QWidget(this);
+ TQWidget *page = new TQWidget(this);
setMainWidget(page);
- LCGeneratorDialogLayout = new QVBoxLayout( page, 11, 6, "LCGeneratorDialogLayout");
+ LCGeneratorDialogLayout = new TQVBoxLayout( page, 11, 6, "LCGeneratorDialogLayout");
- SDLayout = new QHBoxLayout( 0, 0, 6, "SDLayout");
+ SDLayout = new TQHBoxLayout( 0, 0, 6, "SDLayout");
- StarInfoBox = new QGroupBox( page, "StarInfoBox" );
+ StarInfoBox = new TQGroupBox( page, "StarInfoBox" );
StarInfoBox->setColumnLayout(0, Qt::Vertical );
StarInfoBox->layout()->setSpacing( 6 );
StarInfoBox->layout()->setMargin( 11 );
- StarInfoBoxLayout = new QVBoxLayout( StarInfoBox->layout() );
+ StarInfoBoxLayout = new TQVBoxLayout( StarInfoBox->layout() );
StarInfoBoxLayout->setAlignment( Qt::AlignTop );
- DesignHLayout = new QHBoxLayout( 0, 0, 6, "DesignHLayout");
+ DesignHLayout = new TQHBoxLayout( 0, 0, 6, "DesignHLayout");
- desigLabel = new QLabel( StarInfoBox, "desigLabel" );
- desigLabel->setMinimumSize( QSize( 70, 0 ) );
+ desigLabel = new TQLabel( StarInfoBox, "desigLabel" );
+ desigLabel->setMinimumSize( TQSize( 70, 0 ) );
DesignHLayout->addWidget( desigLabel );
DesignationIn = new KListBox( StarInfoBox, "DesignationIn" );
@@ -88,10 +88,10 @@ void LCGenerator::createGUI()
for (uint i=0; i< (ksw->data()->VariableStarsList.count()); i++)
DesignationIn->insertItem(ksw->data()->VariableStarsList.at(i)->Designation);
- NameHLayout = new QHBoxLayout( 0, 0, 6, "NameHLayout");
+ NameHLayout = new TQHBoxLayout( 0, 0, 6, "NameHLayout");
- nameLabel = new QLabel( StarInfoBox, "nameLabel" );
- nameLabel->setMinimumSize( QSize( 70, 0 ) );
+ nameLabel = new TQLabel( StarInfoBox, "nameLabel" );
+ nameLabel->setMinimumSize( TQSize( 70, 0 ) );
NameHLayout->addWidget( nameLabel );
NameIn = new KListBox( StarInfoBox, "NameIn" );
@@ -102,20 +102,20 @@ void LCGenerator::createGUI()
for (uint i=0; i<ksw->data()->VariableStarsList.count(); i++)
NameIn->insertItem(ksw->data()->VariableStarsList.at(i)->Name);
- StartHLayout = new QHBoxLayout( 0, 0, 6, "StartHLayout");
+ StartHLayout = new TQHBoxLayout( 0, 0, 6, "StartHLayout");
- startLabel = new QLabel( StarInfoBox, "startLabel" );
- startLabel->setMinimumSize( QSize( 70, 0 ) );
+ startLabel = new TQLabel( StarInfoBox, "startLabel" );
+ startLabel->setMinimumSize( TQSize( 70, 0 ) );
StartHLayout->addWidget( startLabel );
StartDateIn = new KLineEdit( StarInfoBox, "StartDateIn" );
StartHLayout->addWidget( StartDateIn );
StarInfoBoxLayout->addLayout( StartHLayout );
- EndHLayout = new QHBoxLayout( 0, 0, 6, "EndHLayout");
+ EndHLayout = new TQHBoxLayout( 0, 0, 6, "EndHLayout");
- endLabel = new QLabel( StarInfoBox, "endLabel" );
- endLabel->setMinimumSize( QSize( 70, 0 ) );
+ endLabel = new TQLabel( StarInfoBox, "endLabel" );
+ endLabel->setMinimumSize( TQSize( 70, 0 ) );
EndHLayout->addWidget( endLabel );
EndDateIn = new KLineEdit( StarInfoBox, "EndDateIn" );
@@ -123,62 +123,62 @@ void LCGenerator::createGUI()
StarInfoBoxLayout->addLayout( EndHLayout );
SDLayout->addWidget( StarInfoBox );
- DataSelectBox = new QGroupBox( page, "DataSelectBox" );
+ DataSelectBox = new TQGroupBox( page, "DataSelectBox" );
DataSelectBox->setColumnLayout(0, Qt::Vertical );
DataSelectBox->layout()->setSpacing( 6 );
DataSelectBox->layout()->setMargin( 11 );
- DataSelectBoxLayout = new QVBoxLayout( DataSelectBox->layout() );
+ DataSelectBoxLayout = new TQVBoxLayout( DataSelectBox->layout() );
DataSelectBoxLayout->setAlignment( Qt::AlignTop );
- VisualCheck = new QCheckBox( DataSelectBox, "VisualCheck" );
+ VisualCheck = new TQCheckBox( DataSelectBox, "VisualCheck" );
VisualCheck->setChecked( TRUE );
DataSelectBoxLayout->addWidget( VisualCheck );
- FainterCheck = new QCheckBox( DataSelectBox, "FainterCheck" );
+ FainterCheck = new TQCheckBox( DataSelectBox, "FainterCheck" );
FainterCheck->setChecked( TRUE );
DataSelectBoxLayout->addWidget( FainterCheck );
- DiscrepantCheck = new QCheckBox( DataSelectBox, "DiscrepantCheck" );
+ DiscrepantCheck = new TQCheckBox( DataSelectBox, "DiscrepantCheck" );
DataSelectBoxLayout->addWidget( DiscrepantCheck );
- CCDBCheck = new QCheckBox( DataSelectBox, "CCDBCheck" );
+ CCDBCheck = new TQCheckBox( DataSelectBox, "CCDBCheck" );
CCDBCheck->setChecked( TRUE );
DataSelectBoxLayout->addWidget( CCDBCheck );
- CCDVCheck = new QCheckBox( DataSelectBox, "CCDVCheck" );
+ CCDVCheck = new TQCheckBox( DataSelectBox, "CCDVCheck" );
CCDVCheck->setChecked( TRUE );
DataSelectBoxLayout->addWidget( CCDVCheck );
- CCDRCheck = new QCheckBox( DataSelectBox, "CCDRCheck" );
+ CCDRCheck = new TQCheckBox( DataSelectBox, "CCDRCheck" );
CCDRCheck->setChecked( TRUE );
DataSelectBoxLayout->addWidget( CCDRCheck );
- CCDICheck = new QCheckBox( DataSelectBox, "CCDICheck" );
+ CCDICheck = new TQCheckBox( DataSelectBox, "CCDICheck" );
CCDICheck->setChecked( TRUE );
DataSelectBoxLayout->addWidget( CCDICheck );
- PlotHLayout = new QHBoxLayout( 0, 0, 6, "PlotHLayout");
+ PlotHLayout = new TQHBoxLayout( 0, 0, 6, "PlotHLayout");
- plotLabel = new QLabel( DataSelectBox, "plotLabel" );
+ plotLabel = new TQLabel( DataSelectBox, "plotLabel" );
PlotHLayout->addWidget( plotLabel );
AverageDayIn = new KLineEdit( DataSelectBox, "AverageDayIn" );
PlotHLayout->addWidget( AverageDayIn );
- daysLabel = new QLabel( DataSelectBox, "daysLabel" );
+ daysLabel = new TQLabel( DataSelectBox, "daysLabel" );
PlotHLayout->addWidget( daysLabel );
DataSelectBoxLayout->addLayout( PlotHLayout );
SDLayout->addWidget( DataSelectBox );
LCGeneratorDialogLayout->addLayout( SDLayout );
- ButtonHLayout = new QHBoxLayout( 0, 0, 6, "ButtonHLayout");
+ ButtonHLayout = new TQHBoxLayout( 0, 0, 6, "ButtonHLayout");
GetCurveButton = new KPushButton( page, "GetCurveButton" );
ButtonHLayout->addWidget( GetCurveButton );
UpdateListButton = new KPushButton( page, "UpdateListButton" );
ButtonHLayout->addWidget( UpdateListButton );
- QSpacerItem* spacer = new QSpacerItem( 128, 16, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem* spacer = new TQSpacerItem( 128, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
ButtonHLayout->addItem( spacer );
CloseButton = new KPushButton( page, "closeButton" );
@@ -190,9 +190,9 @@ void LCGenerator::createGUI()
desigLabel->setText( i18n( "Designation:" ) );
nameLabel->setText( i18n( "Or name:" ) );
startLabel->setText( i18n( "Start date:" ) );
- QWhatsThis::add( startLabel, i18n( "Start date for the light curve plot in mm/dd/yy or JD" ) );
+ TQWhatsThis::add( startLabel, i18n( "Start date for the light curve plot in mm/dd/yy or JD" ) );
endLabel->setText( i18n( "End date:" ) );
- QWhatsThis::add( endLabel, i18n( "End date for the light curve plot in mm/dd/yy or JD" ) );
+ TQWhatsThis::add( endLabel, i18n( "End date for the light curve plot in mm/dd/yy or JD" ) );
StartDateIn->setText( i18n( "default" ) );
EndDateIn->setText( i18n( "default" ) );
DataSelectBox->setTitle( i18n( "Data Selection" ) );
@@ -209,22 +209,22 @@ void LCGenerator::createGUI()
UpdateListButton->setText( i18n( "Update List" ) );
CloseButton->setText( i18n( "Close" ) );
- resize( QSize(500, 360) );
+ resize( TQSize(500, 360) );
// Signals/Slots
- QObject::connect(CloseButton, SIGNAL(clicked()), this, SLOT(close()));
- QObject::connect(GetCurveButton, SIGNAL(clicked()), this, SLOT(VerifyData()));
- QObject::connect(UpdateListButton, SIGNAL(clicked()), this, SLOT(updateStarList()));
- QObject::connect(DesignationIn, SIGNAL(highlighted(int)), this, SLOT(updateNameList(int)));
- QObject::connect(NameIn, SIGNAL(highlighted(int)), this, SLOT(updateDesigList(int)));
+ TQObject::connect(CloseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(close()));
+ TQObject::connect(GetCurveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(VerifyData()));
+ TQObject::connect(UpdateListButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateStarList()));
+ TQObject::connect(DesignationIn, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(updateNameList(int)));
+ TQObject::connect(NameIn, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(updateDesigList(int)));
}
void LCGenerator::VerifyData()
{
- QString InitialStartDate, InitialEndDate;
- QString FinalDesignation, FinalStartDate, FinalEndDate, AverageDays;
+ TQString InitialStartDate, InitialEndDate;
+ TQString FinalDesignation, FinalStartDate, FinalEndDate, AverageDays;
bool AverageDaysOK;
// Get initial user input
@@ -266,14 +266,14 @@ void LCGenerator::VerifyData()
}
}
- else AverageDays = QString("default");
+ else AverageDays = TQString("default");
//Download the curve!
DownloadCurve(FinalStartDate, FinalEndDate, FinalDesignation, AverageDays);
}
-bool LCGenerator::setJD(QString Date, QString *JD, int JDType)
+bool LCGenerator::setJD(TQString Date, TQString *JD, int JDType)
{
uint i=0;
int TempJD=0;
@@ -283,9 +283,9 @@ bool LCGenerator::setJD(QString Date, QString *JD, int JDType)
int dateFormat[3];
bool isNumber;
- const QString invalidFormatStartJD(i18n("Invalid date format. Correct format is mm/dd/yyyy or JD, leave 'default' to generate light curves for the past 500 days."));
- const QString invalidFormatENDJD(i18n("Invalid date format. Correct format is mm/dd/yyyy or JD, leave 'default' to generate light curves until today."));
- QString invalidFormatMsg(JDType ? invalidFormatENDJD : invalidFormatStartJD);
+ const TQString invalidFormatStartJD(i18n("Invalid date format. Correct format is mm/dd/yyyy or JD, leave 'default' to generate light curves for the past 500 days."));
+ const TQString invalidFormatENDJD(i18n("Invalid date format. Correct format is mm/dd/yyyy or JD, leave 'default' to generate light curves until today."));
+ TQString invalidFormatMsg(JDType ? invalidFormatENDJD : invalidFormatStartJD);
// check for "default" date
@@ -325,7 +325,7 @@ bool LCGenerator::setJD(QString Date, QString *JD, int JDType)
else
{
const char* invalidJD = I18N_NOOP("No data available for JD prior to %d");
- KMessageBox::error(this, QString().sprintf(invalidJD, JDCutOff));
+ KMessageBox::error(this, TQString().sprintf(invalidJD, JDCutOff));
return false;
}
}
@@ -361,18 +361,18 @@ bool LCGenerator::setJD(QString Date, QString *JD, int JDType)
else
{
const char* invalidJD = I18N_NOOP("No data available for JD prior to %d");
- KMessageBox::error(this, QString().sprintf(invalidJD, JDCutOff));
+ KMessageBox::error(this, TQString().sprintf(invalidJD, JDCutOff));
return false;
}
}
-void LCGenerator::DownloadCurve(QString FinalStartDate, QString FinalEndDate, QString FinalDesignation, QString AverageDay)
+void LCGenerator::DownloadCurve(TQString FinalStartDate, TQString FinalEndDate, TQString FinalDesignation, TQString AverageDay)
{
- QString buf(Hostprefix);
- QString Yes("yes");
- QString No("no");
+ TQString buf(Hostprefix);
+ TQString Yes("yes");
+ TQString No("no");
//FainterCheck;
//CCDVCheck;
@@ -397,7 +397,7 @@ void LCGenerator::DownloadCurve(QString FinalStartDate, QString FinalEndDate, QS
KURL url(buf);
- QString message = i18n( "Light Curve produced by the American Amateur Variable Star Observers" );
+ TQString message = i18n( "Light Curve produced by the American Amateur Variable Star Observers" );
// parent of imageview is KStars
new ImageViewer(&url, message, ksw, "lightcurve");
@@ -427,7 +427,7 @@ void LCGenerator::updateStarList()
KURL saveFile (file->name());
downloadJob = KIO::file_copy (AAVSOFile, saveFile, -1, true);
- connect (downloadJob, SIGNAL (result (KIO::Job *)), SLOT (downloadReady (KIO::Job *)));
+ connect (downloadJob, TQT_SIGNAL (result (KIO::Job *)), TQT_SLOT (downloadReady (KIO::Job *)));
}
void LCGenerator::downloadReady(KIO::Job * job)
@@ -468,7 +468,7 @@ downloadJob = 0;
}
-void LCGenerator::closeEvent (QCloseEvent *ev)
+void LCGenerator::closeEvent (TQCloseEvent *ev)
{
if (ev) // not if closeEvent (0) is called, because segfault
ev->accept(); // parent-widgets should not get this event, so it will be filtered
diff --git a/kstars/kstars/tools/lcgenerator.h b/kstars/kstars/tools/lcgenerator.h
index 0aeb177f..0e676be6 100644
--- a/kstars/kstars/tools/lcgenerator.h
+++ b/kstars/kstars/tools/lcgenerator.h
@@ -27,7 +27,7 @@
#ifndef LCGENERATOR_H
#define LCGENERATOR_H
-#include <qvariant.h>
+#include <tqvariant.h>
#include <kdialogbase.h>
#include <kio/job.h>
@@ -47,8 +47,8 @@ class KStars;
struct VariableStarInfo
{
- QString Name;
- QString Designation;
+ TQString Name;
+ TQString Designation;
};
class LCGenerator : public KDialogBase
@@ -59,7 +59,7 @@ public:
/**Constructor
*@p parent pointer to the parent widget
*/
- LCGenerator( QWidget* parent = 0);
+ LCGenerator( TQWidget* parent = 0);
/**Destructor */
~LCGenerator();
@@ -74,7 +74,7 @@ private:
*@param JDType start or end JD
*@returns true if conversion is successful
*/
- bool setJD(QString date, QString * JD, int JDType);
+ bool setJD(TQString date, TQString * JD, int JDType);
/** Parses star information and connects to the AAVSO server with the information embedded in the URL
*@param FinalStartDate The start date in Julian days
@@ -82,57 +82,57 @@ private:
*@param FinalDesignation The AAVSO star designation
*@param AverageDay Number of average days for binning the light curve
*/
- void DownloadCurve(QString FinalStartDate, QString FinalEndDate, QString FinalDesignation, QString AverageDay);
+ void DownloadCurve(TQString FinalStartDate, TQString FinalEndDate, TQString FinalDesignation, TQString AverageDay);
KStars *ksw;
- const QString Hostprefix;
+ const TQString Hostprefix;
const int JDCutOff;
- QGroupBox* StarInfoBox;
- QLabel* desigLabel;
+ TQGroupBox* StarInfoBox;
+ TQLabel* desigLabel;
KListBox* DesignationIn;
- QLabel* nameLabel;
+ TQLabel* nameLabel;
KListBox* NameIn;
- QLabel* startLabel;
+ TQLabel* startLabel;
KLineEdit* StartDateIn;
- QLabel* endLabel;
+ TQLabel* endLabel;
KLineEdit* EndDateIn;
- QGroupBox* DataSelectBox;
- QCheckBox* VisualCheck;
- QCheckBox* FainterCheck;
- QCheckBox* DiscrepantCheck;
- QCheckBox* CCDBCheck;
- QCheckBox* CCDVCheck;
- QCheckBox* CCDRCheck;
- QCheckBox* CCDICheck;
- QLabel* plotLabel;
+ TQGroupBox* DataSelectBox;
+ TQCheckBox* VisualCheck;
+ TQCheckBox* FainterCheck;
+ TQCheckBox* DiscrepantCheck;
+ TQCheckBox* CCDBCheck;
+ TQCheckBox* CCDVCheck;
+ TQCheckBox* CCDRCheck;
+ TQCheckBox* CCDICheck;
+ TQLabel* plotLabel;
KLineEdit* AverageDayIn;
- QLabel* daysLabel;
+ TQLabel* daysLabel;
KPushButton* GetCurveButton;
KPushButton* UpdateListButton;
KPushButton* CloseButton;
- QVBoxLayout* LCGeneratorDialogLayout;
- QHBoxLayout* SDLayout;
- QVBoxLayout* StarInfoBoxLayout;
- QHBoxLayout* DesignHLayout;
- QHBoxLayout* NameHLayout;
- QHBoxLayout* StartHLayout;
- QHBoxLayout* EndHLayout;
- QVBoxLayout* DataSelectBoxLayout;
- QHBoxLayout* PlotHLayout;
- QHBoxLayout* ButtonHLayout;
+ TQVBoxLayout* LCGeneratorDialogLayout;
+ TQHBoxLayout* SDLayout;
+ TQVBoxLayout* StarInfoBoxLayout;
+ TQHBoxLayout* DesignHLayout;
+ TQHBoxLayout* NameHLayout;
+ TQHBoxLayout* StartHLayout;
+ TQHBoxLayout* EndHLayout;
+ TQVBoxLayout* DataSelectBoxLayout;
+ TQHBoxLayout* PlotHLayout;
+ TQHBoxLayout* ButtonHLayout;
KIO::Job *downloadJob; // download job of image -> 0 == no job is running
- QFile *file;
+ TQFile *file;
/**Make sure all events have been processed before closing the dialog
- *@p ev pointer to the QCloseEvent object
+ *@p ev pointer to the TQCloseEvent object
*/
- void closeEvent (QCloseEvent *ev);
+ void closeEvent (TQCloseEvent *ev);
public slots:
/** Checks if a star name or designation exists in the database,
diff --git a/kstars/kstars/tools/modcalcangdist.cpp b/kstars/kstars/tools/modcalcangdist.cpp
index 40969152..750ae6d6 100644
--- a/kstars/kstars/tools/modcalcangdist.cpp
+++ b/kstars/kstars/tools/modcalcangdist.cpp
@@ -21,16 +21,16 @@
#include "dmsbox.h"
#include "skypoint.h"
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qtextstream.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqtextstream.h>
#include <klocale.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
//#include <kapplication.h> ..already included in modcalcapcoord.h
-modCalcAngDist::modCalcAngDist(QWidget *parentSplit, const char *name) : modCalcAngDistDlg(parentSplit,name) {
+modCalcAngDist::modCalcAngDist(TQWidget *parentSplit, const char *name) : modCalcAngDistDlg(parentSplit,name) {
ra0Box->setDegType(FALSE);
ra1Box->setDegType(FALSE);
@@ -76,41 +76,41 @@ void modCalcAngDist::slotComputeDist(){
}
void modCalcAngDist::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcAngDist::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcAngDist::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 );
@@ -118,20 +118,20 @@ void modCalcAngDist::slotRunBatch() {
}
}
-//void modCalcAngDist::processLines( const QFile * fIn ) {
-void modCalcAngDist::processLines( QTextStream &istream ) {
+//void modCalcAngDist::processLines( const TQFile * fIn ) {
+void modCalcAngDist::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 sp0, sp1;
dms ra0B, dec0B, ra1B, dec1B, dist;
@@ -142,7 +142,7 @@ void modCalcAngDist::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
diff --git a/kstars/kstars/tools/modcalcangdist.h b/kstars/kstars/tools/modcalcangdist.h
index 27176945..ee13374a 100644
--- a/kstars/kstars/tools/modcalcangdist.h
+++ b/kstars/kstars/tools/modcalcangdist.h
@@ -36,7 +36,7 @@ class modCalcAngDist : public modCalcAngDistDlg {
Q_OBJECT
public:
/**Constructor. */
- modCalcAngDist(QWidget *p, const char *n);
+ modCalcAngDist(TQWidget *p, const char *n);
/**Destructor. */
~modCalcAngDist();
@@ -49,7 +49,7 @@ public slots:
private:
/** Process Lines **/
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
/**@returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */
SkyPoint getCoords(dmsBox * rBox, dmsBox* dBox);
diff --git a/kstars/kstars/tools/modcalcapcoord.cpp b/kstars/kstars/tools/modcalcapcoord.cpp
index 1c9a4578..27f4bc0c 100644
--- a/kstars/kstars/tools/modcalcapcoord.cpp
+++ b/kstars/kstars/tools/modcalcapcoord.cpp
@@ -26,18 +26,18 @@
#include "kstarsdatetime.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qdatetimeedit.h> //needed for QTimeEdit
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqdatetimeedit.h> //needed for QTimeEdit
#include <klineedit.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <klocale.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
//#include <kapplication.h> ..already included in modcalcapcoord.h
-modCalcApCoord::modCalcApCoord(QWidget *parentSplit, const char *name) : modCalcApCoordDlg(parentSplit,name) {
+modCalcApCoord::modCalcApCoord(TQWidget *parentSplit, const char *name) : modCalcApCoordDlg(parentSplit,name) {
showCurrentTime();
ra0Box->setDegType(FALSE);
@@ -74,7 +74,7 @@ KStarsDateTime modCalcApCoord::getDateTime (void)
return KStarsDateTime( datBox->date() , timBox->time() );
}
-double modCalcApCoord::getEpoch (QString eName) {
+double modCalcApCoord::getEpoch (TQString eName) {
bool ok = false;
double epoch = eName.toDouble(&ok);
@@ -99,7 +99,7 @@ void modCalcApCoord::slotClearCoords(){
decfBox->clearFields();
epoch0Name->setText("");
datBox->setDate(ExtDate::currentDate());
- timBox->setTime(QTime(0,0,0));
+ timBox->setTime(TQTime(0,0,0));
}
void modCalcApCoord::slotComputeCoords(){
@@ -160,41 +160,41 @@ void modCalcApCoord::slotEpochCheckedBatch(){
}
void modCalcApCoord::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcApCoord::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcApCoord::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 );
@@ -202,24 +202,24 @@ void modCalcApCoord::slotRunBatch() {
}
}
-//void modCalcApCoord::processLines( const QFile * fIn ) {
-void modCalcApCoord::processLines( QTextStream &istream ) {
+//void modCalcApCoord::processLines( const TQFile * fIn ) {
+void modCalcApCoord::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 jd, jd0;
SkyPoint sp;
- QTime utB;
+ TQTime utB;
ExtDate dtB;
dms raB, decB;
double epoch0B;
@@ -230,14 +230,14 @@ void modCalcApCoord::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();
diff --git a/kstars/kstars/tools/modcalcapcoord.h b/kstars/kstars/tools/modcalcapcoord.h
index dae968fe..4ac09b38 100644
--- a/kstars/kstars/tools/modcalcapcoord.h
+++ b/kstars/kstars/tools/modcalcapcoord.h
@@ -38,7 +38,7 @@ class modCalcApCoord : public modCalcApCoordDlg {
Q_OBJECT
public:
/**Constructor. */
- modCalcApCoord(QWidget *p, const char *n);
+ modCalcApCoord(TQWidget *p, const char *n);
/**Destructor. */
~modCalcApCoord();
@@ -49,8 +49,8 @@ public:
SkyPoint apparentCoordinates (dms r0, dms d0, long double j0, long double jf);
/** Process Lines **/
-// void processLines( const QFile * f );
- void processLines( QTextStream &istream );
+// void processLines( const TQFile * f );
+ void processLines( TQTextStream &istream );
public slots:
@@ -78,7 +78,7 @@ private:
KStarsDateTime getDateTime (void);
/**Parse the string argument as a double */
- double getEpoch (QString eName);
+ double getEpoch (TQString eName);
/**Fill the RA and Dec dmsBoxes with values of the SkyPoint argument. */
void showEquCoords ( SkyPoint sp );
diff --git a/kstars/kstars/tools/modcalcazel.cpp b/kstars/kstars/tools/modcalcazel.cpp
index a9ba9881..a2dee393 100644
--- a/kstars/kstars/tools/modcalcazel.cpp
+++ b/kstars/kstars/tools/modcalcazel.cpp
@@ -27,16 +27,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>
-modCalcAzel::modCalcAzel(QWidget *parentSplit, const char *name) : modCalcAzelDlg (parentSplit,name) {
+modCalcAzel::modCalcAzel(TQWidget *parentSplit, const char *name) : modCalcAzelDlg (parentSplit,name) {
showCurrentDateTime();
initGeo();
@@ -94,7 +94,7 @@ KStarsDateTime modCalcAzel::getDateTime (void)
return KStarsDateTime( datBox->date() , timBox->time() );
}
-double modCalcAzel::getEpoch (QString eName)
+double modCalcAzel::getEpoch (TQString eName)
{
bool ok = false;
double epoch = eName.toDouble(&ok);
@@ -180,7 +180,7 @@ void modCalcAzel::slotClearCoords()
epochName->setText("");
datBox->setDate(ExtDate::currentDate());
- timBox->setTime(QTime(0,0,0));
+ timBox->setTime(TQTime(0,0,0));
}
@@ -307,40 +307,40 @@ void modCalcAzel::equNoCheck() {
void modCalcAzel::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcAzel::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcAzel::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 );
@@ -348,26 +348,26 @@ void modCalcAzel::slotRunBatch() {
}
}
-void modCalcAzel::processLines( QTextStream &istream ) {
+void modCalcAzel::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, jdf;
dms LST;
SkyPoint sp;
dms raB, decB, latB, longB, azB, elB;
double epoch0B;
- QTime utB;
+ TQTime utB;
ExtDate dtB;
while ( ! istream.eof() ) {
@@ -376,14 +376,14 @@ void modCalcAzel::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();
diff --git a/kstars/kstars/tools/modcalcazel.h b/kstars/kstars/tools/modcalcazel.h
index 9bbe0546..9ef67f6f 100644
--- a/kstars/kstars/tools/modcalcazel.h
+++ b/kstars/kstars/tools/modcalcazel.h
@@ -19,7 +19,7 @@
#define MODCALCAZEL_H
#include <kapplication.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "modcalcazeldlg.h"
class QWidget;
@@ -37,7 +37,7 @@ class modCalcAzel : public modCalcAzelDlg {
Q_OBJECT
public:
- modCalcAzel(QWidget *p, const char *n);
+ modCalcAzel(TQWidget *p, const char *n);
~modCalcAzel();
public slots:
@@ -80,7 +80,7 @@ private:
* @param eName String from which the epoch is to be constructed
* once it is converted to a double
*/
- double getEpoch (QString eName);
+ double getEpoch (TQString eName);
/**Fill the Az and El dmsBoxes with values of the SkyPoint argument.
* @param sp SkypPoint object which contains the coordinates to
@@ -114,7 +114,7 @@ private:
void horNoCheck();
void equNoCheck();
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
GeoLocation *geoPlace;
bool horInputCoords;
diff --git a/kstars/kstars/tools/modcalcdaylength.cpp b/kstars/kstars/tools/modcalcdaylength.cpp
index 9a31dfe2..dcfba7bd 100644
--- a/kstars/kstars/tools/modcalcdaylength.cpp
+++ b/kstars/kstars/tools/modcalcdaylength.cpp
@@ -30,7 +30,7 @@
#include <kapplication.h>
-modCalcDayLength::modCalcDayLength(QWidget *parentSplit, const char *name) : modCalcDayLengthDlg(parentSplit,name) {
+modCalcDayLength::modCalcDayLength(TQWidget *parentSplit, const char *name) : modCalcDayLengthDlg(parentSplit,name) {
showCurrentDate();
initGeo();
show();
@@ -61,7 +61,7 @@ void modCalcDayLength::getGeoLocation (void)
KStarsDateTime modCalcDayLength::getDateTime (void)
{
- return KStarsDateTime( datBox->date() , QTime(8,0,0) );
+ return KStarsDateTime( datBox->date() , TQTime(8,0,0) );
}
void modCalcDayLength::slotClearCoords(){
@@ -82,10 +82,10 @@ void modCalcDayLength::slotClearCoords(){
dayLBox->clearFields();
}
-QTime modCalcDayLength::lengthOfDay(QTime setQTime, QTime riseQTime){
- QTime dL(0,0,0);
+TQTime modCalcDayLength::lengthOfDay(TQTime setQTime, TQTime riseQTime){
+ TQTime dL(0,0,0);
int dds = riseQTime.secsTo(setQTime);
- QTime dLength = dL.addSecs( dds );
+ TQTime dLength = dL.addSecs( dds );
return dLength;
}
@@ -99,9 +99,9 @@ void modCalcDayLength::slotComputePosTime()
KSSun *Sun = new KSSun(((KStars*) parent()->parent()->parent())->data());
Sun->findPosition(num);
- QTime setQtime = Sun->riseSetTime( jd0 , geoPlace, false );
- QTime riseQtime = Sun->riseSetTime( jd0 , geoPlace, true );
- QTime transitQtime = Sun->transitTime(jd0 , geoPlace);
+ TQTime setQtime = Sun->riseSetTime( jd0 , geoPlace, false );
+ TQTime riseQtime = Sun->riseSetTime( jd0 , geoPlace, true );
+ TQTime transitQtime = Sun->transitTime(jd0 , geoPlace);
dms setAz = Sun->riseSetTimeAz(jd0, geoPlace, false);
dms riseAz = Sun->riseSetTimeAz(jd0, geoPlace, true);
@@ -116,7 +116,7 @@ void modCalcDayLength::slotComputePosTime()
riseTimeBox->showTime( riseQtime );
transitTimeBox->showTime( transitQtime );
- QTime dayLQtime = lengthOfDay (setQtime,riseQtime);
+ TQTime dayLQtime = lengthOfDay (setQtime,riseQtime);
dayLBox->showTime( dayLQtime );
} else if (transAlt.Degrees() > 0. ) {
@@ -139,7 +139,7 @@ void modCalcDayLength::slotComputePosTime()
riseTimeBox->clearFields();
transitTimeBox->clearFields();
- dayLBox->showTime( QTime(0,0,0) );
+ dayLBox->showTime( TQTime(0,0,0) );
}
delete num;
diff --git a/kstars/kstars/tools/modcalcdaylength.h b/kstars/kstars/tools/modcalcdaylength.h
index 1c644157..4ad88142 100644
--- a/kstars/kstars/tools/modcalcdaylength.h
+++ b/kstars/kstars/tools/modcalcdaylength.h
@@ -32,7 +32,7 @@ class modCalcDayLength : public modCalcDayLengthDlg {
Q_OBJECT
public:
/**Constructor. */
- modCalcDayLength(QWidget *p, const char *n);
+ modCalcDayLength(TQWidget *p, const char *n);
/**Destructor. */
~modCalcDayLength();
@@ -44,7 +44,7 @@ public slots:
private:
/**@returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */
- QTime lengthOfDay(QTime setQTime, QTime riseQTime);
+ TQTime lengthOfDay(TQTime setQTime, TQTime riseQTime);
/**Fills the Date fields with the current values from the current date. */
void showCurrentDate(void);
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;
diff --git a/kstars/kstars/tools/modcalceclipticcoords.h b/kstars/kstars/tools/modcalceclipticcoords.h
index 809928c9..30757201 100644
--- a/kstars/kstars/tools/modcalceclipticcoords.h
+++ b/kstars/kstars/tools/modcalceclipticcoords.h
@@ -37,12 +37,12 @@ Q_OBJECT
public:
- modCalcEclCoords(QWidget *p, const char *n);
+ modCalcEclCoords(TQWidget *p, const char *n);
~modCalcEclCoords();
void getEclCoords (void);
void getEquCoords (void);
- double getEpoch( QString t );
+ double getEpoch( TQString t );
void showEquCoords(void);
void showEclCoords(void);
void EclToEqu(void);
@@ -64,7 +64,7 @@ public slots:
private:
void equCheck(void);
void eclCheck(void);
- void processLines( QTextStream &is );
+ void processLines( TQTextStream &is );
dms eclipLong, eclipLat, raCoord, decCoord;
double epoch;
diff --git a/kstars/kstars/tools/modcalcequinox.cpp b/kstars/kstars/tools/modcalcequinox.cpp
index 01d89447..ba749698 100644
--- a/kstars/kstars/tools/modcalcequinox.cpp
+++ b/kstars/kstars/tools/modcalcequinox.cpp
@@ -25,15 +25,15 @@
#include "kssun.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-#include <qcombobox.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqcombobox.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
-modCalcEquinox::modCalcEquinox(QWidget *parentSplit, const char *name)
+modCalcEquinox::modCalcEquinox(TQWidget *parentSplit, const char *name)
: modCalcEquinoxDlg (parentSplit,name) {
showCurrentYear();
show();
@@ -42,7 +42,7 @@ modCalcEquinox::modCalcEquinox(QWidget *parentSplit, const char *name)
modCalcEquinox::~modCalcEquinox(){
}
-int modCalcEquinox::getYear (QString eName)
+int modCalcEquinox::getYear (TQString eName)
{
bool ok = FALSE;
int equinoxYear = eName.toInt(&ok);
@@ -57,7 +57,7 @@ int modCalcEquinox::getYear (QString eName)
void modCalcEquinox::showCurrentYear (void)
{
KStarsDateTime dt( KStarsDateTime::currentDateTime() );
- yearEdit->setText( QString( "%1").arg( dt.date().year() ) );
+ yearEdit->setText( TQString( "%1").arg( dt.date().year() ) );
}
void modCalcEquinox::slotComputeEquinoxesAndSolstices (void)
@@ -104,7 +104,7 @@ void modCalcEquinox::showStartDateTime(long double jd)
void modCalcEquinox::showSeasonDuration(float deltaJd)
{
- seasonDuration->setText( QString( "%1").arg( deltaJd ) );
+ seasonDuration->setText( TQString( "%1").arg( deltaJd ) );
}
void modCalcEquinox::slotYearCheckedBatch(){
@@ -116,41 +116,41 @@ void modCalcEquinox::slotYearCheckedBatch(){
}
void modCalcEquinox::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcEquinox::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcEquinox::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 );
@@ -158,19 +158,19 @@ void modCalcEquinox::slotRunBatch() {
}
}
-void modCalcEquinox::processLines( QTextStream &istream ) {
+void modCalcEquinox::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 yearB;
int i = 0;
long double jdsp = 0., jdsu = 0., jdau = 0., jdwin = 0., jdsp1 = 0.;
@@ -183,7 +183,7 @@ void modCalcEquinox::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
diff --git a/kstars/kstars/tools/modcalcequinox.h b/kstars/kstars/tools/modcalcequinox.h
index 25645202..14e664a2 100644
--- a/kstars/kstars/tools/modcalcequinox.h
+++ b/kstars/kstars/tools/modcalcequinox.h
@@ -19,7 +19,7 @@
#define MODCALCEQUINOX_H
#include <kapplication.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "modcalcequinoxdlg.h"
class QWidget;
@@ -34,7 +34,7 @@ class modCalcEquinox : public modCalcEquinoxDlg {
Q_OBJECT
public:
- modCalcEquinox(QWidget *p, const char *n);
+ modCalcEquinox(TQWidget *p, const char *n);
~modCalcEquinox();
public slots:
@@ -48,11 +48,11 @@ public slots:
private:
- int getYear (QString eName);
+ int getYear (TQString eName);
void showCurrentYear (void);
void showStartDateTime(long double jd);
void showSeasonDuration(float deltaJd);
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
};
diff --git a/kstars/kstars/tools/modcalcgalcoord.cpp b/kstars/kstars/tools/modcalcgalcoord.cpp
index 0ec896db..18638a6c 100644
--- a/kstars/kstars/tools/modcalcgalcoord.cpp
+++ b/kstars/kstars/tools/modcalcgalcoord.cpp
@@ -22,11 +22,11 @@
#include "modcalcgalcoord.moc"
#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>
@@ -34,7 +34,7 @@
#include <kmessagebox.h>
-modCalcGalCoord::modCalcGalCoord(QWidget *parentSplit, const char *name) : modCalcGalCoordDlg(parentSplit,name) {
+modCalcGalCoord::modCalcGalCoord(TQWidget *parentSplit, const char *name) : modCalcGalCoordDlg(parentSplit,name) {
equRadio->setChecked(TRUE);
raBox->setDegType(FALSE);
@@ -58,7 +58,7 @@ void modCalcGalCoord::getEquCoords (void) {
epoch = getEpoch( epochName->text() );
}
-double modCalcGalCoord::getEpoch (QString eName) {
+double modCalcGalCoord::getEpoch (TQString eName) {
double epoch = eName.toDouble();
@@ -203,41 +203,41 @@ void modCalcGalCoord::slotGalLongCheckedBatch(){
}
void modCalcGalCoord::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcGalCoord::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcGalCoord::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 );
@@ -245,19 +245,19 @@ void modCalcGalCoord::slotRunBatch() {
}
}
-void modCalcGalCoord::processLines( QTextStream &istream ) {
+void modCalcGalCoord::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, galLatB, galLongB;
@@ -270,7 +270,7 @@ void modCalcGalCoord::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
diff --git a/kstars/kstars/tools/modcalcgalcoord.h b/kstars/kstars/tools/modcalcgalcoord.h
index 94acd572..b8b918b5 100644
--- a/kstars/kstars/tools/modcalcgalcoord.h
+++ b/kstars/kstars/tools/modcalcgalcoord.h
@@ -36,7 +36,7 @@ Q_OBJECT
public:
- modCalcGalCoord(QWidget *p, const char *n);
+ modCalcGalCoord(TQWidget *p, const char *n);
~modCalcGalCoord();
/**
* Obtains the galactic coords. from the Box.
@@ -44,7 +44,7 @@ public:
void getGalCoords (void);
void getEquCoords (void);
void getEpoch (void);
- double getEpoch( QString t );
+ double getEpoch( TQString t );
void showEquCoords(void);
void showGalCoords(void);
void GalToEqu(void);
@@ -66,7 +66,7 @@ public slots:
private:
void equCheck(void);
void galCheck(void);
- void processLines( QTextStream &is );
+ void processLines( TQTextStream &is );
dms galLong, galLat, raCoord, decCoord;
double epoch;
diff --git a/kstars/kstars/tools/modcalcgeodcoord.cpp b/kstars/kstars/tools/modcalcgeodcoord.cpp
index dd913ef6..dd03ccd2 100644
--- a/kstars/kstars/tools/modcalcgeodcoord.cpp
+++ b/kstars/kstars/tools/modcalcgeodcoord.cpp
@@ -22,10 +22,10 @@
#include "geolocation.h"
#include "kstars.h"
-#include <qradiobutton.h>
-#include <qstring.h>
-#include <qcheckbox.h>
-#include <qtextstream.h>
+#include <tqradiobutton.h>
+#include <tqstring.h>
+#include <tqcheckbox.h>
+#include <tqtextstream.h>
#include <kcombobox.h>
#include <klineedit.h>
@@ -37,7 +37,7 @@
#include <kmessagebox.h>
-modCalcGeodCoord::modCalcGeodCoord(QWidget *parentSplit, const char *name) : modCalcGeodCoordDlg(parentSplit,name) {
+modCalcGeodCoord::modCalcGeodCoord(TQWidget *parentSplit, const char *name) : modCalcGeodCoordDlg(parentSplit,name) {
static const char *ellipsoidList[] = {
"IAU76", "GRS80", "MERIT83", "WGS84", "IERS89"};
@@ -61,7 +61,7 @@ void modCalcGeodCoord::showLongLat(void)
KStars *ks = (KStars*) parent()->parent()->parent(); // QSplitter->AstroCalc->KStars
lonGeoBox->show( ks->geo()->lng() );
latGeoBox->show( ks->geo()->lat() );
- altGeoBox->setText( QString("0.0") );
+ altGeoBox->setText( TQString("0.0") );
}
void modCalcGeodCoord::setEllipsoid(int index) {
@@ -213,42 +213,42 @@ void modCalcGeodCoord::slotZCheckedBatch(){
}
void modCalcGeodCoord::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcGeodCoord::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcGeodCoord::slotRunBatch(void) {
- 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 );
@@ -256,19 +256,19 @@ void modCalcGeodCoord::slotRunBatch(void) {
}
}
-void modCalcGeodCoord::processLines( QTextStream &istream ) {
+void modCalcGeodCoord::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;
GeoLocation *geoPl = new GeoLocation();
geoPl->setEllipsoid(0);
@@ -283,7 +283,7 @@ void modCalcGeodCoord::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
diff --git a/kstars/kstars/tools/modcalcgeodcoord.h b/kstars/kstars/tools/modcalcgeodcoord.h
index e4ae86e2..9cad095a 100644
--- a/kstars/kstars/tools/modcalcgeodcoord.h
+++ b/kstars/kstars/tools/modcalcgeodcoord.h
@@ -40,7 +40,7 @@ class modCalcGeodCoord : public modCalcGeodCoordDlg {
Q_OBJECT
public:
- modCalcGeodCoord(QWidget *p, const char *n);
+ modCalcGeodCoord(TQWidget *p, const char *n);
~modCalcGeodCoord();
void genGeoCoords(void);
@@ -67,12 +67,12 @@ class modCalcGeodCoord : public modCalcGeodCoordDlg {
void geoCheck(void);
void xyzCheck(void);
void showLongLat(void);
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
void slotRunBatch(void);
-// QRadioButton *cartRadio, *spheRadio;
-// QVBox *vbox, *rightBox;
-// QLineEdit *xGeoName, *yGeoName, *zGeoName, *altGeoName;
+// TQRadioButton *cartRadio, *spheRadio;
+// TQVBox *vbox, *rightBox;
+// TQLineEdit *xGeoName, *yGeoName, *zGeoName, *altGeoName;
// dmsBox *timeBox, *dateBox, *lonGeoBox, *latGeoBox;
GeoLocation *geoPlace;
diff --git a/kstars/kstars/tools/modcalcjd.cpp b/kstars/kstars/tools/modcalcjd.cpp
index 68434f39..99271d34 100644
--- a/kstars/kstars/tools/modcalcjd.cpp
+++ b/kstars/kstars/tools/modcalcjd.cpp
@@ -22,8 +22,8 @@
#include "geolocation.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-#include <qdatetimeedit.h> //need for QTimeEdit
-#include <qradiobutton.h>
+#include <tqdatetimeedit.h> //need for QTimeEdit
+#include <tqradiobutton.h>
#include <klineedit.h>
#include <klocale.h>
#include <kglobal.h>
@@ -32,7 +32,7 @@
#define MJD0 2400000.5
-modCalcJD::modCalcJD(QWidget *parentSplit, const char *name) : modCalcJdDlg(parentSplit,name) {
+modCalcJD::modCalcJD(TQWidget *parentSplit, const char *name) : modCalcJdDlg(parentSplit,name) {
showCurrentTime();
show();
@@ -96,7 +96,7 @@ void modCalcJD::slotClearTime (void)
JdName->setText ("");
MjdName->setText ("");
datBox->setDate( ExtDate::currentDate() );
- timBox->setTime(QTime(0,0,0));
+ timBox->setTime(TQTime(0,0,0));
}
void modCalcJD::showCurrentTime (void)
diff --git a/kstars/kstars/tools/modcalcjd.h b/kstars/kstars/tools/modcalcjd.h
index 054e2156..321e61e8 100644
--- a/kstars/kstars/tools/modcalcjd.h
+++ b/kstars/kstars/tools/modcalcjd.h
@@ -18,7 +18,7 @@
#ifndef MODCALCJD_H
#define MODCALCJD_H
-#include <qvbox.h>
+#include <tqvbox.h>
#include <kapplication.h>
#include "modcalcjddlg.h"
@@ -40,7 +40,7 @@ class modCalcJD : public modCalcJdDlg
{
Q_OBJECT
public:
- modCalcJD(QWidget *p, const char *n);
+ modCalcJD(TQWidget *p, const char *n);
~modCalcJD();
void computeFromCalendar (void);
diff --git a/kstars/kstars/tools/modcalcplanets.cpp b/kstars/kstars/tools/modcalcplanets.cpp
index c927d71e..e9053bd5 100644
--- a/kstars/kstars/tools/modcalcplanets.cpp
+++ b/kstars/kstars/tools/modcalcplanets.cpp
@@ -28,17 +28,17 @@
#include "libkdeedu/extdate/extdatetimeedit.h"
#include "ksnumbers.h"
-#include <qcombobox.h>
-#include <qdatetimeedit.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqcombobox.h>
+#include <tqdatetimeedit.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
-modCalcPlanets::modCalcPlanets(QWidget *parentSplit, const char *name) : modCalcPlanetsDlg (parentSplit,name) {
+modCalcPlanets::modCalcPlanets(TQWidget *parentSplit, const char *name) : modCalcPlanetsDlg (parentSplit,name) {
showCurrentDateTime();
showLongLat();
raBox->setDegType(FALSE);
@@ -288,39 +288,39 @@ void modCalcPlanets::slotLatCheckedBatch(){
}
void modCalcPlanets::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcPlanets::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
void modCalcPlanets::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;
}
- QTextStream istream(&f);
+ TQTextStream istream(&f);
processLines(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 );
@@ -346,23 +346,23 @@ unsigned int modCalcPlanets::requiredBatchFields(void) {
}
-void modCalcPlanets::processLines( QTextStream &istream ) {
+void modCalcPlanets::processLines( TQTextStream &istream ) {
// we open the output file
- QString outputFileName, lineToWrite;
+ TQString outputFileName, lineToWrite;
outputFileName = OutputLineEditBatch->text();
- QFile fOut( outputFileName );
+ TQFile fOut( outputFileName );
fOut.open(IO_WriteOnly);
- QTextStream ostream(&fOut);
+ TQTextStream ostream(&fOut);
bool lineIsValid = true;
- QString message;
+ TQString message;
- QString line;
- QString space = " ";
- QString planetB;
+ TQString line;
+ TQString space = " ";
+ TQString planetB;
unsigned int i = 0, nline = 0;
- QTime utB;
+ TQTime utB;
ExtDate dtB;
dms longB, latB, hlongB, hlatB, glongB, glatB, raB, decB, azmB, altB;
double rSunB(0.0), rEarthB(0.0);
@@ -370,7 +370,7 @@ void modCalcPlanets::processLines( QTextStream &istream ) {
PlanetCatalog PCat( kd );
PCat.initialize();
- QString pName[11], pNamei18n[11];
+ TQString pName[11], pNamei18n[11];
pName[0] = "Mercury"; pNamei18n[0]= i18n("Mercury");
pName[1] = "Venus"; pNamei18n[1]= i18n("Venus");
@@ -393,7 +393,7 @@ void modCalcPlanets::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
if (fields.count() != numberOfRequiredFields ) {
lineIsValid = false;
@@ -411,7 +411,7 @@ void modCalcPlanets::processLines( QTextStream &istream ) {
int j = 0;
while (j < 11) {
//while (result != 0 && j < 11) {
- result = QString::compare( pNamei18n[j] , planetB );
+ result = TQString::compare( pNamei18n[j] , planetB );
if (result == 0)
break;
j++;
@@ -439,7 +439,7 @@ void modCalcPlanets::processLines( QTextStream &istream ) {
// Read Ut and write in ostream if corresponds
if(utCheckBatch->isChecked() ) {
- utB = QTime::fromString( fields[i] );
+ utB = TQTime::fromString( fields[i] );
if ( !utB.isValid() ) {
kdWarning() << i18n( "Line %1 contains an invalid time" ).arg(nline) << endl;
lineIsValid=false;
@@ -522,7 +522,7 @@ void modCalcPlanets::processLines( QTextStream &istream ) {
int jp = -1;
while (result != 0 && jp < 10) {
jp++;
- result = QString::compare( pNamei18n[jp] , planetB );
+ result = TQString::compare( pNamei18n[jp] , planetB );
}
if (jp < 11) {
@@ -583,7 +583,7 @@ void modCalcPlanets::processLines( QTextStream &istream ) {
}
if (!lineIsValid) {
- QString message = i18n("Errors found while parsing some lines in the input file");
+ TQString message = i18n("Errors found while parsing some lines in the input file");
KMessageBox::sorry( 0, message, i18n( "Errors in lines" ) );
}
diff --git a/kstars/kstars/tools/modcalcplanets.h b/kstars/kstars/tools/modcalcplanets.h
index c3d6bceb..51451763 100644
--- a/kstars/kstars/tools/modcalcplanets.h
+++ b/kstars/kstars/tools/modcalcplanets.h
@@ -19,7 +19,7 @@
#define MODCALCPLANETS_H
#include <kapplication.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "modcalcplanetsdlg.h"
#include "geolocation.h"
#include "kstarsdatetime.h"
@@ -40,7 +40,7 @@ class modCalcPlanets : public modCalcPlanetsDlg {
Q_OBJECT
public:
- modCalcPlanets(QWidget *p, const char *n);
+ modCalcPlanets(TQWidget *p, const char *n);
~modCalcPlanets();
public slots:
@@ -55,7 +55,7 @@ public slots:
void slotInputFile();
void slotOutputFile();
void slotRunBatch();
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
//void slotInputFile();
//void slotOutputFile();
//void slotRunBatch();
@@ -76,7 +76,7 @@ private:
void showTopocentricCoords( const dms *az, const dms *el);
unsigned int requiredBatchFields(void);
- // void processLines( QTextStream &istream );
+ // void processLines( TQTextStream &istream );
};
diff --git a/kstars/kstars/tools/modcalcprec.cpp b/kstars/kstars/tools/modcalcprec.cpp
index 236bad05..ddf71e2e 100644
--- a/kstars/kstars/tools/modcalcprec.cpp
+++ b/kstars/kstars/tools/modcalcprec.cpp
@@ -22,16 +22,16 @@
#include "dms.h"
#include "kstarsdatetime.h"
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qtextstream.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqtextstream.h>
#include <klocale.h>
#include <klineedit.h>
#include <kapplication.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
-modCalcPrec::modCalcPrec(QWidget *parentSplit, const char *name) : modCalcPrecDlg(parentSplit,name) {
+modCalcPrec::modCalcPrec(TQWidget *parentSplit, const char *name) : modCalcPrecDlg(parentSplit,name) {
ra0Box->setDegType(FALSE);
rafBox->setDegType(FALSE);
@@ -54,10 +54,10 @@ SkyPoint modCalcPrec::getEquCoords (void) {
return sp;
}
-QString modCalcPrec:: showCurrentEpoch () {
+TQString modCalcPrec:: showCurrentEpoch () {
double epoch = setCurrentEpoch();
- QString eName = QString("%1").arg(epoch,7,'f',2);
+ TQString eName = TQString("%1").arg(epoch,7,'f',2);
return eName;
}
@@ -66,7 +66,7 @@ double modCalcPrec::setCurrentEpoch () {
return KStarsDateTime::currentDateTime().epoch();
}
-double modCalcPrec::getEpoch (QString eName) {
+double modCalcPrec::getEpoch (TQString eName) {
bool ok = false;
double epoch = eName.toDouble(&ok);
@@ -152,13 +152,13 @@ void modCalcPrec::slotTargetEpochCheckedBatch(){
}
void modCalcPrec::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcPrec::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
@@ -167,28 +167,28 @@ void modCalcPrec::slotOutputFile() {
void modCalcPrec::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 );
@@ -196,19 +196,19 @@ void modCalcPrec::slotRunBatch() {
}
}
-void modCalcPrec::processLines( QTextStream &istream ) {
+void modCalcPrec::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, jdf;
SkyPoint sp;
@@ -222,7 +222,7 @@ void modCalcPrec::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
diff --git a/kstars/kstars/tools/modcalcprec.h b/kstars/kstars/tools/modcalcprec.h
index f5b28078..bd70a44d 100644
--- a/kstars/kstars/tools/modcalcprec.h
+++ b/kstars/kstars/tools/modcalcprec.h
@@ -39,7 +39,7 @@ class modCalcPrec : public modCalcPrecDlg {
Q_OBJECT
public:
- modCalcPrec(QWidget *p, const char *n);
+ modCalcPrec(TQWidget *p, const char *n);
~modCalcPrec();
SkyPoint precess (dms ra0, dms dec0, double e0, double ef);
@@ -56,11 +56,11 @@ public slots:
private:
SkyPoint getEquCoords(void);
- QString showCurrentEpoch(void);
+ TQString showCurrentEpoch(void);
double setCurrentEpoch(void);
- double getEpoch (QString eName);
+ double getEpoch (TQString eName);
void showEquCoords ( SkyPoint sp );
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
};
diff --git a/kstars/kstars/tools/modcalcsidtime.cpp b/kstars/kstars/tools/modcalcsidtime.cpp
index b8eccfe5..33cc03c9 100644
--- a/kstars/kstars/tools/modcalcsidtime.cpp
+++ b/kstars/kstars/tools/modcalcsidtime.cpp
@@ -15,11 +15,11 @@
* *
***************************************************************************/
-#include <qdatetimeedit.h> //need for QTimeEdit
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqdatetimeedit.h> //need for QTimeEdit
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
@@ -32,7 +32,7 @@
#include "simclock.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-modCalcSidTime::modCalcSidTime(QWidget *parentSplit, const char *name) : modCalcSidTimeDlg (parentSplit,name) {
+modCalcSidTime::modCalcSidTime(TQWidget *parentSplit, const char *name) : modCalcSidTimeDlg (parentSplit,name) {
showCurrentTimeAndLong();
show();
@@ -53,37 +53,37 @@ void modCalcSidTime::showCurrentTimeAndLong (void)
longBox->show( ks->geo()->lng() );
}
-QTime modCalcSidTime::computeUTtoST (QTime ut, ExtDate dt, dms longitude)
+TQTime modCalcSidTime::computeUTtoST (TQTime ut, ExtDate dt, dms longitude)
{
KStarsDateTime utdt = KStarsDateTime( dt, ut);
dms st = longitude.Degrees() + utdt.gst().Degrees();
- return QTime( st.hour(), st.minute(), st.second() );
+ return TQTime( st.hour(), st.minute(), st.second() );
}
-QTime modCalcSidTime::computeSTtoUT (QTime st, ExtDate dt, dms longitude)
+TQTime modCalcSidTime::computeSTtoUT (TQTime st, ExtDate dt, dms longitude)
{
- KStarsDateTime dtt = KStarsDateTime( dt, QTime());
+ KStarsDateTime dtt = KStarsDateTime( dt, TQTime());
dms lst(st.hour(), st.minute(), st.second());
dms gst( lst.Degrees() - longitude.Degrees() );
return dtt.GSTtoUT( gst );
}
-void modCalcSidTime::showUT( QTime dt )
+void modCalcSidTime::showUT( TQTime dt )
{
UtBox->setTime( dt );
}
-void modCalcSidTime::showST( QTime st )
+void modCalcSidTime::showST( TQTime st )
{
StBox->setTime( st );
}
-QTime modCalcSidTime::getUT( void )
+TQTime modCalcSidTime::getUT( void )
{
return UtBox->time();
}
-QTime modCalcSidTime::getST( void )
+TQTime modCalcSidTime::getST( void )
{
return StBox->time();
}
@@ -100,13 +100,13 @@ dms modCalcSidTime::getLongitude( void )
void modCalcSidTime::slotClearFields(){
datBox->setDate(ExtDate::currentDate());
- QTime time(0,0,0);
+ TQTime time(0,0,0);
UtBox->setTime(time);
StBox->setTime(time);
}
void modCalcSidTime::slotComputeTime(){
- QTime ut, st;
+ TQTime ut, st;
ExtDate dt = getDate();
dms longitude = getLongitude();
@@ -169,13 +169,13 @@ void modCalcSidTime::utNoCheck() {
}
void modCalcSidTime::slotInputFile() {
- QString inputFileName;
+ TQString inputFileName;
inputFileName = KFileDialog::getOpenFileName( );
InputLineEditBatch->setText( inputFileName );
}
void modCalcSidTime::slotOutputFile() {
- QString outputFileName;
+ TQString outputFileName;
outputFileName = KFileDialog::getSaveFileName( );
OutputLineEditBatch->setText( outputFileName );
}
@@ -183,28 +183,28 @@ void modCalcSidTime::slotOutputFile() {
void modCalcSidTime::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 );
@@ -212,24 +212,24 @@ void modCalcSidTime::slotRunBatch() {
}
}
-void modCalcSidTime::processLines( QTextStream &istream ) {
+void modCalcSidTime::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, jdf;
dms longB, LST;
double epoch0B(0.0);
- QTime utB, stB;
+ TQTime utB, stB;
ExtDate dtB;
while ( ! istream.eof() ) {
@@ -238,7 +238,7 @@ void modCalcSidTime::processLines( QTextStream &istream ) {
//Go through the line, looking for parameters
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
i = 0;
@@ -284,7 +284,7 @@ void modCalcSidTime::processLines( QTextStream &istream ) {
// 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();
@@ -304,7 +304,7 @@ void modCalcSidTime::processLines( QTextStream &istream ) {
} else {
if(stCheckBatch->isChecked() ) {
- stB = QTime::fromString( fields[i] );
+ stB = TQTime::fromString( fields[i] );
i++;
} else
stB = stBoxBatch->time();
diff --git a/kstars/kstars/tools/modcalcsidtime.h b/kstars/kstars/tools/modcalcsidtime.h
index 8e0f3842..30caf7a7 100644
--- a/kstars/kstars/tools/modcalcsidtime.h
+++ b/kstars/kstars/tools/modcalcsidtime.h
@@ -40,11 +40,11 @@ Q_OBJECT
public:
- modCalcSidTime(QWidget *p, const char *n);
+ modCalcSidTime(TQWidget *p, const char *n);
~modCalcSidTime();
- QTime computeUTtoST (QTime u, ExtDate d, dms l);
- QTime computeSTtoUT (QTime s, ExtDate d, dms l);
+ TQTime computeUTtoST (TQTime u, ExtDate d, dms l);
+ TQTime computeSTtoUT (TQTime s, ExtDate d, dms l);
public slots:
@@ -62,12 +62,12 @@ public slots:
void slotInputFile();
void slotOutputFile();
void slotRunBatch();
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
private:
- void showUT ( QTime ut );
- void showST ( QTime st );
+ void showUT ( TQTime ut );
+ void showST ( TQTime st );
/* Fills the UT, Date boxes with the current time
* and date and the longitude box with the current Geo location
@@ -77,8 +77,8 @@ private:
void sidNoCheck();
void utNoCheck();
- QTime getUT (void);
- QTime getST (void);
+ TQTime getUT (void);
+ TQTime getST (void);
ExtDate getDate (void);
dms getLongitude (void);
bool stInputTime;
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();
diff --git a/kstars/kstars/tools/modcalcvlsr.h b/kstars/kstars/tools/modcalcvlsr.h
index 2320bd19..ea12d7ca 100644
--- a/kstars/kstars/tools/modcalcvlsr.h
+++ b/kstars/kstars/tools/modcalcvlsr.h
@@ -19,7 +19,7 @@
#define MODCALCVLSR_H
#include <kapplication.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "modcalcvlsrdlg.h"
class QWidget;
@@ -40,7 +40,7 @@ class modCalcVlsr : public modCalcVlsrDlg {
Q_OBJECT
public:
- modCalcVlsr(QWidget *p, const char *n);
+ modCalcVlsr(TQWidget *p, const char *n);
~modCalcVlsr();
public slots:
@@ -89,7 +89,7 @@ private:
* @param eName String from which the epoch is to be constructed
* once it is converted to a double
*/
- double getEpoch (QString eName);
+ double getEpoch (TQString eName);
/* Creates a dms object from the latitude box */
dms getLatitude (void);
@@ -141,7 +141,7 @@ private:
/* Method to process the lines from a file
*/
- void processLines( QTextStream &istream );
+ void processLines( TQTextStream &istream );
GeoLocation *geoPlace;
diff --git a/kstars/kstars/tools/observinglist.cpp b/kstars/kstars/tools/observinglist.cpp
index dae78bc0..fbd1702c 100644
--- a/kstars/kstars/tools/observinglist.cpp
+++ b/kstars/kstars/tools/observinglist.cpp
@@ -16,12 +16,12 @@
***************************************************************************/
#include <stdio.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qstringlist.h>
-#include <qwidgetstack.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqstringlist.h>
+#include <tqwidgetstack.h>
#include <klistview.h>
#include <kpushbutton.h>
#include <kstatusbar.h>
@@ -53,13 +53,13 @@
#include "devicemanager.h"
#include "indistd.h"
-ObservingList::ObservingList( KStars *_ks, QWidget* parent )
+ObservingList::ObservingList( KStars *_ks, TQWidget* parent )
: KDialogBase( KDialogBase::Plain, i18n( "Observing List" ),
Close, Close, parent, "observinglist", false ), ks( _ks ), LogObject(0), oCurrent(0),
noNameStars(0), isModified(false), bIsLarge(true)
{
- QFrame *page = plainPage();
- QVBoxLayout *vlay = new QVBoxLayout( page, 0, 0 );
+ TQFrame *page = plainPage();
+ TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, 0 );
ui = new ObservingListUI( page );
vlay->addWidget( ui );
@@ -67,40 +67,40 @@ ObservingList::ObservingList( KStars *_ks, QWidget* parent )
ui->MiniButton->hide();
//Connections
- connect( this, SIGNAL( closeClicked() ), this, SLOT( slotClose() ) );
- connect( ui->TableStack, SIGNAL( aboutToShow( QWidget* ) ),
- this, SLOT( slotPrepTable( QWidget* ) ) );
- connect( ui->FullTable, SIGNAL( selectionChanged() ),
- this, SLOT( slotNewSelection() ) );
- connect( ui->TinyTable, SIGNAL( selectionChanged() ),
- this, SLOT( slotNewSelection() ) );
- connect( ui->FullTable, SIGNAL( doubleClicked( QListViewItem*, const QPoint&, int) ),
- this, SLOT( slotCenterObject() ) );
- connect( ui->TinyTable, SIGNAL( doubleClicked( QListBoxItem* ) ),
- this, SLOT( slotCenterObject() ) );
- connect( ui->RemoveButton, SIGNAL( clicked() ),
- this, SLOT( slotRemoveObjects() ) );
- connect( ui->CenterButton, SIGNAL( clicked() ),
- this, SLOT( slotCenterObject() ) );
- connect( ui->ScopeButton, SIGNAL( clicked() ),
- this, SLOT( slotSlewToObject() ) );
- connect( ui->DetailsButton, SIGNAL( clicked() ),
- this, SLOT( slotDetails() ) );
- connect( ui->AVTButton, SIGNAL( clicked() ),
- this, SLOT( slotAVT() ) );
-
- connect( ui->OpenButton, SIGNAL( clicked() ),
- this, SLOT( slotOpenList() ) );
- connect( ui->SaveButton, SIGNAL( clicked() ),
- this, SLOT( slotSaveList() ) );
- connect( ui->SaveAsButton, SIGNAL( clicked() ),
- this, SLOT( slotSaveListAs() ) );
- connect( ui->WizardButton, SIGNAL( clicked() ),
- this, SLOT( slotWizard() ) );
+ connect( this, TQT_SIGNAL( closeClicked() ), this, TQT_SLOT( slotClose() ) );
+ connect( ui->TableStack, TQT_SIGNAL( aboutToShow( TQWidget* ) ),
+ this, TQT_SLOT( slotPrepTable( TQWidget* ) ) );
+ connect( ui->FullTable, TQT_SIGNAL( selectionChanged() ),
+ this, TQT_SLOT( slotNewSelection() ) );
+ connect( ui->TinyTable, TQT_SIGNAL( selectionChanged() ),
+ this, TQT_SLOT( slotNewSelection() ) );
+ connect( ui->FullTable, TQT_SIGNAL( doubleClicked( TQListViewItem*, const TQPoint&, int) ),
+ this, TQT_SLOT( slotCenterObject() ) );
+ connect( ui->TinyTable, TQT_SIGNAL( doubleClicked( TQListBoxItem* ) ),
+ this, TQT_SLOT( slotCenterObject() ) );
+ connect( ui->RemoveButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotRemoveObjects() ) );
+ connect( ui->CenterButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotCenterObject() ) );
+ connect( ui->ScopeButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSlewToObject() ) );
+ connect( ui->DetailsButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotDetails() ) );
+ connect( ui->AVTButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotAVT() ) );
+
+ connect( ui->OpenButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotOpenList() ) );
+ connect( ui->SaveButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSaveList() ) );
+ connect( ui->SaveAsButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSaveListAs() ) );
+ connect( ui->WizardButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotWizard() ) );
//FIXME: enable MiniButton
-// connect( ui->MiniButton, SIGNAL( clicked() ),
-// this, SLOT( slotToggleSize() ) );
+// connect( ui->MiniButton, TQT_SIGNAL( clicked() ),
+// this, TQT_SLOT( slotToggleSize() ) );
obsList.setAutoDelete( false ); //do NOT delete removed pointers!
@@ -131,7 +131,7 @@ bool ObservingList::contains( const SkyObject *q ) {
//SLOTS
-void ObservingList::slotPrepTable( QWidget *tab ) {
+void ObservingList::slotPrepTable( TQWidget *tab ) {
if ( tab == ui->FullTable ) {
} else {
}
@@ -154,8 +154,8 @@ void ObservingList::slotAddObject( SkyObject *obj ) {
if ( ! isModified ) isModified = true;
//Insert object entry in FullTable and TinyTable
- QString smag("--");
- if ( obj->mag() < 90.0 ) smag = QString::number( obj->mag(), 'g', 2 );
+ TQString smag("--");
+ if ( obj->mag() < 90.0 ) smag = TQString::number( obj->mag(), 'g', 2 );
new KListViewItem( ui->FullTable, obj->translatedName(),
obj->ra()->toHMSString(),
obj->dec()->toDMSString(),
@@ -179,9 +179,9 @@ void ObservingList::slotRemoveObject( SkyObject *o ) {
//Remove entry from FullTable
bool objectFound = false;
- QListViewItemIterator it( ui->FullTable );
+ TQListViewItemIterator it( ui->FullTable );
while ( it.current() ) {
- QListViewItem *item = it.current();
+ TQListViewItem *item = it.current();
//If the object is named "star" then match coordinates instead of name
if ( o->translatedName() == i18n( "star" ) ) {
@@ -227,7 +227,7 @@ void ObservingList::slotNewSelection() {
//Construct list of selected objects
SelectedObjects.clear();
- QListViewItemIterator it( ui->FullTable, QListViewItemIterator::Selected ); //loop over selected items
+ TQListViewItemIterator it( ui->FullTable, TQListViewItemIterator::Selected ); //loop over selected items
while ( it.current() ) {
for ( SkyObject *o = obsList.first(); o; o = obsList.next() ) {
if ( it.current()->text(0) == i18n("star") ) {
@@ -246,8 +246,8 @@ void ObservingList::slotNewSelection() {
//Enable widgets when one object selected
if ( SelectedObjects.count() == 1 ) {
- QString newName( SelectedObjects.first()->translatedName() );
- QString oldName( obsList.current()->translatedName() );
+ TQString newName( SelectedObjects.first()->translatedName() );
+ TQString oldName( obsList.current()->translatedName() );
//Enable buttons
ui->CenterButton->setEnabled( true );
@@ -432,8 +432,8 @@ void ObservingList::slotSlewToObject()
if (useJ2000)
sp.apparentCoord(ks->data()->ut().djd(), (long double) J2000);
- RAEle->write_w->setText(QString("%1:%2:%3").arg(sp.ra()->hour()).arg(sp.ra()->minute()).arg(sp.ra()->second()));
- DecEle->write_w->setText(QString("%1:%2:%3").arg(sp.dec()->degree()).arg(sp.dec()->arcmin()).arg(sp.dec()->arcsec()));
+ RAEle->write_w->setText(TQString("%1:%2:%3").arg(sp.ra()->hour()).arg(sp.ra()->minute()).arg(sp.ra()->second()));
+ DecEle->write_w->setText(TQString("%1:%2:%3").arg(sp.dec()->degree()).arg(sp.dec()->arcmin()).arg(sp.dec()->arcsec()));
break;
@@ -449,8 +449,8 @@ void ObservingList::slotSlewToObject()
sp.setAlt(*ks->map()->clickedPoint()->alt());
}
- AzEle->write_w->setText(QString("%1:%2:%3").arg(sp.az()->degree()).arg(sp.az()->arcmin()).arg(sp.az()->arcsec()));
- AltEle->write_w->setText(QString("%1:%2:%3").arg(sp.alt()->degree()).arg(sp.alt()->arcmin()).arg(sp.alt()->arcsec()));
+ AzEle->write_w->setText(TQString("%1:%2:%3").arg(sp.az()->degree()).arg(sp.az()->arcmin()).arg(sp.az()->arcsec()));
+ AltEle->write_w->setText(TQString("%1:%2:%3").arg(sp.alt()->degree()).arg(sp.alt()->arcmin()).arg(sp.alt()->arcsec()));
break;
}
@@ -510,8 +510,8 @@ void ObservingList::saveCurrentUserLog() {
}
void ObservingList::slotOpenList() {
- KURL fileURL = KFileDialog::getOpenURL( QDir::homeDirPath(), "*.obslist|KStars Observing List (*.obslist)" );
- QFile f;
+ KURL fileURL = KFileDialog::getOpenURL( TQDir::homeDirPath(), "*.obslist|KStars Observing List (*.obslist)" );
+ TQFile f;
if ( fileURL.isValid() ) {
if ( ! fileURL.isLocalFile() ) {
@@ -528,7 +528,7 @@ void ObservingList::slotOpenList() {
}
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" ) );
return;
}
@@ -536,8 +536,8 @@ void ObservingList::slotOpenList() {
saveCurrentList();
//First line is the name of the list. The rest of the file should
//be object names, one per line.
- QTextStream istream(&f);
- QString line;
+ TQTextStream istream(&f);
+ TQString line;
ListName = istream.readLine();
while ( ! istream.eof() ) {
@@ -548,7 +548,7 @@ void ObservingList::slotOpenList() {
//If the object is named "star", add it by coordinates
SkyObject *o = 0;
if ( line.startsWith( "star" ) ) {
- QStringList fields = QStringList::split( " ", line );
+ TQStringList fields = TQStringList::split( " ", line );
//DEBUG
kdDebug() << fields << endl;
@@ -579,7 +579,7 @@ void ObservingList::slotOpenList() {
f.close();
} else if ( fileURL.path() != "" ) {
- QString message = i18n( "The specified file is invalid. Try another file?" );
+ TQString message = i18n( "The specified file is invalid. Try another file?" );
if ( KMessageBox::warningYesNo( this, message, i18n("Invalid File"), i18n("Try Another"), i18n("Do Not Try") ) == KMessageBox::Yes ) {
slotOpenList();
}
@@ -591,7 +591,7 @@ void ObservingList::saveCurrentList() {
//Assume that if the list is empty, then there's no need to save
if ( obsList.count() ) {
if ( isModified ) {
- QString message = i18n( "Do you want to save the current list before opening a new list?" );
+ TQString message = i18n( "Do you want to save the current list before opening a new list?" );
if ( KMessageBox::questionYesNo( this, message,
i18n( "Save Current List?" ), KStdGuiItem::save(), KStdGuiItem::discard() ) == KMessageBox::Yes )
slotSaveList();
@@ -610,7 +610,7 @@ void ObservingList::slotSaveListAs() {
i18n( "List name:" ), "", &ok );
if ( ok ) {
- KURL fileURL = KFileDialog::getSaveURL( QDir::homeDirPath(), "*.obslist|KStars Observing List (*.obslist)" );
+ KURL fileURL = KFileDialog::getSaveURL( TQDir::homeDirPath(), "*.obslist|KStars Observing List (*.obslist)" );
if ( fileURL.isValid() )
FileName = fileURL.path();
@@ -625,9 +625,9 @@ void ObservingList::slotSaveList() {
return;
}
- QFile f( FileName );
+ TQFile f( FileName );
if ( !f.open( IO_WriteOnly) ) {
- QString message = i18n( "Could not open file %1. Try a different filename?" ).arg( f.name() );
+ TQString message = i18n( "Could not open file %1. Try a different filename?" ).arg( f.name() );
if ( KMessageBox::warningYesNo( 0, message, i18n( "Could Not Open File" ), i18n("Try Different"), i18n("Do Not Try") ) == KMessageBox::Yes ) {
FileName == "";
@@ -636,7 +636,7 @@ void ObservingList::slotSaveList() {
return;
}
- QTextStream ostream(&f);
+ TQTextStream ostream(&f);
ostream << ListName << endl;
//Save objects to the list using their name. If it's a star with a genetive name
@@ -664,7 +664,7 @@ void ObservingList::slotSaveList() {
void ObservingList::slotWizard() {
ObsListWizard wizard( ks );
- if ( wizard.exec() == QDialog::Accepted ) {
+ if ( wizard.exec() == TQDialog::Accepted ) {
//Make sure current list is saved
saveCurrentList();
@@ -722,14 +722,14 @@ void ObservingList::slotToggleSize() {
void ObservingList::syncTableSelection( bool syncFullTable ) {
if ( syncFullTable ) {
int i=0;
- QListViewItem *it = ui->FullTable->firstChild();
+ TQListViewItem *it = ui->FullTable->firstChild();
while ( it ) {
it->setSelected( ui->TinyTable->isSelected( i++ ) );
it->nextSibling();
}
} else {
int i=0;
- QListViewItem *it = ui->FullTable->firstChild();
+ TQListViewItem *it = ui->FullTable->firstChild();
while ( it ) {
ui->TinyTable->setSelected( i++, it->isSelected() );
it->nextSibling();
diff --git a/kstars/kstars/tools/observinglist.h b/kstars/kstars/tools/observinglist.h
index dd60dc8c..2acc6ca1 100644
--- a/kstars/kstars/tools/observinglist.h
+++ b/kstars/kstars/tools/observinglist.h
@@ -62,7 +62,7 @@ class ObservingList : public KDialogBase
public:
/**@short Cunstructor
*/
- ObservingList( KStars *_ks, QWidget* parent = 0 );
+ ObservingList( KStars *_ks, TQWidget* parent = 0 );
/**@short Destuctor (empty)
*/
~ObservingList() {}
@@ -89,7 +89,7 @@ public slots:
/**@short about to switch the visible table in the widget stack
*@p tab pointer to the table which is about to be shown
*/
- void slotPrepTable( QWidget *tab );
+ void slotPrepTable( TQWidget *tab );
/**@short add a new object to list
*@p o pointer to the object to add to the list
@@ -163,13 +163,13 @@ private:
KStars *ks;
ObservingListUI *ui;
- QPtrList<SkyObject> obsList;
- QPtrList<SkyObject> SelectedObjects;
+ TQPtrList<SkyObject> obsList;
+ TQPtrList<SkyObject> SelectedObjects;
SkyObject *LogObject, *oCurrent;
uint noNameStars;
bool isModified, bIsLarge;
- QString ListName, FileName;
+ TQString ListName, FileName;
};
#endif // OBSERVINGLIST_H
diff --git a/kstars/kstars/tools/obslistwizard.cpp b/kstars/kstars/tools/obslistwizard.cpp
index 12eb2416..7dbbbc3d 100644
--- a/kstars/kstars/tools/obslistwizard.cpp
+++ b/kstars/kstars/tools/obslistwizard.cpp
@@ -14,10 +14,10 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qwidgetstack.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqwidgetstack.h>
#include <knuminput.h>
#include <klistbox.h>
#include <klistview.h>
@@ -34,45 +34,45 @@
#include "obslistwizard.h"
-ObsListWizard::ObsListWizard( QWidget *parent, const char *name )
+ObsListWizard::ObsListWizard( TQWidget *parent, const char *name )
: KDialogBase( KDialogBase::Plain, i18n("Observing List Wizard"), Ok|Cancel, Ok, parent, name )
{
ksw = (KStars*)parent;
- QFrame *page = plainPage();
- QVBoxLayout *vlay = new QVBoxLayout( page, 0, 0 );
+ TQFrame *page = plainPage();
+ TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, 0 );
olw = new ObsListWizardUI( page );
vlay->addWidget( olw );
- connect( olw->AllButton, SIGNAL( clicked() ), this, SLOT( slotAllButton() ) );
- connect( olw->NoneButton, SIGNAL( clicked() ), this, SLOT( slotNoneButton() ) );
- connect( olw->DeepSkyButton, SIGNAL( clicked() ), this, SLOT( slotDeepSkyButton() ) );
- connect( olw->SolarSystemButton, SIGNAL( clicked() ), this, SLOT( slotSolarSystemButton() ) );
- connect( olw->LocationButton, SIGNAL( clicked() ), this, SLOT( slotChangeLocation() ) );
+ connect( olw->AllButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAllButton() ) );
+ connect( olw->NoneButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotNoneButton() ) );
+ connect( olw->DeepSkyButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDeepSkyButton() ) );
+ connect( olw->SolarSystemButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSolarSystemButton() ) );
+ connect( olw->LocationButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChangeLocation() ) );
- connect( olw->FilterList, SIGNAL( clicked(QListViewItem*) ), this, SLOT( slotShowStackWidget(QListViewItem*) ) );
+ connect( olw->FilterList, TQT_SIGNAL( clicked(TQListViewItem*) ), this, TQT_SLOT( slotShowStackWidget(TQListViewItem*) ) );
//Update the selected observing list when certain UI elements are modified
- connect( olw->TypeList, SIGNAL( selectionChanged() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->ConstellationList, SIGNAL( selectionChanged() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->RAMin, SIGNAL( lostFocus() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->RAMax, SIGNAL( lostFocus() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->DecMin, SIGNAL( lostFocus() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->DecMax, SIGNAL( lostFocus() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->RA, SIGNAL( lostFocus() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->Dec, SIGNAL( lostFocus() ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->Radius, SIGNAL( valueChanged(double) ), this, SLOT( slotUpdateObjectCount() ) );
-// connect( olw->Date, SIGNAL( valueChanged( const ExtDate& ) ), this, SLOT( slotApplyFilters() ) );
- connect( olw->Mag, SIGNAL( valueChanged( double ) ), this, SLOT( slotUpdateObjectCount() ) );
- connect( olw->ExcludeNoMag, SIGNAL( clicked() ), this, SLOT( slotUpdateObjectCount() ) );
-
- connect( olw->SelectByConstellation, SIGNAL( toggled(bool) ), this, SLOT( slotEnableConstellationPage(bool) ) );
- connect( olw->SelectByRect, SIGNAL( toggled(bool) ), this, SLOT( slotEnableRectPage(bool) ) );
- connect( olw->SelectByCirc, SIGNAL( toggled(bool) ), this, SLOT( slotEnableCircPage(bool) ) );
-// connect( olw->SelectByDate, SIGNAL( toggled(bool) ), this, SLOT( slotEnableDatePage(bool) ) );
- connect( olw->SelectByMag, SIGNAL( toggled(bool) ), this, SLOT( slotEnableMagPage(bool) ) );
-
- connect( this, SIGNAL( okClicked() ), this, SLOT( slotApplyFilters() ) );
+ connect( olw->TypeList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->ConstellationList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->RAMin, TQT_SIGNAL( lostFocus() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->RAMax, TQT_SIGNAL( lostFocus() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->DecMin, TQT_SIGNAL( lostFocus() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->DecMax, TQT_SIGNAL( lostFocus() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->RA, TQT_SIGNAL( lostFocus() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->Dec, TQT_SIGNAL( lostFocus() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->Radius, TQT_SIGNAL( valueChanged(double) ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+// connect( olw->Date, TQT_SIGNAL( valueChanged( const ExtDate& ) ), this, TQT_SLOT( slotApplyFilters() ) );
+ connect( olw->Mag, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+ connect( olw->ExcludeNoMag, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotUpdateObjectCount() ) );
+
+ connect( olw->SelectByConstellation, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEnableConstellationPage(bool) ) );
+ connect( olw->SelectByRect, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEnableRectPage(bool) ) );
+ connect( olw->SelectByCirc, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEnableCircPage(bool) ) );
+// connect( olw->SelectByDate, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEnableDatePage(bool) ) );
+ connect( olw->SelectByMag, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEnableMagPage(bool) ) );
+
+ connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotApplyFilters() ) );
initialize();
}
@@ -190,10 +190,10 @@ void ObsListWizard::slotEnableMagPage( bool t ) {
slotUpdateObjectCount();
}
-void ObsListWizard::slotShowStackWidget( QListViewItem *i )
+void ObsListWizard::slotShowStackWidget( TQListViewItem *i )
{
if ( i ) {
- QString t = i->text(0);
+ TQString t = i->text(0);
if ( t.contains( i18n( "Object type(s)" ) ) ) olw->FilterStack->raiseWidget( olw->ObjTypePage );
if ( t.contains( i18n( "Region" ) ) ) olw->FilterStack->raiseWidget( olw->RegionPage );
@@ -227,7 +227,7 @@ void ObsListWizard::slotChangeLocation()
{
LocationDialog ld( ksw );
- if ( ld.exec() == QDialog::Accepted ) {
+ if ( ld.exec() == TQDialog::Accepted ) {
//set geographic location
}
}
@@ -417,8 +417,8 @@ void ObsListWizard::applyFilters( bool doBuildList )
void ObsListWizard::applyRegionFilter( SkyObject *o, bool doBuildList, bool doAdjustCount ) {
//select by constellation
if ( olw->SelectByConstellation->isChecked() ) {
- QString c( o->constellation( ksw->data()->csegmentList, ksw->data()->cnameList ) );
- QListBoxItem *it = olw->ConstellationList->findItem( c );
+ TQString c( o->constellation( ksw->data()->csegmentList, ksw->data()->cnameList ) );
+ TQListBoxItem *it = olw->ConstellationList->findItem( c );
if ( it && it->isSelected() ) {
if ( doBuildList ) obsList().append ( o );
diff --git a/kstars/kstars/tools/obslistwizard.h b/kstars/kstars/tools/obslistwizard.h
index 5c04b93f..dd6c9230 100644
--- a/kstars/kstars/tools/obslistwizard.h
+++ b/kstars/kstars/tools/obslistwizard.h
@@ -34,14 +34,14 @@ class ObsListWizard : public KDialogBase
public:
/**@short Constructor
*/
- ObsListWizard( QWidget *parent = 0, const char *name = 0 );
+ ObsListWizard( TQWidget *parent = 0, const char *name = 0 );
/**@short Destructor
*/
~ObsListWizard();
- /**@return reference to QPtrList of objects selected by the wizard
+ /**@return reference to TQPtrList of objects selected by the wizard
*/
- QPtrList<SkyObject>& obsList() { return ObsList; }
+ TQPtrList<SkyObject>& obsList() { return ObsList; }
private slots:
void slotAllButton();
@@ -49,7 +49,7 @@ class ObsListWizard : public KDialogBase
void slotDeepSkyButton();
void slotSolarSystemButton();
void slotChangeLocation();
- void slotShowStackWidget(QListViewItem*);
+ void slotShowStackWidget(TQListViewItem*);
void slotEnableConstellationPage(bool);
void slotEnableRectPage(bool);
void slotEnableCircPage(bool);
@@ -66,7 +66,7 @@ class ObsListWizard : public KDialogBase
void applyFilters( bool doBuildList );
void applyRegionFilter( SkyObject *o, bool doBuildList, bool doAdjustCount=true );
- QPtrList<SkyObject> ObsList;
+ TQPtrList<SkyObject> ObsList;
KStars *ksw;
ObsListWizardUI *olw;
uint ObjectCount, StarCount, PlanetCount, CometCount, AsteroidCount;
diff --git a/kstars/kstars/tools/planetviewer.cpp b/kstars/kstars/tools/planetviewer.cpp
index 725e5318..cd0aba3d 100644
--- a/kstars/kstars/tools/planetviewer.cpp
+++ b/kstars/kstars/tools/planetviewer.cpp
@@ -16,8 +16,8 @@
#include <stdlib.h> //needed for abs() on some platforms
-#include <qfile.h>
-#include <qlayout.h>
+#include <tqfile.h>
+#include <tqlayout.h>
#include <kdebug.h>
#include <klocale.h>
#include <kglobal.h>
@@ -35,11 +35,11 @@
#define AUMAX 48
-PlanetViewer::PlanetViewer(QWidget *parent, const char *name)
+PlanetViewer::PlanetViewer(TQWidget *parent, const char *name)
: KDialogBase( KDialogBase::Plain, i18n("Solar System Viewer"), Close, Close, parent, name ), PCat( ((KStars*)parent)->data() ), scale(1.0), isClockRunning(false), tmr(this)
{
- QFrame *page = plainPage();
- QVBoxLayout *vlay = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = plainPage();
+ TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, spacingHint() );
pw = new PlanetViewerUI( page );
pw->map->setLimits( -48.0, 48.0, -48.0, 48.0 );
pw->map->setXAxisLabel( i18n( "axis label for x-coordinate of solar system viewer. AU means astronomical unit.", "X-position (AU)" ) );
@@ -53,7 +53,7 @@ PlanetViewer::PlanetViewer(QWidget *parent, const char *name)
vlay->addWidget( pw );
resize( 500, 500 );
- pw->map->QWidget::setFocus(); //give keyboard focus to the plot widget for key and mouse events
+ pw->map->TQWidget::setFocus(); //give keyboard focus to the plot widget for key and mouse events
pName[0] = "Mercury"; pColor[0] = "SlateBlue1";
pName[1] = "Venus"; pColor[1] = "LightGreen";
@@ -86,13 +86,13 @@ PlanetViewer::PlanetViewer(QWidget *parent, const char *name)
UpdateInterval[7] = 75;
UpdateInterval[8] = 113;
- QTimer::singleShot( 0, this, SLOT( initPlotObjects() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( initPlotObjects() ) );
- connect( &tmr, SIGNAL( timeout() ), SLOT( tick() ) );
- connect( pw->timeStep, SIGNAL( scaleChanged(float) ), SLOT( setTimeScale(float) ) );
- connect( pw->RunButton, SIGNAL( clicked() ), SLOT( slotRunClock() ) );
- connect( pw->dateBox, SIGNAL( valueChanged( const ExtDate & ) ), SLOT( slotChangeDate( const ExtDate & ) ) );
- connect( pw->TodayButton, SIGNAL( clicked() ), SLOT( slotToday() ) );
+ connect( &tmr, TQT_SIGNAL( timeout() ), TQT_SLOT( tick() ) );
+ connect( pw->timeStep, TQT_SIGNAL( scaleChanged(float) ), TQT_SLOT( setTimeScale(float) ) );
+ connect( pw->RunButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRunClock() ) );
+ connect( pw->dateBox, TQT_SIGNAL( valueChanged( const ExtDate & ) ), TQT_SLOT( slotChangeDate( const ExtDate & ) ) );
+ connect( pw->TodayButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotToday() ) );
}
PlanetViewer::~PlanetViewer()
@@ -172,7 +172,7 @@ void PlanetViewer::slotToday() {
pw->dateBox->setDate( ks->data()->lt().date() );
}
-void PlanetViewer::paintEvent( QPaintEvent* ) {
+void PlanetViewer::paintEvent( TQPaintEvent* ) {
pw->map->update();
}
@@ -187,9 +187,9 @@ void PlanetViewer::initPlotObjects() {
for ( unsigned int i=0; i<9; ++i ) {
orbit[i] = new KPlotObject( "", "white", KPlotObject::CURVE, 1, KPlotObject::SOLID );
- QFile orbitFile;
+ TQFile orbitFile;
if ( KSUtils::openDataFile( orbitFile, pName[i].lower() + ".orbit" ) ) {
- QTextStream orbitStream( &orbitFile );
+ TQTextStream orbitStream( &orbitFile );
double x, y, z;
while ( !orbitStream.eof() ) {
orbitStream >> x >> y >> z;
@@ -217,7 +217,7 @@ void PlanetViewer::initPlotObjects() {
update();
}
-void PlanetViewer::keyPressEvent( QKeyEvent *e ) {
+void PlanetViewer::keyPressEvent( TQKeyEvent *e ) {
switch ( e->key() ) {
case Key_Escape:
close();
@@ -228,25 +228,25 @@ void PlanetViewer::keyPressEvent( QKeyEvent *e ) {
}
}
-PVPlotWidget::PVPlotWidget( double x1, double x2, double y1, double y2, QWidget *par, const char *name ) :
+PVPlotWidget::PVPlotWidget( double x1, double x2, double y1, double y2, TQWidget *par, const char *name ) :
KStarsPlotWidget( x1, x2, y1, y2, par, name ),
mouseButtonDown(false), oldx(0), oldy(0) {
- setFocusPolicy( QWidget::StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking (true);
pv = (PlanetViewer*)topLevelWidget();
}
-PVPlotWidget::PVPlotWidget( QWidget *parent, const char *name ) :
+PVPlotWidget::PVPlotWidget( TQWidget *parent, const char *name ) :
KStarsPlotWidget( 0.0, 1.0, 0.0, 1.0, parent, name ),
mouseButtonDown(false), oldx(0), oldy(0) {
- setFocusPolicy( QWidget::StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking (true);
pv = (PlanetViewer*)topLevelWidget();
}
PVPlotWidget::~ PVPlotWidget() {}
-void PVPlotWidget::keyPressEvent( QKeyEvent *e ) {
+void PVPlotWidget::keyPressEvent( TQKeyEvent *e ) {
double xc = (x2() + x())*0.5;
double yc = (y2() + y())*0.5;
double xstep = 0.01*(x2() - x());
@@ -390,18 +390,18 @@ void PVPlotWidget::keyPressEvent( QKeyEvent *e ) {
}
}
-void PVPlotWidget::mousePressEvent( QMouseEvent *e ) {
+void PVPlotWidget::mousePressEvent( TQMouseEvent *e ) {
mouseButtonDown = true;
oldx = e->x();
oldy = e->y();
}
-void PVPlotWidget::mouseReleaseEvent( QMouseEvent * ) {
+void PVPlotWidget::mouseReleaseEvent( TQMouseEvent * ) {
mouseButtonDown = false;
update();
}
-void PVPlotWidget::mouseMoveEvent( QMouseEvent *e ) {
+void PVPlotWidget::mouseMoveEvent( TQMouseEvent *e ) {
if ( mouseButtonDown ) {
//Determine how far we've moved
double xc = (x2() + x())*0.5;
@@ -424,7 +424,7 @@ void PVPlotWidget::mouseMoveEvent( QMouseEvent *e ) {
}
}
-void PVPlotWidget::mouseDoubleClickEvent( QMouseEvent *e ) {
+void PVPlotWidget::mouseDoubleClickEvent( TQMouseEvent *e ) {
double xscale = dataWidth()/( width() - leftPadding() - rightPadding() );
double yscale = dataHeight()/( height() - topPadding() - bottomPadding() );
@@ -449,7 +449,7 @@ void PVPlotWidget::mouseDoubleClickEvent( QMouseEvent *e ) {
}
}
-void PVPlotWidget::wheelEvent( QWheelEvent *e ) {
+void PVPlotWidget::wheelEvent( TQWheelEvent *e ) {
if ( e->delta() > 0 ) slotZoomIn();
else slotZoomOut();
}
diff --git a/kstars/kstars/tools/planetviewer.h b/kstars/kstars/tools/planetviewer.h
index 6df052a8..b212a630 100644
--- a/kstars/kstars/tools/planetviewer.h
+++ b/kstars/kstars/tools/planetviewer.h
@@ -19,7 +19,7 @@
#include <kdialogbase.h>
#include <kpushbutton.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "kstarsplotwidget.h"
#include "planetviewerui.h"
@@ -35,18 +35,18 @@ class PlanetViewer : public KDialogBase
{
Q_OBJECT
public:
- PlanetViewer(QWidget *parent = 0, const char *name = 0);
+ PlanetViewer(TQWidget *parent = 0, const char *name = 0);
~PlanetViewer();
- QString centerPlanet() const { return CenterPlanet; }
- void setCenterPlanet( const QString &cp ) { CenterPlanet = cp; }
+ TQString centerPlanet() const { return CenterPlanet; }
+ void setCenterPlanet( const TQString &cp ) { CenterPlanet = cp; }
KPlotObject* planetObject(uint i) const { return planet[i]; }
- QString planetName(uint i) const { return pName[i]; }
+ TQString planetName(uint i) const { return pName[i]; }
protected:
- virtual void keyPressEvent( QKeyEvent *e );
- virtual void paintEvent( QPaintEvent* );
+ virtual void keyPressEvent( TQKeyEvent *e );
+ virtual void paintEvent( TQPaintEvent* );
private slots:
void initPlotObjects();
@@ -64,10 +64,10 @@ private:
PlanetCatalog PCat;
double scale;
bool isClockRunning;
- QTimer tmr;
+ TQTimer tmr;
int UpdateInterval[9], LastUpdate[9];
- QString pName[9], pColor[9];
- QString CenterPlanet;
+ TQString pName[9], pColor[9];
+ TQString CenterPlanet;
KPlotObject *ksun;
KPlotObject *planet[9];
@@ -79,8 +79,8 @@ class PVPlotWidget : public KStarsPlotWidget
Q_OBJECT
public:
PVPlotWidget( double x1, double x2, double y1, double y2,
- QWidget *parent=0, const char *name=0 );
- PVPlotWidget( QWidget *parent=0, const char *name=0 );
+ TQWidget *parent=0, const char *name=0 );
+ PVPlotWidget( TQWidget *parent=0, const char *name=0 );
~PVPlotWidget();
public slots:
@@ -91,12 +91,12 @@ signals:
void doubleClicked( double, double );
protected:
- virtual void keyPressEvent( QKeyEvent *e );
- virtual void mousePressEvent( QMouseEvent *e );
- virtual void mouseMoveEvent( QMouseEvent *e );
- virtual void mouseReleaseEvent( QMouseEvent * );
- virtual void mouseDoubleClickEvent( QMouseEvent *e );
- virtual void wheelEvent( QWheelEvent *e );
+ virtual void keyPressEvent( TQKeyEvent *e );
+ virtual void mousePressEvent( TQMouseEvent *e );
+ virtual void mouseMoveEvent( TQMouseEvent *e );
+ virtual void mouseReleaseEvent( TQMouseEvent * );
+ virtual void mouseDoubleClickEvent( TQMouseEvent *e );
+ virtual void wheelEvent( TQWheelEvent *e );
private:
bool mouseButtonDown;
diff --git a/kstars/kstars/tools/scriptbuilder.cpp b/kstars/kstars/tools/scriptbuilder.cpp
index 51922785..b7538432 100644
--- a/kstars/kstars/tools/scriptbuilder.cpp
+++ b/kstars/kstars/tools/scriptbuilder.cpp
@@ -40,15 +40,15 @@
#include <kurlrequester.h>
#include <knuminput.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qwidgetstack.h>
-#include <qwidget.h>
-#include <qptrlist.h>
-#include <qlayout.h>
-#include <qdatetimeedit.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqwidgetstack.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
+#include <tqlayout.h>
+#include <tqdatetimeedit.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
#include "scriptfunction.h"
#include "scriptbuilderui.h"
@@ -100,15 +100,15 @@
#include "timestepbox.h"
#include "libkdeedu/extdate/extdatewidget.h"
-ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
+ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
: KDialogBase( KDialogBase::Plain, i18n( "Script Builder" ), Close, Close, parent, name ),
- UnsavedChanges(false), currentFileURL(), currentDir( QDir::homeDirPath() ),
+ UnsavedChanges(false), currentFileURL(), currentDir( TQDir::homeDirPath() ),
currentScriptName(), currentAuthor() {
- QFrame *page = plainPage();
+ TQFrame *page = plainPage();
ks = (KStars*)parent;
- QVBoxLayout *vlay = new QVBoxLayout( page, 0, 0 );
+ TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, 0 );
sb = new ScriptBuilderUI( page );
vlay->addWidget( sb );
@@ -118,7 +118,7 @@ ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
//Initialize function templates and descriptions
KStarsFunctionList.append( new ScriptFunction( "lookTowards", i18n( "Point the display at the specified location. %1 can be the name of an object, a cardinal point on the compass, or 'zenith'." ),
- false, "QString", "dir" ) );
+ false, "TQString", "dir" ) );
KStarsFunctionList.append( new ScriptFunction( "setRaDec", i18n( "Point the display at the specified RA/Dec coordinates. %1 is expressed in Hours; %2 is expressed in Degrees." ),
false, "double", "ra", "double", "dec" ) );
KStarsFunctionList.append( new ScriptFunction( "setAltAz", i18n( "Point the display at the specified Alt/Az coordinates. %1 and %2 are expressed in Degrees." ),
@@ -131,14 +131,14 @@ ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
false, "int", "year", "int", "month", "int", "day", "int", "hour", "int", "minute", "int", "second" ) );
KStarsFunctionList.append( new ScriptFunction( "waitFor", i18n( "Pause script execution for %1 seconds." ), false, "double", "sec" ) );
KStarsFunctionList.append( new ScriptFunction( "waitForKey", i18n( "Halt script execution until the key %1 is pressed. Only single-key strokes are possible; use 'space' for the spacebar." ),
- false, "QString", "key" ) );
+ false, "TQString", "key" ) );
KStarsFunctionList.append( new ScriptFunction( "setTracking", i18n( "Set whether the display is tracking the current location." ), false, "bool", "track" ) );
- KStarsFunctionList.append( new ScriptFunction( "changeViewOption", i18n( "Change view option named %1 to value %2." ), false, "QString", "opName", "QString", "opValue" ) );
+ KStarsFunctionList.append( new ScriptFunction( "changeViewOption", i18n( "Change view option named %1 to value %2." ), false, "TQString", "opName", "TQString", "opValue" ) );
KStarsFunctionList.append( new ScriptFunction( "setGeoLocation", i18n( "Set the geographic location to the city specified by %1, %2 and %3." ),
- false, "QString", "cityName", "QString", "provinceName", "QString", "countryName" ) );
- KStarsFunctionList.append( new ScriptFunction( "setColor", i18n( "Set the color named %1 to the value %2." ), false, "QString", "colorName", "QString", "value" ) );
- KStarsFunctionList.append( new ScriptFunction( "loadColorScheme", i18n( "Load the color scheme named %1." ), false, "QString", "name" ) );
- KStarsFunctionList.append( new ScriptFunction( "exportImage", i18n( "Export the sky image to the file %1, with width %2 and height %3." ), false, "QString", "fileName", "int", "width", "int", "height" ) );
+ false, "TQString", "cityName", "TQString", "provinceName", "TQString", "countryName" ) );
+ KStarsFunctionList.append( new ScriptFunction( "setColor", i18n( "Set the color named %1 to the value %2." ), false, "TQString", "colorName", "TQString", "value" ) );
+ KStarsFunctionList.append( new ScriptFunction( "loadColorScheme", i18n( "Load the color scheme named %1." ), false, "TQString", "name" ) );
+ KStarsFunctionList.append( new ScriptFunction( "exportImage", i18n( "Export the sky image to the file %1, with width %2 and height %3." ), false, "TQString", "fileName", "int", "width", "int", "height" ) );
KStarsFunctionList.append( new ScriptFunction( "printImage", i18n( "Print the sky image to a printer or file. If %1 is true, it will show the print dialog. If %2 is true, it will use the Star Chart color scheme for printing." ), false, "bool", "usePrintDialog", "bool", "useChartColors" ) );
KStarsFunctionList.append( new ScriptFunction( "stop", i18n( "Halt the simulation clock." ), true ) );
KStarsFunctionList.append( new ScriptFunction( "start", i18n( "Start the simulation clock." ), true ) );
@@ -147,71 +147,71 @@ ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
// INDI fuctions
ScriptFunction *startINDIFunc(NULL), *shutdownINDIFunc(NULL), *switchINDIFunc(NULL), *setINDIPortFunc(NULL), *setINDIScopeActionFunc(NULL), *setINDITargetCoordFunc(NULL), *setINDITargetNameFunc(NULL), *setINDIGeoLocationFunc(NULL), *setINDIUTCFunc(NULL), *setINDIActionFunc(NULL), *waitForINDIActionFunc(NULL), *setINDIFocusSpeedFunc(NULL), *startINDIFocusFunc(NULL), *setINDIFocusTimeoutFunc(NULL), *setINDICCDTempFunc(NULL), *setINDIFilterNumFunc(NULL), *setINDIFrameTypeFunc(NULL), *startINDIExposureFunc(NULL);
- startINDIFunc = new ScriptFunction( "startINDI", i18n("Establish an INDI device either in local mode or server mode."), false, "QString", "deviceName", "bool", "useLocal");
+ startINDIFunc = new ScriptFunction( "startINDI", i18n("Establish an INDI device either in local mode or server mode."), false, "TQString", "deviceName", "bool", "useLocal");
INDIFunctionList.append ( startINDIFunc );
- shutdownINDIFunc = new ScriptFunction( "shutdownINDI", i18n("Shutdown an INDI device."), false, "QString", "deviceName");
+ shutdownINDIFunc = new ScriptFunction( "shutdownINDI", i18n("Shutdown an INDI device."), false, "TQString", "deviceName");
INDIFunctionList.append ( shutdownINDIFunc);
- switchINDIFunc = new ScriptFunction( "switchINDI", i18n("Connect or Disconnect an INDI device."), false, "QString", "deviceName", "bool", "turnOn");
+ switchINDIFunc = new ScriptFunction( "switchINDI", i18n("Connect or Disconnect an INDI device."), false, "TQString", "deviceName", "bool", "turnOn");
switchINDIFunc->setINDIProperty("CONNECTION");
INDIFunctionList.append ( switchINDIFunc);
- setINDIPortFunc = new ScriptFunction( "setINDIPort", i18n("Set INDI's device connection port."), false, "QString", "deviceName", "QString", "port");
+ setINDIPortFunc = new ScriptFunction( "setINDIPort", i18n("Set INDI's device connection port."), false, "TQString", "deviceName", "TQString", "port");
setINDIPortFunc->setINDIProperty("DEVICE_PORT");
INDIFunctionList.append ( setINDIPortFunc);
- setINDIScopeActionFunc = new ScriptFunction( "setINDIScopeAction", i18n("Set the telescope action. Available actions are SLEW, TRACK, SYNC, PARK, and ABORT."), false, "QString", "deviceName", "QString", "action");
+ setINDIScopeActionFunc = new ScriptFunction( "setINDIScopeAction", i18n("Set the telescope action. Available actions are SLEW, TRACK, SYNC, PARK, and ABORT."), false, "TQString", "deviceName", "TQString", "action");
setINDIScopeActionFunc->setINDIProperty("CHECK");
INDIFunctionList.append( setINDIScopeActionFunc);
- setINDITargetCoordFunc = new ScriptFunction ( "setINDITargetCoord", i18n( "Set the telescope target coordinates to the RA/Dec coordinates. RA is expressed in Hours; DEC is expressed in Degrees." ), false, "QString", "deviceName", "double", "RA", "double", "DEC" );
+ setINDITargetCoordFunc = new ScriptFunction ( "setINDITargetCoord", i18n( "Set the telescope target coordinates to the RA/Dec coordinates. RA is expressed in Hours; DEC is expressed in Degrees." ), false, "TQString", "deviceName", "double", "RA", "double", "DEC" );
setINDITargetCoordFunc->setINDIProperty("EQUATORIAL_EOD_COORD");
INDIFunctionList.append ( setINDITargetCoordFunc );
- setINDITargetNameFunc = new ScriptFunction( "setINDITargetName", i18n("Set the telescope target coorinates to the RA/Dec coordinates of the selected object."), false, "QString", "deviceName", "QString", "objectName");
+ setINDITargetNameFunc = new ScriptFunction( "setINDITargetName", i18n("Set the telescope target coorinates to the RA/Dec coordinates of the selected object."), false, "TQString", "deviceName", "TQString", "objectName");
setINDITargetNameFunc->setINDIProperty("EQUATORIAL_EOD_COORD");
INDIFunctionList.append( setINDITargetNameFunc);
- setINDIGeoLocationFunc = new ScriptFunction ( "setINDIGeoLocation", i18n("Set the telescope longitude and latitude. The longitude is E of N."), false, "QString", "deviceName", "double", "long", "double", "lat");
+ setINDIGeoLocationFunc = new ScriptFunction ( "setINDIGeoLocation", i18n("Set the telescope longitude and latitude. The longitude is E of N."), false, "TQString", "deviceName", "double", "long", "double", "lat");
setINDIGeoLocationFunc->setINDIProperty("GEOGRAPHIC_COORD");
INDIFunctionList.append( setINDIGeoLocationFunc);
- setINDIUTCFunc = new ScriptFunction ( "setINDIUTC", i18n("Set the device UTC time in ISO 8601 format YYYY/MM/DDTHH:MM:SS."), false, "QString", "deviceName", "QString", "UTCDateTime");
+ setINDIUTCFunc = new ScriptFunction ( "setINDIUTC", i18n("Set the device UTC time in ISO 8601 format YYYY/MM/DDTHH:MM:SS."), false, "TQString", "deviceName", "TQString", "UTCDateTime");
setINDIUTCFunc->setINDIProperty("TIME");
INDIFunctionList.append( setINDIUTCFunc);
- setINDIActionFunc = new ScriptFunction( "setINDIAction", i18n("Activate an INDI action. The action is the name of any INDI switch property element supported by the device."), false, "QString", "deviceName", "QString", "actionName");
+ setINDIActionFunc = new ScriptFunction( "setINDIAction", i18n("Activate an INDI action. The action is the name of any INDI switch property element supported by the device."), false, "TQString", "deviceName", "TQString", "actionName");
INDIFunctionList.append( setINDIActionFunc);
- waitForINDIActionFunc = new ScriptFunction ("waitForINDIAction", i18n("Pause script execution until action returns with OK status. The action can be the name of any INDI property supported by the device."), false, "QString", "deviceName", "QString", "actionName");
+ waitForINDIActionFunc = new ScriptFunction ("waitForINDIAction", i18n("Pause script execution until action returns with OK status. The action can be the name of any INDI property supported by the device."), false, "TQString", "deviceName", "TQString", "actionName");
INDIFunctionList.append( waitForINDIActionFunc );
- setINDIFocusSpeedFunc = new ScriptFunction ("setINDIFocusSpeed", i18n("Set the telescope focuser speed. Set speed to 0 to halt the focuser. 1-3 correspond to slow, medium, and fast speeds respectively."), false, "QString", "deviceName", "unsigned int", "speed");
+ setINDIFocusSpeedFunc = new ScriptFunction ("setINDIFocusSpeed", i18n("Set the telescope focuser speed. Set speed to 0 to halt the focuser. 1-3 correspond to slow, medium, and fast speeds respectively."), false, "TQString", "deviceName", "unsigned int", "speed");
setINDIFocusSpeedFunc->setINDIProperty("FOCUS_SPEED");
INDIFunctionList.append( setINDIFocusSpeedFunc );
- startINDIFocusFunc = new ScriptFunction ("startINDIFocus", i18n("Start moving the focuser in the direction Dir, and for the duration specified by setINDIFocusTimeout."), false, "QString", "deviceName", "QString", "Dir");
+ startINDIFocusFunc = new ScriptFunction ("startINDIFocus", i18n("Start moving the focuser in the direction Dir, and for the duration specified by setINDIFocusTimeout."), false, "TQString", "deviceName", "TQString", "Dir");
startINDIFocusFunc->setINDIProperty("FOCUS_MOTION");
INDIFunctionList.append( startINDIFocusFunc);
- setINDIFocusTimeoutFunc = new ScriptFunction ( "setINDIFocusTimeout", i18n("Set the telescope focuser timer in seconds. This is the duration of any focusing procedure performed by calling startINDIFocus."), false, "QString", "deviceName", "int", "timeout");
+ setINDIFocusTimeoutFunc = new ScriptFunction ( "setINDIFocusTimeout", i18n("Set the telescope focuser timer in seconds. This is the duration of any focusing procedure performed by calling startINDIFocus."), false, "TQString", "deviceName", "int", "timeout");
setINDIFocusTimeoutFunc->setINDIProperty("FOCUS_TIMER");
INDIFunctionList.append( setINDIFocusTimeoutFunc);
- setINDICCDTempFunc = new ScriptFunction( "setINDICCDTemp", i18n("Set the target CCD chip temperature."), false, "QString", "deviceName", "int", "temp");
+ setINDICCDTempFunc = new ScriptFunction( "setINDICCDTemp", i18n("Set the target CCD chip temperature."), false, "TQString", "deviceName", "int", "temp");
setINDICCDTempFunc->setINDIProperty("CCD_TEMPERATURE");
INDIFunctionList.append( setINDICCDTempFunc);
- setINDIFilterNumFunc = new ScriptFunction( "setINDIFilterNum", i18n("Set the target filter position."), false, "QString", "deviceName", "int", "filter_num");
+ setINDIFilterNumFunc = new ScriptFunction( "setINDIFilterNum", i18n("Set the target filter position."), false, "TQString", "deviceName", "int", "filter_num");
setINDIFilterNumFunc->setINDIProperty("FILTER_SLOT");
INDIFunctionList.append ( setINDIFilterNumFunc);
- setINDIFrameTypeFunc = new ScriptFunction( "setINDIFrameType", i18n("Set the CCD camera frame type. Available options are FRAME_LIGHT, FRAME_BIAS, FRAME_DARK, and FRAME_FLAT."), false, "QString", "deviceName", "QString", "type");
+ setINDIFrameTypeFunc = new ScriptFunction( "setINDIFrameType", i18n("Set the CCD camera frame type. Available options are FRAME_LIGHT, FRAME_BIAS, FRAME_DARK, and FRAME_FLAT."), false, "TQString", "deviceName", "TQString", "type");
setINDIFrameTypeFunc->setINDIProperty("FRAME_TYPE");
INDIFunctionList.append( setINDIFrameTypeFunc);
- startINDIExposureFunc = new ScriptFunction ( "startINDIExposure", i18n("Start Camera/CCD exposure. The duration is in seconds."), false, "QString", "deviceName", "int", "timeout");
+ startINDIExposureFunc = new ScriptFunction ( "startINDIExposure", i18n("Start Camera/CCD exposure. The duration is in seconds."), false, "TQString", "deviceName", "int", "timeout");
startINDIExposureFunc->setINDIProperty("CCD_EXPOSE_DURATION");
INDIFunctionList.append( startINDIExposureFunc);
@@ -223,46 +223,46 @@ ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
sb->FunctionListView->addColumn(i18n("Functions"));
sb->FunctionListView->setSorting(-1);
- QListViewItem *INDI_tree = new QListViewItem( sb->FunctionListView, "INDI");
- QListViewItem *INDI_filter = new QListViewItem( INDI_tree, "Filter");
- QListViewItem *INDI_focuser = new QListViewItem( INDI_tree, "Focuser");
- QListViewItem *INDI_ccd = new QListViewItem( INDI_tree, "Camera/CCD");
- QListViewItem *INDI_telescope = new QListViewItem( INDI_tree, "Telescope");
- QListViewItem *INDI_general = new QListViewItem( INDI_tree, "General");
+ TQListViewItem *INDI_tree = new TQListViewItem( sb->FunctionListView, "INDI");
+ TQListViewItem *INDI_filter = new TQListViewItem( INDI_tree, "Filter");
+ TQListViewItem *INDI_focuser = new TQListViewItem( INDI_tree, "Focuser");
+ TQListViewItem *INDI_ccd = new TQListViewItem( INDI_tree, "Camera/CCD");
+ TQListViewItem *INDI_telescope = new TQListViewItem( INDI_tree, "Telescope");
+ TQListViewItem *INDI_general = new TQListViewItem( INDI_tree, "General");
- QListViewItem *kstars_tree = new QListViewItem( sb->FunctionListView, "KStars");
+ TQListViewItem *kstars_tree = new TQListViewItem( sb->FunctionListView, "KStars");
for ( ScriptFunction *sf = KStarsFunctionList.last(); sf; sf = KStarsFunctionList.prev() )
- new QListViewItem (kstars_tree, sf->prototype());
+ new TQListViewItem (kstars_tree, sf->prototype());
// General
- new QListViewItem(INDI_general, waitForINDIActionFunc->prototype());
- new QListViewItem(INDI_general, setINDIActionFunc->prototype());
- new QListViewItem(INDI_general, setINDIPortFunc->prototype());
- new QListViewItem(INDI_general, switchINDIFunc->prototype());
- new QListViewItem(INDI_general, shutdownINDIFunc->prototype());
- new QListViewItem(INDI_general, startINDIFunc->prototype());
+ new TQListViewItem(INDI_general, waitForINDIActionFunc->prototype());
+ new TQListViewItem(INDI_general, setINDIActionFunc->prototype());
+ new TQListViewItem(INDI_general, setINDIPortFunc->prototype());
+ new TQListViewItem(INDI_general, switchINDIFunc->prototype());
+ new TQListViewItem(INDI_general, shutdownINDIFunc->prototype());
+ new TQListViewItem(INDI_general, startINDIFunc->prototype());
// Telescope
- new QListViewItem(INDI_telescope, setINDIUTCFunc->prototype());
- new QListViewItem(INDI_telescope, setINDIGeoLocationFunc->prototype());
- new QListViewItem(INDI_telescope, setINDITargetNameFunc->prototype());
- new QListViewItem(INDI_telescope, setINDITargetCoordFunc->prototype());
- new QListViewItem(INDI_telescope, setINDIScopeActionFunc->prototype());
+ new TQListViewItem(INDI_telescope, setINDIUTCFunc->prototype());
+ new TQListViewItem(INDI_telescope, setINDIGeoLocationFunc->prototype());
+ new TQListViewItem(INDI_telescope, setINDITargetNameFunc->prototype());
+ new TQListViewItem(INDI_telescope, setINDITargetCoordFunc->prototype());
+ new TQListViewItem(INDI_telescope, setINDIScopeActionFunc->prototype());
// CCD
- new QListViewItem(INDI_ccd, startINDIExposureFunc->prototype());
- new QListViewItem(INDI_ccd, setINDIFrameTypeFunc->prototype());
- new QListViewItem(INDI_ccd, setINDICCDTempFunc->prototype());
+ new TQListViewItem(INDI_ccd, startINDIExposureFunc->prototype());
+ new TQListViewItem(INDI_ccd, setINDIFrameTypeFunc->prototype());
+ new TQListViewItem(INDI_ccd, setINDICCDTempFunc->prototype());
// Focuser
- new QListViewItem(INDI_focuser, startINDIFocusFunc->prototype());
- new QListViewItem(INDI_focuser, setINDIFocusTimeoutFunc->prototype());
- new QListViewItem(INDI_focuser, setINDIFocusSpeedFunc->prototype());
+ new TQListViewItem(INDI_focuser, startINDIFocusFunc->prototype());
+ new TQListViewItem(INDI_focuser, setINDIFocusTimeoutFunc->prototype());
+ new TQListViewItem(INDI_focuser, setINDIFocusSpeedFunc->prototype());
// Filter
- new QListViewItem(INDI_filter, setINDIFilterNumFunc->prototype());
+ new TQListViewItem(INDI_filter, setINDIFilterNumFunc->prototype());
//Add icons to Push Buttons
KIconLoader *icons = KGlobal::iconLoader();
@@ -278,7 +278,7 @@ ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
sb->DownButton->setIconSet( icons->loadIconSet( "down", KIcon::Toolbar ) );
//Prepare the widget stack
- argBlank = new QWidget( sb->ArgStack );
+ argBlank = new TQWidget( sb->ArgStack );
argLookToward = new ArgLookToward( sb->ArgStack );
argSetRaDec = new ArgSetRaDec( sb->ArgStack );
argSetAltAz = new ArgSetAltAz( sb->ArgStack );
@@ -371,129 +371,129 @@ ScriptBuilder::ScriptBuilder( QWidget *parent, const char *name )
initViewOptions();
//connect widgets in ScriptBuilderUI
- connect( sb->FunctionListView, SIGNAL( doubleClicked(QListViewItem *, const QPoint &, int )), this, SLOT( slotAddFunction() ) );
- connect( sb->FunctionListView, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( slotShowDoc() ) );
- connect( sb->UpButton, SIGNAL( clicked() ), this, SLOT( slotMoveFunctionUp() ) );
- connect( sb->ScriptListBox, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( slotArgWidget() ) );
- connect( sb->DownButton, SIGNAL( clicked() ), this, SLOT( slotMoveFunctionDown() ) );
- connect( sb->CopyButton, SIGNAL( clicked() ), this, SLOT( slotCopyFunction() ) );
- connect( sb->RemoveButton, SIGNAL( clicked() ), this, SLOT( slotRemoveFunction() ) );
- connect( sb->NewButton, SIGNAL( clicked() ), this, SLOT( slotNew() ) );
- connect( sb->OpenButton, SIGNAL( clicked() ), this, SLOT( slotOpen() ) );
- connect( sb->SaveButton, SIGNAL( clicked() ), this, SLOT( slotSave() ) );
- connect( sb->SaveAsButton, SIGNAL( clicked() ), this, SLOT( slotSaveAs() ) );
- connect( sb->AddButton, SIGNAL( clicked() ), this, SLOT( slotAddFunction() ) );
- connect( sb->RunButton, SIGNAL( clicked() ), this, SLOT( slotRunScript() ) );
+ connect( sb->FunctionListView, TQT_SIGNAL( doubleClicked(TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT( slotAddFunction() ) );
+ connect( sb->FunctionListView, TQT_SIGNAL( currentChanged(TQListViewItem*) ), this, TQT_SLOT( slotShowDoc() ) );
+ connect( sb->UpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotMoveFunctionUp() ) );
+ connect( sb->ScriptListBox, TQT_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQT_SLOT( slotArgWidget() ) );
+ connect( sb->DownButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotMoveFunctionDown() ) );
+ connect( sb->CopyButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotCopyFunction() ) );
+ connect( sb->RemoveButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveFunction() ) );
+ connect( sb->NewButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotNew() ) );
+ connect( sb->OpenButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotOpen() ) );
+ connect( sb->SaveButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSave() ) );
+ connect( sb->SaveAsButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSaveAs() ) );
+ connect( sb->AddButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddFunction() ) );
+ connect( sb->RunButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRunScript() ) );
//Connections for Arg Widgets
- connect( argSetGeoLocation->FindCityButton, SIGNAL( clicked() ), this, SLOT( slotFindCity() ) );
- connect( argLookToward->FindButton, SIGNAL( clicked() ), this, SLOT( slotFindObject() ) );
- connect( argChangeViewOption->TreeButton, SIGNAL( clicked() ), this, SLOT( slotShowOptions() ) );
-
- connect( argLookToward->FocusEdit, SIGNAL( textChanged(const QString &) ), this, SLOT( slotLookToward() ) );
- connect( argSetRaDec->RaBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotRa() ) );
- connect( argSetRaDec->DecBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotDec() ) );
- connect( argSetAltAz->AltBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotAlt() ) );
- connect( argSetAltAz->AzBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotAz() ) );
- connect( argSetLocalTime->DateBox, SIGNAL( changed(ExtDate) ), this, SLOT( slotChangeDate() ) );
- connect( argSetLocalTime->TimeBox, SIGNAL( valueChanged(const QTime&) ), this, SLOT( slotChangeTime() ) );
- connect( argWaitFor->DelayBox, SIGNAL( valueChanged(int) ), this, SLOT( slotWaitFor() ) );
- connect( argWaitForKey->WaitKeyEdit, SIGNAL( textChanged(const QString &) ), this, SLOT( slotWaitForKey() ) );
- connect( argSetTracking->CheckTrack, SIGNAL( stateChanged(int) ), this, SLOT( slotTracking() ) );
- connect( argChangeViewOption->OptionName, SIGNAL( activated(const QString &) ), this, SLOT( slotViewOption() ) );
- connect( argChangeViewOption->OptionValue, SIGNAL( textChanged(const QString &) ), this, SLOT( slotViewOption() ) );
- connect( argSetGeoLocation->CityName, SIGNAL( textChanged(const QString &) ), this, SLOT( slotChangeCity() ) );
- connect( argSetGeoLocation->ProvinceName, SIGNAL( textChanged(const QString &) ), this, SLOT( slotChangeProvince() ) );
- connect( argSetGeoLocation->CountryName, SIGNAL( textChanged(const QString &) ), this, SLOT( slotChangeCountry() ) );
- connect( argTimeScale->TimeScale, SIGNAL( scaleChanged(float) ), this, SLOT( slotTimeScale() ) );
- connect( argZoom->ZoomBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotZoom() ) );
- connect( argExportImage->ExportFileName, SIGNAL( textChanged(const QString &) ), this, SLOT( slotExportImage() ) );
- connect( argExportImage->ExportWidth, SIGNAL( valueChanged(int) ), this, SLOT( slotExportImage() ) );
- connect( argExportImage->ExportHeight, SIGNAL( valueChanged(int) ), this, SLOT( slotExportImage() ) );
- connect( argPrintImage->UsePrintDialog, SIGNAL( toggled(bool) ), this, SLOT( slotPrintImage() ) );
- connect( argPrintImage->UseChartColors, SIGNAL( toggled(bool) ), this, SLOT( slotPrintImage() ) );
- connect( argSetColor->ColorName, SIGNAL( activated(const QString &) ), this, SLOT( slotChangeColorName() ) );
- connect( argSetColor->ColorValue, SIGNAL( changed(const QColor &) ), this, SLOT( slotChangeColor() ) );
- connect( argLoadColorScheme->SchemeList, SIGNAL( clicked( QListBoxItem* ) ), this, SLOT( slotLoadColorScheme( QListBoxItem* ) ) );
- connect( snd->ScriptName, SIGNAL( textChanged(const QString &) ), this, SLOT( slotEnableScriptNameOK() ) );
+ connect( argSetGeoLocation->FindCityButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotFindCity() ) );
+ connect( argLookToward->FindButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotFindObject() ) );
+ connect( argChangeViewOption->TreeButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotShowOptions() ) );
+
+ connect( argLookToward->FocusEdit, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotLookToward() ) );
+ connect( argSetRaDec->RaBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotRa() ) );
+ connect( argSetRaDec->DecBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotDec() ) );
+ connect( argSetAltAz->AltBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotAlt() ) );
+ connect( argSetAltAz->AzBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotAz() ) );
+ connect( argSetLocalTime->DateBox, TQT_SIGNAL( changed(ExtDate) ), this, TQT_SLOT( slotChangeDate() ) );
+ connect( argSetLocalTime->TimeBox, TQT_SIGNAL( valueChanged(const TQTime&) ), this, TQT_SLOT( slotChangeTime() ) );
+ connect( argWaitFor->DelayBox, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slotWaitFor() ) );
+ connect( argWaitForKey->WaitKeyEdit, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotWaitForKey() ) );
+ connect( argSetTracking->CheckTrack, TQT_SIGNAL( stateChanged(int) ), this, TQT_SLOT( slotTracking() ) );
+ connect( argChangeViewOption->OptionName, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT( slotViewOption() ) );
+ connect( argChangeViewOption->OptionValue, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotViewOption() ) );
+ connect( argSetGeoLocation->CityName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotChangeCity() ) );
+ connect( argSetGeoLocation->ProvinceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotChangeProvince() ) );
+ connect( argSetGeoLocation->CountryName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotChangeCountry() ) );
+ connect( argTimeScale->TimeScale, TQT_SIGNAL( scaleChanged(float) ), this, TQT_SLOT( slotTimeScale() ) );
+ connect( argZoom->ZoomBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotZoom() ) );
+ connect( argExportImage->ExportFileName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotExportImage() ) );
+ connect( argExportImage->ExportWidth, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slotExportImage() ) );
+ connect( argExportImage->ExportHeight, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slotExportImage() ) );
+ connect( argPrintImage->UsePrintDialog, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotPrintImage() ) );
+ connect( argPrintImage->UseChartColors, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotPrintImage() ) );
+ connect( argSetColor->ColorName, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT( slotChangeColorName() ) );
+ connect( argSetColor->ColorValue, TQT_SIGNAL( changed(const TQColor &) ), this, TQT_SLOT( slotChangeColor() ) );
+ connect( argLoadColorScheme->SchemeList, TQT_SIGNAL( clicked( TQListBoxItem* ) ), this, TQT_SLOT( slotLoadColorScheme( TQListBoxItem* ) ) );
+ connect( snd->ScriptName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotEnableScriptNameOK() ) );
- connect( sb->AppendINDIWait, SIGNAL ( toggled(bool) ), this, SLOT(slotINDIWaitCheck(bool)));
+ connect( sb->AppendINDIWait, TQT_SIGNAL ( toggled(bool) ), this, TQT_SLOT(slotINDIWaitCheck(bool)));
// Connections for INDI's Arg widgets
// INDI Start Device
- connect (argStartINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDIStartDeviceName()));
- connect (argStartINDI->INDIMode, SIGNAL ( clicked( int)), this, SLOT (slotINDIStartDeviceMode()));
+ connect (argStartINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIStartDeviceName()));
+ connect (argStartINDI->INDIMode, TQT_SIGNAL ( clicked( int)), this, TQT_SLOT (slotINDIStartDeviceMode()));
// INDI Shutdown Device
- connect (argShutdownINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDIShutdown()));
+ connect (argShutdownINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIShutdown()));
// INDI Swtich Device
- connect (argSwitchINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISwitchDeviceName()));
- connect (argSwitchINDI->INDIConnection, SIGNAL ( clicked( int)), this, SLOT (slotINDISwitchDeviceConnection()));
+ connect (argSwitchINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISwitchDeviceName()));
+ connect (argSwitchINDI->INDIConnection, TQT_SIGNAL ( clicked( int)), this, TQT_SLOT (slotINDISwitchDeviceConnection()));
// INDI Set Device Port
- connect (argSetPortINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetPortDeviceName()));
- connect (argSetPortINDI->devicePort, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetPortDevicePort()));
+ connect (argSetPortINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetPortDeviceName()));
+ connect (argSetPortINDI->devicePort, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetPortDevicePort()));
// INDI Set Target Coord
- connect (argSetTargetCoordINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetTargetCoordDeviceName()));
- connect( argSetTargetCoordINDI->RaBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotINDISetTargetCoordDeviceRA() ) );
- connect( argSetTargetCoordINDI->DecBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotINDISetTargetCoordDeviceDEC() ) );
+ connect (argSetTargetCoordINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetTargetCoordDeviceName()));
+ connect( argSetTargetCoordINDI->RaBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotINDISetTargetCoordDeviceRA() ) );
+ connect( argSetTargetCoordINDI->DecBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotINDISetTargetCoordDeviceDEC() ) );
// INDI Set Target Name
- connect( argSetTargetNameINDI->FindButton, SIGNAL( clicked() ), this, SLOT( slotINDIFindObject() ) );
- connect (argSetTargetNameINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetTargetNameDeviceName()));
- connect (argSetTargetNameINDI->objectName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetTargetNameObjectName()));
+ connect( argSetTargetNameINDI->FindButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotINDIFindObject() ) );
+ connect (argSetTargetNameINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetTargetNameDeviceName()));
+ connect (argSetTargetNameINDI->objectName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetTargetNameObjectName()));
// INDI Set Action
- connect (argSetActionINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetActionDeviceName()));
- connect (argSetActionINDI->actionName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetActionName()));
+ connect (argSetActionINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetActionDeviceName()));
+ connect (argSetActionINDI->actionName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetActionName()));
// INDI Wait For Action
- connect (argWaitForActionINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDIWaitForActionDeviceName()));
- connect (argWaitForActionINDI->actionName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDIWaitForActionName()));
+ connect (argWaitForActionINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIWaitForActionDeviceName()));
+ connect (argWaitForActionINDI->actionName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIWaitForActionName()));
// INDI Set Focus Speed
- connect (argSetFocusSpeedINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetFocusSpeedDeviceName()));
- connect (argSetFocusSpeedINDI->speedIN, SIGNAL( valueChanged(int) ), this, SLOT(slotINDISetFocusSpeed()));
+ connect (argSetFocusSpeedINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetFocusSpeedDeviceName()));
+ connect (argSetFocusSpeedINDI->speedIN, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT(slotINDISetFocusSpeed()));
// INDI Start Focus
- connect (argStartFocusINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDIStartFocusDeviceName()));
- connect (argStartFocusINDI->directionCombo, SIGNAL( activated(const QString &) ), this, SLOT(slotINDIStartFocusDirection()));
+ connect (argStartFocusINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIStartFocusDeviceName()));
+ connect (argStartFocusINDI->directionCombo, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT(slotINDIStartFocusDirection()));
// INDI Set Focus Timeout
- connect (argSetFocusTimeoutINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetFocusTimeoutDeviceName()));
- connect (argSetFocusTimeoutINDI->timeOut, SIGNAL( valueChanged(int) ), this, SLOT(slotINDISetFocusTimeout()));
+ connect (argSetFocusTimeoutINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetFocusTimeoutDeviceName()));
+ connect (argSetFocusTimeoutINDI->timeOut, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT(slotINDISetFocusTimeout()));
// INDI Set Geo Location
- connect (argSetGeoLocationINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetGeoLocationDeviceName()));
- connect( argSetGeoLocationINDI->longBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotINDISetGeoLocationDeviceLong() ) );
- connect( argSetGeoLocationINDI->latBox, SIGNAL( textChanged(const QString &) ), this, SLOT( slotINDISetGeoLocationDeviceLat() ) );
+ connect (argSetGeoLocationINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetGeoLocationDeviceName()));
+ connect( argSetGeoLocationINDI->longBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotINDISetGeoLocationDeviceLong() ) );
+ connect( argSetGeoLocationINDI->latBox, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT( slotINDISetGeoLocationDeviceLat() ) );
// INDI Start Exposure
- connect (argStartExposureINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDIStartExposureDeviceName()));
- connect (argStartExposureINDI->timeOut, SIGNAL( valueChanged(int) ), this, SLOT(slotINDIStartExposureTimeout()));
+ connect (argStartExposureINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIStartExposureDeviceName()));
+ connect (argStartExposureINDI->timeOut, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT(slotINDIStartExposureTimeout()));
// INDI Set UTC
- connect (argSetUTCINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetUTCDeviceName()));
- connect (argSetUTCINDI->UTC, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetUTC()));
+ connect (argSetUTCINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetUTCDeviceName()));
+ connect (argSetUTCINDI->UTC, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetUTC()));
// INDI Set Scope Action
- connect (argSetScopeActionINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetScopeActionDeviceName()));
- connect (argSetScopeActionINDI->actionCombo, SIGNAL( activated(const QString &) ), this, SLOT(slotINDISetScopeAction()));
+ connect (argSetScopeActionINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetScopeActionDeviceName()));
+ connect (argSetScopeActionINDI->actionCombo, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT(slotINDISetScopeAction()));
// INDI Set Frame type
- connect (argSetFrameTypeINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetFrameTypeDeviceName()));
- connect (argSetFrameTypeINDI->typeCombo, SIGNAL( activated(const QString &) ), this, SLOT(slotINDISetFrameType()));
+ connect (argSetFrameTypeINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetFrameTypeDeviceName()));
+ connect (argSetFrameTypeINDI->typeCombo, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT(slotINDISetFrameType()));
// INDI Set CCD Temp
- connect (argSetCCDTempINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetCCDTempDeviceName()));
- connect (argSetCCDTempINDI->temp, SIGNAL( valueChanged(int) ), this, SLOT(slotINDISetCCDTemp()));
+ connect (argSetCCDTempINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetCCDTempDeviceName()));
+ connect (argSetCCDTempINDI->temp, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT(slotINDISetCCDTemp()));
// INDI Set Filter Num
- connect (argSetFilterNumINDI->deviceName, SIGNAL( textChanged(const QString &) ), this, SLOT(slotINDISetFilterNumDeviceName()));
- connect (argSetFilterNumINDI->filter_num, SIGNAL( valueChanged(int) ), this, SLOT(slotINDISetFilterNum()));
+ connect (argSetFilterNumINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetFilterNumDeviceName()));
+ connect (argSetFilterNumINDI->filter_num, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT(slotINDISetFilterNum()));
//disbale some buttons
@@ -515,14 +515,14 @@ void ScriptBuilder::initViewOptions() {
otv->OptionsList->setRootIsDecorated( true );
//InfoBoxes
- opsGUI = new QListViewItem( otv->OptionsList, i18n( "InfoBoxes" ) );
- new QListViewItem( opsGUI, "ShowInfoBoxes", i18n( "Toggle display of all InfoBoxes" ), i18n( "bool" ) );
- new QListViewItem( opsGUI, "ShowTimeBox", i18n( "Toggle display of Time InfoBox" ), i18n( "bool" ) );
- new QListViewItem( opsGUI, "ShowGeoBox", i18n( "Toggle display of Geographic InfoBox" ), i18n( "bool" ) );
- new QListViewItem( opsGUI, "ShowFocusBox", i18n( "Toggle display of Focus InfoBox" ), i18n( "bool" ) );
- new QListViewItem( opsGUI, "ShadeTimeBox", i18n( "(un)Shade Time InfoBox" ), i18n( "bool" ) );
- new QListViewItem( opsGUI, "ShadeGeoBox", i18n( "(un)Shade Geographic InfoBox" ), i18n( "bool" ) );
- new QListViewItem( opsGUI, "ShadeFocusBox", i18n( "(un)Shade Focus InfoBox" ), i18n( "bool" ) );
+ opsGUI = new TQListViewItem( otv->OptionsList, i18n( "InfoBoxes" ) );
+ new TQListViewItem( opsGUI, "ShowInfoBoxes", i18n( "Toggle display of all InfoBoxes" ), i18n( "bool" ) );
+ new TQListViewItem( opsGUI, "ShowTimeBox", i18n( "Toggle display of Time InfoBox" ), i18n( "bool" ) );
+ new TQListViewItem( opsGUI, "ShowGeoBox", i18n( "Toggle display of Geographic InfoBox" ), i18n( "bool" ) );
+ new TQListViewItem( opsGUI, "ShowFocusBox", i18n( "Toggle display of Focus InfoBox" ), i18n( "bool" ) );
+ new TQListViewItem( opsGUI, "ShadeTimeBox", i18n( "(un)Shade Time InfoBox" ), i18n( "bool" ) );
+ new TQListViewItem( opsGUI, "ShadeGeoBox", i18n( "(un)Shade Geographic InfoBox" ), i18n( "bool" ) );
+ new TQListViewItem( opsGUI, "ShadeFocusBox", i18n( "(un)Shade Focus InfoBox" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "ShowInfoBoxes" );
argChangeViewOption->OptionName->insertItem( "ShowTimeBox" );
argChangeViewOption->OptionName->insertItem( "ShowGeoBox" );
@@ -532,33 +532,33 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "ShadeFocusBox" );
//Toolbars
- opsToolbar = new QListViewItem( otv->OptionsList, i18n( "Toolbars" ) );
- new QListViewItem( opsToolbar, "ShowMainToolBar", i18n( "Toggle display of main toolbar" ), i18n( "bool" ) );
- new QListViewItem( opsToolbar, "ShowViewToolBar", i18n( "Toggle display of view toolbar" ), i18n( "bool" ) );
+ opsToolbar = new TQListViewItem( otv->OptionsList, i18n( "Toolbars" ) );
+ new TQListViewItem( opsToolbar, "ShowMainToolBar", i18n( "Toggle display of main toolbar" ), i18n( "bool" ) );
+ new TQListViewItem( opsToolbar, "ShowViewToolBar", i18n( "Toggle display of view toolbar" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "ShowMainToolBar" );
argChangeViewOption->OptionName->insertItem( "ShowViewToolBar" );
//Show Objects
- opsShowObj = new QListViewItem( otv->OptionsList, i18n( "Show Objects" ) );
- new QListViewItem( opsShowObj, "ShowStars", i18n( "Toggle display of Stars" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowDeepSky", i18n( "Toggle display of all deep-sky objects" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowMessier", i18n( "Toggle display of Messier object symbols" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowMessierImages", i18n( "Toggle display of Messier object images" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowNGC", i18n( "Toggle display of NGC objects" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowIC", i18n( "Toggle display of IC objects" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowPlanets", i18n( "Toggle display of all solar system bodies" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowSun", i18n( "Toggle display of Sun" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowMoon", i18n( "Toggle display of Moon" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowMercury", i18n( "Toggle display of Mercury" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowVenus", i18n( "Toggle display of Venus" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowMars", i18n( "Toggle display of Mars" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowJupiter", i18n( "Toggle display of Jupiter" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowSaturn", i18n( "Toggle display of Saturn" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowUranus", i18n( "Toggle display of Uranus" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowNeptune", i18n( "Toggle display of Neptune" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowPluto", i18n( "Toggle display of Pluto" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowAsteroids", i18n( "Toggle display of Asteroids" ), i18n( "bool" ) );
- new QListViewItem( opsShowObj, "ShowComets", i18n( "Toggle display of Comets" ), i18n( "bool" ) );
+ opsShowObj = new TQListViewItem( otv->OptionsList, i18n( "Show Objects" ) );
+ new TQListViewItem( opsShowObj, "ShowStars", i18n( "Toggle display of Stars" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowDeepSky", i18n( "Toggle display of all deep-sky objects" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowMessier", i18n( "Toggle display of Messier object symbols" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowMessierImages", i18n( "Toggle display of Messier object images" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowNGC", i18n( "Toggle display of NGC objects" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowIC", i18n( "Toggle display of IC objects" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowPlanets", i18n( "Toggle display of all solar system bodies" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowSun", i18n( "Toggle display of Sun" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowMoon", i18n( "Toggle display of Moon" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowMercury", i18n( "Toggle display of Mercury" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowVenus", i18n( "Toggle display of Venus" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowMars", i18n( "Toggle display of Mars" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowJupiter", i18n( "Toggle display of Jupiter" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowSaturn", i18n( "Toggle display of Saturn" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowUranus", i18n( "Toggle display of Uranus" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowNeptune", i18n( "Toggle display of Neptune" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowPluto", i18n( "Toggle display of Pluto" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowAsteroids", i18n( "Toggle display of Asteroids" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowObj, "ShowComets", i18n( "Toggle display of Comets" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "ShowSAO" );
argChangeViewOption->OptionName->insertItem( "ShowDeepSky" );
argChangeViewOption->OptionName->insertItem( "ShowMess" );
@@ -579,22 +579,22 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "ShowAsteroids" );
argChangeViewOption->OptionName->insertItem( "ShowComets" );
- opsShowOther = new QListViewItem( otv->OptionsList, i18n( "Show Other" ) );
- new QListViewItem( opsShowOther, "ShowCLines", i18n( "Toggle display of constellation lines" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowCBounds", i18n( "Toggle display of constellation boundaries" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowCNames", i18n( "Toggle display of constellation names" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowMilkyWay", i18n( "Toggle display of Milky Way" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowGrid", i18n( "Toggle display of the coordinate grid" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowEquator", i18n( "Toggle display of the celestial equator" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowEcliptic", i18n( "Toggle display of the ecliptic" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowHorizon", i18n( "Toggle display of the horizon line" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowGround", i18n( "Toggle display of the opaque ground" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowStarNames", i18n( "Toggle display of star name labels" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowStarMagnitudes", i18n( "Toggle display of star magnitude labels" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowAsteroidNames", i18n( "Toggle display of asteroid name labels" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowCometNames", i18n( "Toggle display of comet name labels" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowPlanetNames", i18n( "Toggle display of planet name labels" ), i18n( "bool" ) );
- new QListViewItem( opsShowOther, "ShowPlanetImages", i18n( "Toggle display of planet images" ), i18n( "bool" ) );
+ opsShowOther = new TQListViewItem( otv->OptionsList, i18n( "Show Other" ) );
+ new TQListViewItem( opsShowOther, "ShowCLines", i18n( "Toggle display of constellation lines" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowCBounds", i18n( "Toggle display of constellation boundaries" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowCNames", i18n( "Toggle display of constellation names" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowMilkyWay", i18n( "Toggle display of Milky Way" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowGrid", i18n( "Toggle display of the coordinate grid" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowEquator", i18n( "Toggle display of the celestial equator" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowEcliptic", i18n( "Toggle display of the ecliptic" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowHorizon", i18n( "Toggle display of the horizon line" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowGround", i18n( "Toggle display of the opaque ground" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowStarNames", i18n( "Toggle display of star name labels" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowStarMagnitudes", i18n( "Toggle display of star magnitude labels" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowAsteroidNames", i18n( "Toggle display of asteroid name labels" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowCometNames", i18n( "Toggle display of comet name labels" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowPlanetNames", i18n( "Toggle display of planet name labels" ), i18n( "bool" ) );
+ new TQListViewItem( opsShowOther, "ShowPlanetImages", i18n( "Toggle display of planet images" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "ShowCLines" );
argChangeViewOption->OptionName->insertItem( "ShowCBounds" );
argChangeViewOption->OptionName->insertItem( "ShowCNames" );
@@ -611,27 +611,27 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "ShowPlanetNames" );
argChangeViewOption->OptionName->insertItem( "ShowPlanetImages" );
- opsCName = new QListViewItem( otv->OptionsList, i18n( "Constellation Names" ) );
- new QListViewItem( opsCName, "UseLatinConstellNames", i18n( "Show Latin constellation names" ), i18n( "bool" ) );
- new QListViewItem( opsCName, "UseLocalConstellNames", i18n( "Show constellation names in local language" ), i18n( "bool" ) );
- new QListViewItem( opsCName, "UseAbbrevConstellNames", i18n( "Show IAU-standard constellation abbreviations" ), i18n( "bool" ) );
+ opsCName = new TQListViewItem( otv->OptionsList, i18n( "Constellation Names" ) );
+ new TQListViewItem( opsCName, "UseLatinConstellNames", i18n( "Show Latin constellation names" ), i18n( "bool" ) );
+ new TQListViewItem( opsCName, "UseLocalConstellNames", i18n( "Show constellation names in local language" ), i18n( "bool" ) );
+ new TQListViewItem( opsCName, "UseAbbrevConstellNames", i18n( "Show IAU-standard constellation abbreviations" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "UseLatinConstellNames" );
argChangeViewOption->OptionName->insertItem( "UseLocalConstellNames" );
argChangeViewOption->OptionName->insertItem( "UseAbbrevConstellNames" );
- opsHide = new QListViewItem( otv->OptionsList, i18n( "Hide Items" ) );
- new QListViewItem( opsHide, "HideOnSlew", i18n( "Toggle whether objects hidden while slewing display" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "SlewTimeScale", i18n( "Timestep threshold (in seconds) for hiding objects" ), i18n( "double" ) );
- new QListViewItem( opsHide, "HideStars", i18n( "Hide faint stars while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HidePlanets", i18n( "Hide solar system bodies while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideMessier", i18n( "Hide Messier objects while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideNGC", i18n( "Hide NGC objects while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideIC", i18n( "Hide IC objects while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideMilkyWay", i18n( "Hide Milky Way while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideCNames", i18n( "Hide constellation names while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideCLines", i18n( "Hide constellation lines while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideCBounds", i18n( "Hide constellation boundaries while slewing?" ), i18n( "bool" ) );
- new QListViewItem( opsHide, "HideGrid", i18n( "Hide coordinate grid while slewing?" ), i18n( "bool" ) );
+ opsHide = new TQListViewItem( otv->OptionsList, i18n( "Hide Items" ) );
+ new TQListViewItem( opsHide, "HideOnSlew", i18n( "Toggle whether objects hidden while slewing display" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "SlewTimeScale", i18n( "Timestep threshold (in seconds) for hiding objects" ), i18n( "double" ) );
+ new TQListViewItem( opsHide, "HideStars", i18n( "Hide faint stars while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HidePlanets", i18n( "Hide solar system bodies while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideMessier", i18n( "Hide Messier objects while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideNGC", i18n( "Hide NGC objects while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideIC", i18n( "Hide IC objects while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideMilkyWay", i18n( "Hide Milky Way while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideCNames", i18n( "Hide constellation names while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideCLines", i18n( "Hide constellation lines while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideCBounds", i18n( "Hide constellation boundaries while slewing?" ), i18n( "bool" ) );
+ new TQListViewItem( opsHide, "HideGrid", i18n( "Hide coordinate grid while slewing?" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "HideOnSlew" );
argChangeViewOption->OptionName->insertItem( "SlewTimeScale" );
argChangeViewOption->OptionName->insertItem( "HideStars" );
@@ -645,18 +645,18 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "HideCBounds" );
argChangeViewOption->OptionName->insertItem( "HideGrid" );
- opsSkymap = new QListViewItem( otv->OptionsList, i18n( "Skymap Options" ) );
- new QListViewItem( opsSkymap, "UseAltAz", i18n( "Use Horizontal coordinates? (otherwise, use Equatorial)" ), i18n( "bool" ) );
- new QListViewItem( opsSkymap, "ZoomFactor", i18n( "Set the Zoom Factor" ), i18n( "double" ) );
- new QListViewItem( opsSkymap, "FOV Size", i18n( "Select angular size for the FOV symbol (in arcmin)" ), i18n( "double" ) );
- new QListViewItem( opsSkymap, "FOV Shape", i18n( "Select shape for the FOV symbol (0=Square, 1=Circle, 2=Crosshairs, 4=Bullseye)" ), i18n( "int" ) );
- new QListViewItem( opsSkymap, "FOV Color", i18n( "Select color for the FOV symbol" ), i18n( "string" ) );
- new QListViewItem( opsSkymap, "AnimateSlewing", i18n( "Use animated slewing? (otherwise, \"snap\" to new focus)" ), i18n( "bool" ) );
- new QListViewItem( opsSkymap, "UseRefraction", i18n( "Correct for atmospheric refraction?" ), i18n( "bool" ) );
- new QListViewItem( opsSkymap, "UseAutoLabel", i18n( "Automatically attach name label to centered object?" ), i18n( "bool" ) );
- new QListViewItem( opsSkymap, "UseHoverLabel", i18n( "Attach temporary name label when hovering mouse over an object?" ), i18n( "bool" ) );
- new QListViewItem( opsSkymap, "UseAutoTrail", i18n( "Automatically add trail to centered solar system body?" ), i18n( "bool" ) );
- new QListViewItem( opsSkymap, "FadePlanetTrails", i18n( "Planet trails fade to sky color? (otherwise color is constant)" ), i18n( "bool" ) );
+ opsSkymap = new TQListViewItem( otv->OptionsList, i18n( "Skymap Options" ) );
+ new TQListViewItem( opsSkymap, "UseAltAz", i18n( "Use Horizontal coordinates? (otherwise, use Equatorial)" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "ZoomFactor", i18n( "Set the Zoom Factor" ), i18n( "double" ) );
+ new TQListViewItem( opsSkymap, "FOV Size", i18n( "Select angular size for the FOV symbol (in arcmin)" ), i18n( "double" ) );
+ new TQListViewItem( opsSkymap, "FOV Shape", i18n( "Select shape for the FOV symbol (0=Square, 1=Circle, 2=Crosshairs, 4=Bullseye)" ), i18n( "int" ) );
+ new TQListViewItem( opsSkymap, "FOV Color", i18n( "Select color for the FOV symbol" ), i18n( "string" ) );
+ new TQListViewItem( opsSkymap, "AnimateSlewing", i18n( "Use animated slewing? (otherwise, \"snap\" to new focus)" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "UseRefraction", i18n( "Correct for atmospheric refraction?" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "UseAutoLabel", i18n( "Automatically attach name label to centered object?" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "UseHoverLabel", i18n( "Attach temporary name label when hovering mouse over an object?" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "UseAutoTrail", i18n( "Automatically add trail to centered solar system body?" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "FadePlanetTrails", i18n( "Planet trails fade to sky color? (otherwise color is constant)" ), i18n( "bool" ) );
argChangeViewOption->OptionName->insertItem( "UseAltAz" );
argChangeViewOption->OptionName->insertItem( "ZoomFactor" );
argChangeViewOption->OptionName->insertItem( "FOVName" );
@@ -670,16 +670,16 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "AnimateSlewing" );
argChangeViewOption->OptionName->insertItem( "FadePlanetTrails" );
- opsLimit = new QListViewItem( otv->OptionsList, i18n( "Limits" ) );
- new QListViewItem( opsLimit, "magLimitDrawStar", i18n( "magnitude of faintest star drawn on map when zoomed in" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitDrawStarZoomOut", i18n( "magnitude of faintest star drawn on map when zoomed out" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitDrawDeepSky", i18n( "magnitude of faintest nonstellar object drawn on map when zoomed in" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitDrawDeepSkyZoomOut", i18n( "magnitude of faintest nonstellar object drawn on map when zoomed out" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitDrawStarInfo", i18n( "magnitude of faintest star labeled on map" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitHideStar", i18n( "magnitude of brightest star hidden while slewing" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitAsteroid", i18n( "magnitude of faintest asteroid drawn on map" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "magLimitAsteroidName", i18n( "magnitude of faintest asteroid labeled on map" ), i18n( "double" ) );
- new QListViewItem( opsLimit, "maxRadCometName", i18n( "comets nearer to the Sun than this (in AU) are labeled on map" ), i18n( "double" ) );
+ opsLimit = new TQListViewItem( otv->OptionsList, i18n( "Limits" ) );
+ new TQListViewItem( opsLimit, "magLimitDrawStar", i18n( "magnitude of faintest star drawn on map when zoomed in" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitDrawStarZoomOut", i18n( "magnitude of faintest star drawn on map when zoomed out" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitDrawDeepSky", i18n( "magnitude of faintest nonstellar object drawn on map when zoomed in" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitDrawDeepSkyZoomOut", i18n( "magnitude of faintest nonstellar object drawn on map when zoomed out" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitDrawStarInfo", i18n( "magnitude of faintest star labeled on map" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitHideStar", i18n( "magnitude of brightest star hidden while slewing" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitAsteroid", i18n( "magnitude of faintest asteroid drawn on map" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "magLimitAsteroidName", i18n( "magnitude of faintest asteroid labeled on map" ), i18n( "double" ) );
+ new TQListViewItem( opsLimit, "maxRadCometName", i18n( "comets nearer to the Sun than this (in AU) are labeled on map" ), i18n( "double" ) );
argChangeViewOption->OptionName->insertItem( "magLimitDrawStar" );
argChangeViewOption->OptionName->insertItem( "magLimitDrawStarZoomOut" );
argChangeViewOption->OptionName->insertItem( "magLimitDrawDeepSky" );
@@ -701,11 +701,11 @@ void ScriptBuilder::initViewOptions() {
argLoadColorScheme->SchemeList->insertItem( i18n( "use 'night vision' color scheme", "Night Vision" ) );
argLoadColorScheme->SchemeList->insertItem( i18n( "use 'moonless night' color scheme", "Moonless Night" ) );
- QFile file;
- QString line;
+ TQFile file;
+ TQString line;
file.setName( locate( "appdata", "colors.dat" ) ); //determine filename in local user KDE directory tree.
if ( file.open( IO_ReadOnly ) ) {
- QTextStream stream( &file );
+ TQTextStream stream( &file );
while ( !stream.eof() ) {
line = stream.readLine();
@@ -735,7 +735,7 @@ void ScriptBuilder::slotNew() {
void ScriptBuilder::slotOpen() {
saveWarning();
- QString fname;
+ TQString fname;
KTempFile tmpfile;
tmpfile.setAutoDelete(true);
@@ -753,24 +753,24 @@ void ScriptBuilder::slotOpen() {
fname = currentFileURL.path();
} else {
fname = tmpfile.name();
- if ( ! KIO::NetAccess::download( currentFileURL, fname, (QWidget*) 0 ) )
+ if ( ! KIO::NetAccess::download( currentFileURL, fname, (TQWidget*) 0 ) )
KMessageBox::sorry( 0, i18n( "Could not download remote file." ), i18n( "Download Error" ) );
}
- QFile f( fname );
+ TQFile f( fname );
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" ) );
currentFileURL = "";
return;
}
- QTextStream istream(&f);
+ TQTextStream istream(&f);
readScript( istream );
f.close();
} else if ( ! currentFileURL.url().isEmpty() ) {
- QString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
currentFileURL = "";
}
@@ -778,13 +778,13 @@ void ScriptBuilder::slotOpen() {
}
void ScriptBuilder::slotSave() {
- QString fname;
+ TQString fname;
KTempFile tmpfile;
tmpfile.setAutoDelete(true);
if ( currentScriptName.isEmpty() ) {
//Get Script Name and Author info
- if ( snd->exec() == QDialog::Accepted ) {
+ if ( snd->exec() == TQDialog::Accepted ) {
currentScriptName = snd->ScriptName->text();
currentAuthor = snd->AuthorName->text();
} else {
@@ -802,8 +802,8 @@ void ScriptBuilder::slotSave() {
fname = currentFileURL.path();
//Warn user if file exists
- if (QFile::exists(currentFileURL.path())) {
- int r=KMessageBox::warningContinueCancel(static_cast<QWidget *>(parent()),
+ if (TQFile::exists(currentFileURL.path())) {
+ int r=KMessageBox::warningContinueCancel(static_cast<TQWidget *>(parent()),
i18n( "A file named \"%1\" already exists. "
"Overwrite it?" ).arg(currentFileURL.fileName()),
i18n( "Overwrite File?" ),
@@ -817,15 +817,15 @@ void ScriptBuilder::slotSave() {
if ( fname.right( 7 ).lower() != ".kstars" ) fname += ".kstars";
- QFile f( fname );
+ TQFile f( fname );
if ( !f.open( IO_WriteOnly) ) {
- 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" ) );
currentFileURL = "";
return;
}
- QTextStream ostream(&f);
+ TQTextStream ostream(&f);
writeScript( ostream );
f.close();
@@ -833,8 +833,8 @@ void ScriptBuilder::slotSave() {
chmod( fname.ascii(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH );
if ( tmpfile.name() == fname ) { //need to upload to remote location
- if ( ! KIO::NetAccess::upload( tmpfile.name(), currentFileURL, (QWidget*) 0 ) ) {
- QString message = i18n( "Could not upload image to remote location: %1" ).arg( currentFileURL.prettyURL() );
+ if ( ! KIO::NetAccess::upload( tmpfile.name(), currentFileURL, (TQWidget*) 0 ) ) {
+ TQString message = i18n( "Could not upload image to remote location: %1" ).arg( currentFileURL.prettyURL() );
KMessageBox::sorry( 0, message, i18n( "Could not upload file" ) );
}
}
@@ -842,7 +842,7 @@ void ScriptBuilder::slotSave() {
setUnsavedChanges( false );
} else {
- QString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
currentFileURL = "";
}
@@ -856,8 +856,8 @@ void ScriptBuilder::slotSaveAs() {
void ScriptBuilder::saveWarning() {
if ( UnsavedChanges ) {
- QString caption = i18n( "Save Changes to Script?" );
- QString message = i18n( "The current script has unsaved changes. Would you like to save before closing it?" );
+ TQString caption = i18n( "Save Changes to Script?" );
+ TQString message = i18n( "The current script has unsaved changes. Would you like to save before closing it?" );
int ans = KMessageBox::warningYesNoCancel( 0, message, caption, KStdGuiItem::save(), KStdGuiItem::discard() );
if ( ans == KMessageBox::Yes ) {
slotSave();
@@ -879,19 +879,19 @@ void ScriptBuilder::slotRunScript() {
//For some reason, I can't use KTempFile here! If I do, then the temporary script
//is not executable. Bizarre...
//KTempFile tmpfile;
- //QString fname = tmpfile.name();
- QString fname = locateLocal( "tmp", "kstars-tempscript" );
+ //TQString fname = tmpfile.name();
+ TQString fname = locateLocal( "tmp", "kstars-tempscript" );
- QFile f( fname );
+ TQFile f( fname );
if ( f.exists() ) f.remove();
if ( !f.open( IO_WriteOnly) ) {
- 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" ) );
currentFileURL = "";
return;
}
- QTextStream ostream(&f);
+ TQTextStream ostream(&f);
writeScript( ostream );
f.close();
@@ -912,9 +912,9 @@ void ScriptBuilder::slotRunScript() {
// show();
}
-void ScriptBuilder::writeScript( QTextStream &ostream ) {
- QString mainpre = "dcop $KSTARS $MAIN ";
- QString clockpre = "dcop $KSTARS $CLOCK ";
+void ScriptBuilder::writeScript( TQTextStream &ostream ) {
+ TQString mainpre = "dcop $KSTARS $MAIN ";
+ TQString clockpre = "dcop $KSTARS $CLOCK ";
//Write script header
ostream << "#!/bin/bash" << endl;
@@ -958,8 +958,8 @@ void ScriptBuilder::writeScript( QTextStream &ostream ) {
ostream << "##" << endl;
}
-void ScriptBuilder::readScript( QTextStream &istream ) {
- QString line;
+void ScriptBuilder::readScript( TQTextStream &istream ) {
+ TQString line;
while ( ! istream.eof() ) {
line = istream.readLine();
@@ -983,7 +983,7 @@ void ScriptBuilder::readScript( QTextStream &istream ) {
line = line.mid( 20 );
//construct a stringlist that is fcn name and its arg name/value pairs
- QStringList fn = QStringList::split( " ", line );
+ TQStringList fn = TQStringList::split( " ", line );
if ( parseFunction( fn ) )
{
sb->ScriptListBox->insertItem( ScriptList.current()->name() );
@@ -1002,14 +1002,14 @@ void ScriptBuilder::readScript( QTextStream &istream ) {
}
}
-bool ScriptBuilder::parseFunction( QStringList &fn )
+bool ScriptBuilder::parseFunction( TQStringList &fn )
{
// clean up the string list first if needed
// We need to perform this in case we havea quoted string "NGC 3000" because this will counted
// as two arguments, and it should be counted as one.
bool foundQuote(false), quoteProcessed(false);
- QString cur, arg;
- QStringList::iterator it;
+ TQString cur, arg;
+ TQStringList::iterator it;
for (it = fn.begin(); it != fn.end(); ++it)
{
@@ -1041,7 +1041,7 @@ bool ScriptBuilder::parseFunction( QStringList &fn )
}
if (quoteProcessed)
- fn = QStringList::split( "'", arg );
+ fn = TQStringList::split( "'", arg );
//loop over known functions to find a name match
for ( ScriptFunction *sf = KStarsFunctionList.first(); sf; sf = KStarsFunctionList.next() )
@@ -1049,7 +1049,7 @@ bool ScriptBuilder::parseFunction( QStringList &fn )
if ( fn[0] == sf->name() ) {
if ( fn[0] == "setGeoLocation" ) {
- QString city( fn[1] ), prov( "" ), cntry( fn[2] );
+ TQString city( fn[1] ), prov( "" ), cntry( fn[2] );
if ( fn.count() == 4 ) { prov = fn[2]; cntry = fn[3]; }
if ( fn.count() == 3 || fn.count() == 4 ) {
ScriptList.append( new ScriptFunction( sf ) );
@@ -1130,7 +1130,7 @@ void ScriptBuilder::slotRemoveFunction() {
void ScriptBuilder::slotAddFunction() {
ScriptFunction *sc = NULL;
- QListViewItem *currentItem = sb->FunctionListView->currentItem();
+ TQListViewItem *currentItem = sb->FunctionListView->currentItem();
if ( currentItem == NULL || currentItem->depth() == 0)
return;
@@ -1162,7 +1162,7 @@ void ScriptBuilder::slotMoveFunctionUp() {
if ( sb->ScriptListBox->currentItem() > 0 ) {
setUnsavedChanges( true );
- QString t = sb->ScriptListBox->currentText();
+ TQString t = sb->ScriptListBox->currentText();
unsigned int n = sb->ScriptListBox->currentItem();
ScriptFunction *tmp = ScriptList.take( n );
@@ -1179,7 +1179,7 @@ void ScriptBuilder::slotMoveFunctionDown() {
sb->ScriptListBox->currentItem() < ((int) sb->ScriptListBox->count())-1 ) {
setUnsavedChanges( true );
- QString t = sb->ScriptListBox->currentText();
+ TQString t = sb->ScriptListBox->currentText();
unsigned int n = sb->ScriptListBox->currentItem();
ScriptFunction *tmp = ScriptList.take( n );
@@ -1231,13 +1231,13 @@ void ScriptBuilder::slotArgWidget() {
//Display the function's arguments widget
if ( sb->ScriptListBox->currentItem() > -1 &&
sb->ScriptListBox->currentItem() < ((int) sb->ScriptListBox->count()) ) {
- QString t = sb->ScriptListBox->currentText();
+ TQString t = sb->ScriptListBox->currentText();
unsigned int n = sb->ScriptListBox->currentItem();
ScriptFunction *sf = ScriptList.at( n );
if ( sf->name() == "lookTowards" ) {
sb->ArgStack->raiseWidget( argLookToward );
- QString s = sf->argVal(0);
+ TQString s = sf->argVal(0);
argLookToward->FocusEdit->setCurrentText( s );
} else if ( sf->name() == "setRaDec" ) {
@@ -1328,8 +1328,8 @@ void ScriptBuilder::slotArgWidget() {
if ( sf->argVal(3).isEmpty() ) ok = false;
if (ok) min = sf->argVal(4).toInt(&ok);
if (ok) sec = sf->argVal(5).toInt(&ok);
- if (ok) argSetLocalTime->TimeBox->setTime( QTime( hour, min, sec ) );
- else argSetLocalTime->TimeBox->setTime( QTime( QTime::currentTime() ) );
+ if (ok) argSetLocalTime->TimeBox->setTime( TQTime( hour, min, sec ) );
+ else argSetLocalTime->TimeBox->setTime( TQTime( TQTime::currentTime() ) );
} else if ( sf->name() == "waitFor" ) {
sb->ArgStack->raiseWidget( argWaitFor );
@@ -1365,7 +1365,7 @@ void ScriptBuilder::slotArgWidget() {
sb->ArgStack->raiseWidget( argSetColor );
if ( sf->argVal(0).isEmpty() ) sf->setArg( 0, "SkyColor" ); //initialize default value
argSetColor->ColorName->setCurrentItem( ks->data()->colorScheme()->nameFromKey( sf->argVal(0) ) );
- argSetColor->ColorValue->setColor( QColor( sf->argVal(1).remove('\\') ) );
+ argSetColor->ColorValue->setColor( TQColor( sf->argVal(1).remove('\\') ) );
} else if ( sf->name() == "loadColorScheme" ) {
sb->ArgStack->raiseWidget( argLoadColorScheme );
@@ -1774,7 +1774,7 @@ void ScriptBuilder::slotArgWidget() {
void ScriptBuilder::slotShowDoc() {
ScriptFunction *sc = NULL;
- QListViewItem *currentItem = sb->FunctionListView->currentItem();
+ TQListViewItem *currentItem = sb->FunctionListView->currentItem();
if ( currentItem == NULL || currentItem->depth() == 0)
return;
@@ -1805,7 +1805,7 @@ void ScriptBuilder::slotShowDoc() {
void ScriptBuilder::slotFindCity() {
LocationDialog ld( ks );
- if ( ld.exec() == QDialog::Accepted ) {
+ if ( ld.exec() == TQDialog::Accepted ) {
if ( ld.selectedCity() ) {
// set new location names
argSetGeoLocation->CityName->setText( ld.selectedCityName() );
@@ -1829,7 +1829,7 @@ void ScriptBuilder::slotFindCity() {
void ScriptBuilder::slotFindObject() {
FindDialog fd( ks );
- if ( fd.exec() == QDialog::Accepted && fd.currentItem() ) {
+ if ( fd.exec() == TQDialog::Accepted && fd.currentItem() ) {
setUnsavedChanges( true );
argLookToward->FocusEdit->setCurrentText( fd.currentItem()->objName()->text() );
@@ -1839,7 +1839,7 @@ void ScriptBuilder::slotFindObject() {
void ScriptBuilder::slotINDIFindObject() {
FindDialog fd( ks );
- if ( fd.exec() == QDialog::Accepted && fd.currentItem() ) {
+ if ( fd.exec() == TQDialog::Accepted && fd.currentItem() ) {
setUnsavedChanges( true );
argSetTargetNameINDI->objectName->setText( fd.currentItem()->objName()->text() );
@@ -1855,7 +1855,7 @@ void ScriptBuilder::slotINDIWaitCheck(bool /*toggleState*/)
void ScriptBuilder::slotShowOptions() {
//Show tree-view of view options
- if ( otv->exec() == QDialog::Accepted ) {
+ if ( otv->exec() == TQDialog::Accepted ) {
argChangeViewOption->OptionName->setCurrentItem( otv->OptionsList->currentItem()->text(0) );
}
}
@@ -1885,7 +1885,7 @@ void ScriptBuilder::slotRa() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 0, QString( "%1" ).arg( ra.Hours() ) );
+ sf->setArg( 0, TQString( "%1" ).arg( ra.Hours() ) );
if ( ! sf->argVal(1).isEmpty() ) sf->setValid( true );
} else {
@@ -1909,7 +1909,7 @@ void ScriptBuilder::slotDec() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 1, QString( "%1" ).arg( dec.Degrees() ) );
+ sf->setArg( 1, TQString( "%1" ).arg( dec.Degrees() ) );
if ( ! sf->argVal(0).isEmpty() ) sf->setValid( true );
} else {
@@ -1932,7 +1932,7 @@ void ScriptBuilder::slotAz() {
dms az = argSetAltAz->AzBox->createDms(true, &ok);
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 1, QString( "%1" ).arg( az.Degrees() ) );
+ sf->setArg( 1, TQString( "%1" ).arg( az.Degrees() ) );
if ( ! sf->argVal(0).isEmpty() ) sf->setValid( true );
} else {
sf->setArg( 1, "" );
@@ -1955,7 +1955,7 @@ void ScriptBuilder::slotAlt() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 0, QString( "%1" ).arg( alt.Degrees() ) );
+ sf->setArg( 0, TQString( "%1" ).arg( alt.Degrees() ) );
if ( ! sf->argVal(1).isEmpty() ) sf->setValid( true );
} else {
sf->setArg( 0, "" );
@@ -1974,9 +1974,9 @@ void ScriptBuilder::slotChangeDate() {
ExtDate date = argSetLocalTime->DateBox->date();
- sf->setArg( 0, QString( "%1" ).arg( date.year() ) );
- sf->setArg( 1, QString( "%1" ).arg( date.month() ) );
- sf->setArg( 2, QString( "%1" ).arg( date.day() ) );
+ sf->setArg( 0, TQString( "%1" ).arg( date.year() ) );
+ sf->setArg( 1, TQString( "%1" ).arg( date.month() ) );
+ sf->setArg( 2, TQString( "%1" ).arg( date.day() ) );
if ( ! sf->argVal(3).isEmpty() ) sf->setValid( true );
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setLocalTime" ) << endl;
@@ -1989,11 +1989,11 @@ void ScriptBuilder::slotChangeTime() {
if ( sf->name() == "setLocalTime" ) {
setUnsavedChanges( true );
- QTime time = argSetLocalTime->TimeBox->time();
+ TQTime time = argSetLocalTime->TimeBox->time();
- sf->setArg( 3, QString( "%1" ).arg( time.hour() ) );
- sf->setArg( 4, QString( "%1" ).arg( time.minute() ) );
- sf->setArg( 5, QString( "%1" ).arg( time.second() ) );
+ sf->setArg( 3, TQString( "%1" ).arg( time.hour() ) );
+ sf->setArg( 4, TQString( "%1" ).arg( time.minute() ) );
+ sf->setArg( 5, TQString( "%1" ).arg( time.second() ) );
if ( ! sf->argVal(0).isEmpty() ) sf->setValid( true );
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setLocalTime" ) << endl;
@@ -2010,7 +2010,7 @@ void ScriptBuilder::slotWaitFor() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 0, QString( "%1" ).arg( delay ) );
+ sf->setArg( 0, TQString( "%1" ).arg( delay ) );
sf->setValid( true );
} else {
sf->setValid( false );
@@ -2024,7 +2024,7 @@ void ScriptBuilder::slotWaitForKey() {
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "waitForKey" ) {
- QString sKey = argWaitForKey->WaitKeyEdit->text().stripWhiteSpace();
+ TQString sKey = argWaitForKey->WaitKeyEdit->text().stripWhiteSpace();
//DCOP script can only use single keystrokes; make sure entry is either one character,
//or the word 'space'
@@ -2077,7 +2077,7 @@ void ScriptBuilder::slotChangeCity() {
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setGeoLocation" ) {
- QString city = argSetGeoLocation->CityName->text();
+ TQString city = argSetGeoLocation->CityName->text();
if ( city.length() ) {
setUnsavedChanges( true );
@@ -2097,7 +2097,7 @@ void ScriptBuilder::slotChangeProvince() {
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setGeoLocation" ) {
- QString province = argSetGeoLocation->ProvinceName->text();
+ TQString province = argSetGeoLocation->ProvinceName->text();
if ( province.length() ) {
setUnsavedChanges( true );
@@ -2117,7 +2117,7 @@ void ScriptBuilder::slotChangeCountry() {
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setGeoLocation" ) {
- QString country = argSetGeoLocation->CountryName->text();
+ TQString country = argSetGeoLocation->CountryName->text();
if ( country.length() ) {
setUnsavedChanges( true );
@@ -2139,7 +2139,7 @@ void ScriptBuilder::slotTimeScale() {
if ( sf->name() == "setClockScale" ) {
setUnsavedChanges( true );
- sf->setArg( 0, QString( "%1" ).arg( argTimeScale->TimeScale->tsbox()->timeScale() ) );
+ sf->setArg( 0, TQString( "%1" ).arg( argTimeScale->TimeScale->tsbox()->timeScale() ) );
sf->setValid( true );
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setClockScale" ) << endl;
@@ -2170,8 +2170,8 @@ void ScriptBuilder::slotExportImage() {
setUnsavedChanges( true );
sf->setArg( 0, argExportImage->ExportFileName->url() );
- sf->setArg( 1, QString("%1").arg( argExportImage->ExportWidth->value() ) );
- sf->setArg( 2, QString("%1").arg( argExportImage->ExportHeight->value() ) );
+ sf->setArg( 1, TQString("%1").arg( argExportImage->ExportWidth->value() ) );
+ sf->setArg( 2, TQString("%1").arg( argExportImage->ExportHeight->value() ) );
sf->setValid( true );
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "exportImage" ) << endl;
@@ -2200,7 +2200,7 @@ void ScriptBuilder::slotChangeColorName() {
argSetColor->ColorValue->setColor( ks->data()->colorScheme()->colorAt( argSetColor->ColorName->currentItem() ) );
sf->setArg( 0, ks->data()->colorScheme()->keyAt( argSetColor->ColorName->currentItem() ) );
- QString cname( argSetColor->ColorValue->color().name() );
+ TQString cname( argSetColor->ColorValue->color().name() );
if ( cname.at(0) == '#' ) cname = "\\" + cname; //prepend a "\" so bash doesn't think we have a comment
sf->setArg( 1, cname );
sf->setValid( true );
@@ -2216,7 +2216,7 @@ void ScriptBuilder::slotChangeColor() {
setUnsavedChanges( true );
sf->setArg( 0, ks->data()->colorScheme()->keyAt( argSetColor->ColorName->currentItem() ) );
- QString cname( argSetColor->ColorValue->color().name() );
+ TQString cname( argSetColor->ColorValue->color().name() );
if ( cname.at(0) == '#' ) cname = "\\" + cname; //prepend a "\" so bash doesn't think we have a comment
sf->setArg( 1, cname );
sf->setValid( true );
@@ -2225,7 +2225,7 @@ void ScriptBuilder::slotChangeColor() {
}
}
-void ScriptBuilder::slotLoadColorScheme(QListBoxItem */*i*/) {
+void ScriptBuilder::slotLoadColorScheme(TQListBoxItem */*i*/) {
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "loadColorScheme" ) {
@@ -2459,10 +2459,10 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceRA()
dms ra = argSetTargetCoordINDI->RaBox->createDms(false, &ok);
if ( ok ) {
- if (sf->argVal(1) != QString( "%1" ).arg( ra.Hours() ))
+ if (sf->argVal(1) != TQString( "%1" ).arg( ra.Hours() ))
setUnsavedChanges( true );
- sf->setArg( 1, QString( "%1" ).arg( ra.Hours() ) );
+ sf->setArg( 1, TQString( "%1" ).arg( ra.Hours() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(2).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2492,10 +2492,10 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceDEC()
dms dec = argSetTargetCoordINDI->DecBox->createDms(true, &ok);
if ( ok ) {
- if (sf->argVal(2) != QString( "%1" ).arg( dec.Degrees() ))
+ if (sf->argVal(2) != TQString( "%1" ).arg( dec.Degrees() ))
setUnsavedChanges( true );
- sf->setArg( 2, QString( "%1" ).arg( dec.Degrees() ) );
+ sf->setArg( 2, TQString( "%1" ).arg( dec.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(1).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2685,7 +2685,7 @@ void ScriptBuilder::slotINDISetFocusSpeedDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetFocusSpeedINDI->deviceName->text());
- sf->setArg(1, QString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
+ sf->setArg(1, TQString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
sf->setValid(true);
}
else
@@ -2705,7 +2705,7 @@ void ScriptBuilder::slotINDISetFocusSpeed()
if (sf->argVal(1).toInt() != argSetFocusSpeedINDI->speedIN->value())
setUnsavedChanges( true );
- sf->setArg(1, QString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
+ sf->setArg(1, TQString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
}
@@ -2779,7 +2779,7 @@ void ScriptBuilder::slotINDISetFocusTimeoutDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetFocusTimeoutINDI->deviceName->text());
- sf->setArg(1, QString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
sf->setValid(true);
}
else
@@ -2798,7 +2798,7 @@ void ScriptBuilder::slotINDISetFocusTimeout()
if (sf->argVal(1).toInt() != argSetFocusTimeoutINDI->timeOut->value())
setUnsavedChanges( true );
- sf->setArg(1, QString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
@@ -2851,10 +2851,10 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLong()
dms longitude = argSetGeoLocationINDI->longBox->createDms(true, &ok);
if ( ok ) {
- if (sf->argVal(1) != QString( "%1" ).arg( longitude.Degrees()))
+ if (sf->argVal(1) != TQString( "%1" ).arg( longitude.Degrees()))
setUnsavedChanges( true );
- sf->setArg( 1, QString( "%1" ).arg( longitude.Degrees() ) );
+ sf->setArg( 1, TQString( "%1" ).arg( longitude.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(2).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2884,10 +2884,10 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLat()
dms latitude = argSetGeoLocationINDI->latBox->createDms(true, &ok);
if ( ok ) {
- if (sf->argVal(2) != QString( "%1" ).arg( latitude.Degrees()))
+ if (sf->argVal(2) != TQString( "%1" ).arg( latitude.Degrees()))
setUnsavedChanges( true );
- sf->setArg( 2, QString( "%1" ).arg( latitude.Degrees() ) );
+ sf->setArg( 2, TQString( "%1" ).arg( latitude.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(1).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2917,7 +2917,7 @@ void ScriptBuilder::slotINDIStartExposureDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argStartExposureINDI->deviceName->text());
- sf->setArg(1, QString("%1").arg(argStartExposureINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").arg(argStartExposureINDI->timeOut->value()));
sf->setValid(true);
}
else
@@ -2937,7 +2937,7 @@ void ScriptBuilder::slotINDIStartExposureTimeout()
if (sf->argVal(1).toInt() != argStartExposureINDI->timeOut->value())
setUnsavedChanges( true );
- sf->setArg(1, QString("%1").arg(argStartExposureINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").arg(argStartExposureINDI->timeOut->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
@@ -3117,7 +3117,7 @@ void ScriptBuilder::slotINDISetCCDTempDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetCCDTempINDI->deviceName->text());
- sf->setArg(1, QString("%1").arg(argSetCCDTempINDI->temp->value()));
+ sf->setArg(1, TQString("%1").arg(argSetCCDTempINDI->temp->value()));
sf->setValid(true);
}
else
@@ -3137,7 +3137,7 @@ void ScriptBuilder::slotINDISetCCDTemp()
if (sf->argVal(1).toInt() != argSetCCDTempINDI->temp->value())
setUnsavedChanges( true );
- sf->setArg(1, QString("%1").arg(argSetCCDTempINDI->temp->value()));
+ sf->setArg(1, TQString("%1").arg(argSetCCDTempINDI->temp->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
@@ -3165,7 +3165,7 @@ void ScriptBuilder::slotINDISetFilterNumDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetFilterNumINDI->deviceName->text());
- sf->setArg(1, QString("%1").arg(argSetFilterNumINDI->filter_num->value()));
+ sf->setArg(1, TQString("%1").arg(argSetFilterNumINDI->filter_num->value()));
sf->setValid(true);
}
else
@@ -3185,7 +3185,7 @@ void ScriptBuilder::slotINDISetFilterNum()
if (sf->argVal(1).toInt() != argSetFilterNumINDI->filter_num->value())
setUnsavedChanges( true );
- sf->setArg(1, QString("%1").arg(argSetFilterNumINDI->filter_num->value()));
+ sf->setArg(1, TQString("%1").arg(argSetFilterNumINDI->filter_num->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
diff --git a/kstars/kstars/tools/scriptbuilder.h b/kstars/kstars/tools/scriptbuilder.h
index 7b78bc1c..521bdbdb 100644
--- a/kstars/kstars/tools/scriptbuilder.h
+++ b/kstars/kstars/tools/scriptbuilder.h
@@ -69,15 +69,15 @@ class ScriptBuilder : public KDialogBase
{
Q_OBJECT
public:
- ScriptBuilder( QWidget *parent, const char *name=0 );
+ ScriptBuilder( TQWidget *parent, const char *name=0 );
~ScriptBuilder();
bool unsavedChanges() const { return UnsavedChanges; }
void setUnsavedChanges( bool b=true );
void saveWarning();
- void readScript( QTextStream &istream );
- void writeScript( QTextStream &ostream );
- bool parseFunction( QStringList &fn );
+ void readScript( TQTextStream &istream );
+ void writeScript( TQTextStream &ostream );
+ bool parseFunction( TQStringList &fn );
public slots:
void slotAddFunction();
@@ -119,7 +119,7 @@ public slots:
void slotPrintImage();
void slotChangeColor();
void slotChangeColorName();
- void slotLoadColorScheme(QListBoxItem*);
+ void slotLoadColorScheme(TQListBoxItem*);
void slotEnableScriptNameOK();
@@ -169,12 +169,12 @@ private:
ScriptBuilderUI *sb;
KStars *ks; //parent needed for sub-dialogs
- QPtrList<ScriptFunction> KStarsFunctionList;
- QPtrList<ScriptFunction> INDIFunctionList;
- QPtrList<ScriptFunction> ScriptList;
- QVBoxLayout *vlay;
+ TQPtrList<ScriptFunction> KStarsFunctionList;
+ TQPtrList<ScriptFunction> INDIFunctionList;
+ TQPtrList<ScriptFunction> ScriptList;
+ TQVBoxLayout *vlay;
- QWidget *argBlank;
+ TQWidget *argBlank;
ArgLookToward *argLookToward;
ArgSetRaDec *argSetRaDec;
ArgSetAltAz *argSetAltAz;
@@ -212,13 +212,13 @@ private:
ScriptNameDialog *snd;
OptionsTreeView *otv;
- QListViewItem *opsGUI, *opsToolbar, *opsShowObj, *opsShowOther, *opsCName, *opsHide, *opsSkymap, *opsLimit;
+ TQListViewItem *opsGUI, *opsToolbar, *opsShowObj, *opsShowOther, *opsCName, *opsHide, *opsSkymap, *opsLimit;
bool UnsavedChanges;
KURL currentFileURL;
- QString currentDir;
- QString currentScriptName, currentAuthor;
- QString lastINDIDeviceName;
+ TQString currentDir;
+ TQString currentScriptName, currentAuthor;
+ TQString lastINDIDeviceName;
};
#endif
diff --git a/kstars/kstars/tools/scriptfunction.cpp b/kstars/kstars/tools/scriptfunction.cpp
index d87942ee..c95594f5 100644
--- a/kstars/kstars/tools/scriptfunction.cpp
+++ b/kstars/kstars/tools/scriptfunction.cpp
@@ -20,9 +20,9 @@
#include "scriptfunction.h"
-ScriptFunction::ScriptFunction( QString name, QString desc, bool clockfcn,
- QString at1, QString an1, QString at2, QString an2, QString at3, QString an3,
- QString at4, QString an4, QString at5, QString an5, QString at6, QString an6 ) : INDIProp("") {
+ScriptFunction::ScriptFunction( TQString name, TQString desc, bool clockfcn,
+ TQString at1, TQString an1, TQString at2, TQString an2, TQString at3, TQString an3,
+ TQString at4, TQString an4, TQString at5, TQString an5, TQString at6, TQString an6 ) : INDIProp("") {
Name = name;
ClockFunction = clockfcn;
@@ -34,9 +34,9 @@ ScriptFunction::ScriptFunction( QString name, QString desc, bool clockfcn,
ArgType[5] = at6; ArgName[5] = an6;
//Construct a richtext description of the function
- QString nameStyle = "<span style=\"font-family:monospace;font-weight:600\">%1</span>"; //bold
- QString typeStyle = "<span style=\"font-family:monospace;color:#009d00\">%1</span>"; //green
- QString paramStyle = "<span style=\"font-family:monospace;color:#00007f\">%1</span>"; //blue
+ TQString nameStyle = "<span style=\"font-family:monospace;font-weight:600\">%1</span>"; //bold
+ TQString typeStyle = "<span style=\"font-family:monospace;color:#009d00\">%1</span>"; //green
+ TQString paramStyle = "<span style=\"font-family:monospace;color:#00007f\">%1</span>"; //blue
Description = "<html><head><meta name=\"qrichtext\" content=\"1\" /></head>";
Description += "<body style=\"font-size:11pt;font-family:sans\">";
@@ -160,8 +160,8 @@ ScriptFunction::~ScriptFunction()
{
}
-QString ScriptFunction::prototype() const {
- QString p = Name + "(";
+TQString ScriptFunction::prototype() const {
+ TQString p = Name + "(";
bool args( false );
if ( ! ArgType[0].isEmpty() && ! ArgName[0].isEmpty() ) {
@@ -201,8 +201,8 @@ QString ScriptFunction::prototype() const {
return p;
}
-QString ScriptFunction::scriptLine() const {
- QString out( Name );
+TQString ScriptFunction::scriptLine() const {
+ TQString out( Name );
unsigned int i=0;
while ( ! ArgName[i].isEmpty() && i < 6 ) {
// Wrap arg in quotes if it contains a space
diff --git a/kstars/kstars/tools/scriptfunction.h b/kstars/kstars/tools/scriptfunction.h
index abb63707..b25612c8 100644
--- a/kstars/kstars/tools/scriptfunction.h
+++ b/kstars/kstars/tools/scriptfunction.h
@@ -18,7 +18,7 @@
#ifndef SCRIPTFUNCTION_H
#define SCRIPTFUNCTION_H
-#include <qstring.h>
+#include <tqstring.h>
/**
*
@@ -27,23 +27,23 @@
class ScriptFunction
{
public:
- ScriptFunction( QString name, QString desc, bool clockfcn=false,
- QString at1="", QString an1="",
- QString at2="", QString an2="",
- QString at3="", QString an3="",
- QString at4="", QString an4="",
- QString at5="", QString an5="",
- QString at6="", QString an6=""
+ ScriptFunction( TQString name, TQString desc, bool clockfcn=false,
+ TQString at1="", TQString an1="",
+ TQString at2="", TQString an2="",
+ TQString at3="", TQString an3="",
+ TQString at4="", TQString an4="",
+ TQString at5="", TQString an5="",
+ TQString at6="", TQString an6=""
);
ScriptFunction( ScriptFunction *sf );
~ScriptFunction();
- QString name() const { return Name; }
- QString prototype() const;
- QString description() const { return Description; }
- QString argType( unsigned int n ) const { return ArgType[n]; }
- QString argName( unsigned int n ) const { return ArgName[n]; }
- QString argVal( unsigned int n ) const { return ArgVal[n]; }
+ TQString name() const { return Name; }
+ TQString prototype() const;
+ TQString description() const { return Description; }
+ TQString argType( unsigned int n ) const { return ArgType[n]; }
+ TQString argName( unsigned int n ) const { return ArgName[n]; }
+ TQString argVal( unsigned int n ) const { return ArgVal[n]; }
void setValid( bool b ) { Valid = b; }
bool valid() const { return Valid; }
@@ -51,21 +51,21 @@ public:
void setClockFunction( bool b=true ) { ClockFunction = b; }
bool isClockFunction() const { return ClockFunction; }
- void setArg( unsigned int n, QString newVal ) { ArgVal[n] = newVal; }
+ void setArg( unsigned int n, TQString newVal ) { ArgVal[n] = newVal; }
bool checkArgs();
unsigned int numArgs() const { return NumArgs; }
- QString scriptLine() const;
+ TQString scriptLine() const;
- void setINDIProperty(QString prop) { INDIProp = prop; }
- QString INDIProperty() const { return INDIProp; }
+ void setINDIProperty(TQString prop) { INDIProp = prop; }
+ TQString INDIProperty() const { return INDIProp; }
private:
- QString Name, Description;
- QString ArgType[6];
- QString ArgName[6];
- QString ArgVal[6];
- QString INDIProp;
+ TQString Name, Description;
+ TQString ArgType[6];
+ TQString ArgName[6];
+ TQString ArgVal[6];
+ TQString INDIProp;
bool Valid, ClockFunction;
unsigned int NumArgs;
};
diff --git a/kstars/kstars/tools/wutdialog.cpp b/kstars/kstars/tools/wutdialog.cpp
index b046a550..584c7dfc 100644
--- a/kstars/kstars/tools/wutdialog.cpp
+++ b/kstars/kstars/tools/wutdialog.cpp
@@ -36,21 +36,21 @@
#include <klistbox.h>
#include <kpushbutton.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qframe.h>
-#include <qtabbar.h>
-#include <qtimer.h>
-#include <qcursor.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqframe.h>
+#include <tqtabbar.h>
+#include <tqtimer.h>
+#include <tqcursor.h>
WUTDialog::WUTDialog(KStars *ks) :
- KDialogBase (KDialogBase::Plain, i18n("What's up Tonight"), Close, Close, (QWidget*)ks),
+ KDialogBase (KDialogBase::Plain, i18n("What's up Tonight"), Close, Close, (TQWidget*)ks),
kstars(ks), EveningFlag(0) {
- QFrame *page = plainPage();
+ TQFrame *page = plainPage();
setMainWidget(page);
- QVBoxLayout *vlay = new QVBoxLayout( page, 0, spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, spacingHint() );
WUT = new WUTDialogUI( page );
vlay->addWidget( WUT );
@@ -66,7 +66,7 @@ WUTDialog::WUTDialog(KStars *ks) :
T0 = T0.addDays( -1 );
//Now, set time T0 to midnight (of the following day)
- T0.setTime( QTime( 0, 0, 0 ) );
+ T0.setTime( TQTime( 0, 0, 0 ) );
T0 = T0.addDays( 1 );
UT0 = geo->LTtoUT( T0 );
@@ -78,7 +78,7 @@ WUTDialog::WUTDialog(KStars *ks) :
Evening = T0.addSecs( -6*3600 );
EveningUT = geo->LTtoUT( Evening );
- QString sGeo = geo->translatedName();
+ TQString sGeo = geo->translatedName();
if ( ! geo->translatedProvince().isEmpty() ) sGeo += ", " + geo->translatedProvince();
sGeo += ", " + geo->translatedCountry();
WUT->LocationLabel->setText( i18n( "at %1" ).arg( sGeo ) );
@@ -88,21 +88,21 @@ WUTDialog::WUTDialog(KStars *ks) :
makeConnections();
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
}
WUTDialog::~WUTDialog(){
}
void WUTDialog::makeConnections() {
- connect( WUT->DateButton, SIGNAL( clicked() ), SLOT( slotChangeDate() ) );
- connect( WUT->LocationButton, SIGNAL( clicked() ), SLOT( slotChangeLocation() ) );
- connect( WUT->CenterButton, SIGNAL( clicked() ), SLOT( slotCenter() ) );
- connect( WUT->DetailButton, SIGNAL( clicked() ), SLOT( slotDetails() ) );
- connect( WUT->CategoryListBox, SIGNAL( highlighted(int) ), SLOT( slotLoadList(int) ) );
- connect( WUT->ObjectListBox, SIGNAL( selectionChanged(QListBoxItem*) ),
- SLOT( slotDisplayObject(QListBoxItem*) ) );
- connect( WUT->EveningMorningBox, SIGNAL( activated(int) ), SLOT( slotEveningMorning(int) ) );
+ connect( WUT->DateButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotChangeDate() ) );
+ connect( WUT->LocationButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotChangeLocation() ) );
+ connect( WUT->CenterButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotCenter() ) );
+ connect( WUT->DetailButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotDetails() ) );
+ connect( WUT->CategoryListBox, TQT_SIGNAL( highlighted(int) ), TQT_SLOT( slotLoadList(int) ) );
+ connect( WUT->ObjectListBox, TQT_SIGNAL( selectionChanged(TQListBoxItem*) ),
+ TQT_SLOT( slotDisplayObject(TQListBoxItem*) ) );
+ connect( WUT->EveningMorningBox, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotEveningMorning(int) ) );
}
void WUTDialog::initCategories() {
@@ -118,7 +118,7 @@ void WUTDialog::initCategories() {
}
void WUTDialog::init() {
- QString sRise, sSet, sDuration;
+ TQString sRise, sSet, sDuration;
// reset all lists
for (int i=0; i<NCATEGORY; i++) {
@@ -161,7 +161,7 @@ void WUTDialog::init() {
- (float)sunSetToday.second()/3600.0;
int hDur = int(Dur);
int mDur = int(60.0*(Dur - (float)hDur));
- sDuration = QString().sprintf( "%02d:%02d", hDur, mDur );
+ sDuration = TQString().sprintf( "%02d:%02d", hDur, mDur );
}
WUT->SunSetLabel->setText( i18n( "Sunset: %1" ).arg(sSet) );
@@ -192,7 +192,7 @@ void WUTDialog::init() {
WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1" ).arg( sRise ) );
WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1" ).arg( sSet ) );
oMoon->findPhase( oSun );
- WUT->MoonIllumLabel->setText( oMoon->phaseName() + QString( " (%1%)" ).arg(
+ WUT->MoonIllumLabel->setText( oMoon->phaseName() + TQString( " (%1%)" ).arg(
int(100.0*oMoon->illum() ) ) );
//Restore Sun's and Moon's coordinates, and recompute Moon's original Phase
@@ -242,8 +242,8 @@ void WUTDialog::appendToList(SkyObjectName *o) {
void WUTDialog::slotLoadList(int i) {
WUT->ObjectListBox->clear();
- setCursor(QCursor(Qt::WaitCursor));
- QPtrList <SkyObjectName> invisibleList;
+ setCursor(TQCursor(Qt::WaitCursor));
+ TQPtrList <SkyObjectName> invisibleList;
for (SkyObjectName *oname=lists.visibleList[i].first(); oname; oname=lists.visibleList[i].next()) {
bool visible = true;
if (lists.initialized[i] == false) {
@@ -265,7 +265,7 @@ void WUTDialog::slotLoadList(int i) {
lists.visibleList[i].removeRef(o);
}
}
- setCursor(QCursor(Qt::ArrowCursor));
+ setCursor(TQCursor(Qt::ArrowCursor));
lists.initialized[i] = true;
// highlight first item
@@ -310,9 +310,9 @@ bool WUTDialog::checkVisibility(SkyObjectName *oname) {
return visible;
}
-void WUTDialog::slotDisplayObject(QListBoxItem *item) {
- QTime tRise, tSet, tTransit;
- QString sRise, sTransit, sSet;
+void WUTDialog::slotDisplayObject(TQListBoxItem *item) {
+ TQTime tRise, tSet, tTransit;
+ TQString sRise, sTransit, sSet;
if ( item==0 ) { //no object selected
WUT->ObjectBox->setTitle( i18n( "No Object Selected" ) );
@@ -339,15 +339,15 @@ void WUTDialog::slotDisplayObject(QListBoxItem *item) {
// if ( tSet < tRise )
// tSet = o->riseSetTime( JDTomorrow, geo, false );
- sRise = QString().sprintf( "%02d:%02d", tRise.hour(), tRise.minute() );
- sSet = QString().sprintf( "%02d:%02d", tSet.hour(), tSet.minute() );
+ sRise = TQString().sprintf( "%02d:%02d", tRise.hour(), tRise.minute() );
+ sSet = TQString().sprintf( "%02d:%02d", tSet.hour(), tSet.minute() );
}
tTransit = o->transitTime( T0, geo );
// if ( tTransit < tRise )
// tTransit = o->transitTime( JDTomorrow, geo );
- sTransit = QString().sprintf( "%02d:%02d", tTransit.hour(), tTransit.minute() );
+ sTransit = TQString().sprintf( "%02d:%02d", tTransit.hour(), tTransit.minute() );
WUT->DetailButton->setEnabled( true );
}
@@ -384,14 +384,14 @@ void WUTDialog::slotDetails() {
void WUTDialog::slotChangeDate() {
TimeDialog td( T0, this );
- if ( td.exec() == QDialog::Accepted ) {
+ if ( td.exec() == TQDialog::Accepted ) {
T0 = td.selectedDateTime();
//If the Time is earlier than 6:00 am, assume the user wants the night of the previous date
if ( T0.time().hour() < 6 )
T0 = T0.addDays( -1 );
//Now, set time T0 to midnight (of the following day)
- T0.setTime( QTime( 0, 0, 0 ) );
+ T0.setTime( TQTime( 0, 0, 0 ) );
T0 = T0.addDays( 1 );
UT0 = geo->LTtoUT( T0 );
@@ -413,7 +413,7 @@ void WUTDialog::slotChangeDate() {
void WUTDialog::slotChangeLocation() {
LocationDialog ld( kstars );
- if ( ld.exec() == QDialog::Accepted ) {
+ if ( ld.exec() == TQDialog::Accepted ) {
GeoLocation *newGeo = ld.selectedCity();
if ( newGeo ) {
geo = newGeo;
diff --git a/kstars/kstars/tools/wutdialog.h b/kstars/kstars/tools/wutdialog.h
index 3423ace0..452c4e9a 100644
--- a/kstars/kstars/tools/wutdialog.h
+++ b/kstars/kstars/tools/wutdialog.h
@@ -18,7 +18,7 @@
#ifndef WUTDIALOG_H
#define WUTDIALOG_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdialogbase.h>
#include "kstarsdatetime.h"
@@ -64,7 +64,7 @@ class WUTDialog : public KDialogBase {
/**@short display the rise/transit/set times for selected object
*/
- void slotDisplayObject(QListBoxItem *item);
+ void slotDisplayObject(TQListBoxItem *item);
/**@short Apply user's choice of what part of the night should
*be examined:
@@ -96,7 +96,7 @@ class WUTDialog : public KDialogBase {
KStars *kstars;
WUTDialogUI *WUT;
- /**@short Initialize all SIGNAL/SLOT connections, used in constructor */
+ /**@short Initialize all SIGNAL/TQT_SLOT connections, used in constructor */
void makeConnections();
/**@short Initialize catgory list, used in constructor */
@@ -116,14 +116,14 @@ class WUTDialog : public KDialogBase {
ObjectNameList *objectList;
- QTime sunRiseTomorrow, sunSetToday, sunRiseToday, moonRise, moonSet;
+ TQTime sunRiseTomorrow, sunSetToday, sunRiseToday, moonRise, moonSet;
KStarsDateTime T0, UT0, Tomorrow, TomorrowUT, Evening, EveningUT;
GeoLocation *geo;
int EveningFlag;
struct List {
- QPtrList <SkyObjectName> visibleList[NCATEGORY];
+ TQPtrList <SkyObjectName> visibleList[NCATEGORY];
bool initialized[NCATEGORY];
} lists;