diff options
Diffstat (limited to 'kstars/kstars/devicemanager.cpp')
-rw-r--r-- | kstars/kstars/devicemanager.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kstars/kstars/devicemanager.cpp b/kstars/kstars/devicemanager.cpp index 0f95455c..705ddfe0 100644 --- a/kstars/kstars/devicemanager.cpp +++ b/kstars/kstars/devicemanager.cpp @@ -42,14 +42,14 @@ ** This allow KStars to control multiple devices distributed acorss ** multiple servers seemingly in a way that is completely transparent ** to devices and drivers alike. -** The device Manager can be thought of as the 'networking' parent -** of devices, while indimenu is 'GUI' parent of devices +** The device Manager can be thought of as the 'networking' tqparent +** of devices, while indimenu is 'GUI' tqparent of devices *******************************************************************/ -DeviceManager::DeviceManager(INDIMenu *INDIparent, int inID) +DeviceManager::DeviceManager(INDIMenu *INDItqparent, int inID) { - parent = INDIparent; + tqparent = INDItqparent; mgrID = inID; indi_dev.setAutoDelete(true); @@ -87,7 +87,7 @@ bool DeviceManager::indiConnect(TQString inHost, TQString inPort) TQString errMsg; struct sockaddr_in pin; struct hostent *serverHostName = gethostbyname(host.ascii()); - errMsg = TQString("Connection to INDI host at %1 on port %2 failed.").arg(host).arg(port); + errMsg = TQString("Connection to INDI host at %1 on port %2 failed.").tqarg(host).tqarg(port); memset(&pin, 0, sizeof(pin)); pin.sin_family = AF_INET; @@ -154,8 +154,8 @@ void DeviceManager::dataReceived() tcflush(serverFD, TCIFLUSH); sNotifier->disconnect(); close(serverFD); - parent->removeDeviceMgr(mgrID); - KMessageBox::error(0, TQString::fromLatin1(errmsg)); + tqparent->removeDeviceMgr(mgrID); + KMessageBox::error(0, TQString::tqfromLatin1(errmsg)); return; } @@ -309,17 +309,17 @@ INDI_D * DeviceManager::addDevice (XMLEle *dep, char errmsg[]) if (!ap) return NULL; - if (parent->currentLabel.isEmpty()) - parent->setCustomLabel(valuXMLAtt(ap)); + if (tqparent->currentLabel.isEmpty()) + tqparent->setCustomLabel(valuXMLAtt(ap)); - dp = new INDI_D(parent, this, TQString(valuXMLAtt(ap)), parent->currentLabel); + dp = new INDI_D(tqparent, this, TQString(valuXMLAtt(ap)), tqparent->currentLabel); indi_dev.append(dp); emit newDevice(); // Reset label - parent->currentLabel = ""; + tqparent->currentLabel = ""; /* ok */ return dp; @@ -397,7 +397,7 @@ void DeviceManager::doMsg (XMLEle *msg, INDI_D *dp) if (timestamp) txt_w->insert(TQString(valuXMLAtt(timestamp)) + TQString(" ")); else - txt_w->insert( KStarsDateTime::currentDateTime().toString("yyyy/mm/dd - h:m:s ap ")); + txt_w->insert( KStarsDateTime::tqcurrentDateTime().toString("yyyy/mm/dd - h:m:s ap ")); /* finally! the msg */ message = findXMLAtt(msg, "message"); @@ -405,7 +405,7 @@ void DeviceManager::doMsg (XMLEle *msg, INDI_D *dp) txt_w->insert( TQString(valuXMLAtt(message)) + TQString("\n")); if ( Options::indiMessages() ) - parent->ksw->statusBar()->changeItem( TQString(valuXMLAtt(message)), 0); + tqparent->ksw->statusBar()->changeItem( TQString(valuXMLAtt(message)), 0); } |