summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/filters
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
commitf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch)
tree1fc538e179833e62caec21956bfe47a252be5a72 /chalk/plugins/filters
parent11191ef0b9908604d1d7aaca382b011ef22c454c (diff)
downloadkoffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz
koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'chalk/plugins/filters')
-rw-r--r--chalk/plugins/filters/blur/kis_blur_filter.cc6
-rw-r--r--chalk/plugins/filters/blur/kis_wdg_blur.cc2
-rw-r--r--chalk/plugins/filters/bumpmap/wdgbumpmap.ui4
-rw-r--r--chalk/plugins/filters/cimg/CImg.h22
-rw-r--r--chalk/plugins/filters/cimg/kis_cimg_filter.cc4
-rw-r--r--chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc2
-rw-r--r--chalk/plugins/filters/colorsfilters/wdg_brightness_contrast.ui4
-rw-r--r--chalk/plugins/filters/levelfilter/kgradientslider.cc16
-rw-r--r--chalk/plugins/filters/levelfilter/wdg_level.ui2
-rw-r--r--chalk/plugins/filters/wavefilter/kis_wdg_wave.cpp4
-rw-r--r--chalk/plugins/filters/wavefilter/wavefilter.cc12
11 files changed, 39 insertions, 39 deletions
diff --git a/chalk/plugins/filters/blur/kis_blur_filter.cc b/chalk/plugins/filters/blur/kis_blur_filter.cc
index 0217b7e1..8d360497 100644
--- a/chalk/plugins/filters/blur/kis_blur_filter.cc
+++ b/chalk/plugins/filters/blur/kis_blur_filter.cc
@@ -72,7 +72,7 @@ KisFilterConfiguration* KisBlurFilter::configuration(TQWidget* w)
config->setProperty("halfHeight", wCTA->widget()->intHalfWidth->value() );
config->setProperty("rotate", wCTA->widget()->intAngle->value() );
config->setProperty("strength", wCTA->widget()->intStrength->value() );
- config->setProperty("tqshape", wCTA->widget()->cbShape->currentItem());
+ config->setProperty("shape", wCTA->widget()->cbShape->currentItem());
}
return config;
}
@@ -87,7 +87,7 @@ void KisBlurFilter::process(KisPaintDeviceSP src, KisPaintDeviceSP dst, KisFilte
if(!config) config = new KisFilterConfiguration(id().id(), 1);
TQVariant value;
- int tqshape = (config->getProperty("tqshape", value)) ? value.toInt() : 0;
+ int shape = (config->getProperty("shape", value)) ? value.toInt() : 0;
uint halfWidth = (config->getProperty("halfWidth", value)) ? value.toUInt() : 5;
uint width = 2 * halfWidth + 1;
uint halfHeight = (config->getProperty("halfHeight", value)) ? value.toUInt() : 5;
@@ -100,7 +100,7 @@ void KisBlurFilter::process(KisPaintDeviceSP src, KisPaintDeviceSP dst, KisFilte
KisAutobrushShape* kas;
kdDebug() << width << " " << height << " " << hFade << " " << vFade << endl;
- switch(tqshape)
+ switch(shape)
{
case 1:
kas = new KisAutobrushRectShape(width, height , hFade, vFade);
diff --git a/chalk/plugins/filters/blur/kis_wdg_blur.cc b/chalk/plugins/filters/blur/kis_wdg_blur.cc
index dc836971..d4213bb5 100644
--- a/chalk/plugins/filters/blur/kis_wdg_blur.cc
+++ b/chalk/plugins/filters/blur/kis_wdg_blur.cc
@@ -55,7 +55,7 @@ KisWdgBlur::KisWdgBlur( KisFilter* nfilter, TQWidget * parent, const char * name
void KisWdgBlur::setConfiguration(KisFilterConfiguration* config)
{
TQVariant value;
- if (config->getProperty("tqshape", value))
+ if (config->getProperty("shape", value))
{
widget()->cbShape->setCurrentItem( value.toUInt() );
}
diff --git a/chalk/plugins/filters/bumpmap/wdgbumpmap.ui b/chalk/plugins/filters/bumpmap/wdgbumpmap.ui
index 4e1bdf43..2934623a 100644
--- a/chalk/plugins/filters/bumpmap/wdgbumpmap.ui
+++ b/chalk/plugins/filters/bumpmap/wdgbumpmap.ui
@@ -52,7 +52,7 @@ layer, the current layer will be used.</string>
<property name="textFormat">
<enum>RichText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -82,7 +82,7 @@ layer, the current layer will be used.</string>
<property name="title">
<string>Settings</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignAuto</set>
</property>
<grid>
diff --git a/chalk/plugins/filters/cimg/CImg.h b/chalk/plugins/filters/cimg/CImg.h
index abd1bb66..23c7e221 100644
--- a/chalk/plugins/filters/cimg/CImg.h
+++ b/chalk/plugins/filters/cimg/CImg.h
@@ -3749,8 +3749,8 @@ namespace cimg_library {
then this image is displayed in the current display window.
\param list : The list of images to display.
\param axe : The axe used to append the image for visualization. Can be 'x' (default),'y','z' or 'v'.
- \param align : Defines the relative tqalignment of images when displaying images of different sizes.
- Can be '\p c' (centered, which is the default), '\p p' (top tqalignment) and '\p n' (bottom aligment).
+ \param align : Defines the relative alignment of images when displaying images of different sizes.
+ Can be '\p c' (centered, which is the default), '\p p' (top alignment) and '\p n' (bottom aligment).
\see CImg::get_append()
**/
@@ -7772,7 +7772,7 @@ namespace cimg_library {
//! Return a resized image.
/**
- \param src = Image giving the tqgeometry of the resize.
+ \param src = Image giving the geometry of the resize.
\param interp = Resizing type :
- 0 = no interpolation : additionnal space is filled with 0.
- 1 = bloc interpolation (nearest point).
@@ -7788,7 +7788,7 @@ namespace cimg_library {
//! Return a resized image.
/**
- \param disp = Display giving the tqgeometry of the resize.
+ \param disp = Display giving the geometry of the resize.
\param interp = Resizing type :
- 0 = no interpolation : additionnal space is filled with 0.
- 1 = bloc interpolation (nearest point).
@@ -7830,7 +7830,7 @@ namespace cimg_library {
//! Resize the image.
/**
- \param src = Image giving the tqgeometry of the resize.
+ \param src = Image giving the geometry of the resize.
\param interp = Resizing type :
- 0 = no interpolation : additionnal space is filled with 0.
- 1 = bloc interpolation (nearest point).
@@ -7846,7 +7846,7 @@ namespace cimg_library {
//! Resize the image
/**
- \param disp = Display giving the tqgeometry of the resize.
+ \param disp = Display giving the geometry of the resize.
\param interp = Resizing type :
- 0 = no interpolation : additionnal space is filled with 0.
- 1 = bloc interpolation (nearest point).
@@ -12881,7 +12881,7 @@ namespace cimg_library {
\param sharpness = define the contour preservation.
\param anisotropy = define the smoothing anisotropy.
\param alpha = image pre-blurring (gaussian).
- \param sigma = regularity of the tensor-valued tqgeometry.
+ \param sigma = regularity of the tensor-valued geometry.
\param dl = spatial discretization.
\param da = angular discretization.
\param gauss_prec = precision of the gaussian function.
@@ -17550,7 +17550,7 @@ namespace cimg_library {
//! Return a single image which is the concatenation of all images of the current CImgl instance.
/**
\param axe : specify the axe for image concatenation. Can be 'x','y','z' or 'v'.
- \param align : specify the tqalignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
+ \param align : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
\return A CImg<T> image corresponding to the concatenation is returned.
**/
CImg<T> get_append(const char axe='x',const char align='c') const {
@@ -17740,7 +17740,7 @@ namespace cimg_library {
The function returns immediately.
\param disp : reference to an existing CImgDisplay instance, where the current image list will be displayed.
\param axe : specify the axe for image concatenation. Can be 'x','y','z' or 'v'.
- \param align : specify the tqalignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
+ \param align : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
\return A reference to the current CImgl instance is returned.
**/
const CImgl& display(CImgDisplay& disp,const char axe='x',const char align='c') const {
@@ -17755,7 +17755,7 @@ namespace cimg_library {
The function returns when a key is pressed or the display window is closed by the user.
\param title : specify the title of the opening display window.
\param axe : specify the axe for image concatenation. Can be 'x','y','z' or 'v'.
- \param align : specify the tqalignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
+ \param align : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
\param min_size : specify the minimum size of the opening display window. Images having dimensions below this
size will be upscaled.
\param max_size : specify the maximum size of the opening display window. Images having dimensions above this
@@ -17774,7 +17774,7 @@ namespace cimg_library {
Images of the list are concatenated in a single temporarly image for visualization purposes.
The function returns when a key is pressed or the display window is closed by the user.
\param axe : specify the axe for image concatenation. Can be 'x','y','z' or 'v'.
- \param align : specify the tqalignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
+ \param align : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
\param min_size : specify the minimum size of the opening display window. Images having dimensions below this
size will be upscaled.
\param max_size : specify the maximum size of the opening display window. Images having dimensions above this
diff --git a/chalk/plugins/filters/cimg/kis_cimg_filter.cc b/chalk/plugins/filters/cimg/kis_cimg_filter.cc
index 665dfc09..9c3a7543 100644
--- a/chalk/plugins/filters/cimg/kis_cimg_filter.cc
+++ b/chalk/plugins/filters/cimg/kis_cimg_filter.cc
@@ -429,7 +429,7 @@ bool KisCImgFilter::prepare_inpaint()
bool KisCImgFilter::prepare_resize()
{
- const char *geom = NULL; //cimg_option("-g",(const char*)NULL,"Output image tqgeometry");
+ const char *geom = NULL; //cimg_option("-g",(const char*)NULL,"Output image geometry");
const bool anchor = true; //cimg_option("-anchor",true,"Anchor original pixels");
if (!geom) throw CImgArgumentException("You need to specify an output geomety (option -g)");
int w,h; get_geom(geom,w,h);
@@ -445,7 +445,7 @@ bool KisCImgFilter::prepare_resize()
bool KisCImgFilter::prepare_visuflow()
{
- const char *geom = "100%x100%"; //cimg_option("-g","100%x100%","Output tqgeometry");
+ const char *geom = "100%x100%"; //cimg_option("-g","100%x100%","Output geometry");
//const char *file_i = (const char *)NULL; //cimg_option("-i",(const char*)NULL,"Input init image");
const bool normalize = false; //cimg_option("-norm",false,"Normalize input flow");
diff --git a/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc b/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc
index a97f809b..e1224301 100644
--- a/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc
+++ b/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc
@@ -98,7 +98,7 @@ void KisBrightnessContrastFilterConfiguration::fromXML( const TQString& s )
}
n = n.nextSibling();
}
- // If the adjustment was cached, it now has changed - tqinvalidate it
+ // If the adjustment was cached, it now has changed - invalidate it
delete m_adjustment;
m_adjustment = 0;
}
diff --git a/chalk/plugins/filters/colorsfilters/wdg_brightness_contrast.ui b/chalk/plugins/filters/colorsfilters/wdg_brightness_contrast.ui
index 2e849658..8cd59c00 100644
--- a/chalk/plugins/filters/colorsfilters/wdg_brightness_contrast.ui
+++ b/chalk/plugins/filters/colorsfilters/wdg_brightness_contrast.ui
@@ -193,7 +193,7 @@
<property name="text">
<string>Contrast</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -226,7 +226,7 @@
<property name="text">
<string>Brightness</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
diff --git a/chalk/plugins/filters/levelfilter/kgradientslider.cc b/chalk/plugins/filters/levelfilter/kgradientslider.cc
index 7b836436..b36e5ce9 100644
--- a/chalk/plugins/filters/levelfilter/kgradientslider.cc
+++ b/chalk/plugins/filters/levelfilter/kgradientslider.cc
@@ -66,7 +66,7 @@ void KGradientSlider::paintEvent(TQPaintEvent *)
/*if (!m_dragging) {*/
TQPixmap pm(size());
TQPainter p1;
- p1.tqbegin(TQT_TQPAINTDEVICE(&pm), this);
+ p1.begin(TQT_TQPAINTDEVICE(&pm), this);
pm.fill();
@@ -203,7 +203,7 @@ void KGradientSlider::mousePressEvent ( TQMouseEvent * e )
m_gamma = 1.0 / pow (10, tmp);
break;
}
- tqrepaint(false);
+ repaint(false);
}
void KGradientSlider::mouseReleaseEvent ( TQMouseEvent * e )
@@ -212,7 +212,7 @@ void KGradientSlider::mouseReleaseEvent ( TQMouseEvent * e )
return;
m_dragging = false;
- tqrepaint(false);
+ repaint(false);
switch (m_grab_cursor) {
case BlackCursor:
@@ -283,7 +283,7 @@ void KGradientSlider::mouseMoveEvent ( TQMouseEvent * e )
}
}
- tqrepaint(false);
+ repaint(false);
}
void KGradientSlider::leaveEvent( TQEvent * )
@@ -294,7 +294,7 @@ void KGradientSlider::leaveEvent( TQEvent * )
void KGradientSlider::enableGamma(bool b)
{
m_gammaEnabled = b;
- tqrepaint(false);
+ repaint(false);
}
double KGradientSlider::getGamma(void)
@@ -311,7 +311,7 @@ void KGradientSlider::modifyBlack(int v) {
double tmp = log10 (1.0 / m_gamma);
m_gammacursor = (unsigned int)tqRound(mid + delta * tmp);
}
- tqrepaint(false);
+ repaint(false);
}
}
void KGradientSlider::modifyWhite(int v) {
@@ -323,7 +323,7 @@ void KGradientSlider::modifyWhite(int v) {
double tmp = log10 (1.0 / m_gamma);
m_gammacursor = (unsigned int)tqRound(mid + delta * tmp);
}
- tqrepaint(false);
+ repaint(false);
}
}
void KGradientSlider::modifyGamma(double v) {
@@ -332,7 +332,7 @@ void KGradientSlider::modifyGamma(double v) {
double mid = (double)m_blackcursor + delta;
double tmp = log10 (1.0 / m_gamma);
m_gammacursor = (unsigned int)tqRound(mid + delta * tmp);
- tqrepaint(false);
+ repaint(false);
}
#include "kgradientslider.moc"
diff --git a/chalk/plugins/filters/levelfilter/wdg_level.ui b/chalk/plugins/filters/levelfilter/wdg_level.ui
index 15dcff1f..6ce5874b 100644
--- a/chalk/plugins/filters/levelfilter/wdg_level.ui
+++ b/chalk/plugins/filters/levelfilter/wdg_level.ui
@@ -148,7 +148,7 @@
<property name="text">
<string>1.0</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
diff --git a/chalk/plugins/filters/wavefilter/kis_wdg_wave.cpp b/chalk/plugins/filters/wavefilter/kis_wdg_wave.cpp
index e7537c27..346ff44a 100644
--- a/chalk/plugins/filters/wavefilter/kis_wdg_wave.cpp
+++ b/chalk/plugins/filters/wavefilter/kis_wdg_wave.cpp
@@ -63,7 +63,7 @@ void KisWdgWave::setConfiguration(KisFilterConfiguration* config)
{
widget()->intHAmplitude->setValue( value.toUInt() );
}
- if (config->getProperty("horizontaltqshape", value))
+ if (config->getProperty("horizontalshape", value))
{
widget()->cbHShape->setCurrentItem( value.toUInt() );
}
@@ -79,7 +79,7 @@ void KisWdgWave::setConfiguration(KisFilterConfiguration* config)
{
widget()->intVAmplitude->setValue( value.toUInt() );
}
- if (config->getProperty("verticaltqshape", value))
+ if (config->getProperty("verticalshape", value))
{
widget()->cbVShape->setCurrentItem( value.toUInt() );
}
diff --git a/chalk/plugins/filters/wavefilter/wavefilter.cc b/chalk/plugins/filters/wavefilter/wavefilter.cc
index ddcfc4bd..a7a9264e 100644
--- a/chalk/plugins/filters/wavefilter/wavefilter.cc
+++ b/chalk/plugins/filters/wavefilter/wavefilter.cc
@@ -112,11 +112,11 @@ KisFilterConfiguration* KisFilterWave::configuration(TQWidget* w)
config->setProperty("horizontalwavelength", wN->widget()->intHWavelength->value() );
config->setProperty("horizontalshift", wN->widget()->intHShift->value() );
config->setProperty("horizontalamplitude", wN->widget()->intHAmplitude->value() );
- config->setProperty("horizontaltqshape", wN->widget()->cbHShape->currentItem() );
+ config->setProperty("horizontalshape", wN->widget()->cbHShape->currentItem() );
config->setProperty("verticalwavelength", wN->widget()->intVWavelength->value() );
config->setProperty("verticalshift", wN->widget()->intVShift->value() );
config->setProperty("verticalamplitude", wN->widget()->intVAmplitude->value() );
- config->setProperty("verticaltqshape", wN->widget()->cbVShape->currentItem() );
+ config->setProperty("verticalshape", wN->widget()->cbVShape->currentItem() );
}
return config;
}
@@ -137,19 +137,19 @@ void KisFilterWave::process(KisPaintDeviceSP src, KisPaintDeviceSP dst, KisFilte
int horizontalwavelength = (config && config->getProperty("horizontalwavelength", value)) ? value.toInt() : 50;
int horizontalshift = (config && config->getProperty("horizontalshift", value)) ? value.toInt() : 50;
int horizontalamplitude = (config && config->getProperty("horizontalamplitude", value)) ? value.toInt() : 4;
- int horizontaltqshape = (config && config->getProperty("horizontaltqshape", value)) ? value.toInt() : 0;
+ int horizontalshape = (config && config->getProperty("horizontalshape", value)) ? value.toInt() : 0;
int verticalwavelength = (config && config->getProperty("verticalwavelength", value)) ? value.toInt() : 50;
int verticalshift = (config && config->getProperty("verticalshift", value)) ? value.toInt() : 50;
int verticalamplitude = (config && config->getProperty("verticalamplitude", value)) ? value.toInt() : 4;
- int verticaltqshape = (config && config->getProperty("verticaltqshape", value)) ? value.toInt() : 0;
+ int verticalshape = (config && config->getProperty("verticalshape", value)) ? value.toInt() : 0;
KisRectIteratorPixel dstIt = dst->createRectIterator(rect.x(), rect.y(), rect.width(), rect.height(), true );
KisWaveCurve* verticalcurve;
- if(verticaltqshape == 1)
+ if(verticalshape == 1)
verticalcurve = new KisTriangleWaveCurve(verticalamplitude, verticalwavelength, verticalshift);
else
verticalcurve = new KisSinusoidalWaveCurve(verticalamplitude, verticalwavelength, verticalshift);
KisWaveCurve* horizontalcurve;
- if(horizontaltqshape == 1)
+ if(horizontalshape == 1)
horizontalcurve = new KisTriangleWaveCurve(horizontalamplitude, horizontalwavelength, horizontalshift);
else
horizontalcurve = new KisSinusoidalWaveCurve(horizontalamplitude, horizontalwavelength, horizontalshift);