@ -392,7 +392,7 @@ void k9Main::Copy()
if ( getFreeSpace ( m_prefOutput ) < m_prefSize )
if ( getFreeSpace ( m_prefOutput ) < m_prefSize )
{
{
if ( KMessageBox : : warningContinueCancel ( this , i18n ( " Insufficient disk space on %1 \n %2 mb expected. " ) . tq arg( m_prefOutput ) . tq arg( m_prefSize ) , i18n ( " DVD Copy " ) ) = = KMessageBox : : Cancel )
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 )
return ;
return ;
}
}
stopPreview ( ) ;
stopPreview ( ) ;
@ -583,7 +583,7 @@ void k9Main::Open()
ckLvItem * tsItem = new ckLvItem ( root , this , TITLESET ) ;
ckLvItem * tsItem = new ckLvItem ( root , this , TITLESET ) ;
tsItem - > setOpen ( TRUE ) ;
tsItem - > setOpen ( TRUE ) ;
TQString c ;
TQString c ;
c = i18n ( " Titleset %1 " ) . tq arg( i + 1 ) ;
c = i18n ( " Titleset %1 " ) . arg( i + 1 ) ;
tsItem - > setText ( 0 , c ) ;
tsItem - > setText ( 0 , c ) ;
tsItem - > setText ( 1 , " " + dvd - > gettitleset ( i ) - > getsize_mb ( ) + " " + i18n ( " MB " ) ) ;
tsItem - > setText ( 1 , " " + dvd - > gettitleset ( i ) - > getsize_mb ( ) + " " + i18n ( " MB " ) ) ;
tsItem - > obj = dvd - > gettitleset ( i ) ;
tsItem - > obj = dvd - > gettitleset ( i ) ;
@ -641,8 +641,8 @@ void k9Main::addChapters(TQListViewItem *_parent,k9DVDTitle *_title)
for ( int i = 0 ; i < _title - > getchapterCount ( ) ; i + + )
for ( int i = 0 ; i < _title - > getchapterCount ( ) ; i + + )
{
{
ckLvItem * it = new ckLvItem ( chapter , this , CHAPTER ) ;
ckLvItem * it = new ckLvItem ( chapter , this , CHAPTER ) ;
it - > setText ( 0 , i18n ( " chapter %1 " ) . tq arg( + + ch ) ) ;
it - > setText ( 0 , i18n ( " chapter %1 " ) . arg( + + ch ) ) ;
it - > setText ( 1 , i18n ( " %1 MB " ) . tq arg( ( double ) ( _title - > getChapter ( i ) - > getsectors ( ) ) / 512 ) ) ;
it - > setText ( 1 , i18n ( " %1 MB " ) . arg( ( double ) ( _title - > getChapter ( i ) - > getsectors ( ) ) / 512 ) ) ;
it - > streamType = CHAP ;
it - > streamType = CHAP ;
it - > obj = _title - > getChapter ( i ) ;
it - > obj = _title - > getChapter ( i ) ;
chItems . append ( it ) ;
chItems . append ( it ) ;
@ -654,10 +654,10 @@ void k9Main::addChapters(TQListViewItem *_parent,k9DVDTitle *_title)
for ( int i = 0 ; i < title2 - > getchapterCount ( ) ; i + + )
for ( int i = 0 ; i < title2 - > getchapterCount ( ) ; i + + )
{
{
ckLvItem * it = new ckLvItem ( chapter , this , CHAPTER ) ;
ckLvItem * it = new ckLvItem ( chapter , this , CHAPTER ) ;
it - > setText ( 0 , i18n ( " chapter %1 " ) . tq arg( + + ch ) ) ;
it - > setText ( 0 , i18n ( " chapter %1 " ) . arg( + + ch ) ) ;
it - > streamType = CHAP ;
it - > streamType = CHAP ;
it - > obj = title2 - > getChapter ( i ) ;
it - > obj = title2 - > getChapter ( i ) ;
it - > setText ( 1 , i18n ( " %1 MB " ) . tq arg( ( double ) ( title2 - > getChapter ( i ) - > getsectors ( ) ) / 512 ) ) ;
it - > setText ( 1 , i18n ( " %1 MB " ) . arg( ( double ) ( title2 - > getChapter ( i ) - > getsectors ( ) ) / 512 ) ) ;
chItems . append ( it ) ;
chItems . append ( it ) ;
it - > mainTitle = _title ;
it - > mainTitle = _title ;
}
}
@ -696,7 +696,7 @@ void k9Main::addTitle(k9DVDTitle *track)
video - > streamType = VID ;
video - > streamType = VID ;
addListItem ( track , video , VID ) ;
addListItem ( track , video , VID ) ;
video - > setOpen ( false ) ;
video - > setOpen ( false ) ;
c = i18n ( " video %1 " ) . tq arg( track - > getformat ( ) ) ;
c = i18n ( " video %1 " ) . arg( track - > getformat ( ) ) ;
c . append ( " - " + track - > gettotallength ( ) . toString ( " h:mm:ss " ) ) ;
c . append ( " - " + track - > gettotallength ( ) . toString ( " h:mm:ss " ) ) ;
video - > setText ( col1 , c ) ;
video - > setText ( col1 , c ) ;
c . sprintf ( " %.2f " , track - > gettotalvideosize_mb ( ) ) ;
c . sprintf ( " %.2f " , track - > gettotalvideosize_mb ( ) ) ;
@ -707,7 +707,7 @@ void k9Main::addTitle(k9DVDTitle *track)
for ( i = 0 ; i < track - > getaudioStreamCount ( ) ; i + + )
for ( i = 0 ; i < track - > getaudioStreamCount ( ) ; i + + )
{
{
l_auds = track - > getaudioStream ( i ) ;
l_auds = track - > getaudioStream ( i ) ;
c = i18n ( " audio %1 " ) . tq arg( i + 1 ) ;
c = i18n ( " audio %1 " ) . arg( i + 1 ) ;
c . append ( l_auds - > getlanguage ( ) + " " + l_auds - > getformat ( ) + " " ) ;
c . append ( l_auds - > getlanguage ( ) + " " + l_auds - > getformat ( ) + " " ) ;
ch . sprintf ( " %dch " , l_auds - > getchannels ( ) ) ;
ch . sprintf ( " %dch " , l_auds - > getchannels ( ) ) ;
c . append ( ch + l_auds - > getfrequency ( ) + " " + l_auds - > getquantization ( ) ) ;
c . append ( ch + l_auds - > getfrequency ( ) + " " + l_auds - > getquantization ( ) ) ;
@ -716,7 +716,7 @@ void k9Main::addTitle(k9DVDTitle *track)
item - > language = l_auds - > getlanguage ( ) ;
item - > language = l_auds - > getlanguage ( ) ;
addListItem ( l_auds , item , AUD ) ;
addListItem ( l_auds , item , AUD ) ;
item - > setText ( col1 , c ) ;
item - > setText ( col1 , c ) ;
c = i18n ( " %1 MB " ) . tq arg( l_auds - > getsize_mb ( ) ) ;
c = i18n ( " %1 MB " ) . arg( l_auds - > getsize_mb ( ) ) ;
item - > setText ( col2 , c ) ;
item - > setText ( col2 , c ) ;
item - > setText ( col3 , l_auds - > getcontent ( ) ) ;
item - > setText ( col3 , l_auds - > getcontent ( ) ) ;
item - > setPixmap ( col1 , pxSound ) ;
item - > setPixmap ( col1 , pxSound ) ;
@ -727,14 +727,14 @@ void k9Main::addTitle(k9DVDTitle *track)
for ( i = 0 ; i < track - > getsubPictureCount ( ) ; i + + )
for ( i = 0 ; i < track - > getsubPictureCount ( ) ; i + + )
{
{
l_sub = track - > getsubtitle ( i ) ;
l_sub = track - > getsubtitle ( i ) ;
c = i18n ( " subpicture %1 " ) . tq arg( i + 1 ) ;
c = i18n ( " subpicture %1 " ) . arg( i + 1 ) ;
c . append ( l_sub - > getlanguage ( ) ) ;
c . append ( l_sub - > getlanguage ( ) ) ;
ckLvItem * item = new ckLvItem ( itemTrack , this , STREAM ) ;
ckLvItem * item = new ckLvItem ( itemTrack , this , STREAM ) ;
item - > streamType = SUB ;
item - > streamType = SUB ;
item - > language = l_sub - > getlanguage ( ) ;
item - > language = l_sub - > getlanguage ( ) ;
addListItem ( l_sub , item , SUB ) ;
addListItem ( l_sub , item , SUB ) ;
item - > setText ( col1 , c ) ;
item - > setText ( col1 , c ) ;
c = i18n ( " %1 MB " ) . tq arg( l_sub - > getsize_mb ( ) ) ;
c = i18n ( " %1 MB " ) . arg( l_sub - > getsize_mb ( ) ) ;
item - > setText ( col2 , c ) ;
item - > setText ( col2 , c ) ;
item - > setText ( col3 , l_sub - > getcontent ( ) ) ;
item - > setText ( col3 , l_sub - > getcontent ( ) ) ;
item - > setPixmap ( col1 , pxText ) ;
item - > setPixmap ( col1 , pxText ) ;
@ -1146,7 +1146,7 @@ void k9Main::CreateMP4()
for ( int i = 0 ; i < dvd - > gettitleCount ( ) ; i + + )
for ( int i = 0 ; i < dvd - > gettitleCount ( ) ; i + + )
{
{
k9DVDTitle * t = dvd - > gettitle ( i ) ;
k9DVDTitle * t = dvd - > gettitle ( i ) ;
changeStatusbar ( i18n ( " Transcoding title : %1 " ) . tq arg( t - > getname ( ) ) , sbMessage ) ;
changeStatusbar ( i18n ( " Transcoding title : %1 " ) . arg( t - > getname ( ) ) , sbMessage ) ;
if ( t - > isSelected ( ) & & t - > getIndexed ( ) )
if ( t - > isSelected ( ) & & t - > getIndexed ( ) )
{
{