@ -162,7 +162,7 @@ void Plugin_MetadataEdit::slotEditExif()
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
return ;
return ;
KIPIMetadataEditPlugin : : EXIFEditDialog dialog ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) , images . images ( ) , m_interface ) ;
KIPIMetadataEditPlugin : : EXIFEditDialog dialog ( kapp- > activeWindow ( ) , images . images ( ) , m_interface ) ;
dialog . exec ( ) ;
dialog . exec ( ) ;
m_interface - > refreshImages ( images . images ( ) ) ;
m_interface - > refreshImages ( images . images ( ) ) ;
}
}
@ -175,7 +175,7 @@ void Plugin_MetadataEdit::slotRemoveExif()
return ;
return ;
if ( KMessageBox : : warningYesNo (
if ( KMessageBox : : warningYesNo (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " EXIF metadata will be permanently removed from all current selected pictures. \n "
i18n ( " EXIF metadata will be permanently removed from all current selected pictures. \n "
" Do you want to continue ? " ) ,
" Do you want to continue ? " ) ,
i18n ( " Remove EXIF Metadata " ) ) ! = KMessageBox : : Yes )
i18n ( " Remove EXIF Metadata " ) ) ! = KMessageBox : : Yes )
@ -214,7 +214,7 @@ void Plugin_MetadataEdit::slotRemoveExif()
if ( ! errorFiles . isEmpty ( ) )
if ( ! errorFiles . isEmpty ( ) )
{
{
KMessageBox : : errorList (
KMessageBox : : errorList (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " Unable to remove EXIF metadata from: " ) ,
i18n ( " Unable to remove EXIF metadata from: " ) ,
errorFiles ,
errorFiles ,
i18n ( " Remove EXIF Metadata " ) ) ;
i18n ( " Remove EXIF Metadata " ) ) ;
@ -229,7 +229,7 @@ void Plugin_MetadataEdit::slotImportExif()
return ;
return ;
KURL importEXIFFile = KFileDialog : : getOpenURL ( TDEGlobalSettings : : documentPath ( ) ,
KURL importEXIFFile = KFileDialog : : getOpenURL ( TDEGlobalSettings : : documentPath ( ) ,
TQString ( ) , TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
TQString ( ) , kapp- > activeWindow ( ) ,
i18n ( " Select File to Import EXIF metadata " ) ) ;
i18n ( " Select File to Import EXIF metadata " ) ) ;
if ( importEXIFFile . isEmpty ( ) )
if ( importEXIFFile . isEmpty ( ) )
return ;
return ;
@ -237,7 +237,7 @@ void Plugin_MetadataEdit::slotImportExif()
KExiv2Iface : : KExiv2 exiv2Iface ;
KExiv2Iface : : KExiv2 exiv2Iface ;
if ( ! exiv2Iface . load ( importEXIFFile . path ( ) ) )
if ( ! exiv2Iface . load ( importEXIFFile . path ( ) ) )
{
{
KMessageBox : : error ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
KMessageBox : : error ( kapp- > activeWindow ( ) ,
i18n ( " Cannot load metadata from \" %1 \" " ) . arg ( importEXIFFile . fileName ( ) ) ,
i18n ( " Cannot load metadata from \" %1 \" " ) . arg ( importEXIFFile . fileName ( ) ) ,
i18n ( " Import EXIF Metadata " ) ) ;
i18n ( " Import EXIF Metadata " ) ) ;
return ;
return ;
@ -246,14 +246,14 @@ void Plugin_MetadataEdit::slotImportExif()
TQByteArray exifData = exiv2Iface . getExif ( ) ;
TQByteArray exifData = exiv2Iface . getExif ( ) ;
if ( exifData . isEmpty ( ) )
if ( exifData . isEmpty ( ) )
{
{
KMessageBox : : error ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
KMessageBox : : error ( kapp- > activeWindow ( ) ,
i18n ( " \" %1 \" do not have EXIF metadata " ) . arg ( importEXIFFile . fileName ( ) ) ,
i18n ( " \" %1 \" do not have EXIF metadata " ) . arg ( importEXIFFile . fileName ( ) ) ,
i18n ( " Import EXIF Metadata " ) ) ;
i18n ( " Import EXIF Metadata " ) ) ;
return ;
return ;
}
}
if ( KMessageBox : : warningYesNo (
if ( KMessageBox : : warningYesNo (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " EXIF metadata from current selected pictures will be permanently "
i18n ( " EXIF metadata from current selected pictures will be permanently "
" replaced by the EXIF content of \" %1 \" . \n "
" replaced by the EXIF content of \" %1 \" . \n "
" Do you want to continue ? " ) . arg ( importEXIFFile . fileName ( ) ) ,
" Do you want to continue ? " ) . arg ( importEXIFFile . fileName ( ) ) ,
@ -294,7 +294,7 @@ void Plugin_MetadataEdit::slotImportExif()
if ( ! errorFiles . isEmpty ( ) )
if ( ! errorFiles . isEmpty ( ) )
{
{
KMessageBox : : errorList (
KMessageBox : : errorList (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " Unable to set EXIF metadata from: " ) ,
i18n ( " Unable to set EXIF metadata from: " ) ,
errorFiles ,
errorFiles ,
i18n ( " Import EXIF Metadata " ) ) ;
i18n ( " Import EXIF Metadata " ) ) ;
@ -308,7 +308,7 @@ void Plugin_MetadataEdit::slotEditIptc()
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
return ;
return ;
KIPIMetadataEditPlugin : : IPTCEditDialog dialog ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) , images . images ( ) , m_interface ) ;
KIPIMetadataEditPlugin : : IPTCEditDialog dialog ( kapp- > activeWindow ( ) , images . images ( ) , m_interface ) ;
dialog . exec ( ) ;
dialog . exec ( ) ;
m_interface - > refreshImages ( images . images ( ) ) ;
m_interface - > refreshImages ( images . images ( ) ) ;
}
}
@ -321,7 +321,7 @@ void Plugin_MetadataEdit::slotRemoveIptc()
return ;
return ;
if ( KMessageBox : : warningYesNo (
if ( KMessageBox : : warningYesNo (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " IPTC metadata will be permanently removed from all current selected pictures. \n "
i18n ( " IPTC metadata will be permanently removed from all current selected pictures. \n "
" Do you want to continue ? " ) ,
" Do you want to continue ? " ) ,
i18n ( " Remove IPTC Metadata " ) ) ! = KMessageBox : : Yes )
i18n ( " Remove IPTC Metadata " ) ) ! = KMessageBox : : Yes )
@ -360,7 +360,7 @@ void Plugin_MetadataEdit::slotRemoveIptc()
if ( ! errorFiles . isEmpty ( ) )
if ( ! errorFiles . isEmpty ( ) )
{
{
KMessageBox : : errorList (
KMessageBox : : errorList (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " Unable to remove IPTC metadata from: " ) ,
i18n ( " Unable to remove IPTC metadata from: " ) ,
errorFiles ,
errorFiles ,
i18n ( " Remove IPTC Metadata " ) ) ;
i18n ( " Remove IPTC Metadata " ) ) ;
@ -375,7 +375,7 @@ void Plugin_MetadataEdit::slotImportIptc()
return ;
return ;
KURL importIPTCFile = KFileDialog : : getOpenURL ( TDEGlobalSettings : : documentPath ( ) ,
KURL importIPTCFile = KFileDialog : : getOpenURL ( TDEGlobalSettings : : documentPath ( ) ,
TQString ( ) , TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
TQString ( ) , kapp- > activeWindow ( ) ,
i18n ( " Select File to Import IPTC metadata " ) ) ;
i18n ( " Select File to Import IPTC metadata " ) ) ;
if ( importIPTCFile . isEmpty ( ) )
if ( importIPTCFile . isEmpty ( ) )
return ;
return ;
@ -383,7 +383,7 @@ void Plugin_MetadataEdit::slotImportIptc()
KExiv2Iface : : KExiv2 exiv2Iface ;
KExiv2Iface : : KExiv2 exiv2Iface ;
if ( ! exiv2Iface . load ( importIPTCFile . path ( ) ) )
if ( ! exiv2Iface . load ( importIPTCFile . path ( ) ) )
{
{
KMessageBox : : error ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
KMessageBox : : error ( kapp- > activeWindow ( ) ,
i18n ( " Cannot load metadata from \" %1 \" " ) . arg ( importIPTCFile . fileName ( ) ) ,
i18n ( " Cannot load metadata from \" %1 \" " ) . arg ( importIPTCFile . fileName ( ) ) ,
i18n ( " Import IPTC Metadata " ) ) ;
i18n ( " Import IPTC Metadata " ) ) ;
return ;
return ;
@ -392,14 +392,14 @@ void Plugin_MetadataEdit::slotImportIptc()
TQByteArray iptcData = exiv2Iface . getIptc ( ) ;
TQByteArray iptcData = exiv2Iface . getIptc ( ) ;
if ( iptcData . isEmpty ( ) )
if ( iptcData . isEmpty ( ) )
{
{
KMessageBox : : error ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
KMessageBox : : error ( kapp- > activeWindow ( ) ,
i18n ( " \" %1 \" do not have IPTC metadata " ) . arg ( importIPTCFile . fileName ( ) ) ,
i18n ( " \" %1 \" do not have IPTC metadata " ) . arg ( importIPTCFile . fileName ( ) ) ,
i18n ( " Import IPTC Metadata " ) ) ;
i18n ( " Import IPTC Metadata " ) ) ;
return ;
return ;
}
}
if ( KMessageBox : : warningYesNo (
if ( KMessageBox : : warningYesNo (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " IPTC metadata from current selected pictures will be permanently "
i18n ( " IPTC metadata from current selected pictures will be permanently "
" replaced by the IPTC content of \" %1 \" . \n "
" replaced by the IPTC content of \" %1 \" . \n "
" Do you want to continue ? " ) . arg ( importIPTCFile . fileName ( ) ) ,
" Do you want to continue ? " ) . arg ( importIPTCFile . fileName ( ) ) ,
@ -440,7 +440,7 @@ void Plugin_MetadataEdit::slotImportIptc()
if ( ! errorFiles . isEmpty ( ) )
if ( ! errorFiles . isEmpty ( ) )
{
{
KMessageBox : : errorList (
KMessageBox : : errorList (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " Unable to set IPTC metadata from: " ) ,
i18n ( " Unable to set IPTC metadata from: " ) ,
errorFiles ,
errorFiles ,
i18n ( " Import IPTC Metadata " ) ) ;
i18n ( " Import IPTC Metadata " ) ) ;
@ -454,7 +454,7 @@ void Plugin_MetadataEdit::slotEditComments()
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
return ;
return ;
KIPIMetadataEditPlugin : : CommentEditDialog dlg ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) ) ;
KIPIMetadataEditPlugin : : CommentEditDialog dlg ( kapp- > activeWindow ( ) ) ;
if ( dlg . exec ( ) ! = KMessageBox : : Ok )
if ( dlg . exec ( ) ! = KMessageBox : : Ok )
return ;
return ;
@ -504,7 +504,7 @@ void Plugin_MetadataEdit::slotEditComments()
if ( ! errorFiles . isEmpty ( ) )
if ( ! errorFiles . isEmpty ( ) )
{
{
KMessageBox : : informationList (
KMessageBox : : informationList (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " Unable to set captions as image metadata from: " ) ,
i18n ( " Unable to set captions as image metadata from: " ) ,
errorFiles ,
errorFiles ,
i18n ( " Edit Image Caption " ) ) ;
i18n ( " Edit Image Caption " ) ) ;
@ -518,7 +518,7 @@ void Plugin_MetadataEdit::slotRemoveComments()
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
if ( ! images . isValid ( ) | | images . images ( ) . isEmpty ( ) )
return ;
return ;
KIPIMetadataEditPlugin : : CommentRemoveDialog dlg ( TQT_TQWIDGET( kapp- > activeWindow ( ) ) ) ;
KIPIMetadataEditPlugin : : CommentRemoveDialog dlg ( kapp- > activeWindow ( ) ) ;
if ( dlg . exec ( ) ! = KMessageBox : : Ok )
if ( dlg . exec ( ) ! = KMessageBox : : Ok )
return ;
return ;
@ -571,7 +571,7 @@ void Plugin_MetadataEdit::slotRemoveComments()
if ( ! errorFiles . isEmpty ( ) )
if ( ! errorFiles . isEmpty ( ) )
{
{
KMessageBox : : informationList (
KMessageBox : : informationList (
TQT_TQWIDGET( kapp- > activeWindow ( ) ) ,
kapp- > activeWindow ( ) ,
i18n ( " Unable to remove caption as image metadata from: " ) ,
i18n ( " Unable to remove caption as image metadata from: " ) ,
errorFiles ,
errorFiles ,
i18n ( " Remove Image Caption " ) ) ;
i18n ( " Remove Image Caption " ) ) ;