diff options
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_layer.cpp')
-rw-r--r-- | kivio/kiviopart/kiviosdk/kivio_layer.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_layer.cpp b/kivio/kiviopart/kiviosdk/kivio_layer.cpp index 4c567f00..999d053d 100644 --- a/kivio/kiviopart/kiviosdk/kivio_layer.cpp +++ b/kivio/kiviopart/kiviosdk/kivio_layer.cpp @@ -31,7 +31,7 @@ #include "kivio_doc.h" #include "kivio_page.h" -#include <qdom.h> +#include <tqdom.h> #include <klocale.h> #include <kdebug.h> @@ -46,10 +46,10 @@ KivioLayer::KivioLayer( KivioPage *pPage ) m_pPage = pPage; m_name = i18n("Untitled Layer"); - m_pStencilList = new QPtrList<KivioStencil>; + m_pStencilList = new TQPtrList<KivioStencil>; m_pStencilList->setAutoDelete(true); - m_pDeletedStencilList = new QPtrList<KivioStencil>; + m_pDeletedStencilList = new TQPtrList<KivioStencil>; m_pDeletedStencilList->setAutoDelete(true); m_flags = 0; @@ -81,7 +81,7 @@ KivioLayer::~KivioLayer() bool KivioLayer::addStencil( KivioStencil *pStencil ) { - int pos = m_pDeletedStencilList->findRef(pStencil); + int pos = m_pDeletedStencilList->tqfindRef(pStencil); if ( pos != -1 ) m_pDeletedStencilList->take( pos); @@ -92,14 +92,14 @@ bool KivioLayer::addStencil( KivioStencil *pStencil ) void KivioLayer::takeStencilFromList( KivioStencil *pStencil ) { - int pos=m_pStencilList->findRef(pStencil); + int pos=m_pStencilList->tqfindRef(pStencil); m_pStencilList->take( pos ); m_pDeletedStencilList->append( pStencil ); } void KivioLayer::insertStencil( KivioStencil *pStencil ) { - int pos=m_pDeletedStencilList->findRef(pStencil); + int pos=m_pDeletedStencilList->tqfindRef(pStencil); if ( pos != -1 ) m_pDeletedStencilList->take( pos); @@ -124,9 +124,9 @@ bool KivioLayer::removeStencil( KivioStencil *pStencil ) * * @returns A new, loaded stencil. */ -KivioStencil *KivioLayer::loadSMLStencil( const QDomElement &stencilE ) +KivioStencil *KivioLayer::loadSMLStencil( const TQDomElement &stencilE ) { - QString setId, _id; + TQString setId, _id; kdDebug(43000) << "KivioLayer::loadSMLStencil() " << setId << " " << _id << endl; @@ -166,7 +166,7 @@ KivioStencil *KivioLayer::loadSMLStencil( const QDomElement &stencilE ) * * @returns A new, loaded stencil. */ -KivioStencil *KivioLayer::loadGroupStencil( const QDomElement &stencilE ) +KivioStencil *KivioLayer::loadGroupStencil( const TQDomElement &stencilE ) { kdDebug(43000) << "KivioLayer::loadGroupStencil()" << endl; @@ -181,9 +181,9 @@ KivioStencil *KivioLayer::loadGroupStencil( const QDomElement &stencilE ) return pStencil; } -KivioStencil *KivioLayer::loadPluginStencil( const QDomElement &stencilE ) +KivioStencil *KivioLayer::loadPluginStencil( const TQDomElement &stencilE ) { - QString setId, _id; + TQString setId, _id; kdDebug(43000) << "KivioLayer::loadPluginStencil() " << setId.ascii() << " / " << _id << endl; @@ -210,17 +210,17 @@ KivioStencil *KivioLayer::loadPluginStencil( const QDomElement &stencilE ) return NULL; } -bool KivioLayer::loadXML( const QDomElement &layerE ) +bool KivioLayer::loadXML( const TQDomElement &layerE ) { m_flags = XmlReadInt( layerE, "flags", 1 ); kdDebug(43000) << "Flags: " << m_flags << endl; m_name = XmlReadString( layerE, "name", "layerX" ); - QDomNode node; + TQDomNode node; node = layerE.firstChild(); while( !node.isNull() ) { - QString name = node.nodeName(); + TQString name = node.nodeName(); if( name == "KivioSMLStencil" || name == "KivioPyStencil" ) { KivioStencil *pStencil = loadSMLStencil( node.toElement() ); @@ -270,16 +270,16 @@ bool KivioLayer::loadXML( const QDomElement &layerE ) return true; } -void KivioLayer::loadOasis(const QDomElement& layer) +void KivioLayer::loadOasis(const TQDomElement& layer) { m_name = layer.attribute("draw:name"); // TODO OASIS Load flags } -QDomElement KivioLayer::saveXML( QDomDocument &doc ) +TQDomElement KivioLayer::saveXML( TQDomDocument &doc ) { - QDomElement e = doc.createElement("KivioLayer"); + TQDomElement e = doc.createElement("KivioLayer"); XmlWriteInt( e, "flags", m_flags ); XmlWriteString( e, "name", m_name ); @@ -303,7 +303,7 @@ void KivioLayer::saveOasis(KoXmlWriter* layerWriter) layerWriter->endElement(); // draw:layer } -void KivioLayer::paintContent( KivioPainter& painter, const QRect&, bool, QPoint, +void KivioLayer::paintContent( KivioPainter& painter, const TQRect&, bool, TQPoint, KoZoomHandler* zoom ) { if(!visible()) { @@ -313,7 +313,7 @@ void KivioLayer::paintContent( KivioPainter& painter, const QRect&, bool, QPoint KivioStencil *pStencil = m_pStencilList->first(); KivioIntraStencilData data; - painter.setFGColor( QColor(0,0,0) ); + painter.setFGColor( TQColor(0,0,0) ); data.painter = &painter; data.zoomHandler = zoom; @@ -346,7 +346,7 @@ void KivioLayer::printContent( KivioPainter& painter, int xdpi, int ydpi ) KoZoomHandler zoomHandler; zoomHandler.setZoomAndResolution(100, xdpi, ydpi); - painter.setFGColor( QColor(0,0,0) ); + painter.setFGColor( TQColor(0,0,0) ); data.painter = &painter; data.zoomHandler = &zoomHandler; @@ -368,7 +368,7 @@ void KivioLayer::printContent(KivioPainter& painter, KoZoomHandler* zoomHandler) KivioStencil *pStencil = m_pStencilList->first(); KivioIntraStencilData data; - painter.setFGColor( QColor(0,0,0) ); + painter.setFGColor( TQColor(0,0,0) ); data.painter = &painter; data.zoomHandler = zoomHandler; @@ -382,7 +382,7 @@ void KivioLayer::printContent(KivioPainter& painter, KoZoomHandler* zoomHandler) } } -void KivioLayer::paintConnectorTargets( KivioPainter& painter, const QRect&, bool, QPoint, +void KivioLayer::paintConnectorTargets( KivioPainter& painter, const TQRect&, bool, TQPoint, KoZoomHandler* zoom ) { if(!visible()) { @@ -391,7 +391,7 @@ void KivioLayer::paintConnectorTargets( KivioPainter& painter, const QRect&, boo KivioIntraStencilData data; - painter.setFGColor( QColor(0,0,0) ); + painter.setFGColor( TQColor(0,0,0) ); data.painter = &painter; data.zoomHandler = zoom; @@ -407,7 +407,7 @@ void KivioLayer::paintConnectorTargets( KivioPainter& painter, const QRect&, boo } } -void KivioLayer::paintSelectionHandles( KivioPainter& painter, const QRect&, bool, QPoint, KoZoomHandler* zoom ) +void KivioLayer::paintSelectionHandles( KivioPainter& painter, const TQRect&, bool, TQPoint, KoZoomHandler* zoom ) { if(!visible()) { return; @@ -415,7 +415,7 @@ void KivioLayer::paintSelectionHandles( KivioPainter& painter, const QRect&, boo KivioIntraStencilData data; - painter.setFGColor( QColor(0,0,0) ); + painter.setFGColor( TQColor(0,0,0) ); data.painter = &painter; data.zoomHandler = zoom; @@ -532,7 +532,7 @@ void KivioLayer::searchForConnections( KivioPage *p ) pStencil->searchForConnections( p ); // Restore it - m_pStencilList->find( pCur ); + m_pStencilList->tqfind( pCur ); pStencil = m_pStencilList->next(); } @@ -540,7 +540,7 @@ void KivioLayer::searchForConnections( KivioPage *p ) KivioStencil *KivioLayer::takeStencil( KivioStencil *p ) { - m_pStencilList->find( p ); + m_pStencilList->tqfind( p ); return m_pStencilList->take(); } |