summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp')
-rw-r--r--kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp b/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp
index 084fb03..f1f4ee3 100644
--- a/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp
+++ b/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp
@@ -27,9 +27,9 @@ extern "C"
#include <unistd.h>
}
-// Qt Includes
+// TQt Includes
-#include <qimage.h>
+#include <tqimage.h>
// KDE includes
@@ -69,14 +69,14 @@ typedef KGenericFactory<Plugin_BatchProcessImages> Factory;
K_EXPORT_COMPONENT_FACTORY( kipiplugin_batchprocessimages,
Factory("kipiplugin_batchprocessimages"))
-Plugin_BatchProcessImages::Plugin_BatchProcessImages(QObject *parent, const char*, const QStringList&)
- : KIPI::Plugin( Factory::instance(), parent, "BatchProcessImages")
+Plugin_BatchProcessImages::Plugin_BatchProcessImages(TQObject *tqparent, const char*, const TQStringList&)
+ : KIPI::Plugin( Factory::instance(), tqparent, "BatchProcessImages")
{
kdDebug( 51001 ) << "Plugin_BatchProcessImages plugin loaded" << endl;
}
-void Plugin_BatchProcessImages::setup( QWidget* widget )
+void Plugin_BatchProcessImages::setup( TQWidget* widget )
{
KIPI::Plugin::setup( widget );
@@ -84,7 +84,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"borderimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_border_images");
@@ -92,7 +92,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"colorimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_color_images");
@@ -100,7 +100,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"convertimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_convert_images");
@@ -108,7 +108,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"effectimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_effect_images");
@@ -116,7 +116,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"filterimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_filter_images");
@@ -124,7 +124,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"renameimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_rename_images");
@@ -132,7 +132,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"recompressimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_recompress_images");
@@ -140,7 +140,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
"resizeimages", // Menu icon.
0, // default shortcut.
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"batch_resize_images");
@@ -153,7 +153,7 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
addAction( m_action_recompressimages );
addAction( m_action_resizeimages );
- KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( parent() );
+ KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( tqparent() );
if ( !interface )
{
@@ -173,29 +173,29 @@ void Plugin_BatchProcessImages::setup( QWidget* widget )
m_action_recompressimages->setEnabled( enable );
m_action_resizeimages->setEnabled( enable );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_borderimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_borderimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_colorimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_colorimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_convertimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_convertimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_effectimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_effectimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_filterimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_filterimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_renameimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_renameimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_recompressimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_recompressimages, TQT_SLOT( setEnabled( bool ) ) );
- connect( interface, SIGNAL( currentAlbumChanged( bool ) ),
- m_action_resizeimages, SLOT( setEnabled( bool ) ) );
+ connect( interface, TQT_SIGNAL( currentAlbumChanged( bool ) ),
+ m_action_resizeimages, TQT_SLOT( setEnabled( bool ) ) );
}
Plugin_BatchProcessImages::~Plugin_BatchProcessImages()
@@ -204,7 +204,7 @@ Plugin_BatchProcessImages::~Plugin_BatchProcessImages()
void Plugin_BatchProcessImages::slotActivate()
{
- KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( parent() );
+ KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( tqparent() );
if ( !interface )
{
@@ -225,61 +225,61 @@ void Plugin_BatchProcessImages::slotActivate()
if ( images.images().isEmpty() )
{
- KMessageBox::sorry(kapp->activeWindow(),
+ KMessageBox::sorry(TQT_TQWIDGET(kapp->activeWindow()),
i18n("Please select an album or a selection of images."));
return;
}
KURL::List urlList = images.images();
- QString from(sender()->name());
+ TQString from(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
if (from == "batch_convert_images")
{
m_ConvertImagesDialog = new KIPIBatchProcessImagesPlugin::ConvertImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_ConvertImagesDialog->show();
}
else if (from == "batch_rename_images")
{
KIPIBatchProcessImagesPlugin::RenameImagesDialog
- dlg(urlList, interface, kapp->activeWindow());
+ dlg(urlList, interface, TQT_TQWIDGET(kapp->activeWindow()));
dlg.exec();
}
else if (from == "batch_border_images")
{
m_BorderImagesDialog = new KIPIBatchProcessImagesPlugin::BorderImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_BorderImagesDialog->show();
}
else if (from == "batch_color_images")
{
m_ColorImagesDialog = new KIPIBatchProcessImagesPlugin::ColorImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_ColorImagesDialog->show();
}
else if (from == "batch_filter_images")
{
m_FilterImagesDialog = new KIPIBatchProcessImagesPlugin::FilterImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_FilterImagesDialog->show();
}
else if (from == "batch_effect_images")
{
m_EffectImagesDialog = new KIPIBatchProcessImagesPlugin::EffectImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_EffectImagesDialog->show();
}
else if (from == "batch_recompress_images")
{
m_RecompressImagesDialog = new KIPIBatchProcessImagesPlugin::RecompressImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_RecompressImagesDialog->show();
}
else if (from == "batch_resize_images")
{
m_ResizeImagesDialog = new KIPIBatchProcessImagesPlugin::ResizeImagesDialog( urlList,
- interface, kapp->activeWindow());
+ interface, TQT_TQWIDGET(kapp->activeWindow()));
m_ResizeImagesDialog->show();
}
else