summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/scriptbuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/scriptbuilder.cpp')
-rw-r--r--kstars/kstars/tools/scriptbuilder.cpp646
1 files changed, 323 insertions, 323 deletions
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);
}