Replace various '#define' strings - part 6

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 11 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")
{
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 )
{
@ -111,7 +111,7 @@ void Plugin_AcquireImages::slotActivate()
}
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"));
kdDebug ( 51000 ) << "No Scan-service available, aborting!" << endl;
return;
@ -123,7 +123,7 @@ void Plugin_AcquireImages::slotActivate()
else if (from == "screenshot_images")
{
m_screenshotDialog = new KIPIAcquireImagesPlugin::ScreenGrabDialog(interface,
TQT_TQWIDGET(kapp->activeWindow()), "KIPI ScreenshotImagesDialog");
kapp->activeWindow(), "KIPI ScreenshotImagesDialog");
m_screenshotDialog->show();
}
else
@ -152,7 +152,7 @@ void Plugin_AcquireImages::slotAcquireImageDone(const TQImage &img)
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->exec();
}

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

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

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

@ -335,7 +335,7 @@ void CalWizard::slotPrintOnePage()
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_);
connect(cb_, TQT_SIGNAL(signalCompleted()),

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

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

@ -123,7 +123,7 @@ void Plugin_CDArchiving::customEvent(TQCustomEvent *event)
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()),
this, TQT_SLOT(slotCancel()));

@ -135,7 +135,7 @@ void FindDuplicateImages::readSettings(void)
bool FindDuplicateImages::execDialog()
{
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();
readSettings();
@ -167,9 +167,9 @@ bool FindDuplicateImages::execDialog()
void FindDuplicateImages::showResult()
{
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
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())
{
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()),
this, TQT_SLOT(slotCancel()));

@ -199,7 +199,7 @@ void FlickrTalker::slotAuthenticate()
kdDebug() << "Authenticate url: " << url << endl;
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 "
"return back to press ok if you are authenticated or press No"),
i18n("Flickr Service Web Authorization"));
@ -541,7 +541,7 @@ void FlickrTalker::slotError(const TQString& error)
break;
};
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
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;
@ -716,7 +716,7 @@ void FlickrTalker::parseResponseCheckToken(const TQByteArray& data)
kdDebug() << "Error code=" << errorString << 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 "
"get a new token to proceed ?\n"));
if(valueOk == KMessageBox::Yes)

@ -100,7 +100,7 @@ void Plugin_FlickrExport::slotActivate()
TQString Tmp = dir.saveLocation("tmp", "kipi-flickrexportplugin-" + TQString::number(getpid()) + "/");
// 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();
}

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

@ -129,7 +129,7 @@ void Plugin_GalleryExport::slotSync()
return;
}
KIPIGalleryExportPlugin::GalleryWindow dlg(interface, TQT_TQWIDGET(kapp->activeWindow()), mpGalleries);
KIPIGalleryExportPlugin::GalleryWindow dlg(interface, kapp->activeWindow(), mpGalleries);
dlg.exec();
}
@ -142,7 +142,7 @@ void Plugin_GalleryExport::slotConfigure()
return;
}
KIPIGalleryExportPlugin::GalleryList dlg(TQT_TQWIDGET(kapp->activeWindow()), mpGalleries, false);
KIPIGalleryExportPlugin::GalleryList dlg(kapp->activeWindow(), mpGalleries, false);
dlg.exec();
}
@ -155,7 +155,7 @@ void Plugin_GalleryExport::slotCollectionSettings()
return;
}
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), "Not Implemented Yet!");
KMessageBox::error(kapp->activeWindow(), "Not Implemented Yet!");
}
void Plugin_GalleryExport::slotImageSettings()
@ -167,7 +167,7 @@ void Plugin_GalleryExport::slotImageSettings()
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

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

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

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

@ -212,7 +212,7 @@ void Plugin_JPEGLossless::slotFlip()
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));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
@ -268,7 +268,7 @@ void Plugin_JPEGLossless::slotRotate()
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));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
@ -284,7 +284,7 @@ void Plugin_JPEGLossless::slotConvert2GrayScale()
{
KURL::List items = images();
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 "
"black and white? This operation <b>cannot</b> be undone.</p>")))
return;
@ -301,7 +301,7 @@ void Plugin_JPEGLossless::slotConvert2GrayScale()
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"));
connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),

@ -103,7 +103,7 @@ CameraUI::CameraUI() : TQWidget()
resize(700, 440);
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();
//---------------------------------------------
@ -193,9 +193,9 @@ CameraUI::CameraUI() : TQWidget()
mSplitter->setOpaqueResize(true);
mSplitter->setResizeMode(mFolderView, TQSplitter::Stretch);
mSplitter->setResizeMode(mIconView, TQSplitter::Stretch);
container_ = new GPFileItemContainer(TQT_TQOBJECT(this), mFolderView, mIconView);
efilter_ = new GPEventFilter(TQT_TQOBJECT(this));
controller_ = new GPController(TQT_TQOBJECT(this), *mCameraType);
container_ = new GPFileItemContainer(this, mFolderView, mIconView);
efilter_ = new GPEventFilter(this);
controller_ = new GPController(this, *mCameraType);
controller_->start();
cameraConnected_ = false;
@ -243,38 +243,38 @@ void CameraUI::setupAccel() {
mCameraUIAccel = new TDEAccel(this);
mCameraUIAccel->insert("Select All", i18n("Select All"),
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"),
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"),
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"),
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);
}
void CameraUI::setupConnections() {
connect(this, TQT_SIGNAL(signalStatusMsg(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotSetStatusMsg(const TQString&)));
connect(this, TQT_SIGNAL(signalProgressVal(int)), TQT_TQOBJECT(this), TQT_SLOT(slotSetProgressVal(int)));
connect(this, TQT_SIGNAL(signalBusy(bool)), TQT_TQOBJECT(this), TQT_SLOT(slotBusy(bool)));
connect(efilter_, TQT_SIGNAL(signalStatusMsg(const TQString&)), TQT_TQOBJECT(this), TQT_SIGNAL(signalStatusMsg(const TQString&)));
connect(efilter_, TQT_SIGNAL(signalProgressVal(int)), TQT_TQOBJECT(this), TQT_SIGNAL(signalProgressVal(int)));
connect(efilter_, TQT_SIGNAL(signalBusy(bool)), TQT_TQOBJECT(this), TQT_SIGNAL(signalBusy(bool)));
connect(mFolderView, TQT_SIGNAL(signalFolderChanged(CameraFolderItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotFolderSelected(CameraFolderItem*)));
connect(mIconView, TQT_SIGNAL(signalDownloadSelectedItems()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDownloadSelected()));
connect(mIconView, TQT_SIGNAL(signalDeleteSelectedItems()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDeleteSelected()));
connect(mChangeDownloadDirectoryBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotChangeDownloadDirectory()));
connect(mCameraList, TQT_SIGNAL(signalCameraListChanged()), TQT_TQOBJECT(this), TQT_SLOT(slotSyncCameraComboBox()));
connect(mCameraConnectBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraConnectToggle()));
connect(mCameraSetupBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotSetupCamera()));
connect(mCameraStopBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraCancel()));
connect(mCameraDownloadBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDownloadSelected()));
connect(mCameraUploadBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraUpload()));
connect(mCameraDeleteBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotCameraDeleteSelected()));
connect(mDialogCloseBtn, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(close()));
connect(this, TQT_SIGNAL(signalStatusMsg(const TQString&)), this, TQT_SLOT(slotSetStatusMsg(const TQString&)));
connect(this, TQT_SIGNAL(signalProgressVal(int)), this, TQT_SLOT(slotSetProgressVal(int)));
connect(this, TQT_SIGNAL(signalBusy(bool)), this, TQT_SLOT(slotBusy(bool)));
connect(efilter_, TQT_SIGNAL(signalStatusMsg(const TQString&)), this, TQT_SIGNAL(signalStatusMsg(const TQString&)));
connect(efilter_, TQT_SIGNAL(signalProgressVal(int)), this, TQT_SIGNAL(signalProgressVal(int)));
connect(efilter_, TQT_SIGNAL(signalBusy(bool)), this, TQT_SIGNAL(signalBusy(bool)));
connect(mFolderView, TQT_SIGNAL(signalFolderChanged(CameraFolderItem*)), this, TQT_SLOT(slotFolderSelected(CameraFolderItem*)));
connect(mIconView, TQT_SIGNAL(signalDownloadSelectedItems()), this, TQT_SLOT(slotCameraDownloadSelected()));
connect(mIconView, TQT_SIGNAL(signalDeleteSelectedItems()), this, TQT_SLOT(slotCameraDeleteSelected()));
connect(mChangeDownloadDirectoryBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotChangeDownloadDirectory()));
connect(mCameraList, TQT_SIGNAL(signalCameraListChanged()), this, TQT_SLOT(slotSyncCameraComboBox()));
connect(mCameraConnectBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraConnectToggle()));
connect(mCameraSetupBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotSetupCamera()));
connect(mCameraStopBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraCancel()));
connect(mCameraDownloadBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraDownloadSelected()));
connect(mCameraUploadBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraUpload()));
connect(mCameraDeleteBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotCameraDeleteSelected()));
connect(mDialogCloseBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(close()));
}
void CameraUI::setCameraConnected(bool val) {
@ -328,7 +328,7 @@ void CameraUI::slotSyncCameraComboBox() {
void CameraUI::setCameraType(const CameraType& ctype) {
*mCameraType = ctype;
delete controller_;
controller_ = new GPController(TQT_TQOBJECT(this), *mCameraType);
controller_ = new GPController(this, *mCameraType);
controller_->start();
}
@ -420,7 +420,7 @@ void CameraUI::slotCameraConnectToggle() {
controller_->requestInitialize();
} else {
delete controller_;
controller_ = new GPController(TQT_TQOBJECT(this), *mCameraType);
controller_ = new GPController(this, *mCameraType);
controller_->start();
cameraConnected_ = false;
mIconView->clear();

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

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

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

@ -68,13 +68,13 @@ int CheckBinProg::findExecutables( void )
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);
}
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);
}
@ -121,7 +121,7 @@ if (MjpegToolsPath.isEmpty())
"\n\nVisit these URLs for more information:"
"\nImageMagick package: http://www.imagemagick.org/"
"\nMjpegTools package: http://mjpeg.sourceforge.net/");
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), str);
KMessageBox::error(kapp->activeWindow(), str);
return (ValRet);
}

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

@ -85,7 +85,7 @@ void Plugin_Mpegencoder::slotActivate()
}
KIPIMPEGEncoderPlugin::KImg2mpgData *MPEGconverterDialog =
new KIPIMPEGEncoderPlugin::KImg2mpgData( interface, TQT_TQWIDGET(kapp->activeWindow()) );
new KIPIMPEGEncoderPlugin::KImg2mpgData( interface, kapp->activeWindow() );
KIPIMPEGEncoderPlugin::CheckBinProg* CheckExternalPrograms =
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";
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){
// kdDebug()<<"Showing stored username"<< username << endl;
loginDialog->setUsername(username);
@ -593,7 +593,7 @@ void PicasawebTalker::slotError(const TQString & 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;
}

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

@ -100,7 +100,7 @@ void Plugin_PicasawebExport::slotActivate()
TDEStandardDirs dir;
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();
}

@ -105,12 +105,12 @@ void Plugin_PrintWizard::slotActivate()
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"));
return;
}
KIPIPrintWizardPlugin::FrmPrintWizard frm(TQT_TQWIDGET(kapp->activeWindow()));
KIPIPrintWizardPlugin::FrmPrintWizard frm(kapp->activeWindow());
TDEStandardDirs dir;
TQString tempPath = dir.saveLocation("tmp", "kipi-printwizardplugin-" + TQString::number(getpid()) + "/");
frm.print(fileList, tempPath);

@ -159,7 +159,7 @@ BatchDialog::BatchDialog(TQWidget* /*parent*/)
setButtonTip( Close, i18n("<p>Exit Raw Converter"));
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()))
{
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
KMessageBox::error(kapp->activeWindow(),
i18n("\"%1\" is not a Raw file.").arg(images.images()[0].fileName()));
return;
}
KIPIRawConverterPlugin::SingleDialog *converter =
new KIPIRawConverterPlugin::SingleDialog(images.images()[0].path(),
TQT_TQWIDGET(kapp->activeWindow()));
kapp->activeWindow());
converter->show();
}
@ -198,7 +198,7 @@ void Plugin_RawConverter::slotActivateBatch()
return;
KIPIRawConverterPlugin::BatchDialog *converter =
new KIPIRawConverterPlugin::BatchDialog(TQT_TQWIDGET(kapp->activeWindow()));
new KIPIRawConverterPlugin::BatchDialog(kapp->activeWindow());
KURL::List urls = images.images();
TQStringList files;

@ -146,7 +146,7 @@ SingleDialog::SingleDialog(const TQString& file, TQWidget */*parent*/)
m_blinkPreviewTimer = 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)
{
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()),
this, TQT_SLOT(slotCancel()));

@ -105,7 +105,7 @@ SendImages::~SendImages()
///Invokes the User Dialog Window
void SendImages::showDialog()
{
m_sendImagesDialog = new KIPISendimagesPlugin::SendImagesDialog(TQT_TQWIDGET(kapp->activeWindow()),
m_sendImagesDialog = new KIPISendimagesPlugin::SendImagesDialog(kapp->activeWindow(),
m_interface, m_collection);
m_sendImagesDialog->show();
@ -372,7 +372,7 @@ bool SendImages::showErrors()
{
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("Cannot resize the following image files:"),
i18n("Do you want them to be added as attachments "
@ -484,7 +484,7 @@ bool SendImages::invokeMailAgent(void)
}
if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease "
"check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -513,7 +513,7 @@ bool SendImages::invokeMailAgent(void)
*m_mailAgentProc << TQFile::encodeName((*it).path()).data();
if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease "
"check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -535,7 +535,7 @@ bool SendImages::invokeMailAgent(void)
}
if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease "
"check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -561,7 +561,7 @@ bool SendImages::invokeMailAgent(void)
*m_mailAgentProc << Temp;
if ( m_mailAgentProc->start() == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease "
"check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -624,7 +624,7 @@ bool SendImages::invokeMailAgent(void)
tqDebug ("%s", Temp.ascii());
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 "
"check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText()));
@ -642,7 +642,7 @@ bool SendImages::invokeMailAgent(void)
void SendImages::removeTmpFiles(void)
{
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
@ -881,7 +881,7 @@ void SendImages::slotMozillaExited(TDEProcess*)
if ( m_mailAgentProc2->start() == false )
{
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
KMessageBox::error(kapp->activeWindow(),
i18n("Cannot start '%1' program;\nplease "
"check your installation.")
.arg(m_sendImagesDialog->m_mailAgentName->currentText()));

@ -87,7 +87,7 @@ void SimpleViewerExport::run(KIPI::Interface* interface, TQObject *parent)
{
if(!plugin->installSimpleViewer())
{
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("SimpleViewer installation failed"));
KMessageBox::error(kapp->activeWindow(), i18n("SimpleViewer installation failed"));
return;
}
}
@ -134,7 +134,7 @@ bool SimpleViewerExport::configure()
m_canceled = false;
if(!m_configDlg)
m_configDlg = new SVEDialog(m_interface, TQT_TQWIDGET(kapp->activeWindow()));
m_configDlg = new SVEDialog(m_interface, kapp->activeWindow());
bool configured = false;
while(!configured)
@ -144,9 +144,9 @@ bool SimpleViewerExport::configure()
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"
"Do you want to overwrite it (all data in this folder will be lost)")
.arg(m_configDlg->exportURL()));
@ -154,9 +154,9 @@ bool SimpleViewerExport::configure()
switch(ret)
{
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()));
configured = false;
}
@ -181,7 +181,7 @@ void SimpleViewerExport::startExport()
if(m_canceled)
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()),
this, TQT_SLOT(slotCancel()));
@ -264,13 +264,13 @@ void SimpleViewerExport::slotProcess()
if(m_canceled)
{
int ret = KMessageBox::warningYesNo(TQT_TQWIDGET(kapp->activeWindow()),
int ret = KMessageBox::warningYesNo(kapp->activeWindow(),
i18n("Export was canceled.\n"
"Do you want to delete the yet created files in %1 ?")
.arg(m_configDlg->exportURL()));
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);
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()),
KIPI::ErrorMessage);
@ -295,7 +295,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL thumbsDir = m_tempDir->name();
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()),
KIPI::ErrorMessage);
@ -304,7 +304,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL imagesDir = m_tempDir->name();
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()),
KIPI::ErrorMessage);
@ -628,7 +628,7 @@ bool SimpleViewerExport::checkSimpleViewer() const
bool SimpleViewerExport::installSimpleViewer()
{
FirstRunDlg *firstRunDlg = new FirstRunDlg(TQT_TQWIDGET(kapp->activeWindow()));
FirstRunDlg *firstRunDlg = new FirstRunDlg(kapp->activeWindow());
if(firstRunDlg->exec() == TQDialog::Accepted)
{
TQString url = firstRunDlg->getURL();

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

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

@ -240,10 +240,10 @@ void Plugin_WallPaper::setWallpaper(int layout)
// PENDING We need a way to get a parent widget
// 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."
"</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 TDE_VERSION > 0x30200

Loading…
Cancel
Save