summaryrefslogtreecommitdiffstats
path: root/src/k9main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/k9main.cpp')
-rw-r--r--src/k9main.cpp262
1 files changed, 131 insertions, 131 deletions
diff --git a/src/k9main.cpp b/src/k9main.cpp
index 0daf516..055fe17 100644
--- a/src/k9main.cpp
+++ b/src/k9main.cpp
@@ -35,34 +35,34 @@
#include "k9titleencopt.h"
#include <kselect.h>
#include <kcombobox.h>
-#include <qtextbrowser.h>
-#include <qapplication.h>
-#include <qlistview.h>
+#include <tqtextbrowser.h>
+#include <tqapplication.h>
+#include <tqlistview.h>
#include <kurlrequester.h>
#include <kurl.h>
-#include <qdir.h>
+#include <tqdir.h>
#include <kstandarddirs.h>
-#include <qspinbox.h>
-#include <qstatusbar.h>
+#include <tqspinbox.h>
+#include <tqstatusbar.h>
#include <kpushbutton.h>
#include <kiconloader.h>
-#include <qcheckbox.h>
-#include <qmenubar.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qspinbox.h>
-#include <qpainter.h>
+#include <tqcheckbox.h>
+#include <tqmenubar.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqspinbox.h>
+#include <tqpainter.h>
#include <kdirselectdialog.h>
#include <kio/global.h>
#include <kio/job.h>
#include <kio/netaccess.h>
#include <kdiskfreesp.h>
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kdeversion.h>
-#include <qbitmap.h>
+#include <tqbitmap.h>
-k9DVDListItem::k9DVDListItem(QObject *DVD,ckLvItem *List,eStreamType type)
+k9DVDListItem::k9DVDListItem(TQObject *DVD,ckLvItem *List,eStreamType type)
{
switch(type)
{
@@ -88,13 +88,13 @@ k9DVDListItem::k9DVDListItem(QObject *DVD,ckLvItem *List,eStreamType type)
streamType=type;
}
-k9Main::k9Main(QWidget* parent, const char* name, k9CdDrives *_drives)
- : MainDlg(parent,name),pxVideo((const char **) img_video), pxSound((const char **) img_sound),
+k9Main::k9Main(TQWidget* tqparent, const char* name, k9CdDrives *_drives)
+ : MainDlg(tqparent,name),pxVideo((const char **) img_video), pxSound((const char **) img_sound),
pxText((const char **) img_text)
{
drives=_drives;
- m_parent=(k9Copy*)parent;
- QImage img;
+ m_parent=(k9Copy*)tqparent;
+ TQImage img;
img.loadFromData( img_chapter, sizeof( img_chapter ), "PNG" );
pxChapter.convertFromImage( img);
/* m_factory = KLibLoader::self()->factory("libk9copy");
@@ -103,27 +103,27 @@ k9Main::k9Main(QWidget* parent, const char* name, k9CdDrives *_drives)
}
*/
- dvd=new k9DVD(this);
+ dvd=new k9DVD(TQT_TQOBJECT(this));
updating=false;
items.setAutoDelete(true);
- listView1->setDefaultRenameAction(QListView::Accept);
+ listView1->setDefaultRenameAction(TQListView::Accept);
// KStandardDirs kd;
m_prefOutput=locateLocal("tmp","k9copy/",true); //kd.findResource("tmp","");
- connect(drives,SIGNAL(deviceAdded( k9CdDrive*)),this,SLOT(deviceAdded( k9CdDrive* )));
- connect(drives,SIGNAL(deviceRemoved( k9CdDrive*)),this,SLOT(deviceRemoved( k9CdDrive* )));
+ connect(drives,TQT_SIGNAL(deviceAdded( k9CdDrive*)),this,TQT_SLOT(deviceAdded( k9CdDrive* )));
+ connect(drives,TQT_SIGNAL(deviceRemoved( k9CdDrive*)),this,TQT_SLOT(deviceRemoved( k9CdDrive* )));
readSettings();
bInputOpen->setPixmap(SmallIcon("fileopen"));
bInputOpenDir->setPixmap(SmallIcon("folder_open"));
emit SelectionChanged(NULL,true);
- m_update=new k9UpdateFactor(this,"");
- connect(m_update,SIGNAL(updateFactor_internal()),this,SLOT(updateFactor_internal()));
+ m_update=new k9UpdateFactor(TQT_TQOBJECT(this),"");
+ connect(m_update,TQT_SIGNAL(updateFactor_internal()),this,TQT_SLOT(updateFactor_internal()));
}
-k9DVDListItem *k9Main::addListItem(QObject *DVD,ckLvItem *List,eStreamType type)
+k9DVDListItem *k9Main::addListItem(TQObject *DVD,ckLvItem *List,eStreamType type)
{
k9DVDListItem *litem;
litem=new k9DVDListItem(DVD,List,type);
@@ -142,7 +142,7 @@ int ckLvItem::rtti() const
return(1001);
}
-int ckLvItem::compare ( QListViewItem * i, int col, bool ascending ) const
+int ckLvItem::compare ( TQListViewItem * i, int col, bool ascending ) const
{
if (i->rtti() !=1001)
return 1;
@@ -216,7 +216,7 @@ int ckLvItem::compare ( QListViewItem * i, int col, bool ascending ) const
return k9Main::compare(ch1->getsectors(),ch2->getsectors());
}
}
- return QCheckListItem::compare(i,col,ascending);
+ return TQCheckListItem::compare(i,col,ascending);
}
double ckLvItem::getstreamSize()
@@ -251,7 +251,7 @@ double ckLvItem::getstreamSize()
}
-int LvItem::compare ( QListViewItem * i, int col, bool ascending ) const
+int LvItem::compare ( TQListViewItem * i, int col, bool ascending ) const
{
if(i->rtti()==1001)
return -1;
@@ -270,15 +270,15 @@ int LvItem::compare ( QListViewItem * i, int col, bool ascending ) const
return k9Main::compare(title1->getpgc(),title2->getpgc());
}
- return QListViewItem::compare(i,col,ascending);
+ return TQListViewItem::compare(i,col,ascending);
}
-void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align )
+void ckLvItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align )
{
if (column==1)
{
p->eraseRect(0,0,width,height());
- QFont f(p->font());
+ TQFont f(p->font());
switch (objectType)
{
@@ -287,7 +287,7 @@ void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int
k9DVDTitleset *titleset=(k9DVDTitleset*)obj;
f.setBold(true);
p->setFont(f);
- p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,titleset->getsize_mb()+" " +i18n("MB"));
+ p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,titleset->getsize_mb()+" " +i18n("MB"));
break;
}
case STREAM:
@@ -295,9 +295,9 @@ void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int
if ( ! mainDlg->getquickScan())
{
double size=getstreamSize();
- QString c;
+ TQString c;
c.sprintf("%.2f ",size);
- p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,c+i18n("MB"));
+ p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,c+i18n("MB"));
}
break;
}
@@ -305,32 +305,32 @@ void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int
{
k9DVDChapter *chapter=(k9DVDChapter*) obj;
double size=(double)chapter->getsectors()/512;
- QString c;
+ TQString c;
c.sprintf("%.2f ",size);
- p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,c+i18n("MB"));
+ p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,c+i18n("MB"));
}
break;
default:
- QCheckListItem::paintCell(p,cg,column,width,align);
+ TQCheckListItem::paintCell(p,cg,column,width,align);
}
}
else
- QCheckListItem::paintCell(p,cg,column,width,align);
+ TQCheckListItem::paintCell(p,cg,column,width,align);
}
-void LvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align )
+void LvItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align )
{
if (column==1 && objectType==TITLE)
{
p->eraseRect(0,0,width,height());
k9DVDTitle * title=(k9DVDTitle*)obj;
- QString c;
+ TQString c;
c.sprintf("%.2f ",title->gettotalsize_mb());
- p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,c+i18n("MB"));
+ p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,c+i18n("MB"));
}
else
- QListViewItem::paintCell(p,cg,column,width,align);
+ TQListViewItem::paintCell(p,cg,column,width,align);
}
void ckLvItem::stateChange(bool state)
@@ -367,7 +367,7 @@ bool k9Main::getupdating()
void k9Main::Copy()
{
- QString c,filename;
+ TQString c,filename;
if (!dvd->getopened())
{
KMessageBox::error( this, i18n("DVD is not opened"), i18n("DVD Copy"));
@@ -376,23 +376,23 @@ void k9Main::Copy()
setDVDSize();
updateSelection();
- QString outputDir=m_prefOutput;
+ TQString outputDir=m_prefOutput;
bool burn=false;
if (cbOutputDev->currentItem() ==0)
{
- filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.iso", 0,i18n("Save image to disk"));
+ filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.iso", 0,i18n("Save image to disk"));
if (filename =="")
return;
} else if (cbOutputDev->currentItem()==1) {
- outputDir= KFileDialog::getExistingDirectory(QDir::homeDirPath());
+ outputDir= KFileDialog::getExistingDirectory(TQDir::homeDirPath());
if (outputDir=="")
return;
}
if (getFreeSpace( m_prefOutput) < m_prefSize)
{
- if (KMessageBox::warningContinueCancel (this, i18n("Insufficient disk space on %1\n%2 mb expected.").arg(m_prefOutput).arg(m_prefSize),i18n("DVD Copy"))==KMessageBox::Cancel)
+ if (KMessageBox::warningContinueCancel (this, i18n("Insufficient disk space on %1\n%2 mb expected.").tqarg(m_prefOutput).tqarg(m_prefSize),i18n("DVD Copy"))==KMessageBox::Cancel)
return;
}
stopPreview();
@@ -460,7 +460,7 @@ void k9Main::Copy()
}
-void k9Main::setProgressWindow(QWidget *_widget) {
+void k9Main::setProgressWindow(TQWidget *_widget) {
m_toolView=m_parent->setToolWindow(_widget,KDockWidget::DockRight,i18n("processing"),i18n("processing"));
m_dockWidget = m_parent->getVisibleDock();
m_parent->setActions( false);
@@ -486,16 +486,16 @@ void k9Main::eject()
-QString k9Main::getDevice(QComboBox *_combo)
+TQString k9Main::getDevice(TQComboBox *_combo)
{
int index=-1;
for (int i=0; i<_combo->count();i++)
{
- QString t =_combo->text(i);
+ TQString t =_combo->text(i);
if (_combo->text(i) == _combo->currentText())
index=i;
}
- QString res="";
+ TQString res="";
if ((index==-1) || (_combo->currentText() ==i18n("ISO Image")))
{
res=_combo->currentText();
@@ -531,16 +531,16 @@ void k9Main::Open()
{
int i;
k9DVDTitle * l_track;
- QString t;
- QTime h;
- connect(listView1,SIGNAL(itemRenamed(QListViewItem*,int)),this,SLOT(itemRenamed(QListViewItem *,int)));
- connect(listView1,SIGNAL(expanded( QListViewItem*)),this,SLOT(expanded( QListViewItem* )));
- connect(listView1,SIGNAL(collapsed( QListViewItem*)),this,SLOT(collapsed( QListViewItem* )));
+ TQString t;
+ TQTime h;
+ connect(listView1,TQT_SIGNAL(itemRenamed(TQListViewItem*,int)),this,TQT_SLOT(itemRenamed(TQListViewItem *,int)));
+ connect(listView1,TQT_SIGNAL(expanded( TQListViewItem*)),this,TQT_SLOT(expanded( TQListViewItem* )));
+ connect(listView1,TQT_SIGNAL(collapsed( TQListViewItem*)),this,TQT_SLOT(collapsed( TQListViewItem* )));
closeDVD();
- QString sDevice=getDevice(cbInputDev);
+ TQString sDevice=getDevice(cbInputDev);
- QString sVolName="";
+ TQString sVolName="";
//if no dvd label, try to get it from hal
for (k9CdDrive *drive=driveList.first();drive;drive=driveList.next()) {
#ifdef HAVE_HAL
@@ -582,8 +582,8 @@ void k9Main::Open()
{
ckLvItem *tsItem = new ckLvItem(root,this,TITLESET);
tsItem->setOpen(TRUE);
- QString c;
- c=i18n("Titleset %1").arg(i+1);
+ TQString c;
+ c=i18n("Titleset %1").tqarg(i+1);
tsItem->setText(0,c);
tsItem->setText(1," "+dvd->gettitleset(i)->getsize_mb() +" " +i18n("MB"));
tsItem->obj=dvd->gettitleset(i) ;
@@ -612,7 +612,7 @@ void k9Main::Open()
void k9Main::setDVDSize()
{
//k9DVDSize *dvdsize=static_cast<k9DVDSize *>(m_factory->create(this,"dvd", "k9DVDSize"));
- k9DVDSize *dvdsize=new k9DVDSize(this);
+ k9DVDSize *dvdsize=new k9DVDSize(TQT_TQOBJECT(this));
dvdsize->setMaxSizeDyn(m_prefSize);
delete dvdsize;
}
@@ -623,14 +623,14 @@ k9Main::~k9Main()
delete dvd;
}
-void k9Main::closeEvent( QCloseEvent* ce )
+void k9Main::closeEvent( TQCloseEvent* ce )
{
saveSettings();
ce->accept();
}
-void k9Main::addChapters(QListViewItem *_parent,k9DVDTitle *_title)
+void k9Main::addChapters(TQListViewItem *_parent,k9DVDTitle *_title)
{
LvItem *chapter = new LvItem(_parent,CHAPTER);
chapter->setText(0, i18n("chapters"));
@@ -641,8 +641,8 @@ void k9Main::addChapters(QListViewItem *_parent,k9DVDTitle *_title)
for (int i=0;i< _title->getchapterCount();i++)
{
ckLvItem *it =new ckLvItem(chapter,this,CHAPTER);
- it->setText(0,i18n("chapter %1").arg(++ch));
- it->setText(1,i18n("%1 MB").arg((double)(_title->getChapter(i)->getsectors()) /512));
+ it->setText(0,i18n("chapter %1").tqarg(++ch));
+ it->setText(1,i18n("%1 MB").tqarg((double)(_title->getChapter(i)->getsectors()) /512));
it->streamType=CHAP;
it->obj=_title->getChapter(i);
chItems.append( it);
@@ -654,10 +654,10 @@ void k9Main::addChapters(QListViewItem *_parent,k9DVDTitle *_title)
for (int i=0;i< title2->getchapterCount();i++)
{
ckLvItem *it =new ckLvItem(chapter,this,CHAPTER);
- it->setText(0,i18n("chapter %1").arg(++ch));
+ it->setText(0,i18n("chapter %1").tqarg(++ch));
it->streamType=CHAP;
it->obj=title2->getChapter(i);
- it->setText(1,i18n("%1 MB").arg((double)(title2->getChapter(i)->getsectors()) /512));
+ it->setText(1,i18n("%1 MB").tqarg((double)(title2->getChapter(i)->getsectors()) /512));
chItems.append( it);
it->mainTitle=_title;
}
@@ -674,7 +674,7 @@ void k9Main::addTitle(k9DVDTitle *track)
k9DVDAudioStream *l_auds;
k9DVDSubtitle *l_sub;
int i;
- QString c,ch;
+ TQString c,ch;
listView1->setRootIsDecorated(true);
@@ -696,7 +696,7 @@ void k9Main::addTitle(k9DVDTitle *track)
video->streamType=VID;
addListItem(track,video,VID);
video->setOpen( false );
- c=i18n("video %1 ").arg(track->getformat());
+ c=i18n("video %1 ").tqarg(track->getformat());
c.append (" - " + track->gettotallength().toString("h:mm:ss"));
video->setText(col1, c);
c.sprintf("%.2f ", track->gettotalvideosize_mb());
@@ -707,7 +707,7 @@ void k9Main::addTitle(k9DVDTitle *track)
for (i=0;i< track->getaudioStreamCount();i++)
{
l_auds=track->getaudioStream(i);
- c=i18n("audio %1 ").arg(i+1);
+ c=i18n("audio %1 ").tqarg(i+1);
c.append( l_auds->getlanguage() + " " +l_auds->getformat()+" " );
ch.sprintf("%dch ",l_auds->getchannels());
c.append(ch+l_auds->getfrequency()+" "+l_auds->getquantization());
@@ -716,7 +716,7 @@ void k9Main::addTitle(k9DVDTitle *track)
item->language=l_auds->getlanguage();
addListItem(l_auds,item,AUD);
item->setText( col1, c );
- c=i18n("%1 MB").arg(l_auds->getsize_mb());
+ c=i18n("%1 MB").tqarg(l_auds->getsize_mb());
item->setText( col2,c);
item->setText( col3,l_auds->getcontent());
item->setPixmap(col1,pxSound);
@@ -727,14 +727,14 @@ void k9Main::addTitle(k9DVDTitle *track)
for (i=0;i< track->getsubPictureCount();i++)
{
l_sub=track->getsubtitle(i);
- c=i18n("subpicture %1 ").arg(i+1);
+ c=i18n("subpicture %1 ").tqarg(i+1);
c.append( l_sub->getlanguage());
ckLvItem * item = new ckLvItem( itemTrack,this,STREAM);
item->streamType=SUB;
item->language=l_sub->getlanguage();
addListItem(l_sub,item,SUB);
item->setText( col1, c );
- c=i18n("%1 MB").arg(l_sub->getsize_mb());
+ c=i18n("%1 MB").tqarg(l_sub->getsize_mb());
item->setText( col2,c);
item->setText( col3, l_sub->getcontent());
item->setPixmap(col1,pxText);
@@ -791,7 +791,7 @@ void k9Main::updateSelection()
updating=supdating;
}
-void k9Main::checkLang(QString lang,eStreamType streamType,bool state)
+void k9Main::checkLang(TQString lang,eStreamType streamType,bool state)
{
updating =true;
for (uint i=0;i<items.count();i++)
@@ -812,7 +812,7 @@ void k9Main::checkLang(QString lang,eStreamType streamType,bool state)
checked=state;
k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj;
- ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent();
+ ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent();
itemtitleset->setOn(title->gettitleset()->getselected());
}
break;
@@ -826,7 +826,7 @@ void k9Main::checkLang(QString lang,eStreamType streamType,bool state)
checked=state;
k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj;
- ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent();
+ ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent();
itemtitleset->setOn(title->gettitleset()->getselected());
}
break;
@@ -839,7 +839,7 @@ void k9Main::checkLang(QString lang,eStreamType streamType,bool state)
for (uint j=0; j<items.count();j++)
{
k9DVDListItem *litem2=(k9DVDListItem*)items.at(j);
- if (litem2->listItem->parent()==litem->listItem->parent() && litem2->streamType==VID )
+ if (litem2->listItem->tqparent()==litem->listItem->tqparent() && litem2->streamType==VID )
{
litem2->title->setforceSelection(state);
litem2->listItem->setOn(state);
@@ -883,7 +883,7 @@ void k9Main::checkTitle(bool state, ckLvItem *_item)
for (uint i=0;i<items.count();i++)
{
litem=(k9DVDListItem*)items.at(i);
- if (litem->listItem->parent() == _item->parent())
+ if (litem->listItem->tqparent() == _item->tqparent())
{
//if current item is video and is unchecked, uncheck audio and subtitles
if (!state && _item->streamType==VID)
@@ -928,9 +928,9 @@ void k9Main::checkTitle(bool state, ckLvItem *_item)
{
ckLvItem * itemtitleset;
if (_item->streamType==CHAP)
- itemtitleset=(ckLvItem*)_item->parent()->parent()->parent();
+ itemtitleset=(ckLvItem*)_item->tqparent()->tqparent()->tqparent();
else
- itemtitleset=(ckLvItem*)_item->parent()->parent();
+ itemtitleset=(ckLvItem*)_item->tqparent()->tqparent();
itemtitleset->setOn(titleset->getselected());
}
@@ -964,7 +964,7 @@ void k9Main::checkAll(bool state)
litem->listItem->setOn(state);
// k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj;
- ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent();
+ ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent();
l_title->gettitleset()->setselected(state);
itemtitleset->setOn(l_title->gettitleset()->getselected());
}
@@ -992,7 +992,7 @@ void k9Main::checkTS( bool _state,ckLvItem *_item )
for (uint i=0;i<items.count();i++)
{
litem=(k9DVDListItem*)items.at(i);
- if (litem->listItem->parent ()->parent() == _item)
+ if (litem->listItem->tqparent ()->tqparent() == _item)
{
litem->listItem->setOn(_state);
}
@@ -1007,7 +1007,7 @@ void k9Main::checkTS( bool _state,ckLvItem *_item )
emit SelectionChanged(dvd,withMenus());
}
-void k9Main::expanded( QListViewItem *item) {
+void k9Main::expanded( TQListViewItem *item) {
if (item->rtti()==1001)
{
ckLvItem *ckit = (ckLvItem*) item;
@@ -1016,7 +1016,7 @@ if (item->rtti()==1001)
}
}
-void k9Main::collapsed( QListViewItem *item) {
+void k9Main::collapsed( TQListViewItem *item) {
if (item->rtti()==1001)
{
ckLvItem *ckit = (ckLvItem*) item;
@@ -1027,10 +1027,10 @@ if (item->rtti()==1001)
/** No descriptions */
-void k9Main::itemRenamed(QListViewItem * item,int )
+void k9Main::itemRenamed(TQListViewItem * item,int )
{
k9DVDTitle *t=NULL;
- QString newText;
+ TQString newText;
if (item->rtti()==1000)
{
LvItem *it = (LvItem*) item;
@@ -1044,10 +1044,10 @@ void k9Main::itemRenamed(QListViewItem * item,int )
newText=ckit->text(0);
}
- QString c;
+ TQString c;
if (t !=NULL)
{
- //QMessageBox::critical( this, "test", c.sprintf("%d",it->tag));
+ //TQMessageBox::critical( this, "test", c.sprintf("%d",it->tag));
t->setname(newText);
m_playbackOptions->titleRenamed( t,newText);
}
@@ -1103,7 +1103,7 @@ void k9Main::PreviewTitle()
if (listView1->selectedItem()->depth() <2)
return;
int rtti=listView1->selectedItem()->rtti();
- QObject *obj;
+ TQObject *obj;
if (rtti==1000)
{
LvItem *it=(LvItem*)listView1->selectedItem();
@@ -1141,29 +1141,29 @@ void k9Main::CreateMP4()
KMessageBox::error( this, i18n("DVD is not opened"), i18n("MPEG-4 Encoding"));
return;
}
- QString filename="";
+ TQString filename="";
int cpt=0;
for (int i=0; i < dvd->gettitleCount();i++)
{
k9DVDTitle *t=dvd->gettitle(i);
- changeStatusbar( i18n("Transcoding title : %1").arg(t->getname()) ,sbMessage);
+ changeStatusbar( i18n("Transcoding title : %1").tqarg(t->getname()) ,sbMessage);
if (t->isSelected() && t->getIndexed() )
{
- QString name;
+ TQString name;
if (filename=="")
- filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.avi|Audio Video Interleave (*.avi)\n*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)\n*.mp4|MPEG-4 format (*.mp4)\n*.asf|Advanced Streaming Format (*.asf)\n*.swf|Adobe Flash (*.swf)\n*.flv|Adobe Flash video files (*.flv)\n*.rm|RealVideo (*.rm)\n*.mov|QuickTime (*.mov)", 0,i18n("Save file to disk"));
+ filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.avi|Audio Video Interleave (*.avi)\n*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)\n*.mp4|MPEG-4 format (*.mp4)\n*.asf|Advanced Streaming Format (*.asf)\n*.swf|Adobe Flash (*.swf)\n*.flv|Adobe Flash video files (*.flv)\n*.rm|RealVideo (*.rm)\n*.mov|QuickTime (*.mov)", 0,i18n("Save file to disk"));
if (filename=="")
break;
k9MP4Enc *mp4=new k9MP4Enc();
setProgressWindow( mp4->getDialog());
if (cpt >0) {
- QString ext=filename.section(".",-1);
+ TQString ext=filename.section(".",-1);
if (ext!="")
ext="."+ext;
- QString path=filename.left(filename.length()-ext.length());
- path=path+QString::number(cpt)+ext;
+ TQString path=filename.left(filename.length()-ext.length());
+ path=path+TQString::number(cpt)+ext;
mp4->setFilename(path);
}
else
@@ -1176,9 +1176,9 @@ void k9Main::CreateMP4()
mp4->setVideoBitrate(opt->getVideoBr());
mp4->setCodec( opt->getCodec());
mp4->setAudioCodec(opt->getAudioCodec());
- mp4->setSize(QString::number(opt->getMaxSize()));
- mp4->setAudioGain(QString::number(opt->getAudioGain()));
- mp4->setNumberCD(QString::number(opt->getNumParts()));
+ mp4->setSize(TQString::number(opt->getMaxSize()));
+ mp4->setAudioGain(TQString::number(opt->getAudioGain()));
+ mp4->setNumberCD(TQString::number(opt->getNumParts()));
mp4->setWidth(opt->getWidth() );
mp4->setHeight(opt->getHeight());
mp4->set2Passes( opt->get2Passes());
@@ -1202,7 +1202,7 @@ void k9Main::extractMPEG2() {
KMessageBox::error( this, i18n("DVD is not opened"), i18n("Extract Mpeg2"));
return;
}
- QString filename="";
+ TQString filename="";
int cpt=0;
@@ -1211,9 +1211,9 @@ void k9Main::extractMPEG2() {
changeStatusbar( i18n("Extracting title : %1",t->getname()) ,sbMessage);
if (t->isSelected() && t->getIndexed() ) {
- QString name;
+ TQString name;
if (filename=="")
- filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)", 0,i18n("Save file to disk"));
+ filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)", 0,i18n("Save file to disk"));
if (filename=="") {
break;
}
@@ -1224,11 +1224,11 @@ void k9Main::extractMPEG2() {
mp4->setUseCache(false);
if (cpt >0) {
- QString ext=filename.section(".",-1);
+ TQString ext=filename.section(".",-1);
if (ext!="")
ext="."+ext;
- QString path=filename.left(filename.length()-ext.length());
- path=path+QString::number(cpt)+ext;
+ TQString path=filename.left(filename.length()-ext.length());
+ path=path+TQString::number(cpt)+ext;
mp4->setFilename(path);
} else
mp4->setFilename(filename);
@@ -1254,11 +1254,11 @@ void k9Main::deviceRemoved(k9CdDrive *_drive) {
if (_drive->device == dvd->getDevice())
closeDVD();
- int i=driveList.find(_drive);
+ int i=driveList.tqfind(_drive);
driveList.remove(i);
cbInputDev->removeItem(i);
- i=recorderList.find(_drive);
+ i=recorderList.tqfind(_drive);
recorderList.remove( i);
cbOutputDev->removeItem(i+2);
@@ -1268,12 +1268,12 @@ void k9Main::addDrive(k9CdDrive *drive) {
#ifdef HAVE_HAL
if (drive->getDevice()!=NULL) {
k9HalDevice *dev=drive->getDevice();
- connect(dev,SIGNAL(volumeChanged( const QString &,const QString &)),this,SLOT(volumeChanged(const QString&,const QString&)));
+ connect(dev,TQT_SIGNAL(volumeChanged( const TQString &,const TQString &)),this,TQT_SLOT(volumeChanged(const TQString&,const TQString&)));
}
#endif
if (drive->canReadDVD)
{
- QString c(drive->name + " ("+drive->device+")");
+ TQString c(drive->name + " ("+drive->device+")");
cbInputDev->insertItem(c,-1);
driveList.append(drive);
}
@@ -1302,7 +1302,7 @@ void k9Main::readDrives()
}
-void k9Main::volumeChanged(const QString &device,const QString &volumeName) {
+void k9Main::volumeChanged(const TQString &device,const TQString &volumeName) {
if (device==dvd->getDevice() && dvd->getopened() && volumeName=="")
closeDVD();
else if (!dvd->getopened() && volumeName !="" && getDevice(cbInputDev)==device) {
@@ -1311,9 +1311,9 @@ void k9Main::volumeChanged(const QString &device,const QString &volumeName) {
}
/*!
- \fn k9Main::listView1CurrentChanged( QListViewItem *newItem )
+ \fn k9Main::listView1CurrentChanged( TQListViewItem *newItem )
*/
-void k9Main::listView1CurrentChanged( QListViewItem *newItem )
+void k9Main::listView1CurrentChanged( TQListViewItem *newItem )
{
if (newItem == NULL)
{
@@ -1339,8 +1339,8 @@ void k9Main::listView1CurrentChanged( QListViewItem *newItem )
ckLvItem *ckit = (ckLvItem*) newItem;
if (((ckLvItem*)newItem)->streamType==CHAP)
{
- LvItem *parent=(LvItem*)(ckit->parent()->parent());
- title=(k9DVDTitle*)parent->obj;
+ LvItem *tqparent=(LvItem*)(ckit->tqparent()->tqparent());
+ title=(k9DVDTitle*)tqparent->obj;
}
else
title=(k9DVDTitle*)ckit->obj;
@@ -1387,14 +1387,14 @@ void k9Main::cbOutputDevActivated(int _index)
k9CdDrive * drive=(k9CdDrive*)recorderList.at(_index-1);
if (drive !=NULL) {
- QValueList <int>list=drive->getWriteSpeeds();
- QValueList<int>::iterator it=list.begin();
+ TQValueList <int>list=drive->getWriteSpeeds();
+ TQValueList<int>::iterator it=list.begin();
cbBurnSpeed->clear();
cbBurnSpeed->insertItem(i18n("default"));
while( it !=list.end())
{
- cbBurnSpeed->insertItem(QString::number((double)(*it)));
+ cbBurnSpeed->insertItem(TQString::number((double)(*it)));
it++;
}
}
@@ -1402,7 +1402,7 @@ void k9Main::cbOutputDevActivated(int _index)
void k9Main::bInputOpenClick()
{
- QString result=KFileDialog::getOpenFileName (QDir::homeDirPath(),"*.iso", 0,i18n("Open ISO Image"));
+ TQString result=KFileDialog::getOpenFileName (TQDir::homeDirPath(),"*.iso", 0,i18n("Open ISO Image"));
if (result!="")
{
cbInputDev->setCurrentText(result);
@@ -1413,7 +1413,7 @@ void k9Main::bInputOpenClick()
void k9Main::bInputOpenDirClick()
{
- QString result= KDirSelectDialog::selectDirectory (QDir::homeDirPath(), false, this,i18n("Open DVD folder")).path();
+ TQString result= KDirSelectDialog::selectDirectory (TQDir::homeDirPath(), false, this,i18n("Open DVD folder")).path();
if (result!="")
{
cbInputDev->setCurrentText(result);
@@ -1426,25 +1426,25 @@ void k9Main::fspDone()
fspFinish=true;
}
-void k9Main::foundMountPoint( const QString &, unsigned long , unsigned long , unsigned long kBAvail)
+void k9Main::foundMountPoint( const TQString &, unsigned long , unsigned long , unsigned long kBAvail)
{
fspAvail=kBAvail;
}
-long k9Main::getFreeSpace(const QString & _path)
+long k9Main::getFreeSpace(const TQString & _path)
{
fspFinish=false;
fspAvail=0;
KDiskFreeSp *FreeSp=new KDiskFreeSp();
;
- connect(FreeSp,SIGNAL(foundMountPoint (const QString &, unsigned long , unsigned long , unsigned long )),this,SLOT(foundMountPoint (const QString &, unsigned long , unsigned long , unsigned long )));
- connect(FreeSp,SIGNAL(done ( )),this,SLOT(fspDone ()));
- QString mountPoint = KIO::findPathMountPoint( _path );
+ connect(FreeSp,TQT_SIGNAL(foundMountPoint (const TQString &, unsigned long , unsigned long , unsigned long )),this,TQT_SLOT(foundMountPoint (const TQString &, unsigned long , unsigned long , unsigned long )));
+ connect(FreeSp,TQT_SIGNAL(done ( )),this,TQT_SLOT(fspDone ()));
+ TQString mountPoint = KIO::findPathMountPoint( _path );
FreeSp->readDF(mountPoint);
do
{
- qApp->processEvents();
+ tqApp->processEvents();
}
while (!fspFinish);
fspAvail/=1024;
@@ -1453,7 +1453,7 @@ long k9Main::getFreeSpace(const QString & _path)
}
-void k9Main::setInput(QString _input)
+void k9Main::setInput(TQString _input)
{
bool found=false;
for (uint i=0;i< driveList.count();i++) {
@@ -1467,13 +1467,13 @@ void k9Main::setInput(QString _input)
cbInputDev->setCurrentText(_input);
}
-void k9Main::setOutput(QString _output)
+void k9Main::setOutput(TQString _output)
{
cbOutputDev->setCurrentItem(0);
for (uint i=0 ;i <recorderList.count();i++)
{
k9CdDrive * drive=(k9CdDrive*)recorderList.at(i);
- QString c(drive->device);
+ TQString c(drive->device);
// qDebug ("output=" +c);
if (c==_output)
{
@@ -1483,7 +1483,7 @@ void k9Main::setOutput(QString _output)
}
}
-void k9Main::Clone(QString _input,QString _output)
+void k9Main::Clone(TQString _input,TQString _output)
{
setInput(_input);
setOutput(_output);
@@ -1513,7 +1513,7 @@ void k9Main::updateFactor_internal()
if (dvd->getsizeSelected(FALSE)==0)
changeStatusbar("",sbFactor);
else
- changeStatusbar( QString::number(dbfactor,'f',2),sbFactor);
+ changeStatusbar( TQString::number(dbfactor,'f',2),sbFactor);
emit SelectionChanged( dvd,withMenus());
m_mutex.unlock();
}