diff options
Diffstat (limited to 'kivio/kiviopart/kivio_map.cpp')
-rw-r--r-- | kivio/kiviopart/kivio_map.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kivio/kiviopart/kivio_map.cpp b/kivio/kiviopart/kivio_map.cpp index 0d3a3b2d..d2cecdba 100644 --- a/kivio/kiviopart/kivio_map.cpp +++ b/kivio/kiviopart/kivio_map.cpp @@ -16,9 +16,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qprinter.h> -#include <qdom.h> -#include <qmessagebox.h> +#include <tqprinter.h> +#include <tqdom.h> +#include <tqmessagebox.h> #include <KoStore.h> #include <KoXmlWriter.h> @@ -35,7 +35,7 @@ #include <stdlib.h> KivioMap::KivioMap( KivioDoc* doc, const char* name ) -: QObject(doc,name) +: TQObject(doc,name) { m_pDoc = doc; m_lstPages.setAutoDelete(true); @@ -51,14 +51,14 @@ KivioMap::~KivioMap() void KivioMap::takePage( KivioPage* page ) { - int pos=m_lstPages.findRef(page); + int pos=m_lstPages.tqfindRef(page); m_lstPages.take( pos ); m_lstDeletedPages.append( page ); } void KivioMap::insertPage( KivioPage* page ) { - int pos=m_lstDeletedPages.findRef(page); + int pos=m_lstDeletedPages.tqfindRef(page); if ( pos != -1 ) m_lstDeletedPages.take( pos); m_lstPages.append(page); @@ -69,13 +69,13 @@ void KivioMap::addPage( KivioPage* page ) m_lstPages.append(page); } -void KivioMap::movePage( const QString& fromPageName, const QString& toPageName, bool before ) +void KivioMap::movePage( const TQString& fromPageName, const TQString& toPageName, bool before ) { KivioPage* pagefrom = findPage(fromPageName); KivioPage* pageto = findPage(toPageName); - int from = m_lstPages.find(pagefrom); - int to = m_lstPages.find(pageto); + int from = m_lstPages.tqfind(pagefrom); + int to = m_lstPages.tqfind(pageto); if (!before) ++to; @@ -92,25 +92,25 @@ void KivioMap::movePage( const QString& fromPageName, const QString& toPageName, } } -QDomElement KivioMap::save( QDomDocument& doc ) +TQDomElement KivioMap::save( TQDomDocument& doc ) { int next = 1; - QDomElement mymap = doc.createElement("KivioMap"); + TQDomElement mymap = doc.createElement("KivioMap"); // Before we save, tell all the pages/layers/stencil/targets/connectors to generate // their ids so we can restore connections when reloaded. - QPtrListIterator<KivioPage> it2(m_lstPages); + TQPtrListIterator<KivioPage> it2(m_lstPages); for( ; it2.current(); ++it2 ) { next = it2.current()->generateStencilIds( next ); } // Now save the pages - QPtrListIterator<KivioPage> it(m_lstPages); + TQPtrListIterator<KivioPage> it(m_lstPages); for( ; it.current(); ++it ) { - QDomElement e = it.current()->save(doc); + TQDomElement e = it.current()->save(doc); if (e.isNull()) return e; mymap.appendChild(e); @@ -121,7 +121,7 @@ QDomElement KivioMap::save( QDomDocument& doc ) void KivioMap::saveOasis(KoStore* store, KoXmlWriter* docWriter, KoGenStyles* styles) { - QPtrListIterator<KivioPage> it(m_lstPages); + TQPtrListIterator<KivioPage> it(m_lstPages); for( ; it.current(); ++it ) { @@ -129,16 +129,16 @@ void KivioMap::saveOasis(KoStore* store, KoXmlWriter* docWriter, KoGenStyles* st } } -bool KivioMap::loadXML( const QDomElement& mymap ) +bool KivioMap::loadXML( const TQDomElement& mymap ) { m_lstPages.clear(); m_lstDeletedPages.clear(); // FIXME: make this load the real page units and whatever // else - QDomNode n = mymap.firstChild(); + TQDomNode n = mymap.firstChild(); while( !n.isNull() ) { - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); if ( !e.isNull() && e.tagName() == "KivioPage" ) { KivioPage *t = m_pDoc->createPage(); m_pDoc->addPage( t ); @@ -152,12 +152,12 @@ bool KivioMap::loadXML( const QDomElement& mymap ) void KivioMap::update() { - QPtrListIterator<KivioPage> it( m_lstPages ); + TQPtrListIterator<KivioPage> it( m_lstPages ); for( ; it.current(); ++it ) it.current()->update(); } -KivioPage* KivioMap::findPage( const QString& name ) +KivioPage* KivioMap::findPage( const TQString& name ) { KivioPage *t; @@ -202,11 +202,11 @@ DCOPObject* KivioMap::dcopObject() return m_dcop; } -QStringList KivioMap::visiblePages() const +TQStringList KivioMap::visiblePages() const { - QStringList pages; + TQStringList pages; - QPtrListIterator<KivioPage> it( m_lstPages ); + TQPtrListIterator<KivioPage> it( m_lstPages ); for( ; it.current(); ++it ) { KivioPage* page = it.current(); @@ -217,11 +217,11 @@ QStringList KivioMap::visiblePages() const return pages; } -QStringList KivioMap::hiddenPages() const +TQStringList KivioMap::hiddenPages() const { - QStringList pages; + TQStringList pages; - QPtrListIterator<KivioPage> it( m_lstPages ); + TQPtrListIterator<KivioPage> it( m_lstPages ); for( ; it.current(); ++it ) { KivioPage* page = it.current(); |