summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/kimearea.cpp
diff options
context:
space:
mode:
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 835cdf55..52cccf9f 100644
--- a/kimagemapeditor/kimearea.cpp
+++ b/kimagemapeditor/kimearea.cpp
@@ -21,8 +21,8 @@
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqpen.h>
-#include <brush.h>
-#include <palette.h>
+#include <tqbrush.h>
+#include <tqpalette.h>
#include <tqcolor.h>
#include <tqlistview.h>
@@ -336,10 +336,10 @@ void Area::drawAlt(TQPainter & p)
{
double x,y;
- double scalex = p.worldMatrix().m11();
-// double scaley = p.worldMatrix().m12();
+ double scalex = p.tqworldMatrix().m11();
+// double scaley = p.tqworldMatrix().m12();
- TQWMatrix oldMatrix = p.worldMatrix();
+ TQWMatrix oldMatrix = p.tqworldMatrix();
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.worldMatrix().m11();
-// double scaley = p.worldMatrix().m12();
+ double scalex = p.tqworldMatrix().m11();
+// double scaley = p.tqworldMatrix().m12();
- TQWMatrix oldMatrix = p.worldMatrix();
+ TQWMatrix oldMatrix = p.tqworldMatrix();
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")
- .arg(rect().left())
- .arg(rect().top())
- .arg(rect().right())
- .arg(rect().bottom());
+ .tqarg(rect().left())
+ .tqarg(rect().top())
+ .tqarg(rect().right())
+ .tqarg(rect().bottom());
return retStr;
}
@@ -747,7 +747,7 @@ bool RectArea::setCoords(const TQString & s)
TQString RectArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="shape=\"rect\" ";
+ retStr+="tqshape=\"rect\" ";
retStr+=getHTMLAttributes();
@@ -834,9 +834,9 @@ TQBitmap CircleArea::getMask() const
TQString CircleArea::coordsToString() const
{
TQString retStr=TQString("%1,%2,%3")
- .arg(_rect.center().x())
- .arg(_rect.center().y())
- .arg(_rect.width()/2);
+ .tqarg(_rect.center().x())
+ .tqarg(_rect.center().y())
+ .tqarg(_rect.width()/2);
return retStr;
}
@@ -949,7 +949,7 @@ bool CircleArea::setCoords(const TQString & s)
TQString CircleArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="shape=\"circle\" ";
+ retStr+="tqshape=\"circle\" ";
retStr+=getHTMLAttributes();
@@ -992,9 +992,9 @@ void PolyArea::draw(TQPainter & p)
if (_finished)
- p.drawPolygon ( *_coords,false,0,_coords->count());
+ p.tqdrawPolygon ( *_coords,false,0,_coords->count());
else
- p.drawPolyline ( *_coords,0,_coords->count());
+ p.tqdrawPolyline ( *_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,")
- .arg(_coords->point(i).x())
- .arg(_coords->point(i).y()));
+ .tqarg(_coords->point(i).x())
+ .tqarg(_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+="shape=\"poly\" ";
+ retStr+="tqshape=\"poly\" ";
retStr+=getHTMLAttributes();
@@ -1283,7 +1283,7 @@ void DefaultArea::draw(TQPainter &)
TQString DefaultArea::getHTMLCode() const {
TQString retStr;
retStr+="<area ";
- retStr+="shape=\"default\" ";
+ retStr+="tqshape=\"default\" ";
retStr+=getHTMLAttributes();
@@ -1302,7 +1302,7 @@ AreaSelection::AreaSelection()
{
_areas = new AreaList();
_name = "Selection";
- invalidate();
+ tqinvalidate();
}
AreaSelection::~AreaSelection() {
@@ -1352,7 +1352,7 @@ void AreaSelection::add(Area *a)
}
}
- invalidate();
+ tqinvalidate();
}
void AreaSelection::remove(Area *a)
@@ -1362,7 +1362,7 @@ void AreaSelection::remove(Area *a)
a->setSelected( false );
_areas->remove( a );
- invalidate();
+ tqinvalidate();
}
void AreaSelection::reset()
@@ -1375,7 +1375,7 @@ void AreaSelection::reset()
}
_areas->clear();
- invalidate();
+ tqinvalidate();
}
bool AreaSelection::contains(const TQPoint & p) const
@@ -1423,7 +1423,7 @@ void AreaSelection::moveSelectionPoint(TQRect* selectionPoint, const TQPoint & p
_areas->getFirst()->moveSelectionPoint(selectionPoint,p);
- invalidate();
+ tqinvalidate();
}
@@ -1436,7 +1436,7 @@ void AreaSelection::moveBy(int dx, int dy)
Area::moveBy( dx, dy );
- invalidate();
+ tqinvalidate();
}
TQString AreaSelection::typeString() const
@@ -1474,7 +1474,7 @@ void AreaSelection::updateSelectionPoints()
it.current()->updateSelectionPoints();
}
- invalidate();
+ tqinvalidate();
}
@@ -1525,7 +1525,7 @@ void AreaSelection::setArea(const Area & copy)
setAreaSelection(*selection);
else {
Area::setArea(copy);
- invalidate();
+ tqinvalidate();
}
}
@@ -1541,14 +1541,14 @@ void AreaSelection::setAreaSelection(const AreaSelection & copy)
it.current()->setArea(*it2.current());
Area::setArea(copy);
- invalidate();
+ tqinvalidate();
}
void AreaSelection::setAreaList( const AreaList & areas )
{
delete _areas;
_areas = new AreaList(areas);
- invalidate();
+ tqinvalidate();
}
void AreaSelection::setRect(const TQRect & r)
@@ -1558,7 +1558,7 @@ void AreaSelection::setRect(const TQRect & r)
_areas->getFirst()->setRect(r);
}
- invalidate();
+ tqinvalidate();
_rect=rect();
updateSelectionPoints();
}
@@ -1586,7 +1586,7 @@ int AreaSelection::addCoord(const TQPoint & p)
if ( _areas->count()==1 )
{
return _areas->getFirst()->addCoord(p);
- invalidate();
+ tqinvalidate();
}
return 0;
@@ -1597,7 +1597,7 @@ void AreaSelection::insertCoord(int pos, const TQPoint & p)
if ( _areas->count()==1 )
{
_areas->getFirst()->insertCoord(pos, p);
- invalidate();
+ tqinvalidate();
}
}
@@ -1606,7 +1606,7 @@ void AreaSelection::removeCoord(int pos)
if ( _areas->count()==1 )
{
_areas->getFirst()->removeCoord(pos);
- invalidate();
+ tqinvalidate();
}
}
@@ -1617,7 +1617,7 @@ bool AreaSelection::removeSelectionPoint(TQRect * r)
if ( _areas->count()==1 )
{
result = _areas->getFirst()->removeSelectionPoint(r);
- invalidate();
+ tqinvalidate();
}
return result;
@@ -1639,7 +1639,7 @@ void AreaSelection::moveCoord(int pos,const TQPoint & p)
if ( _areas->count()==1 )
{
_areas->getFirst()->moveCoord(pos,p);
- invalidate();
+ tqinvalidate();
}
}
@@ -1648,7 +1648,7 @@ void AreaSelection::highlightSelectionPoint(int i)
if ( _areas->count()==1 )
{
_areas->getFirst()->highlightSelectionPoint(i);
- invalidate();
+ tqinvalidate();
}
}