summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/hotpixels/hotpixelstool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/hotpixels/hotpixelstool.cpp')
-rw-r--r--digikam/imageplugins/hotpixels/hotpixelstool.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/digikam/imageplugins/hotpixels/hotpixelstool.cpp b/digikam/imageplugins/hotpixels/hotpixelstool.cpp
index 105b6e7..43d30d7 100644
--- a/digikam/imageplugins/hotpixels/hotpixelstool.cpp
+++ b/digikam/imageplugins/hotpixels/hotpixelstool.cpp
@@ -23,14 +23,14 @@
*
* ============================================================ */
-// Qt includes.
+// TQt includes.
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qpushbutton.h>
-#include <qpointarray.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqpushbutton.h>
+#include <tqpointarray.h>
// KDE includes.
@@ -69,8 +69,8 @@ using namespace Digikam;
namespace DigikamHotPixelsImagesPlugin
{
-HotPixelsTool::HotPixelsTool(QObject* parent)
- : EditorToolThreaded(parent)
+HotPixelsTool::HotPixelsTool(TQObject* tqparent)
+ : EditorToolThreaded(tqparent)
{
setName("hotpixels");
setToolName(i18n("Hot Pixels"));
@@ -83,18 +83,18 @@ HotPixelsTool::HotPixelsTool(QObject* parent)
EditorToolSettings::Cancel,
EditorToolSettings::PanIcon);
- QGridLayout* grid = new QGridLayout(m_gboxSettings->plainPage(), 3, 2);
+ TQGridLayout* grid = new TQGridLayout(m_gboxSettings->plainPage(), 3, 2);
- QLabel *filterMethodLabel = new QLabel(i18n("Filter:"), m_gboxSettings->plainPage());
+ TQLabel *filterMethodLabel = new TQLabel(i18n("Filter:"), m_gboxSettings->plainPage());
m_filterMethodCombo = new RComboBox(m_gboxSettings->plainPage());
m_filterMethodCombo->insertItem(i18n("Average"));
m_filterMethodCombo->insertItem(i18n("Linear"));
m_filterMethodCombo->insertItem(i18n("Quadratic"));
m_filterMethodCombo->insertItem(i18n("Cubic"));
- m_filterMethodCombo->setDefaultItem(HotPixelFixer::QUADRATIC_INTERPOLATION);
+ m_filterMethodCombo->setDefaultItem(HotPixelFixer::TQUADRATIC_INTERPOLATION);
- m_blackFrameButton = new QPushButton(i18n("Black Frame..."), m_gboxSettings->plainPage());
- QWhatsThis::add(m_blackFrameButton, i18n("<p>Use this button to "
+ m_blackFrameButton = new TQPushButton(i18n("Black Frame..."), m_gboxSettings->plainPage());
+ TQWhatsThis::add(m_blackFrameButton, i18n("<p>Use this button to "
"add a new black frame file which will be used by the hot pixels removal filter."));
m_blackFrameListView = new BlackFrameListView(m_gboxSettings->plainPage());
@@ -119,14 +119,14 @@ HotPixelsTool::HotPixelsTool(QObject* parent)
// -------------------------------------------------------------
- connect(m_filterMethodCombo, SIGNAL(activated(int)),
- this, SLOT(slotEffect()));
+ connect(m_filterMethodCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_blackFrameButton, SIGNAL(clicked()),
- this, SLOT(slotAddBlackFrame()));
+ connect(m_blackFrameButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddBlackFrame()));
- connect(m_blackFrameListView, SIGNAL(blackFrameSelected(QValueList<HotPixel>, const KURL&)),
- this, SLOT(slotBlackFrame(QValueList<HotPixel>, const KURL&)));
+ connect(m_blackFrameListView, TQT_SIGNAL(blackFrameSelected(TQValueList<HotPixel>, const KURL&)),
+ this, TQT_SLOT(slotBlackFrame(TQValueList<HotPixel>, const KURL&)));
}
HotPixelsTool::~HotPixelsTool()
@@ -137,7 +137,7 @@ void HotPixelsTool::readSettings()
{
KConfig *config = kapp->config();
config->setGroup("hotpixels Tool");
- m_blackFrameURL = KURL(config->readEntry("Last Black Frame File", QString()));
+ m_blackFrameURL = KURL(config->readEntry("Last Black Frame File", TQString()));
m_filterMethodCombo->setCurrentItem(config->readNumEntry("Filter Method",
m_filterMethodCombo->defaultItem()));
@@ -146,11 +146,11 @@ void HotPixelsTool::readSettings()
EditorToolIface::editorToolIface()->setToolStartProgress(i18n("Loading: "));
BlackFrameListViewItem *item = new BlackFrameListViewItem(m_blackFrameListView, m_blackFrameURL);
- connect(item, SIGNAL(signalLoadingProgress(float)),
- this, SLOT(slotLoadingProgress(float)));
+ connect(item, TQT_SIGNAL(signalLoadingProgress(float)),
+ this, TQT_SLOT(slotLoadingProgress(float)));
- connect(item, SIGNAL(signalLoadingComplete()),
- this, SLOT(slotLoadingComplete()));
+ connect(item, TQT_SIGNAL(signalLoadingComplete()),
+ this, TQT_SLOT(slotLoadingComplete()));
}
}
@@ -193,11 +193,11 @@ void HotPixelsTool::slotAddBlackFrame()
m_blackFrameListView->clear();
BlackFrameListViewItem *item = new BlackFrameListViewItem(m_blackFrameListView, m_blackFrameURL);
- connect(item, SIGNAL(signalLoadingProgress(float)),
- this, SLOT(slotLoadingProgress(float)));
+ connect(item, TQT_SIGNAL(signalLoadingProgress(float)),
+ this, TQT_SLOT(slotLoadingProgress(float)));
- connect(item, SIGNAL(signalLoadingComplete()),
- this, SLOT(slotLoadingComplete()));
+ connect(item, TQT_SIGNAL(signalLoadingComplete()),
+ this, TQT_SLOT(slotLoadingComplete()));
}
}
@@ -215,17 +215,17 @@ void HotPixelsTool::prepareEffect()
DImg image = m_previewWidget->getOriginalRegionImage();
int interpolationMethod = m_filterMethodCombo->currentItem();
- QValueList<HotPixel> hotPixelsRegion;
- QRect area = m_previewWidget->getOriginalImageRegionToRender();
- QValueList<HotPixel>::Iterator end(m_hotPixelsList.end());
+ TQValueList<HotPixel> hotPixelsRegion;
+ TQRect area = m_previewWidget->getOriginalImageRegionToRender();
+ TQValueList<HotPixel>::Iterator end(m_hotPixelsList.end());
- for (QValueList<HotPixel>::Iterator it = m_hotPixelsList.begin() ; it != end ; ++it )
+ for (TQValueList<HotPixel>::Iterator it = m_hotPixelsList.begin() ; it != end ; ++it )
{
HotPixel hp = (*it);
- if ( area.contains( hp.rect ) )
+ if ( area.tqcontains( hp.rect ) )
{
- hp.rect.moveTopLeft(QPoint( hp.rect.x()-area.x(), hp.rect.y()-area.y() ));
+ hp.rect.moveTopLeft(TQPoint( hp.rect.x()-area.x(), hp.rect.y()-area.y() ));
hotPixelsRegion.append(hp);
}
}
@@ -255,15 +255,15 @@ void HotPixelsTool::putFinalData()
iface.putOriginalImage(i18n("Hot Pixels Correction"), filter()->getTargetImage().bits());
}
-void HotPixelsTool::slotBlackFrame(QValueList<HotPixel> hpList, const KURL& blackFrameURL)
+void HotPixelsTool::slotBlackFrame(TQValueList<HotPixel> hpList, const KURL& blackFrameURL)
{
m_blackFrameURL = blackFrameURL;
m_hotPixelsList = hpList;
- QPointArray pointList(m_hotPixelsList.size());
- QValueList <HotPixel>::Iterator it;
+ TQPointArray pointList(m_hotPixelsList.size());
+ TQValueList <HotPixel>::Iterator it;
int i = 0;
- QValueList <HotPixel>::Iterator end(m_hotPixelsList.end());
+ TQValueList <HotPixel>::Iterator end(m_hotPixelsList.end());
for (it = m_hotPixelsList.begin() ; it != end ; ++it, i++)
pointList.setPoint(i, (*it).rect.center());