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.cpp286
1 files changed, 143 insertions, 143 deletions
diff --git a/kstars/kstars/tools/scriptbuilder.cpp b/kstars/kstars/tools/scriptbuilder.cpp
index b7538432..31667d00 100644
--- a/kstars/kstars/tools/scriptbuilder.cpp
+++ b/kstars/kstars/tools/scriptbuilder.cpp
@@ -100,14 +100,14 @@
#include "timestepbox.h"
#include "libkdeedu/extdate/extdatewidget.h"
-ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
- : KDialogBase( KDialogBase::Plain, i18n( "Script Builder" ), Close, Close, parent, name ),
+ScriptBuilder::ScriptBuilder( TQWidget *tqparent, const char *name )
+ : KDialogBase( KDialogBase::Plain, i18n( "Script Builder" ), Close, Close, tqparent, name ),
UnsavedChanges(false), currentFileURL(), currentDir( TQDir::homeDirPath() ),
currentScriptName(), currentAuthor() {
TQFrame *page = plainPage();
- ks = (KStars*)parent;
+ ks = (KStars*)tqparent;
TQVBoxLayout *vlay = new TQVBoxLayout( page, 0, 0 );
sb = new ScriptBuilderUI( page );
vlay->addWidget( sb );
@@ -118,7 +118,7 @@ ScriptBuilder::ScriptBuilder( TQWidget *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, "TQString", "dir" ) );
+ false, TQSTRING_OBJECT_NAME_STRING, "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( TQWidget *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, "TQString", "key" ) );
+ false, TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "opName", "TQString", "opValue" ) );
+ KStarsFunctionList.append( new ScriptFunction( "changeViewOption", i18n( "Change view option named %1 to value %2." ), false, TQSTRING_OBJECT_NAME_STRING, "opName", TQSTRING_OBJECT_NAME_STRING, "opValue" ) );
KStarsFunctionList.append( new ScriptFunction( "setGeoLocation", i18n( "Set the geographic location to the city specified by %1, %2 and %3." ),
- 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" ) );
+ false, TQSTRING_OBJECT_NAME_STRING, "cityName", TQSTRING_OBJECT_NAME_STRING, "provinceName", TQSTRING_OBJECT_NAME_STRING, "countryName" ) );
+ KStarsFunctionList.append( new ScriptFunction( "setColor", i18n( "Set the color named %1 to the value %2." ), false, TQSTRING_OBJECT_NAME_STRING, "colorName", TQSTRING_OBJECT_NAME_STRING, "value" ) );
+ KStarsFunctionList.append( new ScriptFunction( "loadColorScheme", i18n( "Load the color scheme named %1." ), false, TQSTRING_OBJECT_NAME_STRING, "name" ) );
+ KStarsFunctionList.append( new ScriptFunction( "exportImage", i18n( "Export the sky image to the file %1, with width %2 and height %3." ), false, TQSTRING_OBJECT_NAME_STRING, "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( TQWidget *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, "TQString", "deviceName", "bool", "useLocal");
+ startINDIFunc = new ScriptFunction( "startINDI", i18n("Establish an INDI device either in local mode or server mode."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", "bool", "useLocal");
INDIFunctionList.append ( startINDIFunc );
- shutdownINDIFunc = new ScriptFunction( "shutdownINDI", i18n("Shutdown an INDI device."), false, "TQString", "deviceName");
+ shutdownINDIFunc = new ScriptFunction( "shutdownINDI", i18n("Shutdown an INDI device."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName");
INDIFunctionList.append ( shutdownINDIFunc);
- switchINDIFunc = new ScriptFunction( "switchINDI", i18n("Connect or Disconnect an INDI device."), false, "TQString", "deviceName", "bool", "turnOn");
+ switchINDIFunc = new ScriptFunction( "switchINDI", i18n("Connect or Disconnect an INDI device."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", "bool", "turnOn");
switchINDIFunc->setINDIProperty("CONNECTION");
INDIFunctionList.append ( switchINDIFunc);
- setINDIPortFunc = new ScriptFunction( "setINDIPort", i18n("Set INDI's device connection port."), false, "TQString", "deviceName", "TQString", "port");
+ setINDIPortFunc = new ScriptFunction( "setINDIPort", i18n("Set INDI's device connection port."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "TQString", "action");
+ setINDIScopeActionFunc = new ScriptFunction( "setINDIScopeAction", i18n("Set the telescope action. Available actions are SLEW, TRACK, SYNC, PARK, and ABORT."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "double", "RA", "double", "DEC" );
- setINDITargetCoordFunc->setINDIProperty("EQUATORIAL_EOD_COORD");
+ 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_OBJECT_NAME_STRING, "deviceName", "double", "RA", "double", "DEC" );
+ setINDITargetCoordFunc->setINDIProperty("ETQUATORIAL_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, "TQString", "deviceName", "TQString", "objectName");
- setINDITargetNameFunc->setINDIProperty("EQUATORIAL_EOD_COORD");
+ setINDITargetNameFunc = new ScriptFunction( "setINDITargetName", i18n("Set the telescope target coorinates to the RA/Dec coordinates of the selected object."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "objectName");
+ setINDITargetNameFunc->setINDIProperty("ETQUATORIAL_EOD_COORD");
INDIFunctionList.append( setINDITargetNameFunc);
- 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 = new ScriptFunction ( "setINDIGeoLocation", i18n("Set the telescope longitude and latitude. The longitude is E of N."), false, TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "TQString", "UTCDateTime");
+ setINDIUTCFunc = new ScriptFunction ( "setINDIUTC", i18n("Set the device UTC time in ISO 8601 format YYYY/MM/DDTHH:MM:SS."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "TQString", "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_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "TQString", "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_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "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_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "TQString", "Dir");
+ startINDIFocusFunc = new ScriptFunction ("startINDIFocus", i18n("Start moving the focuser in the direction Dir, and for the duration specified by setINDIFocusTimeout."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "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_OBJECT_NAME_STRING, "deviceName", "int", "timeout");
setINDIFocusTimeoutFunc->setINDIProperty("FOCUS_TIMER");
INDIFunctionList.append( setINDIFocusTimeoutFunc);
- setINDICCDTempFunc = new ScriptFunction( "setINDICCDTemp", i18n("Set the target CCD chip temperature."), false, "TQString", "deviceName", "int", "temp");
+ setINDICCDTempFunc = new ScriptFunction( "setINDICCDTemp", i18n("Set the target CCD chip temperature."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", "int", "temp");
setINDICCDTempFunc->setINDIProperty("CCD_TEMPERATURE");
INDIFunctionList.append( setINDICCDTempFunc);
- setINDIFilterNumFunc = new ScriptFunction( "setINDIFilterNum", i18n("Set the target filter position."), false, "TQString", "deviceName", "int", "filter_num");
+ setINDIFilterNumFunc = new ScriptFunction( "setINDIFilterNum", i18n("Set the target filter position."), false, TQSTRING_OBJECT_NAME_STRING, "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, "TQString", "deviceName", "TQString", "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_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "type");
setINDIFrameTypeFunc->setINDIProperty("FRAME_TYPE");
INDIFunctionList.append( setINDIFrameTypeFunc);
- startINDIExposureFunc = new ScriptFunction ( "startINDIExposure", i18n("Start Camera/CCD exposure. The duration is in seconds."), false, "TQString", "deviceName", "int", "timeout");
+ startINDIExposureFunc = new ScriptFunction ( "startINDIExposure", i18n("Start Camera/CCD exposure. The duration is in seconds."), false, TQSTRING_OBJECT_NAME_STRING, "deviceName", "int", "timeout");
startINDIExposureFunc->setINDIProperty("CCD_EXPOSE_DURATION");
INDIFunctionList.append( startINDIExposureFunc);
@@ -646,10 +646,10 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "HideGrid" );
opsSkymap = new TQListViewItem( otv->OptionsList, i18n( "Skymap Options" ) );
- new TQListViewItem( opsSkymap, "UseAltAz", i18n( "Use Horizontal coordinates? (otherwise, use Equatorial)" ), i18n( "bool" ) );
+ new TQListViewItem( opsSkymap, "UseAltAz", i18n( "UseQt::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 Shape", i18n( "Select tqshape 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" ) );
@@ -709,7 +709,7 @@ void ScriptBuilder::initViewOptions() {
while ( !stream.eof() ) {
line = stream.readLine();
- argLoadColorScheme->SchemeList->insertItem( line.left( line.find( ':' ) ) );
+ argLoadColorScheme->SchemeList->insertItem( line.left( line.tqfind( ':' ) ) );
}
file.close();
}
@@ -759,7 +759,7 @@ void ScriptBuilder::slotOpen() {
TQFile f( fname );
if ( !f.open( IO_ReadOnly) ) {
- TQString message = i18n( "Could not open file %1." ).arg( f.name() );
+ TQString message = i18n( "Could not open file %1." ).tqarg( f.name() );
KMessageBox::sorry( 0, message, i18n( "Could Not Open File" ) );
currentFileURL = "";
return;
@@ -770,7 +770,7 @@ void ScriptBuilder::slotOpen() {
f.close();
} else if ( ! currentFileURL.url().isEmpty() ) {
- TQString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).tqarg( currentFileURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
currentFileURL = "";
}
@@ -803,9 +803,9 @@ void ScriptBuilder::slotSave() {
//Warn user if file exists
if (TQFile::exists(currentFileURL.path())) {
- int r=KMessageBox::warningContinueCancel(static_cast<TQWidget *>(parent()),
+ int r=KMessageBox::warningContinueCancel(TQT_TQWIDGET(tqparent()),
i18n( "A file named \"%1\" already exists. "
- "Overwrite it?" ).arg(currentFileURL.fileName()),
+ "Overwrite it?" ).tqarg(currentFileURL.fileName()),
i18n( "Overwrite File?" ),
i18n( "&Overwrite" ) );
@@ -819,7 +819,7 @@ void ScriptBuilder::slotSave() {
TQFile f( fname );
if ( !f.open( IO_WriteOnly) ) {
- TQString message = i18n( "Could not open file %1." ).arg( f.name() );
+ TQString message = i18n( "Could not open file %1." ).tqarg( f.name() );
KMessageBox::sorry( 0, message, i18n( "Could Not Open File" ) );
currentFileURL = "";
return;
@@ -834,7 +834,7 @@ void ScriptBuilder::slotSave() {
if ( tmpfile.name() == fname ) { //need to upload to remote location
if ( ! KIO::NetAccess::upload( tmpfile.name(), currentFileURL, (TQWidget*) 0 ) ) {
- TQString message = i18n( "Could not upload image to remote location: %1" ).arg( currentFileURL.prettyURL() );
+ TQString message = i18n( "Could not upload image to remote location: %1" ).tqarg( currentFileURL.prettyURL() );
KMessageBox::sorry( 0, message, i18n( "Could not upload file" ) );
}
}
@@ -842,7 +842,7 @@ void ScriptBuilder::slotSave() {
setUnsavedChanges( false );
} else {
- TQString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).tqarg( currentFileURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
currentFileURL = "";
}
@@ -885,7 +885,7 @@ void ScriptBuilder::slotRunScript() {
TQFile f( fname );
if ( f.exists() ) f.remove();
if ( !f.open( IO_WriteOnly) ) {
- TQString message = i18n( "Could not open file %1." ).arg( f.name() );
+ TQString message = i18n( "Could not open file %1." ).tqarg( f.name() );
KMessageBox::sorry( 0, message, i18n( "Could Not Open File" ) );
currentFileURL = "";
return;
@@ -903,7 +903,7 @@ void ScriptBuilder::slotRunScript() {
if ( ! p.start( KProcess::DontCare ) )
kdDebug() << "Process did not start." << endl;
- while ( p.isRunning() ) kapp->processEvents( 50 ); //otherwise tempfile may get deleted before script completes.
+ while ( p.isRunning() ) kapp->tqprocessEvents( 50 ); //otherwise tempfile may get deleted before script completes.
//delete temp file
if ( f.exists() ) f.remove();
@@ -920,9 +920,9 @@ void ScriptBuilder::writeScript( TQTextStream &ostream ) {
ostream << "#!/bin/bash" << endl;
ostream << "#KStars DCOP script: " << currentScriptName << endl;
ostream << "#by " << currentAuthor << endl;
- ostream << "#last modified: " << KStarsDateTime::currentDateTime().toString() << endl;
+ ostream << "#last modified: " << KStarsDateTime::tqcurrentDateTime().toString() << endl;
ostream << "#" << endl;
- ostream << "KSTARS=`dcopfind -a 'kstars*'`" << endl;
+ ostream << "KSTARS=`dcoptqfind -a 'kstars*'`" << endl;
ostream << "MAIN=KStarsInterface" << endl;
ostream << "CLOCK=clock#1" << endl;
@@ -935,7 +935,7 @@ void ScriptBuilder::writeScript( TQTextStream &ostream ) {
ostream << mainpre << sf->scriptLine() << endl;
if (sb->AppendINDIWait->isChecked() && !sf->INDIProperty().isEmpty())
{
- // Special case for telescope action, we need to know the parent property
+ // Special case for telescope action, we need to know the tqparent property
if (sf->INDIProperty() == "CHECK")
{
if (sf->argVal(1) == "SLEW" || sf->argVal(1) == "TRACK" || sf->argVal(1) == "SYNC")
@@ -946,7 +946,7 @@ void ScriptBuilder::writeScript( TQTextStream &ostream ) {
sf->setINDIProperty("PARK");
}
- if ( sf->argVal(0).contains(" "))
+ if ( sf->argVal(0).tqcontains(" "))
ostream << mainpre << "waitForINDIAction " << "\"" << sf->argVal(0) << "\" " << sf->INDIProperty() << endl;
else
ostream << mainpre << "waitForINDIAction " << sf->argVal(0) << " " << sf->INDIProperty() << endl;
@@ -965,11 +965,11 @@ void ScriptBuilder::readScript( TQTextStream &istream ) {
line = istream.readLine();
//look for name of script
- if ( line.contains( "#KStars DCOP script: " ) )
+ if ( line.tqcontains( "#KStars DCOP script: " ) )
currentScriptName = line.mid( 21 ).stripWhiteSpace();
//look for author of scriptbuilder
- if ( line.contains( "#by " ) )
+ if ( line.tqcontains( "#by " ) )
currentAuthor = line.mid( 4 ).stripWhiteSpace();
//Actual script functions
@@ -977,7 +977,7 @@ void ScriptBuilder::readScript( TQTextStream &istream ) {
//is ClockFunction?
bool clockfcn( false );
- if ( line.contains( "$CLOCK" ) ) clockfcn = true;
+ if ( line.tqcontains( "$CLOCK" ) ) clockfcn = true;
//remove leading dcop prefix
line = line.mid( 20 );
@@ -990,7 +990,7 @@ void ScriptBuilder::readScript( TQTextStream &istream ) {
// Initially, any read script is valid!
ScriptList.current()->setValid(true);
}
- else kdWarning() << i18n( "Could not parse script. Line was: %1" ).arg( line ) << endl;
+ else kdWarning() << i18n( "Could not parse script. Line was: %1" ).tqarg( line ) << endl;
} // end if left(4) == "dcop"
} // end while !eof()
@@ -1322,7 +1322,7 @@ void ScriptBuilder::slotArgWidget() {
if (ok) month = sf->argVal(1).toInt(&ok);
if (ok) day = sf->argVal(2).toInt(&ok);
if (ok) argSetLocalTime->DateBox->setDate( ExtDate( year, month, day ) );
- else argSetLocalTime->DateBox->setDate( ExtDate::currentDate() );
+ else argSetLocalTime->DateBox->setDate( ExtDate::tqcurrentDate() );
hour = sf->argVal(3).toInt(&ok);
if ( sf->argVal(3).isEmpty() ) ok = false;
@@ -1369,7 +1369,7 @@ void ScriptBuilder::slotArgWidget() {
} else if ( sf->name() == "loadColorScheme" ) {
sb->ArgStack->raiseWidget( argLoadColorScheme );
- argLoadColorScheme->SchemeList->setCurrentItem( argLoadColorScheme->SchemeList->findItem( sf->argVal(0).remove('\"'), 0 ) );
+ argLoadColorScheme->SchemeList->setCurrentItem( argLoadColorScheme->SchemeList->tqfindItem( sf->argVal(0).remove('\"'), 0 ) );
} else if ( sf->name() == "stop" ) {
sb->ArgStack->raiseWidget( argBlank );
@@ -1820,7 +1820,7 @@ void ScriptBuilder::slotFindCity() {
sf->setArg( 1, ld.selectedProvinceName() );
sf->setArg( 2, ld.selectedCountryName() );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setGeoLocation" ) << endl;
}
}
}
@@ -1869,7 +1869,7 @@ void ScriptBuilder::slotLookToward() {
sf->setArg( 0, argLookToward->FocusEdit->currentText() );
sf->setValid(true);
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "lookTowards" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "lookTowards" ) << endl;
}
}
@@ -1885,7 +1885,7 @@ void ScriptBuilder::slotRa() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 0, TQString( "%1" ).arg( ra.Hours() ) );
+ sf->setArg( 0, TQString( "%1" ).tqarg( ra.Hours() ) );
if ( ! sf->argVal(1).isEmpty() ) sf->setValid( true );
} else {
@@ -1893,7 +1893,7 @@ void ScriptBuilder::slotRa() {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setRaDec" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setRaDec" ) << endl;
}
}
@@ -1909,7 +1909,7 @@ void ScriptBuilder::slotDec() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 1, TQString( "%1" ).arg( dec.Degrees() ) );
+ sf->setArg( 1, TQString( "%1" ).tqarg( dec.Degrees() ) );
if ( ! sf->argVal(0).isEmpty() ) sf->setValid( true );
} else {
@@ -1917,7 +1917,7 @@ void ScriptBuilder::slotDec() {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setRaDec" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setRaDec" ) << endl;
}
}
@@ -1932,14 +1932,14 @@ void ScriptBuilder::slotAz() {
dms az = argSetAltAz->AzBox->createDms(true, &ok);
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 1, TQString( "%1" ).arg( az.Degrees() ) );
+ sf->setArg( 1, TQString( "%1" ).tqarg( az.Degrees() ) );
if ( ! sf->argVal(0).isEmpty() ) sf->setValid( true );
} else {
sf->setArg( 1, "" );
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setAltAz" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setAltAz" ) << endl;
}
}
@@ -1955,14 +1955,14 @@ void ScriptBuilder::slotAlt() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 0, TQString( "%1" ).arg( alt.Degrees() ) );
+ sf->setArg( 0, TQString( "%1" ).tqarg( alt.Degrees() ) );
if ( ! sf->argVal(1).isEmpty() ) sf->setValid( true );
} else {
sf->setArg( 0, "" );
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setAltAz" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setAltAz" ) << endl;
}
}
@@ -1974,12 +1974,12 @@ void ScriptBuilder::slotChangeDate() {
ExtDate date = argSetLocalTime->DateBox->date();
- sf->setArg( 0, TQString( "%1" ).arg( date.year() ) );
- sf->setArg( 1, TQString( "%1" ).arg( date.month() ) );
- sf->setArg( 2, TQString( "%1" ).arg( date.day() ) );
+ sf->setArg( 0, TQString( "%1" ).tqarg( date.year() ) );
+ sf->setArg( 1, TQString( "%1" ).tqarg( date.month() ) );
+ sf->setArg( 2, TQString( "%1" ).tqarg( date.day() ) );
if ( ! sf->argVal(3).isEmpty() ) sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setLocalTime" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setLocalTime" ) << endl;
}
}
@@ -1991,12 +1991,12 @@ void ScriptBuilder::slotChangeTime() {
TQTime time = argSetLocalTime->TimeBox->time();
- sf->setArg( 3, TQString( "%1" ).arg( time.hour() ) );
- sf->setArg( 4, TQString( "%1" ).arg( time.minute() ) );
- sf->setArg( 5, TQString( "%1" ).arg( time.second() ) );
+ sf->setArg( 3, TQString( "%1" ).tqarg( time.hour() ) );
+ sf->setArg( 4, TQString( "%1" ).tqarg( time.minute() ) );
+ sf->setArg( 5, TQString( "%1" ).tqarg( time.second() ) );
if ( ! sf->argVal(0).isEmpty() ) sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setLocalTime" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setLocalTime" ) << endl;
}
}
@@ -2010,13 +2010,13 @@ void ScriptBuilder::slotWaitFor() {
if ( ok ) {
setUnsavedChanges( true );
- sf->setArg( 0, TQString( "%1" ).arg( delay ) );
+ sf->setArg( 0, TQString( "%1" ).tqarg( delay ) );
sf->setValid( true );
} else {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "waitFor" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "waitFor" ) << endl;
}
}
@@ -2037,7 +2037,7 @@ void ScriptBuilder::slotWaitForKey() {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "waitForKey" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "waitForKey" ) << endl;
}
}
@@ -2050,7 +2050,7 @@ void ScriptBuilder::slotTracking() {
sf->setArg( 0, ( argSetTracking->CheckTrack->isChecked() ? i18n( "true" ) : i18n( "false" ) ) );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setTracking" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setTracking" ) << endl;
}
}
@@ -2069,7 +2069,7 @@ void ScriptBuilder::slotViewOption() {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "changeViewOption" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "changeViewOption" ) << endl;
}
}
@@ -2089,7 +2089,7 @@ void ScriptBuilder::slotChangeCity() {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setGeoLocation" ) << endl;
}
}
@@ -2109,7 +2109,7 @@ void ScriptBuilder::slotChangeProvince() {
//might not be invalid
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setGeoLocation" ) << endl;
}
}
@@ -2129,7 +2129,7 @@ void ScriptBuilder::slotChangeCountry() {
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setGeoLocation" ) << endl;
}
}
@@ -2139,10 +2139,10 @@ void ScriptBuilder::slotTimeScale() {
if ( sf->name() == "setClockScale" ) {
setUnsavedChanges( true );
- sf->setArg( 0, TQString( "%1" ).arg( argTimeScale->TimeScale->tsbox()->timeScale() ) );
+ sf->setArg( 0, TQString( "%1" ).tqarg( argTimeScale->TimeScale->tsbox()->timeScale() ) );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setClockScale" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setClockScale" ) << endl;
}
}
@@ -2159,7 +2159,7 @@ void ScriptBuilder::slotZoom() {
sf->setValid( true );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "zoom" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "zoom" ) << endl;
}
}
@@ -2170,11 +2170,11 @@ void ScriptBuilder::slotExportImage() {
setUnsavedChanges( true );
sf->setArg( 0, argExportImage->ExportFileName->url() );
- sf->setArg( 1, TQString("%1").arg( argExportImage->ExportWidth->value() ) );
- sf->setArg( 2, TQString("%1").arg( argExportImage->ExportHeight->value() ) );
+ sf->setArg( 1, TQString("%1").tqarg( argExportImage->ExportWidth->value() ) );
+ sf->setArg( 2, TQString("%1").tqarg( argExportImage->ExportHeight->value() ) );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "exportImage" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "exportImage" ) << endl;
}
}
@@ -2188,7 +2188,7 @@ void ScriptBuilder::slotPrintImage() {
sf->setArg( 1, ( argPrintImage->UseChartColors->isChecked() ? i18n( "true" ) : i18n( "false" ) ) );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "exportImage" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "exportImage" ) << endl;
}
}
@@ -2205,7 +2205,7 @@ void ScriptBuilder::slotChangeColorName() {
sf->setArg( 1, cname );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setColor" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setColor" ) << endl;
}
}
@@ -2221,7 +2221,7 @@ void ScriptBuilder::slotChangeColor() {
sf->setArg( 1, cname );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setColor" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setColor" ) << endl;
}
}
@@ -2234,7 +2234,7 @@ void ScriptBuilder::slotLoadColorScheme(TQListBoxItem */*i*/) {
sf->setArg( 0, "\"" + argLoadColorScheme->SchemeList->currentText() + "\"" );
sf->setValid( true );
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "loadColorScheme" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "loadColorScheme" ) << endl;
}
}
@@ -2263,7 +2263,7 @@ void ScriptBuilder::slotINDIStartDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDI" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "startINDI" ) << endl;
}
}
@@ -2282,7 +2282,7 @@ void ScriptBuilder::slotINDIStartDeviceMode()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDI" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "startINDI" ) << endl;
}
}
@@ -2308,7 +2308,7 @@ void ScriptBuilder::slotINDIShutdown()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "shutdownINDI" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "shutdownINDI" ) << endl;
}
}
@@ -2334,7 +2334,7 @@ void ScriptBuilder::slotINDISwitchDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "switchdownINDI" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "switchdownINDI" ) << endl;
}
}
@@ -2356,7 +2356,7 @@ void ScriptBuilder::slotINDISwitchDeviceConnection()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "switchINDI" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "switchINDI" ) << endl;
}
}
@@ -2384,7 +2384,7 @@ void ScriptBuilder::slotINDISetPortDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIPort" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIPort" ) << endl;
}
@@ -2412,7 +2412,7 @@ void ScriptBuilder::slotINDISetPortDevicePort()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIPort" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIPort" ) << endl;
}
}
@@ -2438,7 +2438,7 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetCoord" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDITargetCoord" ) << endl;
}
}
@@ -2459,10 +2459,10 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceRA()
dms ra = argSetTargetCoordINDI->RaBox->createDms(false, &ok);
if ( ok ) {
- if (sf->argVal(1) != TQString( "%1" ).arg( ra.Hours() ))
+ if (sf->argVal(1) != TQString( "%1" ).tqarg( ra.Hours() ))
setUnsavedChanges( true );
- sf->setArg( 1, TQString( "%1" ).arg( ra.Hours() ) );
+ sf->setArg( 1, TQString( "%1" ).tqarg( ra.Hours() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(2).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2471,7 +2471,7 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceRA()
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetCoord" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDITargetCoord" ) << endl;
}
}
@@ -2492,10 +2492,10 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceDEC()
dms dec = argSetTargetCoordINDI->DecBox->createDms(true, &ok);
if ( ok ) {
- if (sf->argVal(2) != TQString( "%1" ).arg( dec.Degrees() ))
+ if (sf->argVal(2) != TQString( "%1" ).tqarg( dec.Degrees() ))
setUnsavedChanges( true );
- sf->setArg( 2, TQString( "%1" ).arg( dec.Degrees() ) );
+ sf->setArg( 2, TQString( "%1" ).tqarg( dec.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(1).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2504,7 +2504,7 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceDEC()
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetCoord" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDITargetCoord" ) << endl;
}
}
@@ -2531,7 +2531,7 @@ void ScriptBuilder::slotINDISetTargetNameDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetName" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDITargetName" ) << endl;
}
}
@@ -2558,7 +2558,7 @@ void ScriptBuilder::slotINDISetTargetNameObjectName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetName" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDITargetName" ) << endl;
}
}
@@ -2585,7 +2585,7 @@ void ScriptBuilder::slotINDISetActionDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIAction") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIAction") << endl;
}
}
@@ -2611,7 +2611,7 @@ void ScriptBuilder::slotINDISetActionName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIAction") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIAction") << endl;
}
}
@@ -2638,7 +2638,7 @@ void ScriptBuilder::slotINDIWaitForActionDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "waitForINDIAction") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "waitForINDIAction") << endl;
}
}
@@ -2664,7 +2664,7 @@ void ScriptBuilder::slotINDIWaitForActionName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "waitForINDIAction") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "waitForINDIAction") << endl;
}
}
@@ -2685,12 +2685,12 @@ void ScriptBuilder::slotINDISetFocusSpeedDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetFocusSpeedINDI->deviceName->text());
- sf->setArg(1, TQString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetFocusSpeedINDI->speedIN->value()));
sf->setValid(true);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusSpeed") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFocusSpeed") << endl;
}
}
@@ -2705,13 +2705,13 @@ void ScriptBuilder::slotINDISetFocusSpeed()
if (sf->argVal(1).toInt() != argSetFocusSpeedINDI->speedIN->value())
setUnsavedChanges( true );
- sf->setArg(1, TQString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetFocusSpeedINDI->speedIN->value()));
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusSpeed") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFocusSpeed") << endl;
}
}
@@ -2737,7 +2737,7 @@ void ScriptBuilder::slotINDIStartFocusDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "StartINDIFocus") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "StartINDIFocus") << endl;
}
}
@@ -2758,7 +2758,7 @@ void ScriptBuilder::slotINDIStartFocusDirection()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDIFocus") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "startINDIFocus") << endl;
}
}
@@ -2779,12 +2779,12 @@ void ScriptBuilder::slotINDISetFocusTimeoutDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetFocusTimeoutINDI->deviceName->text());
- sf->setArg(1, TQString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetFocusTimeoutINDI->timeOut->value()));
sf->setValid(true);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusTimeout") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFocusTimeout") << endl;
}
}
@@ -2798,13 +2798,13 @@ void ScriptBuilder::slotINDISetFocusTimeout()
if (sf->argVal(1).toInt() != argSetFocusTimeoutINDI->timeOut->value())
setUnsavedChanges( true );
- sf->setArg(1, TQString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetFocusTimeoutINDI->timeOut->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusTimeout") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFocusTimeout") << endl;
}
}
@@ -2830,7 +2830,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIGeoLocation" ) << endl;
}
}
@@ -2851,10 +2851,10 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLong()
dms longitude = argSetGeoLocationINDI->longBox->createDms(true, &ok);
if ( ok ) {
- if (sf->argVal(1) != TQString( "%1" ).arg( longitude.Degrees()))
+ if (sf->argVal(1) != TQString( "%1" ).tqarg( longitude.Degrees()))
setUnsavedChanges( true );
- sf->setArg( 1, TQString( "%1" ).arg( longitude.Degrees() ) );
+ sf->setArg( 1, TQString( "%1" ).tqarg( longitude.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(2).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2863,7 +2863,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLong()
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIGeoLocation" ) << endl;
}
}
@@ -2884,10 +2884,10 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLat()
dms latitude = argSetGeoLocationINDI->latBox->createDms(true, &ok);
if ( ok ) {
- if (sf->argVal(2) != TQString( "%1" ).arg( latitude.Degrees()))
+ if (sf->argVal(2) != TQString( "%1" ).tqarg( latitude.Degrees()))
setUnsavedChanges( true );
- sf->setArg( 2, TQString( "%1" ).arg( latitude.Degrees() ) );
+ sf->setArg( 2, TQString( "%1" ).tqarg( latitude.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(1).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
@@ -2896,7 +2896,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLat()
sf->setValid( false );
}
} else {
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIGeoLocation" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIGeoLocation" ) << endl;
}
}
@@ -2917,12 +2917,12 @@ void ScriptBuilder::slotINDIStartExposureDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argStartExposureINDI->deviceName->text());
- sf->setArg(1, TQString("%1").arg(argStartExposureINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").tqarg(argStartExposureINDI->timeOut->value()));
sf->setValid(true);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDIExposure") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "startINDIExposure") << endl;
}
}
@@ -2937,13 +2937,13 @@ void ScriptBuilder::slotINDIStartExposureTimeout()
if (sf->argVal(1).toInt() != argStartExposureINDI->timeOut->value())
setUnsavedChanges( true );
- sf->setArg(1, TQString("%1").arg(argStartExposureINDI->timeOut->value()));
+ sf->setArg(1, TQString("%1").tqarg(argStartExposureINDI->timeOut->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDIExposure") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "startINDIExposure") << endl;
}
}
@@ -2970,7 +2970,7 @@ void ScriptBuilder::slotINDISetUTCDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIUTC" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIUTC" ) << endl;
}
@@ -2998,7 +2998,7 @@ void ScriptBuilder::slotINDISetUTC()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIUTC" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIUTC" ) << endl;
}
}
@@ -3026,7 +3026,7 @@ void ScriptBuilder::slotINDISetScopeActionDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIScopeAction" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIScopeAction" ) << endl;
}
}
@@ -3048,7 +3048,7 @@ void ScriptBuilder::slotINDISetScopeAction()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIScopeAction") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIScopeAction") << endl;
}
}
@@ -3075,7 +3075,7 @@ void ScriptBuilder::slotINDISetFrameTypeDeviceName()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFrameType" ) << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFrameType" ) << endl;
}
}
@@ -3096,7 +3096,7 @@ void ScriptBuilder::slotINDISetFrameType()
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFrameType") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFrameType") << endl;
}
}
@@ -3117,12 +3117,12 @@ void ScriptBuilder::slotINDISetCCDTempDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetCCDTempINDI->deviceName->text());
- sf->setArg(1, TQString("%1").arg(argSetCCDTempINDI->temp->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetCCDTempINDI->temp->value()));
sf->setValid(true);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDICCDTemp") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDICCDTemp") << endl;
}
}
@@ -3137,13 +3137,13 @@ void ScriptBuilder::slotINDISetCCDTemp()
if (sf->argVal(1).toInt() != argSetCCDTempINDI->temp->value())
setUnsavedChanges( true );
- sf->setArg(1, TQString("%1").arg(argSetCCDTempINDI->temp->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetCCDTempINDI->temp->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDICCDTemp") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDICCDTemp") << endl;
}
}
@@ -3165,12 +3165,12 @@ void ScriptBuilder::slotINDISetFilterNumDeviceName()
setUnsavedChanges( true );
sf->setArg(0, argSetFilterNumINDI->deviceName->text());
- sf->setArg(1, TQString("%1").arg(argSetFilterNumINDI->filter_num->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetFilterNumINDI->filter_num->value()));
sf->setValid(true);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFilterNum") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFilterNum") << endl;
}
}
@@ -3185,13 +3185,13 @@ void ScriptBuilder::slotINDISetFilterNum()
if (sf->argVal(1).toInt() != argSetFilterNumINDI->filter_num->value())
setUnsavedChanges( true );
- sf->setArg(1, TQString("%1").arg(argSetFilterNumINDI->filter_num->value()));
+ sf->setArg(1, TQString("%1").tqarg(argSetFilterNumINDI->filter_num->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
}
else
{
- kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFilterNum") << endl;
+ kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).tqarg( "setINDIFilterNum") << endl;
}