diff options
Diffstat (limited to 'kstars/kstars/indiproperty.cpp')
-rw-r--r-- | kstars/kstars/indiproperty.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kstars/kstars/indiproperty.cpp b/kstars/kstars/indiproperty.cpp index 058e154c..e47a83e6 100644 --- a/kstars/kstars/indiproperty.cpp +++ b/kstars/kstars/indiproperty.cpp @@ -49,17 +49,17 @@ /******************************************************************* ** INDI Property: contains widgets, labels, and their status *******************************************************************/ -INDI_P::INDI_P(INDI_G *parentGroup, TQString inName) +INDI_P::INDI_P(INDI_G *tqparentGroup, TQString inName) { name = inName; - pg = parentGroup; + pg = tqparentGroup; el.setAutoDelete(true); stdID = -1; - indistd = new INDIStdProperty(this, pg->dp->parent->ksw, pg->dp->stdDev); + indistd = new INDIStdProperty(this, pg->dp->tqparent->ksw, pg->dp->stdDev); PHBox = new TQHBoxLayout(0, 0, KDialogBase::spacingHint()); PVBox = new TQVBoxLayout(0, 0, KDialogBase::spacingHint()); @@ -120,21 +120,21 @@ void INDI_P::drawLt(PState lstate) switch (lstate) { case PS_IDLE: - light->setColor(Qt::gray); + light->setColor(TQt::gray); break; case PS_OK: - light->setColor(Qt::green); + light->setColor(TQt::green); emit okState(); disconnect( this, TQT_SIGNAL(okState()), 0, 0 ); break; case PS_BUSY: - light->setColor(Qt::yellow); + light->setColor(TQt::yellow); break; case PS_ALERT: - light->setColor(Qt::red); + light->setColor(TQt::red); break; default: @@ -178,7 +178,7 @@ void INDI_P::newText() f_scansexa(lp->text.ascii(), &(lp->targetValue)); if ((lp->targetValue > lp->max || lp->targetValue < lp->min)) { - KMessageBox::error(0, i18n("Invalid range for element %1. Valid range is from %2 to %3").arg(lp->label).arg(lp->min).arg(lp->max)); + KMessageBox::error(0, i18n("Invalid range for element %1. Valid range is from %2 to %3").tqarg(lp->label).tqarg(lp->min).tqarg(lp->max)); return; } } @@ -193,9 +193,9 @@ void INDI_P::newText() indistd->newText(); if (guitype == PG_TEXT) - pg->dp->parentMgr->sendNewText(this); + pg->dp->tqparentMgr->sendNewText(this); else if (guitype == PG_NUMERIC) - pg->dp->parentMgr->sendNewNumber(this); + pg->dp->tqparentMgr->sendNewNumber(this); } @@ -209,18 +209,18 @@ void INDI_P::convertSwitch(int id) if (assosiatedPopup == NULL) return; - mLabel = assosiatedPopup->text(id).replace("&", ""); + mLabel = assosiatedPopup->text(id).tqreplace("&", ""); //kdDebug() << "Name: " << name << " ID: " << id << endl; /* Special case is CCD_EXPOSE_DURATION, not a switch */ - if (stdID == CCD_EXPOSE_DURATION && mLabel.find(label) != -1) + if (stdID == CCD_EXPOSE_DURATION && mLabel.tqfind(label) != -1) { newText(); return; } /* Another special case, center telescope */ - if (mLabel.find("Crosshair") != -1) + if (mLabel.tqfind("Crosshair") != -1) { if (!indistd->stdDev->dp->isOn()) return; if (indistd->stdDev->telescopeSkyObject == NULL) return; @@ -308,7 +308,7 @@ void INDI_P::newSwitch(int id) if (indistd->newSwitch(id, lp)) return; - pg->dp->parentMgr->sendNewSwitch (this, id); + pg->dp->tqparentMgr->sendNewSwitch (this, id); } @@ -339,12 +339,12 @@ void INDI_P::newBlob() fp.setName(filename); - if ( (pos = filename.findRev(".")) != -1) + if ( (pos = filename.tqfindRev(".")) != -1) format = filename.mid (pos, filename.length()); if (!fp.open(IO_ReadOnly)) { - KMessageBox::error(0, i18n("Cannot open file %1 for reading").arg(filename)); + KMessageBox::error(0, i18n("Cannot open file %1 for reading").tqarg(filename)); valid = false; continue; } @@ -354,7 +354,7 @@ void INDI_P::newBlob() data_file = new char[fp.size()]; if (data_file == NULL) { - KMessageBox::error(0, i18n("Not enough memory to load %1").arg(filename)); + KMessageBox::error(0, i18n("Not enough memory to load %1").tqarg(filename)); fp.close(); valid = false; continue; @@ -366,7 +366,7 @@ void INDI_P::newBlob() data64 = new unsigned char[4*fp.size()/3+4]; if (data64 == NULL) { - KMessageBox::error(0, i18n("Not enough memory to convert file %1 to base64").arg(filename)); + KMessageBox::error(0, i18n("Not enough memory to convert file %1 to base64").tqarg(filename)); fp.close(); valid = false; continue; @@ -379,10 +379,10 @@ void INDI_P::newBlob() if (sending == false) { sending = true; - pg->dp->parentMgr->startBlob (pg->dp->name, name, TQString(timestamp())); + pg->dp->tqparentMgr->startBlob (pg->dp->name, name, TQString(timestamp())); } - pg->dp->parentMgr->sendOneBlob(el.at(i)->name, data64_size, format, data64); + pg->dp->tqparentMgr->sendOneBlob(el.at(i)->name, data64_size, format, data64); fp.close(); delete (data64); @@ -393,7 +393,7 @@ void INDI_P::newBlob() if (!sending && !valid) return; else if (sending) - pg->dp->parentMgr->finishBlob(); + pg->dp->tqparentMgr->finishBlob(); if (valid) state = PS_BUSY; @@ -438,19 +438,19 @@ void INDI_P::addGUI (XMLEle *root) else label_w = new TQLabel(label, pg->propertyContainer); - label_w->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, label_w->sizePolicy().hasHeightForWidth() ) ); + label_w->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, label_w->sizePolicy().hasHeightForWidth() ) ); label_w->setFrameShape( TQLabel::GroupBoxPanel ); label_w->setMinimumWidth(PROPERTY_LABEL_WIDTH); label_w->setMaximumWidth(PROPERTY_LABEL_WIDTH); label_w->setTextFormat( TQLabel::RichText ); - label_w->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignHCenter) ); + label_w->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignHCenter) ); PHBox->addWidget(label_w); light->show(); label_w->show(); - /* #3 Add the Vertical layout thay may contain several elements */ + /* #3 Add theQt::Vertical tqlayout thay may contain several elements */ PHBox->addLayout(PVBox); } @@ -600,7 +600,7 @@ int INDI_P::buildNumberGUI (XMLEle *root, char errmsg[]) void INDI_P::setupSetButton(TQString caption) { set_w = new TQPushButton(caption, pg->propertyContainer); - set_w->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, set_w->sizePolicy().hasHeightForWidth() ) ); + set_w->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, set_w->sizePolicy().hasHeightForWidth() ) ); set_w->setMinimumWidth( MIN_SET_WIDTH ); set_w->setMaximumWidth( MAX_SET_WIDTH ); |