summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/kivio_shape_data.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
commitf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch)
tree1fc538e179833e62caec21956bfe47a252be5a72 /kivio/kiviopart/kiviosdk/kivio_shape_data.cpp
parent11191ef0b9908604d1d7aaca382b011ef22c454c (diff)
downloadkoffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz
koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_shape_data.cpp')
-rw-r--r--kivio/kiviopart/kiviosdk/kivio_shape_data.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_shape_data.cpp b/kivio/kiviopart/kiviosdk/kivio_shape_data.cpp
index 5305fe13..431d7987 100644
--- a/kivio/kiviopart/kiviosdk/kivio_shape_data.cpp
+++ b/kivio/kiviopart/kiviosdk/kivio_shape_data.cpp
@@ -27,7 +27,7 @@
#include <kdebug.h>
/*
- * Struct for holding information about a tqshape type
+ * Struct for holding information about a shape type
*/
struct KivioShapeTypeInfo
{
@@ -36,10 +36,10 @@ struct KivioShapeTypeInfo
};
/*
- * Array of tqshape info used for loading/saving.
+ * Array of shape info used for loading/saving.
*/
static const int numShapeInfo = 12;
-static struct KivioShapeTypeInfo tqshapeInfo[] = {
+static struct KivioShapeTypeInfo shapeInfo[] = {
{ "Arc", KivioShapeData::kstArc },
{ "Pie", KivioShapeData::kstPie },
{ "LineArray", KivioShapeData::kstLineArray },
@@ -84,7 +84,7 @@ KivioShapeData::KivioShapeData()
m_pLineStyle = new KivioLineStyle();
// m_fgColor = TQColor( 0, 0, 0 );
- m_tqshapeType = kstNone;
+ m_shapeType = kstNone;
m_name = "";
// m_lineWidth = 1.0f;
@@ -119,7 +119,7 @@ KivioShapeData::KivioShapeData( const KivioShapeData &source )
//m_fgColor = source.m_fgColor;
// Copy the rest
- m_tqshapeType = source.m_tqshapeType;
+ m_shapeType = source.m_shapeType;
m_name = TQString(source.m_name);
//m_lineWidth = source.m_lineWidth;
@@ -127,8 +127,8 @@ KivioShapeData::KivioShapeData( const KivioShapeData &source )
source.m_position.copyInto( &m_position );
source.m_dimensions.copyInto( &m_dimensions );
- // If this is a text tqshape, allocate a text data struct and copy the info
- if( m_tqshapeType == kstTextBox )
+ // If this is a text shape, allocate a text data struct and copy the info
+ if( m_shapeType == kstTextBox )
{
m_pTextData = new KivioTextStyle();
@@ -208,7 +208,7 @@ void KivioShapeData::copyInto( KivioShapeData *pTarget ) const
//pTarget->m_fgColor = m_fgColor;
// Copy the rest
- pTarget->m_tqshapeType = m_tqshapeType;
+ pTarget->m_shapeType = m_shapeType;
pTarget->m_name = TQString(m_name);
//pTarget->m_lineWidth = m_lineWidth;
@@ -217,7 +217,7 @@ void KivioShapeData::copyInto( KivioShapeData *pTarget ) const
// If this is a textbox, allocate & copy
- if( m_tqshapeType == kstTextBox )
+ if( m_shapeType == kstTextBox )
{
if( !pTarget->m_pTextData )
{
@@ -283,7 +283,7 @@ bool KivioShapeData::loadXML( const TQDomElement &e )
{
// First make sure we are a text box
- if( m_tqshapeType == kstTextBox )
+ if( m_shapeType == kstTextBox )
{
// If we don't have text data, allocate it
if( !m_pTextData )
@@ -291,12 +291,12 @@ bool KivioShapeData::loadXML( const TQDomElement &e )
m_pTextData->loadXML( ele );
- } // end if m_tqshapeType==kstTextBox
+ } // end if m_shapeType==kstTextBox
}
else if( nodeName == "KivioText" )
{
// First make sure we are a text box
- if( m_tqshapeType == kstTextBox )
+ if( m_shapeType == kstTextBox )
{
KivioTextShapeData *pData = new KivioTextShapeData;
@@ -338,7 +338,7 @@ bool KivioShapeData::loadXML( const TQDomElement &e )
m_pTextData->setFont( pData->m_textFont );
m_pTextData->setColor( pData->m_textColor );
- } // end if m_tqshapeType==kstTextBox
+ } // end if m_shapeType==kstTextBox
else
{
kdDebug(43000) << "KivioShapeData::loadXML() - Loading KivioText, but this is not a textbox!" << endl;
@@ -385,7 +385,7 @@ TQDomElement KivioShapeData::saveXML( TQDomDocument &doc )
// Save if we are a text box etc...
- if( m_tqshapeType == kstTextBox )
+ if( m_shapeType == kstTextBox )
{
if( m_pTextData )
{
@@ -420,21 +420,21 @@ TQDomElement KivioShapeData::saveXML( TQDomDocument &doc )
// The BGFillStyle
e.appendChild( m_pFillStyle->saveXML( doc ) );
- // Shape type & name are stored in the tqshape node
- //XmlWriteInt( e, "tqshapeType", m_tqshapeType );
+ // Shape type & name are stored in the shape node
+ //XmlWriteInt( e, "shapeType", m_shapeType );
//XmlWriteString( e, "name", m_name );
return e;
}
-KivioShapeData::KivioShapeType KivioShapeData::tqshapeTypeFromString( const TQString &str )
+KivioShapeData::KivioShapeType KivioShapeData::shapeTypeFromString( const TQString &str )
{
for( int i=0; i<numShapeInfo; i++ )
{
- if( str.compare( tqshapeInfo[i].name )==0 )
- return tqshapeInfo[i].type;
+ if( str.compare( shapeInfo[i].name )==0 )
+ return shapeInfo[i].type;
}
return kstNone;
@@ -442,7 +442,7 @@ KivioShapeData::KivioShapeType KivioShapeData::tqshapeTypeFromString( const TQSt
void KivioShapeData::setShapeType( KivioShapeType st )
{
- m_tqshapeType = st;
+ m_shapeType = st;
// If it is a text box, make sure we have text data
if( st == kstTextBox )