@ -84,7 +84,7 @@ void KPrMSPresentation::initCreation( KProgress *progressBar )
// we create the DCIM file, and then iterate through looking
// we create the DCIM file, and then iterate through looking
// for the next "available" directory slot
// for the next "available" directory slot
KURL str ( path + " /DCIM " ) ;
KURL str ( path + " /DCIM " ) ;
K IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
TDE IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
progressBar - > setProgress ( + + p ) ;
progressBar - > setProgress ( + + p ) ;
@ -92,7 +92,7 @@ void KPrMSPresentation::initCreation( KProgress *progressBar )
for ( int dirNum = 101 ; dirNum < 999 ; dirNum + + ) {
for ( int dirNum = 101 ; dirNum < 999 ; dirNum + + ) {
slidePath = TQString ( " /DCIM/%1MSPJP " ) . arg ( dirNum ) ;
slidePath = TQString ( " /DCIM/%1MSPJP " ) . arg ( dirNum ) ;
if ( ! K IO: : NetAccess : : exists ( ( path + slidePath ) , true , ( TQWidget * ) 0L ) )
if ( ! TDE IO: : NetAccess : : exists ( ( path + slidePath ) , true , ( TQWidget * ) 0L ) )
break ;
break ;
}
}
@ -101,20 +101,20 @@ void KPrMSPresentation::initCreation( KProgress *progressBar )
kapp - > processEvents ( ) ;
kapp - > processEvents ( ) ;
str = ( path + slidePath ) ;
str = ( path + slidePath ) ;
K IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
TDE IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
progressBar - > setProgress ( + + p ) ;
progressBar - > setProgress ( + + p ) ;
kapp - > processEvents ( ) ;
kapp - > processEvents ( ) ;
// now do the SPP file directory
// now do the SPP file directory
str = ( path + " /MSSONY " ) ;
str = ( path + " /MSSONY " ) ;
K IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
TDE IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
progressBar - > setProgress ( + + p ) ;
progressBar - > setProgress ( + + p ) ;
kapp - > processEvents ( ) ;
kapp - > processEvents ( ) ;
str = ( path + " /MSSONY/PJ " ) ;
str = ( path + " /MSSONY/PJ " ) ;
K IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
TDE IO: : NetAccess : : mkdir ( str , ( TQWidget * ) 0L ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
@ -130,7 +130,7 @@ void KPrMSPresentation::initCreation( KProgress *progressBar )
KTempFile tmp ;
KTempFile tmp ;
TQString filename = path + slidePath + " /SPJT0002.JPG " ;
TQString filename = path + slidePath + " /SPJT0002.JPG " ;
titleSlide . save ( tmp . name ( ) , " JPEG " ) ;
titleSlide . save ( tmp . name ( ) , " JPEG " ) ;
K IO: : NetAccess : : file_move ( tmp . name ( ) , filename , - 1 , true /*overwrite*/ ) ;
TDE IO: : NetAccess : : file_move ( tmp . name ( ) , filename , - 1 , true /*overwrite*/ ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
progressBar - > setProgress ( + + p ) ;
progressBar - > setProgress ( + + p ) ;
@ -145,7 +145,7 @@ void KPrMSPresentation::initCreation( KProgress *progressBar )
KTempFile tmp2 ;
KTempFile tmp2 ;
titleSlide . save ( tmp2 . name ( ) , " JPEG " ) ;
titleSlide . save ( tmp2 . name ( ) , " JPEG " ) ;
K IO: : NetAccess : : file_move ( tmp2 . name ( ) , filename , - 1 , true /*overwrite*/ ) ;
TDE IO: : NetAccess : : file_move ( tmp2 . name ( ) , filename , - 1 , true /*overwrite*/ ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
progressBar - > setProgress ( + + p ) ;
progressBar - > setProgress ( + + p ) ;
@ -168,7 +168,7 @@ void KPrMSPresentation::createSlidesPictures( KProgress *progressBar )
view - > getCanvas ( ) - > exportPage ( pgNum , 1023 , 767 ,
view - > getCanvas ( ) - > exportPage ( pgNum , 1023 , 767 ,
tmp . name ( ) , " JPEG " ) ;
tmp . name ( ) , " JPEG " ) ;
K IO: : NetAccess : : file_move ( tmp . name ( ) , ( path + slidePath + filename ) , - 1 , true /*overwrite*/ ) ;
TDE IO: : NetAccess : : file_move ( tmp . name ( ) , ( path + slidePath + filename ) , - 1 , true /*overwrite*/ ) ;
p = progressBar - > progress ( ) ;
p = progressBar - > progress ( ) ;
progressBar - > setProgress ( + + p ) ;
progressBar - > setProgress ( + + p ) ;
@ -266,7 +266,7 @@ void KPrMSPresentation::createIndexFile( KProgress *progressBar )
kapp - > processEvents ( ) ;
kapp - > processEvents ( ) ;
sppFile . close ( ) ;
sppFile . close ( ) ;
K IO: : NetAccess : : file_move ( sppFile . name ( ) , filenameStore , - 1 , true /*overwrite*/ ) ;
TDE IO: : NetAccess : : file_move ( sppFile . name ( ) , filenameStore , - 1 , true /*overwrite*/ ) ;
}
}
void KPrMSPresentation : : init ( )
void KPrMSPresentation : : init ( )
@ -441,7 +441,7 @@ void KPrMSPresentationSetup::finish()
TQString pathname = path - > lineEdit ( ) - > text ( ) ;
TQString pathname = path - > lineEdit ( ) - > text ( ) ;
// path doesn't exist. ask user if it should be created.
// path doesn't exist. ask user if it should be created.
if ( ! K IO: : NetAccess : : exists ( pathname , false , this ) ) {
if ( ! TDE IO: : NetAccess : : exists ( pathname , false , this ) ) {
TQString msg = i18n ( " <qt>The directory <b>%1</b> does not exist.<br> "
TQString msg = i18n ( " <qt>The directory <b>%1</b> does not exist.<br> "
" Do you want create it?</qt> " ) ;
" Do you want create it?</qt> " ) ;
if ( KMessageBox : : questionYesNo ( this , msg . arg ( pathname ) ,
if ( KMessageBox : : questionYesNo ( this , msg . arg ( pathname ) ,
@ -450,7 +450,7 @@ void KPrMSPresentationSetup::finish()
{
{
// we are trying to create the directory
// we are trying to create the directory
TQDir dir ;
TQDir dir ;
bool ok = K IO: : NetAccess : : mkdir ( pathname , this ) ;
bool ok = TDE IO: : NetAccess : : mkdir ( pathname , this ) ;
if ( ! ok ) {
if ( ! ok ) {
// then directory couldn't be created
// then directory couldn't be created
KMessageBox : : sorry ( this ,
KMessageBox : : sorry ( this ,
@ -467,7 +467,7 @@ void KPrMSPresentationSetup::finish()
}
}
TQString sppFile ( pathname + " /MSSONY/PJ/ " + title - > text ( ) + " .SPP " ) ;
TQString sppFile ( pathname + " /MSSONY/PJ/ " + title - > text ( ) + " .SPP " ) ;
if ( K IO: : NetAccess : : exists ( sppFile , false , this ) ) {
if ( TDE IO: : NetAccess : : exists ( sppFile , false , this ) ) {
if ( KMessageBox : : warningYesNo ( 0 ,
if ( KMessageBox : : warningYesNo ( 0 ,
i18n ( " You are about to overwrite an existing index "
i18n ( " You are about to overwrite an existing index "
" file : %1. \n "
" file : %1. \n "