kivio

#include <kivio_shape_data.h>

Public Types

enum  KivioShapeType {
  kstNone = 0 , kstArc , kstPie , kstLineArray ,
  kstPolyline , kstPolygon , kstBezier , kstRectangle ,
  kstRoundRectangle , kstEllipse , kstOpenPath , kstClosedPath ,
  kstTextBox
}
 

Public Member Functions

 KivioShapeData (const KivioShapeData &)
 
virtual void copyInto (KivioShapeData *pTarget) const
 
virtual bool loadXML (const TQDomElement &)
 
virtual TQDomElement saveXML (TQDomDocument &)
 
KivioShapeType shapeType () const
 
void setShapeType (KivioShapeType st)
 
TQPtrList< KivioPoint > * pointList ()
 
KivioFillStyle * fillStyle () const
 
KivioLineStyle * lineStyle () const
 
void setLineStyle (KivioLineStyle ls)
 
const TQString & name () const
 
void setName (const TQString &newName)
 
KivioPoint * position ()
 
KivioPoint * dimensions ()
 
double x ()
 
double y ()
 
double w ()
 
double h ()
 
TQString text ()
 
void setText (const TQString &newText)
 
bool isHtml () const
 
void setIsHtml (bool b)
 
int hTextAlign () const
 
void setHTextAlign (int i)
 
int vTextAlign () const
 
void setVTextAlign (int i)
 
TQFont textFont ()
 
void setTextFont (const TQFont &f)
 
TQColor textColor ()
 
void setTextColor (TQColor c)
 
void setTextStyle (KivioTextStyle *)
 

Static Public Member Functions

static KivioShapeType shapeTypeFromString (const TQString &)
 

Protected Attributes

TQPtrList< KivioPoint > * m_pOriginalPointList
 
KivioShapeType m_shapeType
 
KivioPoint m_position
 
KivioPoint m_dimensions
 
KivioFillStyle * m_pFillStyle
 
KivioLineStyle * m_pLineStyle
 
TQString m_name
 
KivioTextStyle * m_pTextData
 

Friends

class KivioShape
 

Detailed Description

A class containing all the data for a KivioShape.

Author
Dave Marotti

Definition at line 51 of file kivio_shape_data.h.

Member Enumeration Documentation

◆ KivioShapeType

The possible shape types.

Definition at line 57 of file kivio_shape_data.h.

Constructor & Destructor Documentation

◆ KivioShapeData() [1/2]

KivioShapeData::KivioShapeData ( )

Definition at line 76 of file kivio_shape_data.cpp.

◆ KivioShapeData() [2/2]

KivioShapeData::KivioShapeData ( const KivioShapeData &  source)

Definition at line 97 of file kivio_shape_data.cpp.

◆ ~KivioShapeData()

KivioShapeData::~KivioShapeData ( )
virtual

Definition at line 151 of file kivio_shape_data.cpp.

Member Function Documentation

◆ copyInto()

void KivioShapeData::copyInto ( KivioShapeData *  pTarget) const
virtual

Definition at line 179 of file kivio_shape_data.cpp.

◆ dimensions()

KivioPoint * KivioShapeData::dimensions ( )
inline

Definition at line 119 of file kivio_shape_data.h.

◆ fillStyle()

KivioFillStyle * KivioShapeData::fillStyle ( ) const
inline

Definition at line 108 of file kivio_shape_data.h.

◆ h()

double KivioShapeData::h ( )
inline

Definition at line 124 of file kivio_shape_data.h.

◆ hTextAlign()

int KivioShapeData::hTextAlign ( ) const

Definition at line 494 of file kivio_shape_data.cpp.

◆ isHtml()

bool KivioShapeData::isHtml ( ) const

Definition at line 480 of file kivio_shape_data.cpp.

◆ lineStyle()

KivioLineStyle * KivioShapeData::lineStyle ( ) const
inline

Definition at line 109 of file kivio_shape_data.h.

◆ loadXML()

bool KivioShapeData::loadXML ( const TQDomElement &  e)
virtual

Load this object from an XML element.

Definition at line 257 of file kivio_shape_data.cpp.

◆ name()

const TQString & KivioShapeData::name ( ) const
inline

Definition at line 113 of file kivio_shape_data.h.

◆ pointList()

TQPtrList< KivioPoint > * KivioShapeData::pointList ( )
inline

Definition at line 106 of file kivio_shape_data.h.

◆ position()

KivioPoint * KivioShapeData::position ( )
inline

Definition at line 118 of file kivio_shape_data.h.

◆ saveXML()

TQDomElement KivioShapeData::saveXML ( TQDomDocument &  doc)
virtual

Save this object to an XML element.

Definition at line 358 of file kivio_shape_data.cpp.

◆ setHTextAlign()

void KivioShapeData::setHTextAlign ( int  i)

Definition at line 502 of file kivio_shape_data.cpp.

◆ setIsHtml()

void KivioShapeData::setIsHtml ( bool  b)

Definition at line 488 of file kivio_shape_data.cpp.

◆ setLineStyle()

void KivioShapeData::setLineStyle ( KivioLineStyle  ls)

Definition at line 558 of file kivio_shape_data.cpp.

◆ setName()

void KivioShapeData::setName ( const TQString &  newName)
inline

Definition at line 114 of file kivio_shape_data.h.

◆ setShapeType()

void KivioShapeData::setShapeType ( KivioShapeType  st)

Definition at line 443 of file kivio_shape_data.cpp.

◆ setText()

void KivioShapeData::setText ( const TQString &  newText)

Definition at line 472 of file kivio_shape_data.cpp.

◆ setTextColor()

void KivioShapeData::setTextColor ( TQColor  c)

Definition at line 544 of file kivio_shape_data.cpp.

◆ setTextFont()

void KivioShapeData::setTextFont ( const TQFont &  f)

Definition at line 530 of file kivio_shape_data.cpp.

◆ setTextStyle()

void KivioShapeData::setTextStyle ( KivioTextStyle *  pStyle)

Definition at line 550 of file kivio_shape_data.cpp.

◆ setVTextAlign()

void KivioShapeData::setVTextAlign ( int  i)

Definition at line 516 of file kivio_shape_data.cpp.

◆ shapeType()

KivioShapeType KivioShapeData::shapeType ( ) const
inline

Definition at line 101 of file kivio_shape_data.h.

◆ shapeTypeFromString()

KivioShapeData::KivioShapeType KivioShapeData::shapeTypeFromString ( const TQString &  str)
static

Definition at line 431 of file kivio_shape_data.cpp.

◆ text()

TQString KivioShapeData::text ( )

Definition at line 464 of file kivio_shape_data.cpp.

◆ textColor()

TQColor KivioShapeData::textColor ( )

Definition at line 536 of file kivio_shape_data.cpp.

◆ textFont()

TQFont KivioShapeData::textFont ( )

Definition at line 522 of file kivio_shape_data.cpp.

◆ vTextAlign()

int KivioShapeData::vTextAlign ( ) const

Definition at line 508 of file kivio_shape_data.cpp.

◆ w()

double KivioShapeData::w ( )
inline

Definition at line 123 of file kivio_shape_data.h.

◆ x()

double KivioShapeData::x ( )
inline

Definition at line 121 of file kivio_shape_data.h.

◆ y()

double KivioShapeData::y ( )
inline

Definition at line 122 of file kivio_shape_data.h.

Friends And Related Symbol Documentation

◆ KivioShape

friend class KivioShape
friend

Definition at line 74 of file kivio_shape_data.h.

Member Data Documentation

◆ m_dimensions

KivioPoint KivioShapeData::m_dimensions
protected

Definition at line 79 of file kivio_shape_data.h.

◆ m_name

TQString KivioShapeData::m_name
protected

Definition at line 86 of file kivio_shape_data.h.

◆ m_pFillStyle

KivioFillStyle* KivioShapeData::m_pFillStyle
protected

Definition at line 80 of file kivio_shape_data.h.

◆ m_pLineStyle

KivioLineStyle* KivioShapeData::m_pLineStyle
protected

Definition at line 84 of file kivio_shape_data.h.

◆ m_pOriginalPointList

TQPtrList<KivioPoint>* KivioShapeData::m_pOriginalPointList
protected

Definition at line 76 of file kivio_shape_data.h.

◆ m_position

KivioPoint KivioShapeData::m_position
protected

Definition at line 79 of file kivio_shape_data.h.

◆ m_pTextData

KivioTextStyle* KivioShapeData::m_pTextData
protected

Definition at line 88 of file kivio_shape_data.h.

◆ m_shapeType

KivioShapeType KivioShapeData::m_shapeType
protected

Definition at line 78 of file kivio_shape_data.h.


The documentation for this class was generated from the following files: