diff options
Diffstat (limited to 'libk9copy')
-rw-r--r-- | libk9copy/k9burndvd.cpp | 16 | ||||
-rw-r--r-- | libk9copy/k9cellcopylist.cpp | 2 | ||||
-rwxr-xr-x | libk9copy/k9dvd.cpp | 6 | ||||
-rwxr-xr-x | libk9copy/k9dvdauthor.cpp | 12 | ||||
-rw-r--r-- | libk9copy/k9mp4enc.cpp | 26 |
5 files changed, 31 insertions, 31 deletions
diff --git a/libk9copy/k9burndvd.cpp b/libk9copy/k9burndvd.cpp index 72be072..b9114de 100644 --- a/libk9copy/k9burndvd.cpp +++ b/libk9copy/k9burndvd.cpp @@ -69,7 +69,7 @@ void k9BurnDVD::makeIso(TQString _filename) { } void k9BurnDVD::setvolId(TQString _newVal) { - volId=_newVal.tqreplace(" ","_"); + volId=_newVal.replace(" ","_"); } void k9BurnDVD::setUseK3b(bool _newVal) { @@ -102,13 +102,13 @@ void k9BurnDVD::burnWithK3b() { void k9BurnDVD::mkisoSizeStderr(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1( buffer,buflen);// (proc2->readStderr()); - imageSize=c.tqreplace("\n",""); + imageSize=c.replace("\n",""); ; } void k9BurnDVD::mkisoSizeStdout(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1(buffer,buflen);// (proc2->readStdout()); - imageSize=c.tqreplace("\n",""); + imageSize=c.replace("\n",""); ; } @@ -336,19 +336,19 @@ void k9BurnDVD::growisoStderr(KProcess *proc, char *buffer, int buflen) { int a,b; int pos; lastMsg=c; - if (c.tqcontains("Current Write Speed")) { + if (c.contains("Current Write Speed")) { sscanf(c.latin1(),"%s \"Current Write Speed\" is %d.%d",s,&a,&b); burnSpeed=a+b/10; } - if (c.tqcontains("Speed set to")) { + if (c.contains("Speed set to")) { sscanf(c.latin1(),"Speed set to %d",&a); burnSpeed=a/1385; } progress->setTitle(i18n("Burning DVD")); progress->setLabelText(i18n("Current write speed :%1 x").tqarg(burnSpeed)); - if (c.tqcontains("% done")) { - pos=c.tqfind("%"); + if (c.contains("% done")) { + pos=c.find("%"); if (pos!=-1) { c=c.mid(1,pos-4); //progress->setLabelText(c); @@ -373,7 +373,7 @@ void k9BurnDVD::growisoStderr(KProcess *proc, char *buffer, int buflen) { void k9BurnDVD::growisoStdout(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1( buffer,buflen);// (proc->readStdout()); int pos; - pos=c.tqfind("STAT"); + pos=c.find("STAT"); if (pos!=-1) { c=c.mid(pos); progress->setLabelText(c); diff --git a/libk9copy/k9cellcopylist.cpp b/libk9copy/k9cellcopylist.cpp index 2297359..736407f 100644 --- a/libk9copy/k9cellcopylist.cpp +++ b/libk9copy/k9cellcopylist.cpp @@ -185,7 +185,7 @@ void k9CellCopyList::addStreams(k9DVDTitle *_title,k9Cell *_cell) { TQValueList<int>::iterator it; bool found=false; for ( it = _cell->subpicture.begin(); it != _cell->subpicture.end(); ++it ) { - if (l_sub->getID().tqcontains(*it)) + if (l_sub->getID().contains(*it)) found=true; } if (!found) diff --git a/libk9copy/k9dvd.cpp b/libk9copy/k9dvd.cpp index 37a18ac..ded75c9 100755 --- a/libk9copy/k9dvd.cpp +++ b/libk9copy/k9dvd.cpp @@ -600,10 +600,10 @@ int k9DVD::scandvd (const TQString & device,bool _quickScan) { subpc=(pgc->subp_control[i]>>16) & 0x1F; l_sub->id.append(1+ subpc); subpc=(pgc->subp_control[i]>>8) & 0x1F; - if (! l_sub->id.tqcontains(1+ subpc) && ! l_track->DF.tqcontains("noletterbox")) + if (! l_sub->id.contains(1+ subpc) && ! l_track->DF.contains("noletterbox")) l_sub->id.append(1+ subpc); subpc=pgc->subp_control[i] & 0x1F; - if (! l_sub->id.tqcontains(1+ subpc) && ! l_track->DF.tqcontains("nopanscan")) + if (! l_sub->id.contains(1+ subpc) && ! l_track->DF.contains("nopanscan")) l_sub->id.append(1+ subpc); } kdDebug() << "VTS: " << l_track->VTS << " TTN: " << l_track->TTN << \ @@ -811,7 +811,7 @@ void k9DVD::calcStreamSize(k9DVDTitle & track) { break; int id=streamList[x].id; if ( (id >=0x20) && (id <=0x3f)) { - if ( l_sub->id.tqcontains(id - 0x20 +1) ) { + if ( l_sub->id.contains(id - 0x20 +1) ) { l_sub->size_mb = streamList[x].size_mb; break; } diff --git a/libk9copy/k9dvdauthor.cpp b/libk9copy/k9dvdauthor.cpp index 51aa324..b35f063 100755 --- a/libk9copy/k9dvdauthor.cpp +++ b/libk9copy/k9dvdauthor.cpp @@ -495,7 +495,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { float m_percent; TQString m_remain; - int pos=m_stderr.tqfind("INFOPOS:"); + int pos=m_stderr.find("INFOPOS:"); if (pos!=-1) { progress->setTitle(i18n("Authoring")); TQString tmp=m_stderr.mid(pos); @@ -532,12 +532,12 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { int end; lastMsg=m_stderr; - if (m_stderr.tqcontains("STAT:")) { - pos=m_stderr.tqfind("fixing VOBU"); + if (m_stderr.contains("STAT:")) { + pos=m_stderr.find("fixing VOBU"); if (pos!=-1) { progress->setTitle(i18n("Authoring")); progress->setLabelText(i18n("Fixing VOBUS")); - end=m_stderr.tqfind("%"); + end=m_stderr.find("%"); if (end!=-1) { pos =end -2; m_stderr=m_stderr.mid(pos,end-pos); @@ -548,7 +548,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { } } - pos=m_stderr.tqfind("INFOIMAGE:"); + pos=m_stderr.find("INFOIMAGE:"); if (pos!=-1) { progress->setImage(m_stderr.mid(pos+10)); } @@ -561,7 +561,7 @@ void k9DVDAuthor::DVDAuthorStdout(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1( buffer,buflen); //(proc->readStdout()); int pos; - pos=c.tqfind("STAT"); + pos=c.find("STAT"); if (pos!=-1) { c=c.mid(pos); progress->setLabelText(c); diff --git a/libk9copy/k9mp4enc.cpp b/libk9copy/k9mp4enc.cpp index 5d8c51c..dd23076 100644 --- a/libk9copy/k9mp4enc.cpp +++ b/libk9copy/k9mp4enc.cpp @@ -310,7 +310,7 @@ void k9MP4Enc::execute ( k9DVDTitle *_title ) sVOption=sVOption.simplifyWhiteSpace(); int pos; //*m_process << "-ovc" << sVOption; - /* int pos=sVOption.tqfind("-vf"); + /* int pos=sVOption.find("-vf"); if (pos==-1) *m_process <<"-vf" << TQString("scale=%1:%2").tqarg(m_width).tqarg(m_height); else @@ -341,7 +341,7 @@ void k9MP4Enc::execute ( k9DVDTitle *_title ) if ( _title->getaudioStream ( i )->getselected() ) { //*m_process << "-oac" << sAOption; - pos=sAOption.tqfind ( "-af" ); + pos=sAOption.find ( "-af" ); if ( pos==-1 ) *m_process << TQString ( "-af volume=%1" ).arg ( m_audioGain ); else @@ -439,11 +439,11 @@ void k9MP4Enc::slotCancel() TQString k9MP4Enc::replaceParams ( TQString _value ) { TQString str=_value; - str.tqreplace ( "$PASS",TQString::number ( m_pass ) ); - str.tqreplace ( "$WIDTH",m_width ); - str.tqreplace ( "$HEIGHT",m_height ); - str.tqreplace ( "$VIDBR",TQString::number ( getBitRate ( m_title ) ) ); - str.tqreplace ( "$AUDBR",m_audioBitrate ); + str.replace ( "$PASS",TQString::number ( m_pass ) ); + str.replace ( "$WIDTH",m_width ); + str.replace ( "$HEIGHT",m_height ); + str.replace ( "$VIDBR",TQString::number ( getBitRate ( m_title ) ) ); + str.replace ( "$AUDBR",m_audioBitrate ); return str; } @@ -483,7 +483,7 @@ void k9MP4Enc::getStdout ( KProcess *, char *buffer, int buflen ) if ( m_cpt!=0 ) return; - int pos=tmp.tqfind ( "Pos:" ); + int pos=tmp.find ( "Pos:" ); if ( pos!=-1 ) { TQString tmp2=tmp.mid ( pos ); @@ -491,8 +491,8 @@ void k9MP4Enc::getStdout ( KProcess *, char *buffer, int buflen ) int frame; int fps; sscanf ( tmp2.latin1(),"Pos: %f%*s%d",&t,&frame ); - tmp2=tmp2.mid ( tmp2.tqfind ( "(" ) +1 ); - tmp2=tmp2.mid ( tmp2.tqfind ( ")" ) +1 ); + tmp2=tmp2.mid ( tmp2.find ( "(" ) +1 ); + tmp2=tmp2.mid ( tmp2.find ( ")" ) +1 ); sscanf ( tmp2.latin1(),"%d",&fps ); m_progress->setfps ( TQString::number ( fps ) ); @@ -506,12 +506,12 @@ void k9MP4Enc::getStderr ( KProcess *proc, char *buffer, int buflen ) //m_stderr=TQString::tqfromLatin1(buffer,buflen); TQCString cstderr ( buffer,buflen+1 ); - if ( cstderr.tqfind ( "FATAL:" ) !=-1 ) + if ( cstderr.find ( "FATAL:" ) !=-1 ) { proc->kill(); } - int pos=cstderr.tqfind ( "INFOPOS:" ); + int pos=cstderr.find ( "INFOPOS:" ); if ( pos!=-1 ) { if ( m_timer3.elapsed() >500 ) @@ -540,7 +540,7 @@ void k9MP4Enc::getStderr ( KProcess *proc, char *buffer, int buflen ) } else { - pos=cstderr.tqfind ( "INFOIMAGE:" ); + pos=cstderr.find ( "INFOIMAGE:" ); if ( pos!=-1 ) { m_progress->setImage ( cstderr.mid ( pos+10 ) ); |