summaryrefslogtreecommitdiffstats
path: root/karbon/core/vdocument.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/core/vdocument.cc')
-rw-r--r--karbon/core/vdocument.cc56
1 files changed, 28 insertions, 28 deletions
diff --git a/karbon/core/vdocument.cc b/karbon/core/vdocument.cc
index d87ad368c..0384141bc 100644
--- a/karbon/core/vdocument.cc
+++ b/karbon/core/vdocument.cc
@@ -17,7 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qdom.h>
+#include <tqdom.h>
#include "vdocument.h"
#include "vselection.h"
@@ -65,12 +65,12 @@ VDocument::~VDocument()
void
VDocument::drawPage( VPainter *p, const KoPageLayout &pl, bool showPageMargins ) const
{
- p->setPen( Qt::black );
- p->setBrush( Qt::white );
+ p->setPen( TQt::black );
+ p->setBrush( TQt::white );
p->drawRect( 0, 0, m_width, m_height );
- p->setPen( Qt::NoPen );
- p->setBrush( Qt::black );
+ p->setPen( TQt::NoPen );
+ p->setBrush( TQt::black );
p->drawRect( m_width, - 2, 2, m_height );
p->drawRect( 0, - 2, m_width, 2 );
//p->drawRect( 0, m_height - 1, m_width, 1 );
@@ -82,7 +82,7 @@ VDocument::drawPage( VPainter *p, const KoPageLayout &pl, bool showPageMargins )
double dx = m_gridData.freq.width();
double dy = m_gridData.freq.height();
p->setPen( s );
- p->setBrush( Qt::NoBrush );
+ p->setBrush( TQt::NoBrush );
KoPoint p0( dx, dy );
while( p0.x() < m_width )
{
@@ -112,11 +112,11 @@ VDocument::drawPage( VPainter *p, const KoPageLayout &pl, bool showPageMargins )
int mb = int( pl.ptBottom );
VStroke s( 0, 1 );
- s.setColor( Qt::blue );
- QValueList<float> dashes;
+ s.setColor( TQt::blue );
+ TQValueList<float> dashes;
s.dashPattern().setArray( dashes << 5 << 5 );
p->setPen( s );
- p->setBrush( Qt::NoBrush );
+ p->setBrush( TQt::NoBrush );
p->drawRect(ml, mt, m_width-ml-mr, m_height-mt-mb);
}
}
@@ -124,7 +124,7 @@ VDocument::drawPage( VPainter *p, const KoPageLayout &pl, bool showPageMargins )
void
VDocument::draw( VPainter *painter, const KoRect* rect ) const
{
- QPtrListIterator<VLayer> itr = m_layers;
+ TQPtrListIterator<VLayer> itr = m_layers;
for ( ; itr.current(); ++itr )
{
@@ -151,20 +151,20 @@ VDocument::removeLayer( VLayer* layer )
bool VDocument::canRaiseLayer( VLayer* layer )
{
- int pos = m_layers.find( layer );
+ int pos = m_layers.tqfind( layer );
return (pos != int( m_layers.count() ) - 1 && pos >= 0 );
}
bool VDocument::canLowerLayer( VLayer* layer )
{
- int pos = m_layers.find( layer );
+ int pos = m_layers.tqfind( layer );
return (pos>0);
}
void
VDocument::raiseLayer( VLayer* layer )
{
- int pos = m_layers.find( layer );
+ int pos = m_layers.tqfind( layer );
if( pos != int( m_layers.count() ) - 1 && pos >= 0 )
{
VLayer* layer = m_layers.take( pos );
@@ -175,7 +175,7 @@ VDocument::raiseLayer( VLayer* layer )
void
VDocument::lowerLayer( VLayer* layer )
{
- int pos = m_layers.find( layer );
+ int pos = m_layers.tqfind( layer );
if ( pos > 0 )
{
VLayer* layer = m_layers.take( pos );
@@ -186,13 +186,13 @@ VDocument::lowerLayer( VLayer* layer )
int
VDocument::layerPos( VLayer* layer )
{
- return m_layers.find( layer );
+ return m_layers.tqfind( layer );
} // VDocument::layerPos
void
VDocument::setActiveLayer( VLayer* layer )
{
- if ( m_layers.find( layer ) != -1 )
+ if ( m_layers.tqfind( layer ) != -1 )
m_activeLayer = layer;
} // VDocument::setActiveLayer
@@ -202,11 +202,11 @@ VDocument::append( VObject* object )
m_activeLayer->append( object );
}
-QDomDocument
+TQDomDocument
VDocument::saveXML() const
{
- QDomDocument doc;
- QDomElement me = doc.createElement( "DOC" );
+ TQDomDocument doc;
+ TQDomElement me = doc.createElement( "DOC" );
doc.appendChild( me );
save( me );
return doc;
@@ -231,7 +231,7 @@ VDocument::saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainS
}
void
-VDocument::save( QDomElement& me ) const
+VDocument::save( TQDomElement& me ) const
{
me.setAttribute( "mime", "application/x-karbon" ),
me.setAttribute( "version", "0.1" );
@@ -258,13 +258,13 @@ VDocument::clone() const
}
void
-VDocument::load( const QDomElement& doc )
+VDocument::load( const TQDomElement& doc )
{
loadXML( doc );
}
bool
-VDocument::loadXML( const QDomElement& doc )
+VDocument::loadXML( const TQDomElement& doc )
{
if( doc.attribute( "mime" ) != "application/x-karbon" ||
doc.attribute( "syntaxVersion" ) != "0.1" )
@@ -284,14 +284,14 @@ VDocument::loadXML( const QDomElement& doc )
}
void
-VDocument::loadDocumentContent( const QDomElement& doc )
+VDocument::loadDocumentContent( const TQDomElement& doc )
{
- QDomNodeList list = doc.childNodes();
+ TQDomNodeList list = doc.childNodes();
for( uint i = 0; i < list.count(); ++i )
{
if( list.item( i ).isElement() )
{
- QDomElement e = list.item( i ).toElement();
+ TQDomElement e = list.item( i ).toElement();
if( e.tagName() == "LAYER" )
{
@@ -304,7 +304,7 @@ VDocument::loadDocumentContent( const QDomElement& doc )
}
bool
-VDocument::loadOasis( const QDomElement &element, KoOasisLoadingContext &context )
+VDocument::loadOasis( const TQDomElement &element, KoOasisLoadingContext &context )
{
return m_layers.current()->loadOasis( element, context );
}
@@ -315,9 +315,9 @@ VDocument::accept( VVisitor& visitor )
visitor.visitVDocument( *this );
}
-QString
+TQString
VDocument::objectName( const VObject *obj ) const
{
- QMap<const VObject *, QString>::ConstIterator it = m_objectNames.find( obj );
+ TQMap<const VObject *, TQString>::ConstIterator it = m_objectNames.tqfind( obj );
return it == m_objectNames.end() ? 0L : it.data();
}