diff options
Diffstat (limited to 'libk9copy/k9dvdauthor.cpp')
-rwxr-xr-x | libk9copy/k9dvdauthor.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/libk9copy/k9dvdauthor.cpp b/libk9copy/k9dvdauthor.cpp index 5896075..b35f063 100755 --- a/libk9copy/k9dvdauthor.cpp +++ b/libk9copy/k9dvdauthor.cpp @@ -145,7 +145,7 @@ void k9DVDAuthor::addMenus(TQDomElement &titleSet) { error=true; TQString sMsg; //sMsg.TQString::sprintf(tr2i18n("'%s' not selected"),l_track->getname().latin1()); - sMsg=i18n("'%1' not selected").arg(l_track->getname()); + sMsg=i18n("'%1' not selected").tqarg(l_track->getname()); KMessageBox::error( 0,sMsg, tr2i18n("authoring")); } start.sprintf("jump titleset %d menu;",DVD->getnewTitleNum(l_track)); @@ -222,10 +222,10 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { TQString txtcmd; if (audio !=-1) { txtcmd="subtitle=%1;\n audio=%2;\n g1=0;jump title 1;"; - txtcmd=txtcmd.arg(subtitle+63).arg(audio); + txtcmd=txtcmd.tqarg(subtitle+63).tqarg(audio); } else { txtcmd="subtitle=%1;\n g1=0;jump title 1;"; - txtcmd=txtcmd.arg(subtitle+63); + txtcmd=txtcmd.tqarg(subtitle+63); } precmd.setNodeValue(txtcmd); @@ -339,23 +339,23 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { for (k9ChapterCell *cell =l_chap->cells.first();cell ;cell =l_chap->cells.next() ) { icell++; - sCell = TQString("--cell %1").arg(icell); - sChapter=TQString("--chapter %1").arg(numPart); + sCell = TQString("--cell %1").tqarg(icell); + sChapter=TQString("--chapter %1").tqarg(numPart); //test uint32_t itotSize = (cell->getlastSector()-cell->getstartSector())* DVD_VIDEO_LB_LEN; TQString file; e=xml->createElement("vob"); file=TQString("k9copy --play --input %1 --dvdtitle %2 %3 %4 %5 %6 --vampsfactor %7 --inputsize %8 --chaptersize %9 ") - .arg(DVD->getDevice()) - .arg(title->getnumTitle()) - .arg(sChapter) - .arg(sCell) - .arg(caud) - .arg(csub) - .arg(titleFactor,0,'f',2) - .arg(itotSize,0,'f',0) - .arg(chapterSize,0,'f',0); + .tqarg(DVD->getDevice()) + .tqarg(title->getnumTitle()) + .tqarg(sChapter) + .tqarg(sCell) + .tqarg(caud) + .tqarg(csub) + .tqarg(titleFactor,0,'f',2) + .tqarg(itotSize,0,'f',0) + .tqarg(chapterSize,0,'f',0); if (m_firsttitle) { file +=" --initstatus "; m_firsttitle=false; @@ -364,9 +364,9 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { file +=" --ffactor "; } file +=TQString(" --inject %1 --totalsize %2 --dvdsize %3 |") - .arg(inject) - .arg(m_totalSize -m_forced ,0,'f',0) - .arg(((uint64_t)k9DVDSize::getMaxSize() *1024 *1024) - m_forcedsh,0,'f',0); + .tqarg(inject) + .tqarg(m_totalSize -m_forced ,0,'f',0) + .tqarg(((uint64_t)k9DVDSize::getMaxSize() *1024 *1024) - m_forcedsh,0,'f',0); e.setAttribute("file",file); if (first) @@ -387,7 +387,7 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { c.sprintf("g1=%d;\ncall vmgm menu;",DVD->getnewTitleNum(l_next)); if( DVD->getnewTitleNum(l_next)==-1) { error=true; - c=i18n("'%1' not selected").arg(l_next->getname()); + c=i18n("'%1' not selected").tqarg(l_next->getname()); KMessageBox::error( 0, c, tr2i18n("authoring")); } @@ -411,7 +411,7 @@ void k9DVDAuthor::setworkDir( const TQString& _newVal) { void k9DVDAuthor::author() { if ( ! k9Tools::checkProgram("dvdauthor")) { - KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").arg("dvdauthor") , i18n("authoring")); + KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").tqarg("dvdauthor") , i18n("authoring")); error = TRUE; return; } @@ -491,7 +491,7 @@ void k9DVDAuthor::author() { void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { //TQString m_stderr(proc->readStderr()); - TQString m_stderr=TQString::fromLatin1(buffer, buflen); + TQString m_stderr=TQString::tqfromLatin1(buffer, buflen); float m_percent; TQString m_remain; @@ -505,7 +505,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { // m_copied+=totalBytes - m_lastPos; m_copied=totalBytes; m_lastPos=totalBytes; - //qDebug(TQString("copied : %1 totalSize : %2").arg(m_copied).arg(m_totalSize*512)); + //qDebug(TQString("copied : %1 totalSize : %2").tqarg(m_copied).tqarg(m_totalSize*512)); m_percent=(float)m_copied / (float)(m_totalSize/DVD_VIDEO_LB_LEN ); @@ -558,7 +558,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { } void k9DVDAuthor::DVDAuthorStdout(KProcess *proc, char *buffer, int buflen) { - TQString c=TQString::fromLatin1( buffer,buflen); + TQString c=TQString::tqfromLatin1( buffer,buflen); //(proc->readStdout()); int pos; pos=c.find("STAT"); |