summaryrefslogtreecommitdiffstats
path: root/arts/builder/structureport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/builder/structureport.cpp')
-rw-r--r--arts/builder/structureport.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/arts/builder/structureport.cpp b/arts/builder/structureport.cpp
index b57e9632..35b36b45 100644
--- a/arts/builder/structureport.cpp
+++ b/arts/builder/structureport.cpp
@@ -21,10 +21,10 @@
#include "structureport.h"
#include "drawutils.h"
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qdrawutil.h>
-#include <qbitmap.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqdrawutil.h>
+#include <tqbitmap.h>
#include <assert.h>
#include <stdio.h>
#include <arts/debug.h>
@@ -90,24 +90,24 @@ bool StructurePort::drawNeedsBackground(int segment)
return true;
}
-void StructurePort::drawSegment(QPainter *dest, int cellsize, int segment)
+void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment)
{
- QString pname = QString::fromLocal8Bit(SPortDesc.name().c_str());
+ TQString pname = TQString::fromLocal8Bit(SPortDesc.name().c_str());
assert(segment==0);
- QPainter &p = *dest;
+ TQPainter &p = *dest;
int direction = (_port->direction == ModulePort::out)?1:0;
// FIXME: make these color defs available at one central place, they
// are currently copied from main.cpp
- QColor mcolor(43,43,168);
- QColor mcolorlight(164,176,242);
- QColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
+ TQColor mcolor(43,43,168);
+ TQColor mcolorlight(164,176,242);
+ TQColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
Qt::black, Qt::black );
- QBrush fill( mcolor );
- QPen textpen(QColor(255,255,180),1);
+ TQBrush fill( mcolor );
+ TQPen textpen(TQColor(255,255,180),1);
int border = cellsize/10;
int boxtop = (cellsize/2)*(1-direction);
@@ -117,14 +117,14 @@ void StructurePort::drawSegment(QPainter *dest, int cellsize, int segment)
// Selection box
if(_selected)
{
- QPen pen(Qt::white,1,Qt::DotLine);
+ TQPen pen(Qt::white,1,Qt::DotLine);
p.setPen(pen);
p.drawRect(0,boxtop,cellsize,cellsize/2);
}
// ... doesn't look centered without the 2*border ?!?
int textwidth;
- QString label=DrawUtils::cropText(&p, pname, cellsize-border*2, textwidth);
+ TQString label=DrawUtils::cropText(&p, pname, cellsize-border*2, textwidth);
p.drawText(border,border+boxtop,cellsize-border-1,(cellsize/2-1)-2*border,
Qt::AlignCenter,label);
@@ -133,15 +133,15 @@ void StructurePort::drawSegment(QPainter *dest, int cellsize, int segment)
int i;
for(i=0;i<3;i++)
{
- QBrush fbrush;
+ TQBrush fbrush;
int delta = 0;
switch(i)
{
case 0: delta = 0;
- fbrush = QBrush(g.light());
+ fbrush = TQBrush(g.light());
break;
case 1: delta = 2;
- fbrush = QBrush(g.dark());
+ fbrush = TQBrush(g.dark());
break;
case 2: delta = 1;
fbrush = fill;
@@ -172,7 +172,7 @@ d | |
int c = cellsize/12;
int d = cellsize/5;
- QPointArray a(9);
+ TQPointArray a(9);
a.setPoint(0,b+l,t);
a.setPoint(1,b+l,t+c);
a.setPoint(2,l,t+c);
@@ -211,9 +211,9 @@ d | |
{
int border = cellsize/7;
- QBrush pbrush(_port->color(false));
+ TQBrush pbrush(_port->color(false));
- _port->clickrect = QRect(border,direction * cellsize/2 + border,
+ _port->clickrect = TQRect(border,direction * cellsize/2 + border,
cellsize/2-2*border, cellsize/2-2*border);
qDrawShadePanel(&p, _port->clickrect, g, _port->down(), 2, &pbrush);
}
@@ -223,7 +223,7 @@ ModulePort *StructurePort::portAt(int segment, int x, int y)
{
assert(segment == 0);
- QPoint clickpoint(x,y);
+ TQPoint clickpoint(x,y);
if(_port->clickrect.contains(clickpoint)) return _port;
return 0;
}
@@ -233,14 +233,14 @@ void StructurePort::dumpPorts(list<ModulePort *>& ports)
ports.push_back(_port);
}
-QPixmap *StructurePort::pixmap()
+TQPixmap *StructurePort::pixmap()
{
return 0;
}
-QString StructurePort::name()
+TQString StructurePort::name()
{
- return QString::fromLocal8Bit(SPortDesc.name().c_str());
+ return TQString::fromLocal8Bit(SPortDesc.name().c_str());
}
void StructurePort::raisePosition()