summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indidriver.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
commit6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (patch)
treecc90a09df2d1fd6d956cc084529a62d354316ad3 /kstars/kstars/indidriver.cpp
parent174fd5e23c68598774706ea9b571d3d178e36b81 (diff)
downloadtdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.tar.gz
tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kstars/kstars/indidriver.cpp')
-rw-r--r--kstars/kstars/indidriver.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kstars/kstars/indidriver.cpp b/kstars/kstars/indidriver.cpp
index 5814989b..ed46f81c 100644
--- a/kstars/kstars/indidriver.cpp
+++ b/kstars/kstars/indidriver.cpp
@@ -29,7 +29,7 @@
#include <tqvaluelist.h>
#include <tqcstring.h>
#include <tqradiobutton.h>
-#include <tqtextedit.h>
+#include <textedit.h>
#include <kiconloader.h>
#include <klistview.h>
@@ -102,11 +102,11 @@ INDIDriver::INDIDriver(TQWidget *parent) : devManager( parent )
TQObject::connect(clientListView, TQT_SIGNAL(rightButtonPressed ( TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT(ClientprocessRightButton( TQListViewItem *, const TQPoint &, int )));
-TQObject::connect(ClientpopMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(processHosttqStatus(int)));
+TQObject::connect(ClientpopMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(processHostStatus(int)));
TQObject::connect(localListView, TQT_SIGNAL(rightButtonPressed ( TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT(LocalprocessRightButton( TQListViewItem *, const TQPoint &, int )));
-TQObject::connect(LocalpopMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(processDevicetqStatus(int)));
+TQObject::connect(LocalpopMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(processDeviceStatus(int)));
TQObject::connect(ksw->getINDIMenu(), TQT_SIGNAL(driverDisconnected(int)), this, TQT_SLOT(shutdownHost(int)));
@@ -183,22 +183,22 @@ void INDIDriver::LocalprocessRightButton( TQListViewItem *item, const TQPoint &p
void INDIDriver::activateRunService()
{
- processDevicetqStatus(0);
+ processDeviceStatus(0);
}
void INDIDriver::activateStopService()
{
- processDevicetqStatus(1);
+ processDeviceStatus(1);
}
void INDIDriver::activateHostConnection()
{
- processHosttqStatus(0);
+ processHostStatus(0);
}
void INDIDriver::activateHostDisconnection()
{
- processHosttqStatus(1);
+ processHostStatus(1);
}
void INDIDriver::updateLocalButtons()
@@ -244,7 +244,7 @@ for (uint i=0; i < ksw->data()->INDIHostsList.count(); i++)
}
-void INDIDriver::processDevicetqStatus(int id)
+void INDIDriver::processDeviceStatus(int id)
{
if (localListView->selectedItem() == NULL)
return;
@@ -280,7 +280,7 @@ void INDIDriver::processDevicetqStatus(int id)
}
localListView->selectedItem()->setPixmap(1, runningPix);
- localListView->selectedItem()->setText(4, TQString("%1").tqarg(devices[i]->indiPort));
+ localListView->selectedItem()->setText(4, TQString("%1").arg(devices[i]->indiPort));
runServiceB->setEnabled(false);
stopServiceB->setEnabled(true);
@@ -301,7 +301,7 @@ void INDIDriver::processDevicetqStatus(int id)
}
}
-void INDIDriver::processHosttqStatus(int id)
+void INDIDriver::processHostStatus(int id)
{
int mgrID;
bool toConnect = (id == 0);
@@ -405,7 +405,7 @@ bool INDIDriver::runDevice(IDevice *dev)
dev->proc = new KProcess;
*dev->proc << "indiserver";
- *dev->proc << "-v" << "-r" << "0" << "-p" << TQString("%1").tqarg(dev->indiPort) << dev->driver;
+ *dev->proc << "-v" << "-r" << "0" << "-p" << TQString("%1").arg(dev->indiPort) << dev->driver;
// Check Mode
dev->mode = localR->isChecked() ? IDevice::M_LOCAL : IDevice::M_SERVER;
@@ -471,7 +471,7 @@ void INDIDriver::saveDevicesToDisk()
{
if (devices[i]->deviceType == KSTARS_TELESCOPE)
{
- outstream << TQString("<device label='%1' focal_length='%2' aperture='%3'>").tqarg(devices[i]->label).tqarg(devices[i]->focal_length > 0 ? devices[i]->focal_length : -1).tqarg(devices[i]->aperture > 0 ? devices[i]->aperture : -1) << endl;
+ outstream << TQString("<device label='%1' focal_length='%2' aperture='%3'>").arg(devices[i]->label).arg(devices[i]->focal_length > 0 ? devices[i]->focal_length : -1).arg(devices[i]->aperture > 0 ? devices[i]->aperture : -1) << endl;
outstream << " <driver>" << devices[i]->driver << "</driver>" << endl;
outstream << " <version>" << devices[i]->version << "</version>" << endl;
@@ -486,7 +486,7 @@ void INDIDriver::saveDevicesToDisk()
{
if (devices[i]->deviceType == KSTARS_CCD)
{
- outstream << TQString("<device label='%1'>").tqarg(devices[i]->label) << endl;
+ outstream << TQString("<device label='%1'>").arg(devices[i]->label) << endl;
outstream << " <driver>" << devices[i]->driver << "</driver>" << endl;
outstream << " <version>" << devices[i]->version << "</version>" << endl;
outstream << "</device>" << endl;
@@ -500,7 +500,7 @@ void INDIDriver::saveDevicesToDisk()
{
if (devices[i]->deviceType == KSTARS_FILTER)
{
- outstream << TQString("<device label='%1'>").tqarg(devices[i]->label) << endl;
+ outstream << TQString("<device label='%1'>").arg(devices[i]->label) << endl;
outstream << " <driver>" << devices[i]->driver << "</driver>" << endl;
outstream << " <version>" << devices[i]->version << "</version>" << endl;
outstream << "</device>" << endl;
@@ -514,7 +514,7 @@ void INDIDriver::saveDevicesToDisk()
{
if (devices[i]->deviceType == KSTARS_VIDEO)
{
- outstream << TQString("<device label='%1'>").tqarg(devices[i]->label) << endl;
+ outstream << TQString("<device label='%1'>").arg(devices[i]->label) << endl;
outstream << " <driver>" << devices[i]->driver << "</driver>" << endl;
outstream << " <version>" << devices[i]->version << "</version>" << endl;
outstream << "</device>" << endl;
@@ -781,7 +781,7 @@ void INDIDriver::addINDIHost()
if (hostItem->name == ksw->data()->INDIHostsList.at(i)->name &&
hostItem->portnumber == ksw->data()->INDIHostsList.at(i)->portnumber)
{
- KMessageBox::error(0, i18n("Host: %1 Port: %2 already exists.").tqarg(hostItem->name).tqarg(hostItem->portnumber));
+ KMessageBox::error(0, i18n("Host: %1 Port: %2 already exists.").arg(hostItem->name).arg(hostItem->portnumber));
return;
}
@@ -853,7 +853,7 @@ void INDIDriver::removeINDIHost()
return;
}
- if (KMessageBox::warningContinueCancel( 0, i18n("Are you sure you want to remove the %1 client?").tqarg(clientListView->currentItem()->text(1)), i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
+ if (KMessageBox::warningContinueCancel( 0, i18n("Are you sure you want to remove the %1 client?").arg(clientListView->currentItem()->text(1)), i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
return;
ksw->data()->INDIHostsList.remove(i);