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.cpp596
1 files changed, 298 insertions, 298 deletions
diff --git a/kstars/kstars/tools/scriptbuilder.cpp b/kstars/kstars/tools/scriptbuilder.cpp
index 3d1ddbaa..b9f480f7 100644
--- a/kstars/kstars/tools/scriptbuilder.cpp
+++ b/kstars/kstars/tools/scriptbuilder.cpp
@@ -101,8 +101,8 @@
#include "libtdeedu/extdate/extdatewidget.h"
ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
- : KDialogBase( KDialogBase::Plain, i18n( "Script Builder" ), Close, Close, parent, name ),
- UnsavedChanges(false), currentFileURL(), currentDir( TQDir::homeDirPath() ),
+ : KDialogBase( KDialogBase::Plain, i18n( "Script Builder" ), Close, Close, parent, name ),
+ UnsavedChanges(false), currentFileURL(), currentDir( TQDir::homeDirPath() ),
currentScriptName(), currentAuthor() {
TQFrame *page = plainPage();
@@ -143,62 +143,62 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
KStarsFunctionList.append( new ScriptFunction( "stop", i18n( "Halt the simulation clock." ), true ) );
KStarsFunctionList.append( new ScriptFunction( "start", i18n( "Start the simulation clock." ), true ) );
KStarsFunctionList.append( new ScriptFunction( "setClockScale", i18n( "Set the timescale of the simulation clock to %1. 1.0 means real-time; 2.0 means twice real-time; etc." ), true, "double", "scale" ) );
-
+
// 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);
-
+ 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_OBJECT_NAME_STRING, "deviceName", "bool", "useLocal");
INDIFunctionList.append ( startINDIFunc );
-
+
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_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_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_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_OBJECT_NAME_STRING, "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, TQSTRING_OBJECT_NAME_STRING, "deviceName", TQSTRING_OBJECT_NAME_STRING, "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, 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_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_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_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_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_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_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_OBJECT_NAME_STRING, "deviceName", "int", "temp");
setINDICCDTempFunc->setINDIProperty("CCD_TEMPERATURE");
INDIFunctionList.append( setINDICCDTempFunc);
@@ -206,36 +206,36 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
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_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_OBJECT_NAME_STRING, "deviceName", "int", "timeout");
startINDIExposureFunc->setINDIProperty("CCD_EXPOSE_DURATION");
INDIFunctionList.append( startINDIExposureFunc);
-
-
+
+
// Modified by JM
// We're using TDEListView instead of listbox to arrange the functions in two
// main categories: KStars and INDI. INDI is further subdivided.
-
+
sb->FunctionListView->addColumn(i18n("Functions"));
sb->FunctionListView->setSorting(-1);
-
+
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");
-
+
TQListViewItem *kstars_tree = new TQListViewItem( sb->FunctionListView, "KStars");
-
-
+
+
for ( ScriptFunction *sf = KStarsFunctionList.last(); sf; sf = KStarsFunctionList.prev() )
new TQListViewItem (kstars_tree, sf->prototype());
-
+
// General
new TQListViewItem(INDI_general, waitForINDIActionFunc->prototype());
new TQListViewItem(INDI_general, setINDIActionFunc->prototype());
@@ -312,21 +312,21 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
argSetFrameTypeINDI = new ArgSetFrameTypeINDI (sb->ArgStack);
argSetCCDTempINDI = new ArgSetCCDTempINDI(sb->ArgStack);
argSetFilterNumINDI = new ArgSetFilterNumINDI(sb->ArgStack);
-
+
argStartFocusINDI->directionCombo->insertItem("IN");
argStartFocusINDI->directionCombo->insertItem("OUT");
-
+
argSetScopeActionINDI->actionCombo->insertItem("SLEW");
argSetScopeActionINDI->actionCombo->insertItem("TRACK");
argSetScopeActionINDI->actionCombo->insertItem("SYNC");
argSetScopeActionINDI->actionCombo->insertItem("PARK");
argSetScopeActionINDI->actionCombo->insertItem("ABORT");
-
+
argSetFrameTypeINDI->typeCombo->insertItem("FRAME_LIGHT");
argSetFrameTypeINDI->typeCombo->insertItem("FRAME_BIAS");
argSetFrameTypeINDI->typeCombo->insertItem("FRAME_DARK");
argSetFrameTypeINDI->typeCombo->insertItem("FRAME_FLAT");
-
+
sb->ArgStack->addWidget( argBlank );
sb->ArgStack->addWidget( argLookToward );
sb->ArgStack->addWidget( argSetRaDec );
@@ -343,7 +343,7 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
sb->ArgStack->addWidget( argPrintImage );
sb->ArgStack->addWidget( argSetColor );
sb->ArgStack->addWidget( argLoadColorScheme );
-
+
sb->ArgStack->addWidget( argStartINDI);
sb->ArgStack->addWidget( argShutdownINDI);
sb->ArgStack->addWidget( argSwitchINDI);
@@ -362,7 +362,7 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
sb->ArgStack->addWidget( argSetFrameTypeINDI);
sb->ArgStack->addWidget( argSetCCDTempINDI);
sb->ArgStack->addWidget( argSetFilterNumINDI);
-
+
sb->ArgStack->raiseWidget( 0 );
snd = new ScriptNameDialog( ks );
@@ -416,77 +416,77 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
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, TQT_SIGNAL ( toggled(bool) ), this, TQT_SLOT(slotINDIWaitCheck(bool)));
-
+
// Connections for INDI's Arg widgets
-
+
// INDI Start Device
connect (argStartINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIStartDeviceName()));
- connect (argStartINDI->INDIMode, TQT_SIGNAL ( clicked( int)), this, TQT_SLOT (slotINDIStartDeviceMode()));
-
+ connect (argStartINDI->INDIMode, TQT_SIGNAL ( clicked( int)), this, TQT_SLOT (slotINDIStartDeviceMode()));
+
// INDI Shutdown Device
connect (argShutdownINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDIShutdown()));
-
+
// INDI Swtich Device
connect (argSwitchINDI->deviceName, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISwitchDeviceName()));
- connect (argSwitchINDI->INDIConnection, TQT_SIGNAL ( clicked( int)), this, TQT_SLOT (slotINDISwitchDeviceConnection()));
-
+ connect (argSwitchINDI->INDIConnection, TQT_SIGNAL ( clicked( int)), this, TQT_SLOT (slotINDISwitchDeviceConnection()));
+
// INDI Set Device Port
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
+
+ // INDI Set Target Coord
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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, TQT_SIGNAL( textChanged(const TQString &) ), this, TQT_SLOT(slotINDISetCCDTempDeviceName()));
connect (argSetCCDTempINDI->temp, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT(slotINDISetCCDTemp()));
@@ -495,7 +495,7 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
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
sb->CopyButton->setEnabled( false );
sb->AddButton->setEnabled( false );
@@ -646,7 +646,7 @@ void ScriptBuilder::initViewOptions() {
argChangeViewOption->OptionName->insertItem( "HideGrid" );
opsSkymap = new TQListViewItem( otv->OptionsList, i18n( "Skymap Options" ) );
- new TQListViewItem( opsSkymap, "UseAltAz", i18n( "UseQt::Horizontal coordinates? (otherwise, use Equatorial)" ), i18n( "bool" ) );
+ 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" ) );
@@ -694,13 +694,13 @@ void ScriptBuilder::initViewOptions() {
for ( unsigned int i=0; i < ks->data()->colorScheme()->numberOfColors(); ++i ) {
argSetColor->ColorName->insertItem( ks->data()->colorScheme()->nameAt(i) );
}
-
+
//init list of color scheme names
argLoadColorScheme->SchemeList->insertItem( i18n( "use default color scheme", "Default Colors" ) );
argLoadColorScheme->SchemeList->insertItem( i18n( "use 'star chart' color scheme", "Star Chart" ) );
argLoadColorScheme->SchemeList->insertItem( i18n( "use 'night vision' color scheme", "Night Vision" ) );
argLoadColorScheme->SchemeList->insertItem( i18n( "use 'moonless night' color scheme", "Moonless Night" ) );
-
+
TQFile file;
TQString line;
file.setName( locate( "appdata", "colors.dat" ) ); //determine filename in local user KDE directory tree.
@@ -800,7 +800,7 @@ void ScriptBuilder::slotSave() {
if ( currentFileURL.isLocalFile() ) {
fname = currentFileURL.path();
-
+
//Warn user if file exists
if (TQFile::exists(currentFileURL.path())) {
int r=KMessageBox::warningContinueCancel(TQT_TQWIDGET(parent()),
@@ -808,13 +808,13 @@ void ScriptBuilder::slotSave() {
"Overwrite it?" ).arg(currentFileURL.fileName()),
i18n( "Overwrite File?" ),
i18n( "&Overwrite" ) );
-
+
if(r==KMessageBox::Cancel) return;
}
} else {
fname = tmpfile.name();
}
-
+
if ( fname.right( 7 ).lower() != ".kstars" ) fname += ".kstars";
TQFile f( fname );
@@ -945,8 +945,8 @@ void ScriptBuilder::writeScript( TQTextStream &ostream ) {
else
sf->setINDIProperty("PARK");
}
-
- if ( sf->argVal(0).contains(" "))
+
+ if ( sf->argVal(0).contains(" "))
ostream << mainpre << "waitForINDIAction " << "\"" << sf->argVal(0) << "\" " << sf->INDIProperty() << endl;
else
ostream << mainpre << "waitForINDIAction " << sf->argVal(0) << " " << sf->INDIProperty() << endl;
@@ -1010,11 +1010,11 @@ bool ScriptBuilder::parseFunction( TQStringList &fn )
bool foundQuote(false), quoteProcessed(false);
TQString cur, arg;
TQStringList::iterator it;
-
+
for (it = fn.begin(); it != fn.end(); ++it)
{
cur = (*it);
-
+
if ( cur.startsWith("\""))
{
arg += cur.right(cur.length() - 1);
@@ -1039,10 +1039,10 @@ bool ScriptBuilder::parseFunction( TQStringList &fn )
arg += "'";
}
}
-
+
if (quoteProcessed)
fn = TQStringList::split( "'", arg );
-
+
//loop over known functions to find a name match
for ( ScriptFunction *sf = KStarsFunctionList.first(); sf; sf = KStarsFunctionList.next() )
{
@@ -1067,7 +1067,7 @@ bool ScriptBuilder::parseFunction( TQStringList &fn )
return true;
}
-
+
for ( ScriptFunction *sf = INDIFunctionList.first(); sf; sf = INDIFunctionList.next() )
{
if ( fn[0] == sf->name() )
@@ -1128,27 +1128,27 @@ void ScriptBuilder::slotRemoveFunction() {
}
void ScriptBuilder::slotAddFunction() {
-
+
ScriptFunction *sc = NULL;
TQListViewItem *currentItem = sb->FunctionListView->currentItem();
-
+
if ( currentItem == NULL || currentItem->depth() == 0)
return;
-
+
for (sc = KStarsFunctionList.first(); sc; sc = KStarsFunctionList.next())
if (sc->prototype() == currentItem->text(0))
break;
-
+
if (sc == NULL)
{
for (sc = INDIFunctionList.first(); sc; sc = INDIFunctionList.next())
if (sc->prototype() == currentItem->text(0))
break;
-
+
}
-
+
if (sc == NULL) return;
-
+
setUnsavedChanges( true );
int Pos = sb->ScriptListBox->currentItem() + 1;
@@ -1299,11 +1299,11 @@ void ScriptBuilder::slotArgWidget() {
int w, h;
w = sf->argVal(1).toInt( &ok );
if (ok) h = sf->argVal(2).toInt( &ok );
- if (ok) {
- argExportImage->ExportWidth->setValue( w );
+ if (ok) {
+ argExportImage->ExportWidth->setValue( w );
argExportImage->ExportHeight->setValue( h );
- } else {
- argExportImage->ExportWidth->setValue( ks->map()->width() );
+ } else {
+ argExportImage->ExportWidth->setValue( ks->map()->width() );
argExportImage->ExportHeight->setValue( ks->map()->height() );
}
@@ -1389,7 +1389,7 @@ void ScriptBuilder::slotArgWidget() {
}
else if (sf->name() == "startINDI") {
sb->ArgStack->raiseWidget( argStartINDI);
-
+
argStartINDI->deviceName->setText(sf->argVal(0));
if (sf->argVal(1) == "true")
argStartINDI->LocalButton->setChecked(true);
@@ -1398,7 +1398,7 @@ void ScriptBuilder::slotArgWidget() {
}
else if (sf->name() == "shutdownINDI") {
sb->ArgStack->raiseWidget( argShutdownINDI);
-
+
//if (sf->valid()) kdDebug() << "begin: shutdown is valid" << endl;
if (sb->ReuseINDIDeviceName->isChecked())
{
@@ -1410,53 +1410,53 @@ void ScriptBuilder::slotArgWidget() {
slotINDIShutdown();
}
else argShutdownINDI->deviceName->setText(sf->argVal(0));
-
+
//if (sf->valid()) kdDebug() << "end: shutdown is valid" << endl;
}
else if (sf->name() == "switchINDI") {
sb->ArgStack->raiseWidget( argSwitchINDI);
-
+
if (sf->argVal(1) == "true" || sf->argVal(1).isEmpty())
argSwitchINDI->OnButton->setChecked(true);
else
argSwitchINDI->OffButton->setChecked(true);
-
+
argSwitchINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
argSwitchINDI->deviceName->setText(sf->argVal(0));
- else
+ else
argSwitchINDI->deviceName->setText(lastINDIDeviceName);
}
else argSwitchINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIPort") {
sb->ArgStack->raiseWidget( argSetPortINDI);
-
+
argSetPortINDI->devicePort->setText(sf->argVal(1));
-
+
argSetPortINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
argSetPortINDI->deviceName->setText(sf->argVal(0));
- else
+ else
argSetPortINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetPortINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDITargetCoord") {
bool ok(false);
double r(0.0),d(0.0);
dms ra(0.0);
-
+
sb->ArgStack->raiseWidget( argSetTargetCoordINDI);
-
+
ok = !sf->argVal(1).isEmpty();
if (ok) r = sf->argVal(1).toDouble(&ok);
else argSetTargetCoordINDI->RaBox->clear();
@@ -1466,26 +1466,26 @@ void ScriptBuilder::slotArgWidget() {
if (ok) d = sf->argVal(2).toDouble(&ok);
else argSetTargetCoordINDI->DecBox->clear();
if (ok) argSetTargetCoordINDI->DecBox->showInDegrees( dms(d) );
-
+
argSetTargetCoordINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
argSetTargetCoordINDI->deviceName->setText(sf->argVal(0));
- else
+ else
argSetTargetCoordINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetTargetCoordINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDITargetName") {
sb->ArgStack->raiseWidget( argSetTargetNameINDI);
-
+
argSetTargetNameINDI->objectName->setText(sf->argVal(1));
-
+
argSetTargetNameINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1494,15 +1494,15 @@ void ScriptBuilder::slotArgWidget() {
argSetTargetNameINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetTargetNameINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIAction") {
sb->ArgStack->raiseWidget( argSetActionINDI);
-
+
argSetActionINDI->actionName->setText(sf->argVal(1));
-
+
argSetActionINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1511,15 +1511,15 @@ void ScriptBuilder::slotArgWidget() {
argSetActionINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetActionINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "waitForINDIAction") {
sb->ArgStack->raiseWidget( argWaitForActionINDI);
-
+
argWaitForActionINDI->actionName->setText(sf->argVal(1));
-
+
argWaitForActionINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1528,20 +1528,20 @@ void ScriptBuilder::slotArgWidget() {
argWaitForActionINDI->deviceName->setText(lastINDIDeviceName);
}
else argWaitForActionINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIFocusSpeed") {
int t(0);
bool ok(false);
-
+
sb->ArgStack->raiseWidget( argSetFocusSpeedINDI);
t = sf->argVal(1).toInt(&ok);
if (ok) argSetFocusSpeedINDI->speedIN->setValue(t);
else argSetFocusSpeedINDI->speedIN->setValue(0);
-
+
argSetFocusSpeedINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1550,12 +1550,12 @@ void ScriptBuilder::slotArgWidget() {
argSetFocusSpeedINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetFocusSpeedINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "startINDIFocus") {
sb->ArgStack->raiseWidget( argStartFocusINDI);
bool itemSet(false);
-
+
for (int i=0; i < argStartFocusINDI->directionCombo->count(); i++)
{
if (argStartFocusINDI->directionCombo->text(i) == sf->argVal(1))
@@ -1565,11 +1565,11 @@ void ScriptBuilder::slotArgWidget() {
break;
}
}
-
+
if (!itemSet) argStartFocusINDI->directionCombo->setCurrentItem(0);
-
+
argStartFocusINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1578,20 +1578,20 @@ void ScriptBuilder::slotArgWidget() {
argStartFocusINDI->deviceName->setText(lastINDIDeviceName);
}
else argStartFocusINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIFocusTimeout") {
int t(0);
bool ok(false);
-
+
sb->ArgStack->raiseWidget( argSetFocusTimeoutINDI);
-
+
t = sf->argVal(1).toInt(&ok);
if (ok) argSetFocusTimeoutINDI->timeOut->setValue(t);
else argSetFocusTimeoutINDI->timeOut->setValue(0);
-
+
argSetFocusTimeoutINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1600,14 +1600,14 @@ void ScriptBuilder::slotArgWidget() {
argSetFocusTimeoutINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetFocusTimeoutINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIGeoLocation") {
bool ok(false);
double lo(0.0),la(0.0);
-
+
sb->ArgStack->raiseWidget( argSetGeoLocationINDI);
-
+
ok = !sf->argVal(1).isEmpty();
if (ok) lo = sf->argVal(1).toDouble(&ok);
else argSetGeoLocationINDI->longBox->clear();
@@ -1617,9 +1617,9 @@ void ScriptBuilder::slotArgWidget() {
if (ok) la = sf->argVal(2).toDouble(&ok);
else argSetGeoLocationINDI->latBox->clear();
if (ok) argSetGeoLocationINDI->latBox->showInDegrees( dms(la) );
-
+
argSetGeoLocationINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1628,20 +1628,20 @@ void ScriptBuilder::slotArgWidget() {
argSetGeoLocationINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetGeoLocationINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "startINDIExposure") {
int t(0);
bool ok(false);
-
+
sb->ArgStack->raiseWidget( argStartExposureINDI);
-
+
t = sf->argVal(1).toInt(&ok);
if (ok) argStartExposureINDI->timeOut->setValue(t);
else argStartExposureINDI->timeOut->setValue(0);
-
+
argStartExposureINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1650,29 +1650,29 @@ void ScriptBuilder::slotArgWidget() {
argStartExposureINDI->deviceName->setText(lastINDIDeviceName);
}
else argStartExposureINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIUTC") {
sb->ArgStack->raiseWidget( argSetUTCINDI);
-
+
argSetUTCINDI->UTC->setText(sf->argVal(1));
-
+
argSetUTCINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
argSetUTCINDI->deviceName->setText(sf->argVal(0));
- else
+ else
argSetUTCINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetUTCINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIScopeAction") {
sb->ArgStack->raiseWidget( argSetScopeActionINDI);
bool itemSet(false);
-
+
for (int i=0; i < argSetScopeActionINDI->actionCombo->count(); i++)
{
if (argSetScopeActionINDI->actionCombo->text(i) == sf->argVal(1))
@@ -1682,25 +1682,25 @@ void ScriptBuilder::slotArgWidget() {
break;
}
}
-
+
if (!itemSet) argSetScopeActionINDI->actionCombo->setCurrentItem(0);
-
+
argSetScopeActionINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
argSetScopeActionINDI->deviceName->setText(sf->argVal(0));
- else
+ else
argSetScopeActionINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetScopeActionINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIFrameType") {
sb->ArgStack->raiseWidget( argSetFrameTypeINDI);
bool itemSet(false);
-
+
for (int i=0; i < argSetFrameTypeINDI->typeCombo->count(); i++)
{
if (argSetFrameTypeINDI->typeCombo->text(i) == sf->argVal(1))
@@ -1710,11 +1710,11 @@ void ScriptBuilder::slotArgWidget() {
break;
}
}
-
+
if (!itemSet) argSetFrameTypeINDI->typeCombo->setCurrentItem(0);
-
+
argSetFrameTypeINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1723,20 +1723,20 @@ void ScriptBuilder::slotArgWidget() {
argSetFrameTypeINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetFrameTypeINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDICCDTemp") {
int t(0);
bool ok(false);
-
+
sb->ArgStack->raiseWidget( argSetCCDTempINDI);
-
+
t = sf->argVal(1).toInt(&ok);
if (ok) argSetCCDTempINDI->temp->setValue(t);
else argSetCCDTempINDI->temp->setValue(0);
-
+
argSetCCDTempINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1745,20 +1745,20 @@ void ScriptBuilder::slotArgWidget() {
argSetCCDTempINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetCCDTempINDI->deviceName->setText(sf->argVal(0));
-
+
}
else if (sf->name() == "setINDIFilterNum") {
int t(0);
bool ok(false);
-
+
sb->ArgStack->raiseWidget( argSetFilterNumINDI);
-
+
t = sf->argVal(1).toInt(&ok);
if (ok) argSetFilterNumINDI->filter_num->setValue(t);
else argSetFilterNumINDI->filter_num->setValue(0);
-
+
argSetFilterNumINDI->deviceName->clear();
-
+
if (sb->ReuseINDIDeviceName->isChecked())
{
if (!sf->argVal(0).isEmpty())
@@ -1767,7 +1767,7 @@ void ScriptBuilder::slotArgWidget() {
argSetFilterNumINDI->deviceName->setText(lastINDIDeviceName);
}
else argSetFilterNumINDI->deviceName->setText(sf->argVal(0));
-
+
}
}
}
@@ -1775,28 +1775,28 @@ void ScriptBuilder::slotArgWidget() {
void ScriptBuilder::slotShowDoc() {
ScriptFunction *sc = NULL;
TQListViewItem *currentItem = sb->FunctionListView->currentItem();
-
+
if ( currentItem == NULL || currentItem->depth() == 0)
return;
-
+
for (sc = KStarsFunctionList.first(); sc; sc = KStarsFunctionList.next())
if (sc->prototype() == currentItem->text(0))
break;
-
+
if (sc == NULL)
{
for (sc = INDIFunctionList.first(); sc; sc = INDIFunctionList.next())
if (sc->prototype() == currentItem->text(0))
break;
}
-
+
if (sc == NULL)
{
sb->AddButton->setEnabled( false );
kdWarning() << i18n( "Function index out of bounds." ) << endl;
return;
}
-
+
sb->AddButton->setEnabled( true );
sb->FuncDoc->setText( sc->description() );
}
@@ -1848,9 +1848,9 @@ void ScriptBuilder::slotINDIFindObject() {
void ScriptBuilder::slotINDIWaitCheck(bool /*toggleState*/)
{
-
- setUnsavedChanges(true);
-
+
+ setUnsavedChanges(true);
+
}
void ScriptBuilder::slotShowOptions() {
@@ -2168,7 +2168,7 @@ void ScriptBuilder::slotExportImage() {
if ( sf->name() == "exportImage" ) {
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() ) );
@@ -2183,7 +2183,7 @@ void ScriptBuilder::slotPrintImage() {
if ( sf->name() == "printImage" ) {
setUnsavedChanges( true );
-
+
sf->setArg( 0, ( argPrintImage->UsePrintDialog->isChecked() ? i18n( "true" ) : i18n( "false" ) ) );
sf->setArg( 1, ( argPrintImage->UseChartColors->isChecked() ? i18n( "true" ) : i18n( "false" ) ) );
sf->setValid( true );
@@ -2197,7 +2197,7 @@ void ScriptBuilder::slotChangeColorName() {
if ( sf->name() == "setColor" ) {
setUnsavedChanges( true );
-
+
argSetColor->ColorValue->setColor( ks->data()->colorScheme()->colorAt( argSetColor->ColorName->currentItem() ) );
sf->setArg( 0, ks->data()->colorScheme()->keyAt( argSetColor->ColorName->currentItem() ) );
TQString cname( argSetColor->ColorValue->color().name() );
@@ -2214,7 +2214,7 @@ void ScriptBuilder::slotChangeColor() {
if ( sf->name() == "setColor" ) {
setUnsavedChanges( true );
-
+
sf->setArg( 0, ks->data()->colorScheme()->keyAt( argSetColor->ColorName->currentItem() ) );
TQString cname( argSetColor->ColorValue->color().name() );
if ( cname.at(0) == '#' ) cname = "\\" + cname; //prepend a "\" so bash doesn't think we have a comment
@@ -2230,7 +2230,7 @@ void ScriptBuilder::slotLoadColorScheme(TQListBoxItem */*i*/) {
if ( sf->name() == "loadColorScheme" ) {
setUnsavedChanges( true );
-
+
sf->setArg( 0, "\"" + argLoadColorScheme->SchemeList->currentText() + "\"" );
sf->setValid( true );
} else {
@@ -2254,9 +2254,9 @@ void ScriptBuilder::slotINDIStartDeviceName()
if ( sf->name() == "startINDI" )
{
setUnsavedChanges( true );
-
+
lastINDIDeviceName = argStartINDI->deviceName->text();
-
+
sf->setArg(0, lastINDIDeviceName);
sf->setArg(1, argStartINDI->LocalButton->isChecked() ? "true" : "false");
sf->setValid(true);
@@ -2265,18 +2265,18 @@ void ScriptBuilder::slotINDIStartDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDI" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDIStartDeviceMode()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "startINDI" )
{
setUnsavedChanges( true );
-
+
sf->setArg(1, argStartINDI->LocalButton->isChecked() ? "true" : "false");
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
}
@@ -2284,12 +2284,12 @@ void ScriptBuilder::slotINDIStartDeviceMode()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDI" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDIShutdown()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "shutdownINDI" )
@@ -2299,10 +2299,10 @@ void ScriptBuilder::slotINDIShutdown()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argShutdownINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argShutdownINDI->deviceName->text());
sf->setValid(true);
}
@@ -2310,7 +2310,7 @@ void ScriptBuilder::slotINDIShutdown()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "shutdownINDI" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISwitchDeviceName()
@@ -2324,10 +2324,10 @@ void ScriptBuilder::slotINDISwitchDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSwitchINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSwitchINDI->deviceName->text());
sf->setArg(1, argSwitchINDI->OnButton->isChecked() ? "true" : "false");
sf->setValid(true);
@@ -2336,20 +2336,20 @@ void ScriptBuilder::slotINDISwitchDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "switchdownINDI" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISwitchDeviceConnection()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "switchINDI" )
{
-
+
if (sf->argVal(1) != (argSwitchINDI->OnButton->isChecked() ? "true" : "false"))
setUnsavedChanges( true );
-
+
sf->setArg(1, argSwitchINDI->OnButton->isChecked() ? "true" : "false");
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -2358,12 +2358,12 @@ void ScriptBuilder::slotINDISwitchDeviceConnection()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "switchINDI" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetPortDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDIPort" )
@@ -2373,21 +2373,21 @@ void ScriptBuilder::slotINDISetPortDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetPortINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetPortINDI->deviceName->text());
if (! sf->argVal(1).isEmpty()) sf->setValid(true);
else sf->setValid(false);
-
+
}
else
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIPort" ) << endl;
}
-
-
+
+
}
void ScriptBuilder::slotINDISetPortDevicePort()
@@ -2396,16 +2396,16 @@ void ScriptBuilder::slotINDISetPortDevicePort()
if ( sf->name() == "setINDIPort" )
{
-
+
if (argSetPortINDI->devicePort->text().isEmpty())
{
sf->setValid(false);
return;
}
-
+
if (sf->argVal(1) != argSetPortINDI->devicePort->text())
setUnsavedChanges( true );
-
+
sf->setArg(1, argSetPortINDI->devicePort->text());
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -2414,7 +2414,7 @@ void ScriptBuilder::slotINDISetPortDevicePort()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIPort" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetTargetCoordDeviceName()
@@ -2428,10 +2428,10 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetTargetCoordINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetTargetCoordINDI->deviceName->text());
if ((! sf->argVal(1).isEmpty()) && (! sf->argVal(2).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2440,7 +2440,7 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetCoord" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetTargetCoordDeviceRA()
@@ -2458,7 +2458,7 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceRA()
bool ok(false);
dms ra = argSetTargetCoordINDI->RaBox->createDms(false, &ok);
if ( ok ) {
-
+
if (sf->argVal(1) != TQString( "%1" ).arg( ra.Hours() ))
setUnsavedChanges( true );
@@ -2473,7 +2473,7 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceRA()
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetCoord" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetTargetCoordDeviceDEC()
@@ -2491,14 +2491,14 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceDEC()
bool ok(false);
dms dec = argSetTargetCoordINDI->DecBox->createDms(true, &ok);
if ( ok ) {
-
+
if (sf->argVal(2) != TQString( "%1" ).arg( dec.Degrees() ))
setUnsavedChanges( true );
sf->setArg( 2, TQString( "%1" ).arg( dec.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(1).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
-
+
} else {
sf->setArg( 2, "" );
sf->setValid( false );
@@ -2506,12 +2506,12 @@ void ScriptBuilder::slotINDISetTargetCoordDeviceDEC()
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetCoord" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetTargetNameDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDITargetName" )
@@ -2521,10 +2521,10 @@ void ScriptBuilder::slotINDISetTargetNameDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetTargetNameINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetTargetNameINDI->deviceName->text());
if ((! sf->argVal(1).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2533,12 +2533,12 @@ void ScriptBuilder::slotINDISetTargetNameDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetName" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetTargetNameObjectName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDITargetName" )
@@ -2548,10 +2548,10 @@ void ScriptBuilder::slotINDISetTargetNameObjectName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(1) != argSetTargetNameINDI->objectName->text())
setUnsavedChanges( true );
-
+
sf->setArg(1, argSetTargetNameINDI->objectName->text());
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2560,12 +2560,12 @@ void ScriptBuilder::slotINDISetTargetNameObjectName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDITargetName" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetActionDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDIAction" )
@@ -2575,10 +2575,10 @@ void ScriptBuilder::slotINDISetActionDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetActionINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetActionINDI->deviceName->text());
if ((! sf->argVal(1).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2587,9 +2587,9 @@ void ScriptBuilder::slotINDISetActionDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIAction") << endl;
}
-
+
}
-
+
void ScriptBuilder::slotINDISetActionName()
{
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
@@ -2601,10 +2601,10 @@ void ScriptBuilder::slotINDISetActionName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(1) != argSetActionINDI->actionName->text())
setUnsavedChanges( true );
-
+
sf->setArg(1, argSetActionINDI->actionName->text());
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2618,7 +2618,7 @@ void ScriptBuilder::slotINDISetActionName()
void ScriptBuilder::slotINDIWaitForActionDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "waitForINDIAction" )
@@ -2628,10 +2628,10 @@ void ScriptBuilder::slotINDIWaitForActionDeviceName()
return;
sf->setValid(false);
}
-
+
if (sf->argVal(0) != argWaitForActionINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argWaitForActionINDI->deviceName->text());
if ((! sf->argVal(1).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2640,9 +2640,9 @@ void ScriptBuilder::slotINDIWaitForActionDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "waitForINDIAction") << endl;
}
-
+
}
-
+
void ScriptBuilder::slotINDIWaitForActionName()
{
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
@@ -2654,10 +2654,10 @@ void ScriptBuilder::slotINDIWaitForActionName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(1) != argWaitForActionINDI->actionName->text())
setUnsavedChanges( true );
-
+
sf->setArg(1, argWaitForActionINDI->actionName->text());
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2666,7 +2666,7 @@ void ScriptBuilder::slotINDIWaitForActionName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "waitForINDIAction") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFocusSpeedDeviceName()
@@ -2680,10 +2680,10 @@ void ScriptBuilder::slotINDISetFocusSpeedDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetFocusSpeedINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetFocusSpeedINDI->deviceName->text());
sf->setArg(1, TQString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
sf->setValid(true);
@@ -2692,7 +2692,7 @@ void ScriptBuilder::slotINDISetFocusSpeedDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusSpeed") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFocusSpeed()
@@ -2701,10 +2701,10 @@ void ScriptBuilder::slotINDISetFocusSpeed()
if ( sf->name() == "setINDIFocusSpeed" )
{
-
+
if (sf->argVal(1).toInt() != argSetFocusSpeedINDI->speedIN->value())
setUnsavedChanges( true );
-
+
sf->setArg(1, TQString("%1").arg(argSetFocusSpeedINDI->speedIN->value()));
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2713,7 +2713,7 @@ void ScriptBuilder::slotINDISetFocusSpeed()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusSpeed") << endl;
}
-
+
}
void ScriptBuilder::slotINDIStartFocusDeviceName()
@@ -2727,10 +2727,10 @@ void ScriptBuilder::slotINDIStartFocusDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argStartFocusINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argStartFocusINDI->deviceName->text());
sf->setArg(1, argStartFocusINDI->directionCombo->currentText());
sf->setValid(true);
@@ -2739,7 +2739,7 @@ void ScriptBuilder::slotINDIStartFocusDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "StartINDIFocus") << endl;
}
-
+
}
@@ -2751,7 +2751,7 @@ void ScriptBuilder::slotINDIStartFocusDirection()
{
if (sf->argVal(1) != argStartFocusINDI->directionCombo->currentText())
setUnsavedChanges( true );
-
+
sf->setArg(1, argStartFocusINDI->directionCombo->currentText());
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2760,7 +2760,7 @@ void ScriptBuilder::slotINDIStartFocusDirection()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDIFocus") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFocusTimeoutDeviceName()
@@ -2774,10 +2774,10 @@ void ScriptBuilder::slotINDISetFocusTimeoutDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetFocusTimeoutINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetFocusTimeoutINDI->deviceName->text());
sf->setArg(1, TQString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
sf->setValid(true);
@@ -2786,7 +2786,7 @@ void ScriptBuilder::slotINDISetFocusTimeoutDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusTimeout") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFocusTimeout()
@@ -2797,7 +2797,7 @@ void ScriptBuilder::slotINDISetFocusTimeout()
{
if (sf->argVal(1).toInt() != argSetFocusTimeoutINDI->timeOut->value())
setUnsavedChanges( true );
-
+
sf->setArg(1, TQString("%1").arg(argSetFocusTimeoutINDI->timeOut->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -2806,7 +2806,7 @@ void ScriptBuilder::slotINDISetFocusTimeout()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFocusTimeout") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetGeoLocationDeviceName()
@@ -2820,10 +2820,10 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetGeoLocationINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetGeoLocationINDI->deviceName->text());
if ((! sf->argVal(1).isEmpty()) && (! sf->argVal(2).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -2832,7 +2832,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIGeoLocation" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetGeoLocationDeviceLong()
@@ -2850,7 +2850,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLong()
bool ok(false);
dms longitude = argSetGeoLocationINDI->longBox->createDms(true, &ok);
if ( ok ) {
-
+
if (sf->argVal(1) != TQString( "%1" ).arg( longitude.Degrees()))
setUnsavedChanges( true );
@@ -2865,7 +2865,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLong()
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIGeoLocation" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetGeoLocationDeviceLat()
@@ -2883,14 +2883,14 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLat()
bool ok(false);
dms latitude = argSetGeoLocationINDI->latBox->createDms(true, &ok);
if ( ok ) {
-
+
if (sf->argVal(2) != TQString( "%1" ).arg( latitude.Degrees()))
setUnsavedChanges( true );
sf->setArg( 2, TQString( "%1" ).arg( latitude.Degrees() ) );
if ( ( ! sf->argVal(0).isEmpty() ) && ( ! sf->argVal(1).isEmpty() )) sf->setValid( true );
else sf->setValid(false);
-
+
} else {
sf->setArg( 2, "" );
sf->setValid( false );
@@ -2898,7 +2898,7 @@ void ScriptBuilder::slotINDISetGeoLocationDeviceLat()
} else {
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIGeoLocation" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDIStartExposureDeviceName()
@@ -2912,10 +2912,10 @@ void ScriptBuilder::slotINDIStartExposureDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argStartExposureINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argStartExposureINDI->deviceName->text());
sf->setArg(1, TQString("%1").arg(argStartExposureINDI->timeOut->value()));
sf->setValid(true);
@@ -2924,7 +2924,7 @@ void ScriptBuilder::slotINDIStartExposureDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDIExposure") << endl;
}
-
+
}
void ScriptBuilder::slotINDIStartExposureTimeout()
@@ -2933,10 +2933,10 @@ void ScriptBuilder::slotINDIStartExposureTimeout()
if ( sf->name() == "startINDIExposure" )
{
-
+
if (sf->argVal(1).toInt() != argStartExposureINDI->timeOut->value())
setUnsavedChanges( true );
-
+
sf->setArg(1, TQString("%1").arg(argStartExposureINDI->timeOut->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -2945,12 +2945,12 @@ void ScriptBuilder::slotINDIStartExposureTimeout()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "startINDIExposure") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetUTCDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDIUTC" )
@@ -2960,10 +2960,10 @@ void ScriptBuilder::slotINDISetUTCDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetUTCINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetUTCINDI->deviceName->text());
if (! sf->argVal(1).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -2972,8 +2972,8 @@ void ScriptBuilder::slotINDISetUTCDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIUTC" ) << endl;
}
-
-
+
+
}
void ScriptBuilder::slotINDISetUTC()
@@ -2982,16 +2982,16 @@ void ScriptBuilder::slotINDISetUTC()
if ( sf->name() == "setINDIUTC" )
{
-
+
if (argSetUTCINDI->UTC->text().isEmpty())
{
sf->setValid(false);
return;
}
-
+
if (sf->argVal(1) != argSetUTCINDI->UTC->text())
setUnsavedChanges( true );
-
+
sf->setArg(1, argSetUTCINDI->UTC->text());
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -3000,12 +3000,12 @@ void ScriptBuilder::slotINDISetUTC()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIUTC" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetScopeActionDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDIScopeAction" )
@@ -3015,10 +3015,10 @@ void ScriptBuilder::slotINDISetScopeActionDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetScopeActionINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetScopeActionINDI->deviceName->text());
sf->setArg(1, argSetScopeActionINDI->actionCombo->currentText());
sf->setINDIProperty("CHECK");
@@ -3028,7 +3028,7 @@ void ScriptBuilder::slotINDISetScopeActionDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIScopeAction" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetScopeAction()
@@ -3037,10 +3037,10 @@ void ScriptBuilder::slotINDISetScopeAction()
if ( sf->name() == "setINDIScopeAction" )
{
-
+
if (sf->argVal(1) != argSetScopeActionINDI->actionCombo->currentText())
setUnsavedChanges( true );
-
+
sf->setArg(1, argSetScopeActionINDI->actionCombo->currentText());
sf->setINDIProperty("CHECK");
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
@@ -3050,12 +3050,12 @@ void ScriptBuilder::slotINDISetScopeAction()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIScopeAction") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFrameTypeDeviceName()
{
-
+
ScriptFunction *sf = ScriptList.at( sb->ScriptListBox->currentItem() );
if ( sf->name() == "setINDIFrameType" )
@@ -3065,10 +3065,10 @@ void ScriptBuilder::slotINDISetFrameTypeDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetFrameTypeINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetFrameTypeINDI->deviceName->text());
sf->setArg(1, argSetFrameTypeINDI->typeCombo->currentText());
sf->setValid(true);
@@ -3077,7 +3077,7 @@ void ScriptBuilder::slotINDISetFrameTypeDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFrameType" ) << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFrameType()
@@ -3086,10 +3086,10 @@ void ScriptBuilder::slotINDISetFrameType()
if ( sf->name() == "setINDIFrameType" )
{
-
+
if (sf->argVal(1) != argSetFrameTypeINDI->typeCombo->currentText())
setUnsavedChanges( true );
-
+
sf->setArg(1, argSetFrameTypeINDI->typeCombo->currentText());
if ((! sf->argVal(0).isEmpty())) sf->setValid(true);
else sf->setValid(false);
@@ -3098,7 +3098,7 @@ void ScriptBuilder::slotINDISetFrameType()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDIFrameType") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetCCDTempDeviceName()
@@ -3112,10 +3112,10 @@ void ScriptBuilder::slotINDISetCCDTempDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetCCDTempINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetCCDTempINDI->deviceName->text());
sf->setArg(1, TQString("%1").arg(argSetCCDTempINDI->temp->value()));
sf->setValid(true);
@@ -3124,7 +3124,7 @@ void ScriptBuilder::slotINDISetCCDTempDeviceName()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDICCDTemp") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetCCDTemp()
@@ -3133,10 +3133,10 @@ void ScriptBuilder::slotINDISetCCDTemp()
if ( sf->name() == "setINDICCDTemp" )
{
-
+
if (sf->argVal(1).toInt() != argSetCCDTempINDI->temp->value())
setUnsavedChanges( true );
-
+
sf->setArg(1, TQString("%1").arg(argSetCCDTempINDI->temp->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -3145,7 +3145,7 @@ void ScriptBuilder::slotINDISetCCDTemp()
{
kdWarning() << i18n( "Mismatch between function and Arg widget (expected %1.)" ).arg( "setINDICCDTemp") << endl;
}
-
+
}
void ScriptBuilder::slotINDISetFilterNumDeviceName()
@@ -3160,10 +3160,10 @@ void ScriptBuilder::slotINDISetFilterNumDeviceName()
sf->setValid(false);
return;
}
-
+
if (sf->argVal(0) != argSetFilterNumINDI->deviceName->text())
setUnsavedChanges( true );
-
+
sf->setArg(0, argSetFilterNumINDI->deviceName->text());
sf->setArg(1, TQString("%1").arg(argSetFilterNumINDI->filter_num->value()));
sf->setValid(true);
@@ -3181,10 +3181,10 @@ void ScriptBuilder::slotINDISetFilterNum()
if ( sf->name() == "setINDIFilterNum" )
{
-
+
if (sf->argVal(1).toInt() != argSetFilterNumINDI->filter_num->value())
setUnsavedChanges( true );
-
+
sf->setArg(1, TQString("%1").arg(argSetFilterNumINDI->filter_num->value()));
if (! sf->argVal(0).isEmpty()) sf->setValid(true);
else sf->setValid(false);
@@ -3196,5 +3196,5 @@ void ScriptBuilder::slotINDISetFilterNum()
}
-
+
#include "scriptbuilder.moc"