Replace various '#define' strings - part 6

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 6 months ago
parent 45ad0192c9
commit 663bed0454
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -100,7 +100,7 @@ void Plugin_AcquireImages::slotActivate()
if (from == "scan_images") if (from == "scan_images")
{ {
m_scanDialog = KScanDialog::getScanDialog(TQT_TQWIDGET(kapp->activeWindow()), "KIPI Scan Images Plugin"); m_scanDialog = KScanDialog::getScanDialog(kapp->activeWindow(), "KIPI Scan Images Plugin");
if ( m_scanDialog ) if ( m_scanDialog )
{ {
@ -111,7 +111,7 @@ void Plugin_AcquireImages::slotActivate()
} }
else else
{ {
KMessageBox::sorry(TQT_TQWIDGET(kapp->activeWindow()), i18n("No TDE scan-service available; check your system."), KMessageBox::sorry(kapp->activeWindow(), i18n("No TDE scan-service available; check your system."),
i18n("KIPI's 'Scan Images' Plugin")); i18n("KIPI's 'Scan Images' Plugin"));
kdDebug ( 51000 ) << "No Scan-service available, aborting!" << endl; kdDebug ( 51000 ) << "No Scan-service available, aborting!" << endl;
return; return;
@ -123,7 +123,7 @@ void Plugin_AcquireImages::slotActivate()
else if (from == "screenshot_images") else if (from == "screenshot_images")
{ {
m_screenshotDialog = new KIPIAcquireImagesPlugin::ScreenGrabDialog(interface, m_screenshotDialog = new KIPIAcquireImagesPlugin::ScreenGrabDialog(interface,
TQT_TQWIDGET(kapp->activeWindow()), "KIPI ScreenshotImagesDialog"); kapp->activeWindow(), "KIPI ScreenshotImagesDialog");
m_screenshotDialog->show(); m_screenshotDialog->show();
} }
else else
@ -152,7 +152,7 @@ void Plugin_AcquireImages::slotAcquireImageDone(const TQImage &img)
return; return;
} }
m_acquireImageDialog = new KIPIAcquireImagesPlugin::AcquireImageDialog( interface, TQT_TQWIDGET(kapp->activeWindow()), img); m_acquireImageDialog = new KIPIAcquireImagesPlugin::AcquireImageDialog( interface, kapp->activeWindow(), img);
m_acquireImageDialog->setMinimumWidth(400); m_acquireImageDialog->setMinimumWidth(400);
m_acquireImageDialog->exec(); m_acquireImageDialog->exec();
} }

@ -476,7 +476,7 @@ bool BatchProcessImagesDialog::startProcess(void)
KURL desturl(targetAlbum + "/" + item->nameDest()); KURL desturl(targetAlbum + "/" + item->nameDest());
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( TDEIO::NetAccess::exists( desturl, false, TQT_TQWIDGET(kapp->activeWindow()) ) == true ) if ( TDEIO::NetAccess::exists( desturl, false, kapp->activeWindow() ) == true )
#else #else
if ( TDEIO::NetAccess::exists( desturl ) == true ) if ( TDEIO::NetAccess::exists( desturl ) == true )
#endif #endif
@ -715,7 +715,7 @@ void BatchProcessImagesDialog::slotProcessDone(TDEProcess* proc)
KURL deleteImage(item->pathSrc()); KURL deleteImage(item->pathSrc());
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( TDEIO::NetAccess::del( deleteImage, TQT_TQWIDGET(kapp->activeWindow()) ) == false ) if ( TDEIO::NetAccess::del( deleteImage, kapp->activeWindow() ) == false )
#else #else
if ( TDEIO::NetAccess::del( deleteImage ) == false ) if ( TDEIO::NetAccess::del( deleteImage ) == false )
#endif #endif
@ -868,7 +868,7 @@ void BatchProcessImagesDialog::slotPreviewProcessDone(TDEProcess* proc)
KURL deletePreviewImage(m_tmpFolder + "/" + TQString::number(getpid()) + "preview.PNG"); KURL deletePreviewImage(m_tmpFolder + "/" + TQString::number(getpid()) + "preview.PNG");
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
TDEIO::NetAccess::del( deletePreviewImage, TQT_TQWIDGET(kapp->activeWindow()) ); TDEIO::NetAccess::del( deletePreviewImage, kapp->activeWindow() );
#else #else
TDEIO::NetAccess::del( deletePreviewImage ); TDEIO::NetAccess::del( deletePreviewImage );
#endif #endif
@ -1029,8 +1029,8 @@ void BatchProcessImagesDialog::processAborted(bool removeFlag)
deleteImage.addPath(item->nameDest()); deleteImage.addPath(item->nameDest());
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( TDEIO::NetAccess::exists( deleteImage, false, TQT_TQWIDGET(kapp->activeWindow()) ) == true ) if ( TDEIO::NetAccess::exists( deleteImage, false, kapp->activeWindow() ) == true )
TDEIO::NetAccess::del( deleteImage, TQT_TQWIDGET(kapp->activeWindow()) ); TDEIO::NetAccess::del( deleteImage, kapp->activeWindow() );
#else #else
if ( TDEIO::NetAccess::exists( deleteImage ) == true ) if ( TDEIO::NetAccess::exists( deleteImage ) == true )
TDEIO::NetAccess::del( deleteImage ); TDEIO::NetAccess::del( deleteImage );
@ -1067,7 +1067,7 @@ TQString BatchProcessImagesDialog::RenameTargetImageFile(TQFileInfo *fi)
} }
while ( Enumerator < 100 && while ( Enumerator < 100 &&
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
TDEIO::NetAccess::exists( NewDestUrl, true, TQT_TQWIDGET(kapp->activeWindow()) ) TDEIO::NetAccess::exists( NewDestUrl, true, kapp->activeWindow() )
#else #else
TDEIO::NetAccess::exists( NewDestUrl ) TDEIO::NetAccess::exists( NewDestUrl )
#endif #endif

@ -309,7 +309,7 @@ void PixmapView::PreviewProcessDone(TDEProcess* proc)
KURL deletePreviewImage( m_previewFileName ); KURL deletePreviewImage( m_previewFileName );
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
TDEIO::NetAccess::del( deletePreviewImage, TQT_TQWIDGET(kapp->activeWindow()) ); TDEIO::NetAccess::del( deletePreviewImage, kapp->activeWindow() );
#else #else
TDEIO::NetAccess::del( deletePreviewImage ); TDEIO::NetAccess::del( deletePreviewImage );
#endif #endif

@ -225,7 +225,7 @@ void Plugin_BatchProcessImages::slotActivate()
if ( images.images().isEmpty() ) if ( images.images().isEmpty() )
{ {
KMessageBox::sorry(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::sorry(kapp->activeWindow(),
i18n("Please select an album or a selection of images.")); i18n("Please select an album or a selection of images."));
return; return;
} }
@ -237,49 +237,49 @@ void Plugin_BatchProcessImages::slotActivate()
if (from == "batch_convert_images") if (from == "batch_convert_images")
{ {
m_ConvertImagesDialog = new KIPIBatchProcessImagesPlugin::ConvertImagesDialog( urlList, m_ConvertImagesDialog = new KIPIBatchProcessImagesPlugin::ConvertImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_ConvertImagesDialog->show(); m_ConvertImagesDialog->show();
} }
else if (from == "batch_rename_images") else if (from == "batch_rename_images")
{ {
KIPIBatchProcessImagesPlugin::RenameImagesDialog KIPIBatchProcessImagesPlugin::RenameImagesDialog
dlg(urlList, interface, TQT_TQWIDGET(kapp->activeWindow())); dlg(urlList, interface, kapp->activeWindow());
dlg.exec(); dlg.exec();
} }
else if (from == "batch_border_images") else if (from == "batch_border_images")
{ {
m_BorderImagesDialog = new KIPIBatchProcessImagesPlugin::BorderImagesDialog( urlList, m_BorderImagesDialog = new KIPIBatchProcessImagesPlugin::BorderImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_BorderImagesDialog->show(); m_BorderImagesDialog->show();
} }
else if (from == "batch_color_images") else if (from == "batch_color_images")
{ {
m_ColorImagesDialog = new KIPIBatchProcessImagesPlugin::ColorImagesDialog( urlList, m_ColorImagesDialog = new KIPIBatchProcessImagesPlugin::ColorImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_ColorImagesDialog->show(); m_ColorImagesDialog->show();
} }
else if (from == "batch_filter_images") else if (from == "batch_filter_images")
{ {
m_FilterImagesDialog = new KIPIBatchProcessImagesPlugin::FilterImagesDialog( urlList, m_FilterImagesDialog = new KIPIBatchProcessImagesPlugin::FilterImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_FilterImagesDialog->show(); m_FilterImagesDialog->show();
} }
else if (from == "batch_effect_images") else if (from == "batch_effect_images")
{ {
m_EffectImagesDialog = new KIPIBatchProcessImagesPlugin::EffectImagesDialog( urlList, m_EffectImagesDialog = new KIPIBatchProcessImagesPlugin::EffectImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_EffectImagesDialog->show(); m_EffectImagesDialog->show();
} }
else if (from == "batch_recompress_images") else if (from == "batch_recompress_images")
{ {
m_RecompressImagesDialog = new KIPIBatchProcessImagesPlugin::RecompressImagesDialog( urlList, m_RecompressImagesDialog = new KIPIBatchProcessImagesPlugin::RecompressImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_RecompressImagesDialog->show(); m_RecompressImagesDialog->show();
} }
else if (from == "batch_resize_images") else if (from == "batch_resize_images")
{ {
m_ResizeImagesDialog = new KIPIBatchProcessImagesPlugin::ResizeImagesDialog( urlList, m_ResizeImagesDialog = new KIPIBatchProcessImagesPlugin::ResizeImagesDialog( urlList,
interface, TQT_TQWIDGET(kapp->activeWindow())); interface, kapp->activeWindow());
m_ResizeImagesDialog->show(); m_ResizeImagesDialog->show();
} }
else else

@ -335,7 +335,7 @@ void CalWizard::slotPrintOnePage()
int angle = interface_->info( image ).angle(); int angle = interface_->info( image ).angle();
cb_ = new CalBlockPainter(TQT_TQOBJECT(this), cSettings_->getYear(), month, cb_ = new CalBlockPainter(this, cSettings_->getYear(), month,
image, angle, formatter_, painter_); image, angle, formatter_, painter_);
connect(cb_, TQT_SIGNAL(signalCompleted()), connect(cb_, TQT_SIGNAL(signalCompleted()),

@ -82,7 +82,7 @@ void Plugin_Calendar::slotActivate()
return; return;
} }
KIPICalendarPlugin::CalWizard* w = new KIPICalendarPlugin::CalWizard( interface, TQT_TQWIDGET(kapp->activeWindow()) ); KIPICalendarPlugin::CalWizard* w = new KIPICalendarPlugin::CalWizard( interface, kapp->activeWindow() );
w->show(); w->show();
} }

@ -209,7 +209,7 @@ bool CDArchiving::showDialog()
m_HTMLInterfaceAutoRunInf = ""; m_HTMLInterfaceAutoRunInf = "";
m_HTMLInterfaceAutoRunFolder = ""; m_HTMLInterfaceAutoRunFolder = "";
m_configDlg = new CDArchivingDialog( m_interface, TQT_TQWIDGET(kapp->activeWindow()) ); m_configDlg = new CDArchivingDialog( m_interface, kapp->activeWindow() );
readSettings(); readSettings();
if ( m_configDlg->exec() == TQDialog::Accepted ) if ( m_configDlg->exec() == TQDialog::Accepted )

@ -123,7 +123,7 @@ void Plugin_CDArchiving::customEvent(TQCustomEvent *event)
if (!m_progressDlg) if (!m_progressDlg)
{ {
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Archive to CD/DVD")); m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Archive to CD/DVD"));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotCancel())); this, TQT_SLOT(slotCancel()));

@ -135,7 +135,7 @@ void FindDuplicateImages::readSettings(void)
bool FindDuplicateImages::execDialog() bool FindDuplicateImages::execDialog()
{ {
tqApp->setOverrideCursor( TQCursor(TQt::WaitCursor) ); tqApp->setOverrideCursor( TQCursor(TQt::WaitCursor) );
m_findDuplicateDialog = new FindDuplicateDialog( m_interface, TQT_TQWIDGET(kapp->activeWindow()) ); m_findDuplicateDialog = new FindDuplicateDialog( m_interface, kapp->activeWindow() );
tqApp->restoreOverrideCursor(); tqApp->restoreOverrideCursor();
readSettings(); readSettings();
@ -167,9 +167,9 @@ bool FindDuplicateImages::execDialog()
void FindDuplicateImages::showResult() void FindDuplicateImages::showResult()
{ {
if( !m_res.isEmpty() ) if( !m_res.isEmpty() )
DisplayCompare((TQWidget *)(TQT_TQWIDGET(kapp->activeWindow())), m_interface, m_res).exec(); DisplayCompare((TQWidget *)(kapp->activeWindow()), m_interface, m_res).exec();
else else
KMessageBox::information(TQT_TQWIDGET(kapp->activeWindow()), i18n("No identical files found")); KMessageBox::information(kapp->activeWindow(), i18n("No identical files found"));
} }

@ -101,7 +101,7 @@ void Plugin_FindImages::slotFindDuplicateImages()
if (m_findDuplicateOperation->execDialog()) if (m_findDuplicateOperation->execDialog())
{ {
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Find Duplicate Images")); m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Find Duplicate Images"));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotCancel())); this, TQT_SLOT(slotCancel()));

@ -199,7 +199,7 @@ void FlickrTalker::slotAuthenticate()
kdDebug() << "Authenticate url: " << url << endl; kdDebug() << "Authenticate url: " << url << endl;
TDEApplication::kApplication()->invokeBrowser(url.url()); TDEApplication::kApplication()->invokeBrowser(url.url());
int valueOk = KMessageBox::questionYesNo(TQT_TQWIDGET(kapp->activeWindow()), int valueOk = KMessageBox::questionYesNo(kapp->activeWindow(),
i18n("Please Follow through the instructions in the browser window and " i18n("Please Follow through the instructions in the browser window and "
"return back to press ok if you are authenticated or press No"), "return back to press ok if you are authenticated or press No"),
i18n("Flickr Service Web Authorization")); i18n("Flickr Service Web Authorization"));
@ -541,7 +541,7 @@ void FlickrTalker::slotError(const TQString& error)
break; break;
}; };
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Error Occured: %1\n We can not proceed further").arg(transError)); i18n("Error Occured: %1\n We can not proceed further").arg(transError));
// kdDebug() << "Not handling the error now will see it later" << endl; // kdDebug() << "Not handling the error now will see it later" << endl;
@ -716,7 +716,7 @@ void FlickrTalker::parseResponseCheckToken(const TQByteArray& data)
kdDebug() << "Error code=" << errorString << endl; kdDebug() << "Error code=" << errorString << endl;
kdDebug() << "Msg=" << node.toElement().attribute("msg") << endl; kdDebug() << "Msg=" << node.toElement().attribute("msg") << endl;
int valueOk = KMessageBox::questionYesNo(TQT_TQWIDGET(kapp->activeWindow()), int valueOk = KMessageBox::questionYesNo(kapp->activeWindow(),
i18n("Your token is invalid. Would you like to " i18n("Your token is invalid. Would you like to "
"get a new token to proceed ?\n")); "get a new token to proceed ?\n"));
if(valueOk == KMessageBox::Yes) if(valueOk == KMessageBox::Yes)

@ -100,7 +100,7 @@ void Plugin_FlickrExport::slotActivate()
TQString Tmp = dir.saveLocation("tmp", "kipi-flickrexportplugin-" + TQString::number(getpid()) + "/"); TQString Tmp = dir.saveLocation("tmp", "kipi-flickrexportplugin-" + TQString::number(getpid()) + "/");
// We clean it up in the close button // We clean it up in the close button
m_dlg = new KIPIFlickrExportPlugin::FlickrWindow(interface, Tmp, TQT_TQWIDGET(kapp->activeWindow())); m_dlg = new KIPIFlickrExportPlugin::FlickrWindow(interface, Tmp, kapp->activeWindow());
m_dlg->show(); m_dlg->show();
} }

@ -159,7 +159,7 @@ void GalleryList::slotUser2(void)
TQListViewItem* p_lvi = mpGalleryList->selectedItem(); TQListViewItem* p_lvi = mpGalleryList->selectedItem();
if (!p_lvi) if (!p_lvi)
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("No gallery selected!")); KMessageBox::error(kapp->activeWindow(), i18n("No gallery selected!"));
} }
else else
{ {
@ -180,12 +180,12 @@ void GalleryList::slotUser1(void)
TQListViewItem* p_lvi = mpGalleryList->selectedItem(); TQListViewItem* p_lvi = mpGalleryList->selectedItem();
if (!p_lvi) if (!p_lvi)
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("No gallery selected!")); KMessageBox::error(kapp->activeWindow(), i18n("No gallery selected!"));
} }
else else
{ {
if (KMessageBox::Yes == if (KMessageBox::Yes ==
KMessageBox::warningYesNo(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::warningYesNo(kapp->activeWindow(),
i18n("Are you sure you want to remove this gallery? " i18n("Are you sure you want to remove this gallery? "
"All synchronisaton settings will be lost. " "All synchronisaton settings will be lost. "
"You cannot undo this action."), "You cannot undo this action."),

@ -129,7 +129,7 @@ void Plugin_GalleryExport::slotSync()
return; return;
} }
KIPIGalleryExportPlugin::GalleryWindow dlg(interface, TQT_TQWIDGET(kapp->activeWindow()), mpGalleries); KIPIGalleryExportPlugin::GalleryWindow dlg(interface, kapp->activeWindow(), mpGalleries);
dlg.exec(); dlg.exec();
} }
@ -142,7 +142,7 @@ void Plugin_GalleryExport::slotConfigure()
return; return;
} }
KIPIGalleryExportPlugin::GalleryList dlg(TQT_TQWIDGET(kapp->activeWindow()), mpGalleries, false); KIPIGalleryExportPlugin::GalleryList dlg(kapp->activeWindow(), mpGalleries, false);
dlg.exec(); dlg.exec();
} }
@ -155,7 +155,7 @@ void Plugin_GalleryExport::slotCollectionSettings()
return; return;
} }
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), "Not Implemented Yet!"); KMessageBox::error(kapp->activeWindow(), "Not Implemented Yet!");
} }
void Plugin_GalleryExport::slotImageSettings() void Plugin_GalleryExport::slotImageSettings()
@ -167,7 +167,7 @@ void Plugin_GalleryExport::slotImageSettings()
return; return;
} }
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), "Not Implemented Yet!"); KMessageBox::error(kapp->activeWindow(), "Not Implemented Yet!");
} }
KIPI::Category Plugin_GalleryExport::category( TDEAction* action ) const KIPI::Category Plugin_GalleryExport::category( TDEAction* action ) const

@ -111,9 +111,9 @@ GPSEditDialog::GPSEditDialog(TQWidget* parent, const GPSDataContainer& gpsData,
TQPushButton *latResetButton = new TQPushButton(SmallIcon("clear_left"), TQString(), plainPage()); TQPushButton *latResetButton = new TQPushButton(SmallIcon("clear_left"), TQString(), plainPage());
TQPushButton *lonResetButton = new TQPushButton(SmallIcon("clear_left"), TQString(), plainPage()); TQPushButton *lonResetButton = new TQPushButton(SmallIcon("clear_left"), TQString(), plainPage());
d->altitudeInput->setValidator(new TQDoubleValidator(-20000.0, 20000.0, 1, TQT_TQOBJECT(this))); d->altitudeInput->setValidator(new TQDoubleValidator(-20000.0, 20000.0, 1, this));
d->latitudeInput->setValidator(new TQDoubleValidator(-90.0, 90.0, 12, TQT_TQOBJECT(this))); d->latitudeInput->setValidator(new TQDoubleValidator(-90.0, 90.0, 12, this));
d->longitudeInput->setValidator(new TQDoubleValidator(-180.0, 180.0, 12, TQT_TQOBJECT(this))); d->longitudeInput->setValidator(new TQDoubleValidator(-180.0, 180.0, 12, this));
d->goButton = new TQPushButton(i18n("Goto Location"), plainPage()); d->goButton = new TQPushButton(i18n("Goto Location"), plainPage());
d->goButton->setEnabled(false); d->goButton->setEnabled(false);

@ -135,7 +135,7 @@ bool Plugin_GPSSync::checkBinaries(TQString &gpsBabelVersion)
if (!gpsBabelBinary.isAvailable()) if (!gpsBabelBinary.isAvailable())
{ {
KMessageBox::information( KMessageBox::information(
TQT_TQWIDGET(kapp->activeWindow()), kapp->activeWindow(),
i18n("<qt><p>Unable to find the gpsbabel executable:<br> " i18n("<qt><p>Unable to find the gpsbabel executable:<br> "
"This program is required by this plugin to support GPS data file decoding. " "This program is required by this plugin to support GPS data file decoding. "
"Please install gpsbabel as a package from your distributor " "Please install gpsbabel as a package from your distributor "
@ -152,7 +152,7 @@ bool Plugin_GPSSync::checkBinaries(TQString &gpsBabelVersion)
if (!gpsBabelBinary.versionIsRight()) if (!gpsBabelBinary.versionIsRight())
{ {
KMessageBox::information( KMessageBox::information(
TQT_TQWIDGET(kapp->activeWindow()), kapp->activeWindow(),
i18n("<qt><p>gpsbabel executable is not up to date:<br> " i18n("<qt><p>gpsbabel executable is not up to date:<br> "
"The version %1 of gpsbabel have been found on your computer. " "The version %1 of gpsbabel have been found on your computer. "
"This version is too old to run properly with this plugin. " "This version is too old to run properly with this plugin. "
@ -186,7 +186,7 @@ void Plugin_GPSSync::slotGPSSync()
*/ */
KIPIGPSSyncPlugin::GPSSyncDialog *dialog = new KIPIGPSSyncPlugin::GPSSyncDialog( KIPIGPSSyncPlugin::GPSSyncDialog *dialog = new KIPIGPSSyncPlugin::GPSSyncDialog(
m_interface, TQT_TQWIDGET(kapp->activeWindow())); m_interface, kapp->activeWindow());
dialog->setImages( images.images() ); dialog->setImages( images.images() );
dialog->show(); dialog->show();
@ -206,7 +206,7 @@ void Plugin_GPSSync::slotGPSEdit()
bool hasGPSInfo = exiv2Iface.getGPSInfo(alt, lat, lng); bool hasGPSInfo = exiv2Iface.getGPSInfo(alt, lat, lng);
KIPIGPSSyncPlugin::GPSDataContainer gpsData(alt, lat, lng, false); KIPIGPSSyncPlugin::GPSDataContainer gpsData(alt, lat, lng, false);
KIPIGPSSyncPlugin::GPSEditDialog dlg(TQT_TQWIDGET(kapp->activeWindow()), KIPIGPSSyncPlugin::GPSEditDialog dlg(kapp->activeWindow(),
gpsData, img.fileName(), hasGPSInfo); gpsData, img.fileName(), hasGPSInfo);
if (dlg.exec() == KDialogBase::Accepted) if (dlg.exec() == KDialogBase::Accepted)
@ -245,7 +245,7 @@ void Plugin_GPSSync::slotGPSEdit()
if (!errorFiles.isEmpty()) if (!errorFiles.isEmpty())
{ {
KMessageBox::errorList( KMessageBox::errorList(
TQT_TQWIDGET(kapp->activeWindow()), kapp->activeWindow(),
i18n("Unable to save geographical coordinates into:"), i18n("Unable to save geographical coordinates into:"),
errorFiles, errorFiles,
i18n("Edit Geographical Coordinates")); i18n("Edit Geographical Coordinates"));
@ -261,7 +261,7 @@ void Plugin_GPSSync::slotGPSRemove()
return; return;
if (KMessageBox::warningYesNo( if (KMessageBox::warningYesNo(
TQT_TQWIDGET(kapp->activeWindow()), kapp->activeWindow(),
i18n("Geographical coordinates will be definitively removed from all selected images.\n" i18n("Geographical coordinates will be definitively removed from all selected images.\n"
"Do you want to continue ?"), "Do you want to continue ?"),
i18n("Remove Geographical Coordinates")) != KMessageBox::Yes) i18n("Remove Geographical Coordinates")) != KMessageBox::Yes)
@ -296,7 +296,7 @@ void Plugin_GPSSync::slotGPSRemove()
if (!errorFiles.isEmpty()) if (!errorFiles.isEmpty())
{ {
KMessageBox::errorList( KMessageBox::errorList(
TQT_TQWIDGET(kapp->activeWindow()), kapp->activeWindow(),
i18n("Unable to remove geographical coordinates from:"), i18n("Unable to remove geographical coordinates from:"),
errorFiles, errorFiles,
i18n("Remove Geographical Coordinates")); i18n("Remove Geographical Coordinates"));
@ -314,7 +314,7 @@ void Plugin_GPSSync::slotKMLExport()
else else
{ {
KIPIGPSSyncPlugin::KMLExportConfig *kmlExportConfigGui = new KIPIGPSSyncPlugin::KMLExportConfig( KIPIGPSSyncPlugin::KMLExportConfig *kmlExportConfigGui = new KIPIGPSSyncPlugin::KMLExportConfig(
TQT_TQWIDGET(kapp->activeWindow()), i18n("KMLExport").ascii()); kapp->activeWindow(), i18n("KMLExport").ascii());
connect(kmlExportConfigGui, TQT_SIGNAL(okButtonClicked()), connect(kmlExportConfigGui, TQT_SIGNAL(okButtonClicked()),
this, TQT_SLOT(slotKMLGenerate())); this, TQT_SLOT(slotKMLGenerate()));
kmlExportConfigGui->show(); kmlExportConfigGui->show();

@ -67,7 +67,7 @@ KIPI::Category Plugin_iPodExport::category( TDEAction* action ) const
void Plugin_iPodExport::slotImageUpload() void Plugin_iPodExport::slotImageUpload()
{ {
IpodExport::UploadDialog *dlg = new IpodExport::UploadDialog( m_interface, i18n("iPod Export"), IpodExport::UploadDialog *dlg = new IpodExport::UploadDialog( m_interface, i18n("iPod Export"),
TQT_TQWIDGET(kapp->activeWindow()) ); kapp->activeWindow() );
dlg->setMinimumWidth( 460 ); dlg->setMinimumWidth( 460 );
dlg->show(); dlg->show();
} }

@ -212,7 +212,7 @@ void Plugin_JPEGLossless::slotFlip()
m_progressDlg = 0; m_progressDlg = 0;
} }
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(),
i18n("Flip images %1").arg(title)); i18n("Flip images %1").arg(title));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
@ -268,7 +268,7 @@ void Plugin_JPEGLossless::slotRotate()
m_progressDlg = 0; m_progressDlg = 0;
} }
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(),
i18n("Rotate images %1").arg(title)); i18n("Rotate images %1").arg(title));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
@ -284,7 +284,7 @@ void Plugin_JPEGLossless::slotConvert2GrayScale()
{ {
KURL::List items = images(); KURL::List items = images();
if (items.count() <= 0 || if (items.count() <= 0 ||
KMessageBox::No==KMessageBox::warningYesNo(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::No==KMessageBox::warningYesNo(kapp->activeWindow(),
i18n("<p>Are you sure you wish to convert the selected image(s) to " i18n("<p>Are you sure you wish to convert the selected image(s) to "
"black and white? This operation <b>cannot</b> be undone.</p>"))) "black and white? This operation <b>cannot</b> be undone.</p>")))
return; return;
@ -301,7 +301,7 @@ void Plugin_JPEGLossless::slotConvert2GrayScale()
m_progressDlg = 0; m_progressDlg = 0;
} }
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(),
i18n("Convert images to black & white")); i18n("Convert images to black & white"));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),

@ -103,7 +103,7 @@ CameraUI::CameraUI() : TQWidget()
resize(700, 440); resize(700, 440);
setMinimumSize(600, 400); setMinimumSize(600, 400);
mCameraList = new CameraList(TQT_TQOBJECT(this), locateLocal("data", "kipi/cameras.xml")); mCameraList = new CameraList(this, locateLocal("data", "kipi/cameras.xml"));
mCameraType = new CameraType(); mCameraType = new CameraType();
//--------------------------------------------- //---------------------------------------------
@ -193,9 +193,9 @@ CameraUI::CameraUI() : TQWidget()
mSplitter->setOpaqueResize(true); mSplitter->setOpaqueResize(true);
mSplitter->setResizeMode(mFolderView, TQSplitter::Stretch); mSplitter->setResizeMode(mFolderView, TQSplitter::Stretch);
mSplitter->setResizeMode(mIconView, TQSplitter::Stretch); mSplitter->setResizeMode(mIconView, TQSplitter::Stretch);
container_ = new GPFileItemContainer(TQT_TQOBJECT(this), mFolderView, mIconView); container_ = new GPFileItemContainer(this, mFolderView, mIconView);
efilter_ = new GPEventFilter(TQT_TQOBJECT(this)); efilter_ = new GPEventFilter(this);
controller_ = new GPController(TQT_TQOBJECT(this), *mCameraType); controller_ = new GPController(this, *mCameraType);
controller_->start(); controller_->start();
cameraConnected_ = false; cameraConnected_ = false;
@ -243,38 +243,38 @@ void CameraUI::setupAccel() {
mCameraUIAccel = new TDEAccel(this); mCameraUIAccel = new TDEAccel(this);
mCameraUIAccel->insert("Select All", i18n("Select All"), mCameraUIAccel->insert("Select All", i18n("Select All"),
i18n("Select all the images from the camera."), i18n("Select all the images from the camera."),
CTRL+Key_A, TQT_TQOBJECT(this), TQT_SLOT(slotSelectAll())); CTRL+Key_A, this, TQT_SLOT(slotSelectAll()));
mCameraUIAccel->insert("Select None", i18n("Select None"), mCameraUIAccel->insert("Select None", i18n("Select None"),
i18n("Deselect all the images from the camera."), i18n("Deselect all the images from the camera."),
CTRL+Key_U, TQT_TQOBJECT(this), TQT_SLOT(slotSelectNone())); CTRL+Key_U, this, TQT_SLOT(slotSelectNone()));
mCameraUIAccel->insert("Invert Selection", i18n("Invert Selection"), mCameraUIAccel->insert("Invert Selection", i18n("Invert Selection"),
i18n("Invert the selection."), i18n("Invert the selection."),
CTRL+Key_Asterisk, TQT_TQOBJECT(this), TQT_SLOT(slotSelectInvert())); CTRL+Key_Asterisk, this, TQT_SLOT(slotSelectInvert()));
mCameraUIAccel->insert("Select New", i18n("Select New Items"), mCameraUIAccel->insert("Select New", i18n("Select New Items"),
i18n("Select all the that were not previously downloaded."), i18n("Select all the that were not previously downloaded."),
CTRL+Key_Slash, TQT_TQOBJECT(this), TQT_SLOT(slotSelectNew())); CTRL+Key_Slash, this, TQT_SLOT(slotSelectNew()));
setCameraConnected(false); setCameraConnected(false);
} }
void CameraUI::setupConnections() { void CameraUI::setupConnections() {
connect(this, TQT_SIGNAL(signalStatusMsg(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotSetStatusMsg(const TQString&))); connect(this, TQT_SIGNAL(signalStatusMsg(const TQString&)), this, TQT_SLOT(slotSetStatusMsg(const TQString&)));
connect(this, TQT_SIGNAL(signalProgressVal(int)), TQT_TQOBJECT(this), TQT_SLOT(slotSetProgressVal(int))); connect(this, TQT_SIGNAL(signalProgressVal(int)), this, TQT_SLOT(slotSetProgressVal(int)));
connect(this, TQT_SIGNAL(signalBusy(bool)), TQT_TQOBJECT(this), TQT_SLOT(slotBusy(bool))); connect(this, TQT_SIGNAL(signalBusy(bool)), this, TQT_SLOT(slotBusy(bool)));
connect(efilter_, TQT_SIGNAL(signalStatusMsg(const TQString&)), TQT_TQOBJECT(this), TQT_SIGNAL(signalStatusMsg(const TQString&))); connect(efilter_, TQT_SIGNAL(signalStatusMsg(const TQString&)), this, TQT_SIGNAL(signalStatusMsg(const TQString&)));
connect(efilter_, TQT_SIGNAL(signalProgressVal(int)), TQT_TQOBJECT(this), TQT_SIGNAL(signalProgressVal(int))); connect(efilter_, TQT_SIGNAL(signalProgressVal(int)), this, TQT_SIGNAL(signalProgressVal(int)));
connect(efilter_, TQT_SIGNAL(signalBusy(bool)), TQT_TQOBJECT(this), TQT_SIGNAL(signalBusy(bool))); connect(efilter_, TQT_SIGNAL(signalBusy(bool)), this, TQT_SIGNAL(signalBusy(bool)));
connect(mFolderView, TQT_SIGNAL(signalFolderChanged(CameraFolderItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotFolderSelected(CameraFolderItem*))); connect(mFolderView, TQT_SIGNAL(signalFolderChanged(CameraFolderItem*)), this, TQT_SLOT(slotFolderSelected(CameraFolderItem*)));
connect(mIconView, TQT_SIGNAL(signalDownloadSelectedItems()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDownloadSelected())); connect(mIconView, TQT_SIGNAL(signalDownloadSelectedItems()), this, TQT_SLOT(slotCameraDownloadSelected()));
connect(mIconView, TQT_SIGNAL(signalDeleteSelectedItems()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDeleteSelected())); connect(mIconView, TQT_SIGNAL(signalDeleteSelectedItems()), this, TQT_SLOT(slotCameraDeleteSelected()));
connect(mChangeDownloadDirectoryBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotChangeDownloadDirectory())); connect(mChangeDownloadDirectoryBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotChangeDownloadDirectory()));
connect(mCameraList, TQT_SIGNAL(signalCameraListChanged()), TQT_TQOBJECT(this), TQT_SLOT(slotSyncCameraComboBox())); connect(mCameraList, TQT_SIGNAL(signalCameraListChanged()), this, TQT_SLOT(slotSyncCameraComboBox()));
connect(mCameraConnectBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraConnectToggle())); connect(mCameraConnectBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraConnectToggle()));
connect(mCameraSetupBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotSetupCamera())); connect(mCameraSetupBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotSetupCamera()));
connect(mCameraStopBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraCancel())); connect(mCameraStopBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraCancel()));
connect(mCameraDownloadBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDownloadSelected())); connect(mCameraDownloadBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraDownloadSelected()));
connect(mCameraUploadBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraUpload())); connect(mCameraUploadBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraUpload()));
connect(mCameraDeleteBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDeleteSelected())); connect(mCameraDeleteBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraDeleteSelected()));
connect(mDialogCloseBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(close())); connect(mDialogCloseBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(close()));
} }
void CameraUI::setCameraConnected(bool val) { void CameraUI::setCameraConnected(bool val) {
@ -328,7 +328,7 @@ void CameraUI::slotSyncCameraComboBox() {
void CameraUI::setCameraType(const CameraType& ctype) { void CameraUI::setCameraType(const CameraType& ctype) {
*mCameraType = ctype; *mCameraType = ctype;
delete controller_; delete controller_;
controller_ = new GPController(TQT_TQOBJECT(this), *mCameraType); controller_ = new GPController(this, *mCameraType);
controller_->start(); controller_->start();
} }
@ -420,7 +420,7 @@ void CameraUI::slotCameraConnectToggle() {
controller_->requestInitialize(); controller_->requestInitialize();
} else { } else {
delete controller_; delete controller_;
controller_ = new GPController(TQT_TQOBJECT(this), *mCameraType); controller_ = new GPController(this, *mCameraType);
controller_->start(); controller_->start();
cameraConnected_ = false; cameraConnected_ = false;
mIconView->clear(); mIconView->clear();

@ -32,7 +32,7 @@ namespace KIPIKameraKlientPlugin
GPEventFilter::GPEventFilter(TQObject* parent) GPEventFilter::GPEventFilter(TQObject* parent)
: TQObject(parent) { : TQObject(parent) {
parent->installEventFilter(this); parent->installEventFilter(this);
view_ = static_cast<CameraUI *>(TQT_TQWIDGET(parent)); view_ = static_cast<CameraUI *>(parent);
} }
GPEventFilter::~GPEventFilter() { GPEventFilter::~GPEventFilter() {

@ -39,13 +39,13 @@ SavefileDialog::SavefileDialog(const TQString& file, TQWidget *parent, const cha
renameEdit->setText(fileInfo.fileName()); renameEdit->setText(fileInfo.fileName());
connect(renameEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slot_renameEnabled())); connect(renameEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slot_renameEnabled()));
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
renameBtn = bbox->addButton(i18n("Rename"), TQT_TQOBJECT(this), TQT_SLOT(slot_rename()), true); renameBtn = bbox->addButton(i18n("Rename"), this, TQT_SLOT(slot_rename()), true);
renameBtn->setEnabled(false); renameBtn->setEnabled(false);
bbox->addButton(i18n("Skip"), TQT_TQOBJECT(this), TQT_SLOT(slot_skip()), false); bbox->addButton(i18n("Skip"), this, TQT_SLOT(slot_skip()), false);
bbox->addButton(i18n("Skip All"), TQT_TQOBJECT(this), TQT_SLOT(slot_skipAll()), true); bbox->addButton(i18n("Skip All"), this, TQT_SLOT(slot_skipAll()), true);
bbox->addButton(i18n("Overwrite"), TQT_TQOBJECT(this), TQT_SLOT(slot_overwrite()), true); bbox->addButton(i18n("Overwrite"), this, TQT_SLOT(slot_overwrite()), true);
bbox->addButton(i18n("Overwrite All"), TQT_TQOBJECT(this), TQT_SLOT(slot_overwriteAll()), true); bbox->addButton(i18n("Overwrite All"), this, TQT_SLOT(slot_overwriteAll()), true);
TQPushButton *cancelBtn = bbox->addButton(i18n("&Cancel"), TQT_TQOBJECT(this), TQT_SLOT(reject()), true); TQPushButton *cancelBtn = bbox->addButton(i18n("&Cancel"), this, TQT_SLOT(reject()), true);
cancelBtn->setDefault(true); cancelBtn->setDefault(true);
bbox->layout(); bbox->layout();
TQGridLayout *layout = new TQGridLayout(this, 0, 0, 15); TQGridLayout *layout = new TQGridLayout(this, 0, 0, 15);

@ -99,7 +99,7 @@ EXIFCaption::EXIFCaption(TQWidget* parent)
// EXIF only accept printable Ascii char. // EXIF only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -127,7 +127,7 @@ EXIFDevice::EXIFDevice(TQWidget* parent)
// EXIF only accept printable Ascii char. // EXIF only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -95,7 +95,7 @@ IPTCCaption::IPTCCaption(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -88,7 +88,7 @@ IPTCCategories::IPTCCategories(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -92,7 +92,7 @@ IPTCCredits::IPTCCredits(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -84,7 +84,7 @@ IPTCKeywords::IPTCKeywords(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -362,7 +362,7 @@ IPTCOrigin::IPTCOrigin(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -97,7 +97,7 @@ IPTCStatus::IPTCStatus(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -84,7 +84,7 @@ IPTCSubjects::IPTCSubjects(TQWidget* parent)
// IPTC only accept printable Ascii char. // IPTC only accept printable Ascii char.
TQRegExp asciiRx("[\x20-\x7F]+$"); TQRegExp asciiRx("[\x20-\x7F]+$");
TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, TQT_TQOBJECT(this)); TQValidator *asciiValidator = new TQRegExpValidator(asciiRx, this);
// -------------------------------------------------------- // --------------------------------------------------------

@ -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"));

@ -68,13 +68,13 @@ int CheckBinProg::findExecutables( void )
if (ImageMagickPath.isEmpty()) if (ImageMagickPath.isEmpty())
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Your 'ImageMagick' binary program path is empty.\nSetting to default value. Check option's setting.")); KMessageBox::error(kapp->activeWindow(), i18n("Your 'ImageMagick' binary program path is empty.\nSetting to default value. Check option's setting."));
return (ValRet); return (ValRet);
} }
if (MjpegToolsPath.isEmpty()) if (MjpegToolsPath.isEmpty())
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Your 'MjpegTools' binary programs path is empty.\nSetting to default value. Check option's setting.")); KMessageBox::error(kapp->activeWindow(), i18n("Your 'MjpegTools' binary programs path is empty.\nSetting to default value. Check option's setting."));
return (ValRet); return (ValRet);
} }
@ -121,7 +121,7 @@ if (MjpegToolsPath.isEmpty())
"\n\nVisit these URLs for more information:" "\n\nVisit these URLs for more information:"
"\nImageMagick package: http://www.imagemagick.org/" "\nImageMagick package: http://www.imagemagick.org/"
"\nMjpegTools package: http://mjpeg.sourceforge.net/"); "\nMjpegTools package: http://mjpeg.sourceforge.net/");
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), str); KMessageBox::error(kapp->activeWindow(), str);
return (ValRet); return (ValRet);
} }

@ -748,7 +748,7 @@ void KImg2mpgData::slotOptionDlgOkClicked( void )
m_MJBinFolderConfig.truncate(m_MJBinFolderConfig.length()-1); m_MJBinFolderConfig.truncate(m_MJBinFolderConfig.length()-1);
writeSettings(); writeSettings();
CheckBinProg* CheckExternalPrograms = new CheckBinProg(TQT_TQOBJECT(this)); CheckBinProg* CheckExternalPrograms = new CheckBinProg(this);
int ValRet = CheckExternalPrograms->findExecutables(); int ValRet = CheckExternalPrograms->findExecutables();
m_Encodebutton->setEnabled(true); m_Encodebutton->setEnabled(true);

@ -85,7 +85,7 @@ void Plugin_Mpegencoder::slotActivate()
} }
KIPIMPEGEncoderPlugin::KImg2mpgData *MPEGconverterDialog = KIPIMPEGEncoderPlugin::KImg2mpgData *MPEGconverterDialog =
new KIPIMPEGEncoderPlugin::KImg2mpgData( interface, TQT_TQWIDGET(kapp->activeWindow()) ); new KIPIMPEGEncoderPlugin::KImg2mpgData( interface, kapp->activeWindow() );
KIPIMPEGEncoderPlugin::CheckBinProg* CheckExternalPrograms = KIPIMPEGEncoderPlugin::CheckBinProg* CheckExternalPrograms =
new KIPIMPEGEncoderPlugin::CheckBinProg(this); new KIPIMPEGEncoderPlugin::CheckBinProg(this);

@ -128,7 +128,7 @@ void PicasawebTalker::getToken(const TQString& username, const TQString& passwor
TQString url = "https://www.google.com/accounts/ClientLogin"; TQString url = "https://www.google.com/accounts/ClientLogin";
PicasawebLogin *loginDialog = new PicasawebLogin(TQT_TQWIDGET(kapp->activeWindow()), TQString("LoginWindow"), username, password); PicasawebLogin *loginDialog = new PicasawebLogin(kapp->activeWindow(), TQString("LoginWindow"), username, password);
/*if (username!=NULL && username.length() > 0){ /*if (username!=NULL && username.length() > 0){
// kdDebug()<<"Showing stored username"<< username << endl; // kdDebug()<<"Showing stored username"<< username << endl;
loginDialog->setUsername(username); loginDialog->setUsername(username);
@ -593,7 +593,7 @@ void PicasawebTalker::slotError(const TQString & error)
transError=i18n("Unknown error"); transError=i18n("Unknown error");
}; };
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Error Occured: %1\n We can not proceed further").arg(transError)); KMessageBox::error(kapp->activeWindow(), i18n("Error Occured: %1\n We can not proceed further").arg(transError));
//kdDebug()<<"Not handling the error now will see it later"<<endl; //kdDebug()<<"Not handling the error now will see it later"<<endl;
} }

@ -373,7 +373,7 @@ void PicasawebWindow::slotAuthCancel()
void PicasawebWindow::slotCreateNewAlbum() void PicasawebWindow::slotCreateNewAlbum()
{ {
NewAlbumDialog *dlg = new NewAlbumDialog(TQT_TQWIDGET(kapp->activeWindow())); NewAlbumDialog *dlg = new NewAlbumDialog(kapp->activeWindow());
dlg->m_dateAndTimeEdit->setDateTime(TQDateTime::currentDateTime()); dlg->m_dateAndTimeEdit->setDateTime(TQDateTime::currentDateTime());
TQString test; TQString test;
int t = dlg->exec(); int t = dlg->exec();

@ -100,7 +100,7 @@ void Plugin_PicasawebExport::slotActivate()
TDEStandardDirs dir; TDEStandardDirs dir;
TQString Tmp = dir.saveLocation("tmp", "kipi-picasawebexportplugin-" + TQString::number(getpid()) + "/"); TQString Tmp = dir.saveLocation("tmp", "kipi-picasawebexportplugin-" + TQString::number(getpid()) + "/");
m_dlg = new KIPIPicasawebExportPlugin::PicasawebWindow(interface,Tmp,TQT_TQWIDGET(kapp->activeWindow())); m_dlg = new KIPIPicasawebExportPlugin::PicasawebWindow(interface,Tmp,kapp->activeWindow());
m_dlg->show(); m_dlg->show();
} }

@ -105,12 +105,12 @@ void Plugin_PrintWizard::slotActivate()
if (fileList.count() == 0) if (fileList.count() == 0)
{ {
KMessageBox::sorry(TQT_TQWIDGET(kapp->activeWindow()), i18n("Please select one or more photos to print."), KMessageBox::sorry(kapp->activeWindow(), i18n("Please select one or more photos to print."),
i18n("Print Wizard")); i18n("Print Wizard"));
return; return;
} }
KIPIPrintWizardPlugin::FrmPrintWizard frm(TQT_TQWIDGET(kapp->activeWindow())); KIPIPrintWizardPlugin::FrmPrintWizard frm(kapp->activeWindow());
TDEStandardDirs dir; TDEStandardDirs dir;
TQString tempPath = dir.saveLocation("tmp", "kipi-printwizardplugin-" + TQString::number(getpid()) + "/"); TQString tempPath = dir.saveLocation("tmp", "kipi-printwizardplugin-" + TQString::number(getpid()) + "/");
frm.print(fileList, tempPath); frm.print(fileList, tempPath);

@ -159,7 +159,7 @@ BatchDialog::BatchDialog(TQWidget* /*parent*/)
setButtonTip( Close, i18n("<p>Exit Raw Converter")); setButtonTip( Close, i18n("<p>Exit Raw Converter"));
m_blinkConvertTimer = new TQTimer(this); m_blinkConvertTimer = new TQTimer(this);
m_thread = new ActionThread(TQT_TQOBJECT(this)); m_thread = new ActionThread(this);
// --------------------------------------------------------------- // ---------------------------------------------------------------

@ -166,14 +166,14 @@ void Plugin_RawConverter::slotActivateSingle()
if (!isRAWFile(images.images()[0].path())) if (!isRAWFile(images.images()[0].path()))
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("\"%1\" is not a Raw file.").arg(images.images()[0].fileName())); i18n("\"%1\" is not a Raw file.").arg(images.images()[0].fileName()));
return; return;
} }
KIPIRawConverterPlugin::SingleDialog *converter = KIPIRawConverterPlugin::SingleDialog *converter =
new KIPIRawConverterPlugin::SingleDialog(images.images()[0].path(), new KIPIRawConverterPlugin::SingleDialog(images.images()[0].path(),
TQT_TQWIDGET(kapp->activeWindow())); kapp->activeWindow());
converter->show(); converter->show();
} }
@ -198,7 +198,7 @@ void Plugin_RawConverter::slotActivateBatch()
return; return;
KIPIRawConverterPlugin::BatchDialog *converter = KIPIRawConverterPlugin::BatchDialog *converter =
new KIPIRawConverterPlugin::BatchDialog(TQT_TQWIDGET(kapp->activeWindow())); new KIPIRawConverterPlugin::BatchDialog(kapp->activeWindow());
KURL::List urls = images.images(); KURL::List urls = images.images();
TQStringList files; TQStringList files;

@ -146,7 +146,7 @@ SingleDialog::SingleDialog(const TQString& file, TQWidget */*parent*/)
m_blinkPreviewTimer = new TQTimer(this); m_blinkPreviewTimer = new TQTimer(this);
m_blinkConvertTimer = new TQTimer(this); m_blinkConvertTimer = new TQTimer(this);
m_thread = new ActionThread(TQT_TQOBJECT(this)); m_thread = new ActionThread(this);
// --------------------------------------------------------------- // ---------------------------------------------------------------

@ -145,7 +145,7 @@ void Plugin_SendImages::customEvent(TQCustomEvent *event)
if (!m_progressDlg) if (!m_progressDlg)
{ {
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Preparing images to send")); m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Preparing images to send"));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotCancel())); this, TQT_SLOT(slotCancel()));

@ -105,7 +105,7 @@ SendImages::~SendImages()
///Invokes the User Dialog Window ///Invokes the User Dialog Window
void SendImages::showDialog() void SendImages::showDialog()
{ {
m_sendImagesDialog = new KIPISendimagesPlugin::SendImagesDialog(TQT_TQWIDGET(kapp->activeWindow()), m_sendImagesDialog = new KIPISendimagesPlugin::SendImagesDialog(kapp->activeWindow(),
m_interface, m_collection); m_interface, m_collection);
m_sendImagesDialog->show(); m_sendImagesDialog->show();
@ -372,7 +372,7 @@ bool SendImages::showErrors()
{ {
if ( m_imagesResizedWithError.isEmpty() == false ) if ( m_imagesResizedWithError.isEmpty() == false )
{ {
listImagesErrorDialog *ErrorImagesDialog = new listImagesErrorDialog(TQT_TQWIDGET(kapp->activeWindow()), listImagesErrorDialog *ErrorImagesDialog = new listImagesErrorDialog(kapp->activeWindow(),
i18n("Error during resize images process."), i18n("Error during resize images process."),
i18n("Cannot resize the following image files:"), i18n("Cannot resize the following image files:"),
i18n("Do you want them to be added as attachments " i18n("Do you want them to be added as attachments "
@ -484,7 +484,7 @@ bool SendImages::invokeMailAgent(void)
} }
if ( m_mailAgentProc->start() == false ) if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease " i18n("Cannot start '%1' program;\nplease "
"check your installation.") "check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText())); .arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -513,7 +513,7 @@ bool SendImages::invokeMailAgent(void)
*m_mailAgentProc << TQFile::encodeName((*it).path()).data(); *m_mailAgentProc << TQFile::encodeName((*it).path()).data();
if ( m_mailAgentProc->start() == false ) if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease " i18n("Cannot start '%1' program;\nplease "
"check your installation.") "check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText())); .arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -535,7 +535,7 @@ bool SendImages::invokeMailAgent(void)
} }
if ( m_mailAgentProc->start() == false ) if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease " i18n("Cannot start '%1' program;\nplease "
"check your installation.") "check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText())); .arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -561,7 +561,7 @@ bool SendImages::invokeMailAgent(void)
*m_mailAgentProc << Temp; *m_mailAgentProc << Temp;
if ( m_mailAgentProc->start() == false ) if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease " i18n("Cannot start '%1' program;\nplease "
"check your installation.") "check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText())); .arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -624,7 +624,7 @@ bool SendImages::invokeMailAgent(void)
tqDebug ("%s", Temp.ascii()); tqDebug ("%s", Temp.ascii());
if ( m_mailAgentProc->start(TDEProcess::NotifyOnExit , TDEProcess::All) == false ) if ( m_mailAgentProc->start(TDEProcess::NotifyOnExit , TDEProcess::All) == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease " i18n("Cannot start '%1' program;\nplease "
"check your installation.") "check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText())); .arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -642,7 +642,7 @@ bool SendImages::invokeMailAgent(void)
void SendImages::removeTmpFiles(void) void SendImages::removeTmpFiles(void)
{ {
if (DeleteDir(m_tmp) == false) if (DeleteDir(m_tmp) == false)
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot remove temporary folder %1.").arg(m_tmp)); KMessageBox::error(kapp->activeWindow(), i18n("Cannot remove temporary folder %1.").arg(m_tmp));
} }
///Checks if directory is empty and invokes its deletion ///Checks if directory is empty and invokes its deletion
@ -881,7 +881,7 @@ void SendImages::slotMozillaExited(TDEProcess*)
if ( m_mailAgentProc2->start() == false ) if ( m_mailAgentProc2->start() == false )
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease " i18n("Cannot start '%1' program;\nplease "
"check your installation.") "check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText())); .arg(m_sendImagesDialog->m_mailAgentName->currentText()));

@ -87,7 +87,7 @@ void SimpleViewerExport::run(KIPI::Interface* interface, TQObject *parent)
{ {
if(!plugin->installSimpleViewer()) if(!plugin->installSimpleViewer())
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("SimpleViewer installation failed")); KMessageBox::error(kapp->activeWindow(), i18n("SimpleViewer installation failed"));
return; return;
} }
} }
@ -134,7 +134,7 @@ bool SimpleViewerExport::configure()
m_canceled = false; m_canceled = false;
if(!m_configDlg) if(!m_configDlg)
m_configDlg = new SVEDialog(m_interface, TQT_TQWIDGET(kapp->activeWindow())); m_configDlg = new SVEDialog(m_interface, kapp->activeWindow());
bool configured = false; bool configured = false;
while(!configured) while(!configured)
@ -144,9 +144,9 @@ bool SimpleViewerExport::configure()
configured = true; configured = true;
if(TDEIO::NetAccess::exists(m_configDlg->exportURL(), false, TQT_TQWIDGET(kapp->activeWindow()))) if(TDEIO::NetAccess::exists(m_configDlg->exportURL(), false, kapp->activeWindow()))
{ {
int ret = KMessageBox::warningYesNoCancel(TQT_TQWIDGET(kapp->activeWindow()), int ret = KMessageBox::warningYesNoCancel(kapp->activeWindow(),
i18n("Target folder %1 already exists.\n" i18n("Target folder %1 already exists.\n"
"Do you want to overwrite it (all data in this folder will be lost)") "Do you want to overwrite it (all data in this folder will be lost)")
.arg(m_configDlg->exportURL())); .arg(m_configDlg->exportURL()));
@ -154,9 +154,9 @@ bool SimpleViewerExport::configure()
switch(ret) switch(ret)
{ {
case KMessageBox::Yes: case KMessageBox::Yes:
if(!TDEIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::del(m_configDlg->exportURL(), kapp->activeWindow()))
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Could not delete %1\n" KMessageBox::error(kapp->activeWindow(), i18n("Could not delete %1\n"
"Please choose another export folder").arg(m_configDlg->exportURL())); "Please choose another export folder").arg(m_configDlg->exportURL()));
configured = false; configured = false;
} }
@ -181,7 +181,7 @@ void SimpleViewerExport::startExport()
if(m_canceled) if(m_canceled)
return; return;
m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Flash Export")); m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Flash Export"));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotCancel())); this, TQT_SLOT(slotCancel()));
@ -264,13 +264,13 @@ void SimpleViewerExport::slotProcess()
if(m_canceled) if(m_canceled)
{ {
int ret = KMessageBox::warningYesNo(TQT_TQWIDGET(kapp->activeWindow()), int ret = KMessageBox::warningYesNo(kapp->activeWindow(),
i18n("Export was canceled.\n" i18n("Export was canceled.\n"
"Do you want to delete the yet created files in %1 ?") "Do you want to delete the yet created files in %1 ?")
.arg(m_configDlg->exportURL())); .arg(m_configDlg->exportURL()));
if(ret == KMessageBox::Yes) if(ret == KMessageBox::Yes)
{ {
TDEIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow())); TDEIO::NetAccess::del(m_configDlg->exportURL(), kapp->activeWindow());
} }
} }
@ -286,7 +286,7 @@ bool SimpleViewerExport::createExportDirectories()
m_progressDlg->addedAction(i18n("Creating directories..."), KIPI::StartingMessage); m_progressDlg->addedAction(i18n("Creating directories..."), KIPI::StartingMessage);
KURL root = m_configDlg->exportURL(); KURL root = m_configDlg->exportURL();
if(!TDEIO::NetAccess::mkdir(root, TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::mkdir(root, kapp->activeWindow()))
{ {
m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(root.url()), m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(root.url()),
KIPI::ErrorMessage); KIPI::ErrorMessage);
@ -295,7 +295,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL thumbsDir = m_tempDir->name(); KURL thumbsDir = m_tempDir->name();
thumbsDir.addPath("/thumbs"); thumbsDir.addPath("/thumbs");
if(!TDEIO::NetAccess::mkdir(thumbsDir, TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::mkdir(thumbsDir, kapp->activeWindow()))
{ {
m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(thumbsDir.url()), m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(thumbsDir.url()),
KIPI::ErrorMessage); KIPI::ErrorMessage);
@ -304,7 +304,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL imagesDir = m_tempDir->name(); KURL imagesDir = m_tempDir->name();
imagesDir.addPath("/images"); imagesDir.addPath("/images");
if(!TDEIO::NetAccess::mkdir(imagesDir, TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::mkdir(imagesDir, kapp->activeWindow()))
{ {
m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(imagesDir.url()), m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(imagesDir.url()),
KIPI::ErrorMessage); KIPI::ErrorMessage);
@ -628,7 +628,7 @@ bool SimpleViewerExport::checkSimpleViewer() const
bool SimpleViewerExport::installSimpleViewer() bool SimpleViewerExport::installSimpleViewer()
{ {
FirstRunDlg *firstRunDlg = new FirstRunDlg(TQT_TQWIDGET(kapp->activeWindow())); FirstRunDlg *firstRunDlg = new FirstRunDlg(kapp->activeWindow());
if(firstRunDlg->exec() == TQDialog::Accepted) if(firstRunDlg->exec() == TQDialog::Accepted)
{ {
TQString url = firstRunDlg->getURL(); TQString url = firstRunDlg->getURL();

@ -91,7 +91,7 @@ void Plugin_TimeAdjust::slotActivate()
if (!images.isValid() || images.images().isEmpty()) if (!images.isValid() || images.images().isEmpty())
return; return;
KIPITimeAdjustPlugin::TimeAdjustDialog dlg(m_interface, TQT_TQWIDGET(kapp->activeWindow())); KIPITimeAdjustPlugin::TimeAdjustDialog dlg(m_interface, kapp->activeWindow());
dlg.setImages(images.images()); dlg.setImages(images.images());
dlg.exec(); dlg.exec();
} }

@ -503,7 +503,7 @@ void TimeAdjustDialog::slotOk()
if (!errorFiles.isEmpty() && (d->syncEXIFDateCheck->isChecked() || d->syncIPTCDateCheck->isChecked())) if (!errorFiles.isEmpty() && (d->syncEXIFDateCheck->isChecked() || d->syncIPTCDateCheck->isChecked()))
{ {
KMessageBox::informationList( KMessageBox::informationList(
TQT_TQWIDGET(kapp->activeWindow()), kapp->activeWindow(),
i18n("Unable to set date and time like picture metadata from:"), i18n("Unable to set date and time like picture metadata from:"),
errorFiles, errorFiles,
i18n("Adjust Time & Date")); i18n("Adjust Time & Date"));

@ -240,10 +240,10 @@ void Plugin_WallPaper::setWallpaper(int layout)
// PENDING We need a way to get a parent widget // PENDING We need a way to get a parent widget
// Sun, 06 Jun 2004 - Aur<75>ien // Sun, 06 Jun 2004 - Aur<75>ien
KMessageBox::information( TQT_TQWIDGET(kapp->activeWindow()), i18n( KMessageBox::information( kapp->activeWindow(), i18n(
"<qt><p>You selected a remote image. It needs to be saved to your local disk to be used as a wallpaper." "<qt><p>You selected a remote image. It needs to be saved to your local disk to be used as a wallpaper."
"</p><p>You will now be asked where to save the image.</p></qt>")); "</p><p>You will now be asked where to save the image.</p></qt>"));
path = KFileDialog::getSaveFileName(url.fileName(), TQString(), TQT_TQWIDGET(kapp->activeWindow())); path = KFileDialog::getSaveFileName(url.fileName(), TQString(), kapp->activeWindow());
if (path.isNull()) return; if (path.isNull()) return;
#if TDE_VERSION > 0x30200 #if TDE_VERSION > 0x30200

Loading…
Cancel
Save