summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/kimearea.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:43 -0600
commit2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076 (patch)
treec57406ac640b2ce83ebc0ec0cbc96d0e3e40d9b5 /kimagemapeditor/kimearea.cpp
parentff23fbd0f4265648d9a1d53f4230c3f7c78c4f77 (diff)
downloadtdewebdev-2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.tar.gz
tdewebdev-2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kimagemapeditor/kimearea.cpp')
-rw-r--r--kimagemapeditor/kimearea.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/kimagemapeditor/kimearea.cpp b/kimagemapeditor/kimearea.cpp
index 52cccf9f..835cdf55 100644
--- a/kimagemapeditor/kimearea.cpp
+++ b/kimagemapeditor/kimearea.cpp
@@ -21,8 +21,8 @@
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqpen.h>
-#include <tqbrush.h>
-#include <tqpalette.h>
+#include <brush.h>
+#include <palette.h>
#include <tqcolor.h>
#include <tqlistview.h>
@@ -336,10 +336,10 @@ void Area::drawAlt(TQPainter & p)
{
double x,y;
- double scalex = p.tqworldMatrix().m11();
-// double scaley = p.tqworldMatrix().m12();
+ double scalex = p.worldMatrix().m11();
+// double scaley = p.worldMatrix().m12();
- TQWMatrix oldMatrix = p.tqworldMatrix();
+ TQWMatrix oldMatrix = p.worldMatrix();
p.setWorldMatrix(TQWMatrix(1,oldMatrix.m12(), oldMatrix.m21(), 1, oldMatrix.dx(), oldMatrix.dy() ));
@@ -379,10 +379,10 @@ void Area::draw(TQPainter & p)
{
int i=0;
- double scalex = p.tqworldMatrix().m11();
-// double scaley = p.tqworldMatrix().m12();
+ double scalex = p.worldMatrix().m11();
+// double scaley = p.worldMatrix().m12();
- TQWMatrix oldMatrix = p.tqworldMatrix();
+ TQWMatrix oldMatrix = p.worldMatrix();
p.setWorldMatrix(TQWMatrix(1,oldMatrix.m12(), oldMatrix.m21(), 1, oldMatrix.dx(), oldMatrix.dy() ));
@@ -675,10 +675,10 @@ TQBitmap RectArea::getMask() const
TQString RectArea::coordsToString() const
{
TQString retStr=TQString("%1,%2,%3,%4")
- .tqarg(rect().left())
- .tqarg(rect().top())
- .tqarg(rect().right())
- .tqarg(rect().bottom());
+ .arg(rect().left())
+ .arg(rect().top())
+ .arg(rect().right())
+ .arg(rect().bottom());
return retStr;
}
@@ -747,7 +747,7 @@ bool RectArea::setCoords(const TQString & s)
TQString RectArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="tqshape=\"rect\" ";
+ retStr+="shape=\"rect\" ";
retStr+=getHTMLAttributes();
@@ -834,9 +834,9 @@ TQBitmap CircleArea::getMask() const
TQString CircleArea::coordsToString() const
{
TQString retStr=TQString("%1,%2,%3")
- .tqarg(_rect.center().x())
- .tqarg(_rect.center().y())
- .tqarg(_rect.width()/2);
+ .arg(_rect.center().x())
+ .arg(_rect.center().y())
+ .arg(_rect.width()/2);
return retStr;
}
@@ -949,7 +949,7 @@ bool CircleArea::setCoords(const TQString & s)
TQString CircleArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="tqshape=\"circle\" ";
+ retStr+="shape=\"circle\" ";
retStr+=getHTMLAttributes();
@@ -992,9 +992,9 @@ void PolyArea::draw(TQPainter & p)
if (_finished)
- p.tqdrawPolygon ( *_coords,false,0,_coords->count());
+ p.drawPolygon ( *_coords,false,0,_coords->count());
else
- p.tqdrawPolyline ( *_coords,0,_coords->count());
+ p.drawPolyline ( *_coords,0,_coords->count());
/*
p.moveTo(_coords->point(0));
@@ -1033,8 +1033,8 @@ TQString PolyArea::coordsToString() const
for (uint i=0;i<_coords->count();i++) {
retStr.append(TQString("%1,%2,")
- .tqarg(_coords->point(i).x())
- .tqarg(_coords->point(i).y()));
+ .arg(_coords->point(i).x())
+ .arg(_coords->point(i).y()));
}
retStr.remove(retStr.length()-1,1);
@@ -1224,7 +1224,7 @@ bool PolyArea::setCoords(const TQString & s)
TQString PolyArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="tqshape=\"poly\" ";
+ retStr+="shape=\"poly\" ";
retStr+=getHTMLAttributes();
@@ -1283,7 +1283,7 @@ void DefaultArea::draw(TQPainter &)
TQString DefaultArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="tqshape=\"default\" ";
+ retStr+="shape=\"default\" ";
retStr+=getHTMLAttributes();
@@ -1302,7 +1302,7 @@ AreaSelection::AreaSelection()
{
_areas = new AreaList();
_name = "Selection";
- tqinvalidate();
+ invalidate();
}
AreaSelection::~AreaSelection() {
@@ -1352,7 +1352,7 @@ void AreaSelection::add(Area *a)
}
}
- tqinvalidate();
+ invalidate();
}
void AreaSelection::remove(Area *a)
@@ -1362,7 +1362,7 @@ void AreaSelection::remove(Area *a)
a->setSelected( false );
_areas->remove( a );
- tqinvalidate();
+ invalidate();
}
void AreaSelection::reset()
@@ -1375,7 +1375,7 @@ void AreaSelection::reset()
}
_areas->clear();
- tqinvalidate();
+ invalidate();
}
bool AreaSelection::contains(const TQPoint & p) const
@@ -1423,7 +1423,7 @@ void AreaSelection::moveSelectionPoint(TQRect* selectionPoint, const TQPoint & p
_areas->getFirst()->moveSelectionPoint(selectionPoint,p);
- tqinvalidate();
+ invalidate();
}
@@ -1436,7 +1436,7 @@ void AreaSelection::moveBy(int dx, int dy)
Area::moveBy( dx, dy );
- tqinvalidate();
+ invalidate();
}
TQString AreaSelection::typeString() const
@@ -1474,7 +1474,7 @@ void AreaSelection::updateSelectionPoints()
it.current()->updateSelectionPoints();
}
- tqinvalidate();
+ invalidate();
}
@@ -1525,7 +1525,7 @@ void AreaSelection::setArea(const Area & copy)
setAreaSelection(*selection);
else {
Area::setArea(copy);
- tqinvalidate();
+ invalidate();
}
}
@@ -1541,14 +1541,14 @@ void AreaSelection::setAreaSelection(const AreaSelection & copy)
it.current()->setArea(*it2.current());
Area::setArea(copy);
- tqinvalidate();
+ invalidate();
}
void AreaSelection::setAreaList( const AreaList & areas )
{
delete _areas;
_areas = new AreaList(areas);
- tqinvalidate();
+ invalidate();
}
void AreaSelection::setRect(const TQRect & r)
@@ -1558,7 +1558,7 @@ void AreaSelection::setRect(const TQRect & r)
_areas->getFirst()->setRect(r);
}
- tqinvalidate();
+ invalidate();
_rect=rect();
updateSelectionPoints();
}
@@ -1586,7 +1586,7 @@ int AreaSelection::addCoord(const TQPoint & p)
if ( _areas->count()==1 )
{
return _areas->getFirst()->addCoord(p);
- tqinvalidate();
+ invalidate();
}
return 0;
@@ -1597,7 +1597,7 @@ void AreaSelection::insertCoord(int pos, const TQPoint & p)
if ( _areas->count()==1 )
{
_areas->getFirst()->insertCoord(pos, p);
- tqinvalidate();
+ invalidate();
}
}
@@ -1606,7 +1606,7 @@ void AreaSelection::removeCoord(int pos)
if ( _areas->count()==1 )
{
_areas->getFirst()->removeCoord(pos);
- tqinvalidate();
+ invalidate();
}
}
@@ -1617,7 +1617,7 @@ bool AreaSelection::removeSelectionPoint(TQRect * r)
if ( _areas->count()==1 )
{
result = _areas->getFirst()->removeSelectionPoint(r);
- tqinvalidate();
+ invalidate();
}
return result;
@@ -1639,7 +1639,7 @@ void AreaSelection::moveCoord(int pos,const TQPoint & p)
if ( _areas->count()==1 )
{
_areas->getFirst()->moveCoord(pos,p);
- tqinvalidate();
+ invalidate();
}
}
@@ -1648,7 +1648,7 @@ void AreaSelection::highlightSelectionPoint(int i)
if ( _areas->count()==1 )
{
_areas->getFirst()->highlightSelectionPoint(i);
- tqinvalidate();
+ invalidate();
}
}