kivio

KivioLayer Class Reference

List of all members.

Detailed Description

Definition at line 44 of file kivio_layer.h.


Public Member Functions

 KivioLayer (KivioPage *)
virtual ~KivioLayer ()
KivioPagepage () const
virtual DCOPObject * dcopObject ()
QPtrList< KivioStencil > * stencilList ()
bool visible ()
void setVisible (bool f)
bool connectable ()
void setConnectable (bool f)
void setEditable (bool f)
bool editable ()
void setPrintable (bool f)
bool printable ()
QString name () const
void setName (const QString &n)
bool addStencil (KivioStencil *)
bool removeStencil (KivioStencil *)
bool loadXML (const QDomElement &)
void loadOasis (const QDomElement &layer)
QDomElement saveXML (QDomDocument &)
void saveOasis (KoXmlWriter *layerWriter)
KivioStencilcheckForStencil (KoPoint *, int *, float, bool)
void printContent (KivioPainter &painter, int xdpi=0, int ydpi=0)
void printContent (KivioPainter &painter, KoZoomHandler *zoomHandler)
void paintContent (KivioPainter &painter, const QRect &rect, bool transparent, QPoint p0, KoZoomHandler *zoom)
void paintConnectorTargets (KivioPainter &painter, const QRect &rect, bool transparent, QPoint p0, KoZoomHandler *zoom)
void paintSelectionHandles (KivioPainter &painter, const QRect &rect, bool transparent, QPoint p0, KoZoomHandler *zoom)
KivioStencilfirstStencil ()
KivioStencilnextStencil ()
KivioStencilprevStencil ()
KivioStenciltakeStencil ()
KivioStencilcurrentStencil ()
KivioStencillastStencil ()
KivioStenciltakeStencil (KivioStencil *)
KivioConnectorTargetconnectPointToTarget (KivioConnectorPoint *, float)
KoPoint snapToTarget (const KoPoint &p, double thresh, bool &hit)
int generateStencilIds (int)
void searchForConnections (KivioPage *)
void takeStencilFromList (KivioStencil *pStencil)
void insertStencil (KivioStencil *pStencil)

Protected Member Functions

KivioStencilloadSMLStencil (const QDomElement &)
KivioStencilloadGroupStencil (const QDomElement &)
KivioStencilloadPluginStencil (const QDomElement &)

Protected Attributes

int m_flags
QPtrList< KivioStencil > * m_pStencilList
QPtrList< KivioStencil > * m_pDeletedStencilList
QString m_name
KivioPagem_pPage
DCOPObject * m_dcop

Friends

class KivioGroupStencil

Member Function Documentation

KivioConnectorTarget * KivioLayer::connectPointToTarget KivioConnectorPoint p,
float  thresh
 

Attempts to connect a KivioConnectorPoint to a KivioConnectorTarget of each stencil.

Parameters:
p The point to attempt the connection with
thresh The threshold to use
Returns:
The KivioConnectorTarget the point connected to

Definition at line 556 of file kivio_layer.cpp.

KivioStencil * KivioLayer::loadGroupStencil const QDomElement &  stencilE  )  [protected]
 

Returns a new stencil of the type described by stencilE.

Parameters:
stencilE The XML element to load from
This will search through all KivioStencilSpawnerSets and attempt to locate the stencil described by stencilE. If it finds it, it allocates a new copy of it, loads the data from stencilE into it, and returns it.

Returns:
A new, loaded stencil.

Definition at line 169 of file kivio_layer.cpp.

KivioStencil * KivioLayer::loadSMLStencil const QDomElement &  stencilE  )  [protected]
 

Returns a new stencil of the type described by stencilE.

Parameters:
stencilE The XML element to load from
This will search through all KivioStencilSpawnerSets and attempt to locate the stencil described by stencilE. If it finds it, it allocates a new copy of it, loads the data from stencilE into it, and returns it.

Returns:
A new, loaded stencil.

Definition at line 127 of file kivio_layer.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys