diff options
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_1d_stencil.cpp')
-rw-r--r-- | kivio/kiviopart/kiviosdk/kivio_1d_stencil.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_1d_stencil.cpp b/kivio/kiviopart/kiviosdk/kivio_1d_stencil.cpp index 9971f5f7..23b03be6 100644 --- a/kivio/kiviopart/kiviosdk/kivio_1d_stencil.cpp +++ b/kivio/kiviopart/kiviosdk/kivio_1d_stencil.cpp @@ -59,8 +59,8 @@ #include <math.h> #include <KoZoomHandler.h> -#include <qbitmap.h> -#include <qpainter.h> +#include <tqbitmap.h> +#include <tqpainter.h> /** * Default constructor. @@ -75,7 +75,7 @@ Kivio1DStencil::Kivio1DStencil() m_pLineStyle = new KivioLineStyle(); m_pTextStyle = new KivioTextStyle(); - m_pConnectorPoints = new QPtrList<KivioConnectorPoint>; + m_pConnectorPoints = new TQPtrList<KivioConnectorPoint>; m_pConnectorPoints->setAutoDelete(true); m_pStart = new KivioConnectorPoint(this, true); @@ -116,12 +116,12 @@ Kivio1DStencil::~Kivio1DStencil() delete m_pConnectorPoints; } -void Kivio1DStencil::setFGColor( QColor c ) +void Kivio1DStencil::setFGColor( TQColor c ) { m_pLineStyle->setColor(c); } -QColor Kivio1DStencil::fgColor() +TQColor Kivio1DStencil::fgColor() { return m_pLineStyle->color(); } @@ -156,12 +156,12 @@ int Kivio1DStencil::fillPattern() return m_pFillStyle->brushStyle(); } -void Kivio1DStencil::setBGColor( QColor c ) +void Kivio1DStencil::setBGColor( TQColor c ) { m_pFillStyle->setColor(c); } -QColor Kivio1DStencil::bgColor() +TQColor Kivio1DStencil::bgColor() { return m_pFillStyle->color(); } @@ -413,10 +413,10 @@ void Kivio1DStencil::updateGeometry() // file i/o routines -bool Kivio1DStencil::loadXML( const QDomElement &e ) +bool Kivio1DStencil::loadXML( const TQDomElement &e ) { - QDomNode node; - QString name; + TQDomNode node; + TQString name; node = e.firstChild(); while( !node.isNull() ) @@ -437,9 +437,9 @@ bool Kivio1DStencil::loadXML( const QDomElement &e ) } -QDomElement Kivio1DStencil::createRootElement( QDomDocument &doc ) +TQDomElement Kivio1DStencil::createRootElement( TQDomDocument &doc ) { - QDomElement e = doc.createElement("KivioPluginStencil"); + TQDomElement e = doc.createElement("KivioPluginStencil"); XmlWriteString( e, "id", m_pSpawner->info()->id() ); XmlWriteString( e, "setId", m_pSpawner->set()->id() ); @@ -448,9 +448,9 @@ QDomElement Kivio1DStencil::createRootElement( QDomDocument &doc ) } -QDomElement Kivio1DStencil::saveXML( QDomDocument &doc ) +TQDomElement Kivio1DStencil::saveXML( TQDomDocument &doc ) { - QDomElement e = createRootElement(doc); + TQDomElement e = createRootElement(doc); e.appendChild( saveProperties(doc) ); @@ -643,9 +643,9 @@ int Kivio1DStencil::resizeHandlePositions() return (int)krhpNone; } -QDomElement Kivio1DStencil::saveConnectors( QDomDocument &doc ) +TQDomElement Kivio1DStencil::saveConnectors( TQDomDocument &doc ) { - QDomElement eConns = doc.createElement("KivioConnectorList"); + TQDomElement eConns = doc.createElement("KivioConnectorList"); KivioConnectorPoint *p; p = m_pConnectorPoints->first(); @@ -659,15 +659,15 @@ QDomElement Kivio1DStencil::saveConnectors( QDomDocument &doc ) return eConns; } -bool Kivio1DStencil::loadConnectors( const QDomElement &e ) +bool Kivio1DStencil::loadConnectors( const TQDomElement &e ) { m_pConnectorPoints->clear(); KivioConnectorPoint *p; - QDomNode node = e.firstChild(); - QDomElement e2; - QString name; + TQDomNode node = e.firstChild(); + TQDomElement e2; + TQString name; while( !node.isNull() ) { @@ -715,11 +715,11 @@ bool Kivio1DStencil::loadConnectors( const QDomElement &e ) return true; } -QDomElement Kivio1DStencil::saveProperties( QDomDocument &doc ) +TQDomElement Kivio1DStencil::saveProperties( TQDomDocument &doc ) { - QDomElement propE = doc.createElement("KivioStencilProperties"); + TQDomElement propE = doc.createElement("KivioStencilProperties"); - QDomElement connE = doc.createElement("Kivio1DProperties"); + TQDomElement connE = doc.createElement("Kivio1DProperties"); XmlWriteFloat( connE, "connectorWidth", m_connectorWidth ); XmlWriteInt( connE, "needsWidth", m_needsWidth ); propE.appendChild( connE ); @@ -732,7 +732,7 @@ QDomElement Kivio1DStencil::saveProperties( QDomDocument &doc ) propE.appendChild( saveConnectors(doc) ); - QDomElement customE = doc.createElement("CustomData"); + TQDomElement customE = doc.createElement("CustomData"); if( saveCustom( customE, doc )==true ) { propE.appendChild( customE ); @@ -741,11 +741,11 @@ QDomElement Kivio1DStencil::saveProperties( QDomDocument &doc ) return propE; } -bool Kivio1DStencil::loadProperties( const QDomElement &e ) +bool Kivio1DStencil::loadProperties( const TQDomElement &e ) { - QDomNode node; - QDomElement nodeE; - QString nodeName; + TQDomNode node; + TQDomElement nodeE; + TQString nodeName; node = e.firstChild(); while( !node.isNull() ) @@ -785,12 +785,12 @@ bool Kivio1DStencil::loadProperties( const QDomElement &e ) return true; } -bool Kivio1DStencil::loadCustom( const QDomElement & ) +bool Kivio1DStencil::loadCustom( const TQDomElement & ) { return true; } -bool Kivio1DStencil::saveCustom( QDomElement &, QDomDocument & ) +bool Kivio1DStencil::saveCustom( TQDomElement &, TQDomDocument & ) { return false; } @@ -849,21 +849,21 @@ void Kivio1DStencil::drawText( KivioIntraStencilData *pData ) _w = 10000000; _h = 10000000; - QFont f = m_pTextStyle->font(); + TQFont f = m_pTextStyle->font(); int tf = m_pTextStyle->hTextAlign() | m_pTextStyle->vTextAlign(); f.setPointSizeFloat(f.pointSizeFloat() * (((float)zoomHandler->zoom()) / 100.0)); painter->setFont(f); - QRect boundRect = painter->boundingRect( _x, _y, _w, _h, tf, m_pTextStyle->text() ); - QPixmap pix(boundRect.width(), boundRect.height()); + TQRect boundRect = painter->boundingRect( _x, _y, _w, _h, tf, m_pTextStyle->text() ); + TQPixmap pix(boundRect.width(), boundRect.height()); pix.fill(); - QPainter p(&pix); + TQPainter p(&pix); p.setPen(m_pTextStyle->color()); p.setFont(f); p.drawText( 0, 0, boundRect.width(), boundRect.height(), tf, m_pTextStyle->text() ); - QBitmap mask; - mask = pix; - pix.setMask(mask); + TQBitmap tqmask; + tqmask = pix; + pix.setMask(tqmask); painter->drawPixmap(_x, _y, pix); } |