diff options
Diffstat (limited to 'karbon/core')
-rw-r--r-- | karbon/core/vcomposite.cc | 30 | ||||
-rw-r--r-- | karbon/core/vdocument.h | 2 | ||||
-rw-r--r-- | karbon/core/vfill.cc | 4 | ||||
-rw-r--r-- | karbon/core/vfill.h | 4 | ||||
-rw-r--r-- | karbon/core/vgradient.cc | 4 | ||||
-rw-r--r-- | karbon/core/vgroup.cc | 2 | ||||
-rw-r--r-- | karbon/core/vobject.h | 2 | ||||
-rw-r--r-- | karbon/core/vpath.cc | 4 | ||||
-rw-r--r-- | karbon/core/vstroke.cc | 2 | ||||
-rw-r--r-- | karbon/core/vtext.cc | 22 | ||||
-rw-r--r-- | karbon/core/vtext.h | 10 |
11 files changed, 43 insertions, 43 deletions
diff --git a/karbon/core/vcomposite.cc b/karbon/core/vcomposite.cc index 25636211..570b06dc 100644 --- a/karbon/core/vcomposite.cc +++ b/karbon/core/vcomposite.cc @@ -377,7 +377,7 @@ VPath::saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainStyle double w = boundingBox().width(); double h = boundingBox().height(); - docWriter->addAttribute( "svg:viewBox", TQString( "%1 %2 %3 %4" ).arg( x ).arg( y ).arg( w ).arg( h ) ); + docWriter->addAttribute( "svg:viewBox", TQString( "%1 %2 %3 %4" ).tqarg( x ).tqarg( y ).tqarg( w ).tqarg( h ) ); docWriter->addAttributePt( "svg:x", x ); docWriter->addAttributePt( "svg:y", y ); docWriter->addAttributePt( "svg:width", w ); @@ -456,7 +456,7 @@ VPath::loadOasis( const TQDomElement &element, KoOasisLoadingContext &context ) viewbox = element.attributeNS( KoXmlNS::svg, "viewBox", TQString() ); } - else if( element.localName() == "custom-shape" ) + else if( element.localName() == "custom-tqshape" ) { TQDomNodeList list = element.childNodes(); for( uint i = 0; i < list.count(); ++i ) @@ -467,7 +467,7 @@ VPath::loadOasis( const TQDomElement &element, KoOasisLoadingContext &context ) if( e.namespaceURI() != KoXmlNS::draw ) continue; - if( e.localName() == "enhanced-geometry" ) + if( e.localName() == "enhanced-tqgeometry" ) { TQString data = e.attributeNS( KoXmlNS::draw, "enhanced-path", TQString() ); if( ! data.isEmpty() ) @@ -742,12 +742,12 @@ VPath::buildSvgTransform( const TQWMatrix &mat ) const TQString transform; if( !mat.isIdentity() ) { - transform = TQString( "matrix(%1, %2, %3, %4, %5, %6)" ).arg( mat.m11() ) - .arg( mat.m12() ) - .arg( mat.m21() ) - .arg( mat.m22() ) - .arg( mat.dx() ) - .arg( mat.dy() ); + transform = TQString( "matrix(%1, %2, %3, %4, %5, %6)" ).tqarg( mat.m11() ) + .tqarg( mat.m12() ) + .tqarg( mat.m21() ) + .tqarg( mat.m22() ) + .tqarg( mat.dx() ) + .tqarg( mat.dy() ); } return transform; } @@ -764,12 +764,12 @@ VPath::buildOasisTransform( const TQWMatrix &mat ) const TQString transform; if( !mat.isIdentity() ) { - transform = TQString( "matrix(%1, %2, %3, %4, %5pt, %6pt)" ).arg( mat.m11() ) - .arg( mat.m12() ) - .arg( mat.m21() ) - .arg( mat.m22() ) - .arg( mat.dx() ) - .arg( mat.dy() ); + transform = TQString( "matrix(%1, %2, %3, %4, %5pt, %6pt)" ).tqarg( mat.m11() ) + .tqarg( mat.m12() ) + .tqarg( mat.m21() ) + .tqarg( mat.m22() ) + .tqarg( mat.dx() ) + .tqarg( mat.dy() ); } return transform; } diff --git a/karbon/core/vdocument.h b/karbon/core/vdocument.h index aa35b834..45270d2e 100644 --- a/karbon/core/vdocument.h +++ b/karbon/core/vdocument.h @@ -83,7 +83,7 @@ public: * Draw the document frame to a painting device. * * @param painter abstraction that is used to render to a painting device. - * @param pl layout describing the page to draw on (restricting the painter) + * @param pl tqlayout describing the page to draw on (restricting the painter) * @param drawPageMargins if @c true, also draw the crop marks for the page margins, * otherwise, don't draw them. */ diff --git a/karbon/core/vfill.cc b/karbon/core/vfill.cc index dfa4d5df..d1cd9d13 100644 --- a/karbon/core/vfill.cc +++ b/karbon/core/vfill.cc @@ -83,7 +83,7 @@ VFill::saveOasis( KoGenStyles &mainStyles, KoGenStyle &style ) const style.addProperty( "draw:fill", "solid" ); style.addProperty( "draw:fill-color", TQColor( m_color ).name() ); if( m_color.opacity() < 1 ) - style.addProperty( "draw:opacity", TQString( "%1%" ).arg( m_color.opacity() * 100. ) ); + style.addProperty( "draw:opacity", TQString( "%1%" ).tqarg( m_color.opacity() * 100. ) ); } else if( m_type == grad ) { @@ -91,7 +91,7 @@ VFill::saveOasis( KoGenStyles &mainStyles, KoGenStyle &style ) const TQString grad = m_gradient.saveOasis( mainStyles ); style.addProperty( "draw:fill-gradient-name", grad ); if( m_color.opacity() < 1 ) - style.addProperty( "draw:opacity", TQString( "%1%" ).arg( m_color.opacity() * 100. ) ); + style.addProperty( "draw:opacity", TQString( "%1%" ).tqarg( m_color.opacity() * 100. ) ); } else if( m_type == patt ) style.addProperty( "draw:fill", "hatch" ); diff --git a/karbon/core/vfill.h b/karbon/core/vfill.h index 89662198..0e562949 100644 --- a/karbon/core/vfill.h +++ b/karbon/core/vfill.h @@ -33,10 +33,10 @@ class KoOasisLoadingContext; /** - * Manages the fill of shapes. + * Manages the fill of tqshapes. * * The fill can be solid or gradient. - * Also two fill rules are supported that effect how the shape is + * Also two fill rules are supported that effect how the tqshape is * filled. For explanation see the TQPainter documentation. * * Default is no fill and even-odd filling rule. diff --git a/karbon/core/vgradient.cc b/karbon/core/vgradient.cc index 577d1373..60d89241 100644 --- a/karbon/core/vgradient.cc +++ b/karbon/core/vgradient.cc @@ -208,10 +208,10 @@ VGradient::saveOasis( KoGenStyles &mainStyles ) const for( colorstop = colorStops.first(); colorstop; colorstop = colorStops.next() ) { elementWriter.startElement( "svg:stop" ); - elementWriter.addAttribute( "svg:offset", TQString( "%1" ).arg( colorstop->rampPoint ) ); + elementWriter.addAttribute( "svg:offset", TQString( "%1" ).tqarg( colorstop->rampPoint ) ); elementWriter.addAttribute( "svg:color", TQColor( colorstop->color ).name() ); if( colorstop->color.opacity() < 1 ) - elementWriter.addAttribute( "svg:stop-opacity", TQString( "%1" ).arg( colorstop->color.opacity() ) ); + elementWriter.addAttribute( "svg:stop-opacity", TQString( "%1" ).tqarg( colorstop->color.opacity() ) ); elementWriter.endElement(); } diff --git a/karbon/core/vgroup.cc b/karbon/core/vgroup.cc index 1d18f54f..51d991e1 100644 --- a/karbon/core/vgroup.cc +++ b/karbon/core/vgroup.cc @@ -215,7 +215,7 @@ VGroup::loadOasis( const TQDomElement &element, KoOasisLoadingContext &context ) context.styleStack().save(); - if( e.localName() == "path" || e.localName() == "custom-shape" ) + if( e.localName() == "path" || e.localName() == "custom-tqshape" ) { VPath* composite = new VPath( this ); composite->loadOasis( e, context ); diff --git a/karbon/core/vobject.h b/karbon/core/vobject.h index eccc6180..899422ee 100644 --- a/karbon/core/vobject.h +++ b/karbon/core/vobject.h @@ -57,7 +57,7 @@ public: hidden_locked = 3, /**< hidden and locked (r/o) */ deleted = 4, /**< deleted, nearly dead */ - // shape specific states: + // tqshape specific states: selected = 5, /**< visible, active and can be manipulated by tools */ edit = 6 /**< visible, active and is currently manipulated by a tool */ }; diff --git a/karbon/core/vpath.cc b/karbon/core/vpath.cc index ea05fc76..e5366966 100644 --- a/karbon/core/vpath.cc +++ b/karbon/core/vpath.cc @@ -716,13 +716,13 @@ VSubpath::saveSvgPath( TQString &d ) const if( segment->prev() ) { d += TQString( "L%1 %2" ). - arg( segment->knot().x() ).arg( segment->knot().y() ); + tqarg( segment->knot().x() ).tqarg( segment->knot().y() ); } // Moveto. else { d += TQString( "M%1 %2" ). - arg( segment->knot().x() ).arg( segment->knot().y() ); + tqarg( segment->knot().x() ).tqarg( segment->knot().y() ); } } // Bezier ( degree >= 3 ). diff --git a/karbon/core/vstroke.cc b/karbon/core/vstroke.cc index d0cea9c7..0ec27fb2 100644 --- a/karbon/core/vstroke.cc +++ b/karbon/core/vstroke.cc @@ -117,7 +117,7 @@ VStroke::saveOasis( KoGenStyle &style ) const style.addProperty( "svg:stroke-color", TQColor( m_color ).name() ); style.addPropertyPt( "svg:stroke-width", m_lineWidth ); if( m_color.opacity() < 1 ) - style.addProperty( "svg:stroke-opacity", TQString( "%1%" ).arg( m_color.opacity() * 100. ) ); + style.addProperty( "svg:stroke-opacity", TQString( "%1%" ).tqarg( m_color.opacity() * 100. ) ); } else if( m_type == none ) style.addProperty( "draw:stroke", "none" ); diff --git a/karbon/core/vtext.cc b/karbon/core/vtext.cc index 4c7d3989..c45d91cb 100644 --- a/karbon/core/vtext.cc +++ b/karbon/core/vtext.cc @@ -128,7 +128,7 @@ VText::VText( VObject* parent, VState state ) m_stroke = new VStroke( this ); m_fill = new VFill(); m_position = (VText::Position)0; - m_alignment = (VText::Alignment)0; + m_tqalignment = (VText::Alignment)0; m_shadow = false; m_translucentShadow = false; m_shadowAngle = 0; @@ -137,8 +137,8 @@ VText::VText( VObject* parent, VState state ) } -VText::VText( const TQFont &font, const VSubpath& basePath, Position position, Alignment alignment, const TQString& text ) - : VObject( 0L ), m_font( font ), m_basePath( basePath ), m_position( position ), m_alignment( alignment ), m_text( text ) +VText::VText( const TQFont &font, const VSubpath& basePath, Position position, Alignment tqalignment, const TQString& text ) + : VObject( 0L ), m_font( font ), m_basePath( basePath ), m_position( position ), m_tqalignment( tqalignment ), m_text( text ) { m_glyphs.setAutoDelete( true ); m_boundingBoxIsInvalid = true; @@ -148,7 +148,7 @@ VText::VText( const TQFont &font, const VSubpath& basePath, Position position, A } VText::VText( const VText& text ) - : VObject( text ), m_font( text.m_font ), m_basePath( text.m_basePath ), m_position( text.m_position ), m_alignment( text.m_alignment ), m_text( text.m_text ), m_shadow( text.m_shadow ), m_translucentShadow( text.m_translucentShadow ), m_shadowDistance( text.m_shadowDistance ), m_shadowAngle( text.m_shadowAngle ), m_offset( text.m_offset ) + : VObject( text ), m_font( text.m_font ), m_basePath( text.m_basePath ), m_position( text.m_position ), m_tqalignment( text.m_tqalignment ), m_text( text.m_text ), m_shadow( text.m_shadow ), m_translucentShadow( text.m_translucentShadow ), m_shadowDistance( text.m_shadowDistance ), m_shadowAngle( text.m_shadowAngle ), m_offset( text.m_offset ) { m_stroke = new VStroke( *text.m_stroke ); m_stroke->setParent( this ); @@ -323,7 +323,7 @@ VText::save( TQDomElement& element ) const me.setAttribute( "italic", m_font.italic() ); me.setAttribute( "bold", m_font.bold() ); me.setAttribute( "position", m_position ); - me.setAttribute( "alignment", m_alignment ); + me.setAttribute( "tqalignment", m_tqalignment ); me.setAttribute( "shadow", m_shadow ); me.setAttribute( "translucentshadow", m_translucentShadow ); me.setAttribute( "shadowangle", m_shadowAngle ); @@ -349,7 +349,7 @@ VText::load( const TQDomElement& element ) m_font.setWeight( TQFont::Normal ); m_font.setBold( element.attribute( "bold" ).toInt() == 1 ); m_position = (Position)element.attribute( "position", "0" ).toInt(); - m_alignment = (Alignment)element.attribute( "alignment", "0" ).toInt(); + m_tqalignment = (Alignment)element.attribute( "tqalignment", "0" ).toInt(); m_shadow = ( element.attribute( "shadow" ).toInt() == 1 ); m_translucentShadow = ( element.attribute( "translucentshadow" ).toInt() == 1 ); m_shadowAngle = element.attribute( "shadowangle" ).toInt(); @@ -473,7 +473,7 @@ VText::traceText() bool foundCharmap = false; - // Try to choose unicode charmap + // Try to choose tqunicode charmap for( int charmap = 0; charmap < fontFace->num_charmaps; charmap++ ) { if( fontFace->charmaps[charmap]->encoding == ft_encoding_unicode ) @@ -481,14 +481,14 @@ VText::traceText() FT_Error error = FT_Set_Charmap( fontFace, fontFace->charmaps[charmap] ); if( error ) { - kdDebug(38000) << "traceText(), unable to select unicode charmap." << endl; + kdDebug(38000) << "traceText(), unable to select tqunicode charmap." << endl; continue; } foundCharmap = true; } } - // Choose first charmap if no unicode charmap was found + // Choose first charmap if no tqunicode charmap was found if( ! foundCharmap ) { error = FT_Set_Charmap( fontFace, fontFace->charmaps[0] ); @@ -518,7 +518,7 @@ VText::traceText() { // get the glyph index for the current character TQChar character = m_text.at( i ); - glyphIndex = FT_Get_Char_Index( fontFace, character.unicode() ); + glyphIndex = FT_Get_Char_Index( fontFace, character.tqunicode() ); if( ! glyphIndex ) { kdDebug(38000) << "traceText(), unable get index of char : " << character << endl; @@ -575,7 +575,7 @@ VText::traceText() kdDebug(38000) << "traceText(), using offset : " << m_offset << endl; float x = m_offset * pathLength; - switch( m_alignment ) + switch( m_tqalignment ) { case Left: x += 0; break; case Center: x -= 0.5 * l; break; diff --git a/karbon/core/vtext.h b/karbon/core/vtext.h index 234332df..ef40ac28 100644 --- a/karbon/core/vtext.h +++ b/karbon/core/vtext.h @@ -57,7 +57,7 @@ public: }; VText( VObject* parent, VState state = normal ); - VText( const TQFont &font, const VSubpath& basePath, Position position, Alignment alignment, const TQString& text ); + VText( const TQFont &font, const VSubpath& basePath, Position position, Alignment tqalignment, const TQString& text ); VText( const VText& text ); virtual ~VText(); virtual DCOPObject* dcopObject(); @@ -70,8 +70,8 @@ public: virtual VSubpath& basePath() { return m_basePath; } virtual void setPosition( Position position ) { m_position = position; } virtual Position position() { return m_position; } - virtual void setAlignment( Alignment alignment ) { m_alignment = alignment; } - virtual Alignment alignment() { return m_alignment; } + virtual void tqsetAlignment( Alignment tqalignment ) { m_tqalignment = tqalignment; } + virtual Alignment tqalignment() { return m_tqalignment; } virtual void setUseShadow( bool state ) { m_shadow = state; } virtual bool useShadow() { return m_shadow; } virtual void setShadow( int angle, int distance, bool translucent ) @@ -118,8 +118,8 @@ private: VSubpath m_basePath; // The text position Position m_position; - // The text alignment - Alignment m_alignment; + // The text tqalignment + Alignment m_tqalignment; // The text to draw TQString m_text; // Shadow parameters |