libs/flake

KoGuidesData Class Reference

XXX. More...

#include <KoGuidesData.h>

List of all members.

Public Member Functions

 KoGuidesData ()
 ~KoGuidesData ()
void addGuideLine (Qt::Orientation o, qreal pos)
QColor guidesColor () const
QList< qreal > horizontalGuideLines () const
bool loadOdfSettings (const KoXmlDocument &settingsDoc)
void paintGuides (QPainter &painter, const KoViewConverter &converter, const QRectF &area) const
void saveOdfSettings (KoXmlWriter &settingsWriter)
void setGuideLines (const QList< qreal > &horizontalLines, const QList< qreal > &verticalLines)
void setGuidesColor (const QColor &color)
void setHorizontalGuideLines (const QList< qreal > &lines)
void setShowGuideLines (bool show)
void setVerticalGuideLines (const QList< qreal > &lines)
bool showGuideLines () const
QList< qreal > verticalGuideLines () const

Detailed Description

XXX.

Definition at line 38 of file KoGuidesData.h.


Constructor & Destructor Documentation

KoGuidesData::KoGuidesData (  ) 

Definition at line 77 of file KoGuidesData.cpp.

KoGuidesData::~KoGuidesData (  ) 

Definition at line 82 of file KoGuidesData.cpp.


Member Function Documentation

void KoGuidesData::addGuideLine ( Qt::Orientation  o,
qreal  pos 
)

Add a guide line.

Parameters:
p the orientation of the guide line
p the position of the guide line

Definition at line 103 of file KoGuidesData.cpp.

QColor KoGuidesData::guidesColor (  )  const

Returns the color of the guide lines.

Definition at line 157 of file KoGuidesData.cpp.

QList< qreal > KoGuidesData::horizontalGuideLines (  )  const

Returns the list of horizontal guide lines.

Definition at line 122 of file KoGuidesData.cpp.

bool KoGuidesData::loadOdfSettings ( const KoXmlDocument &  settingsDoc  ) 

Loads guide lines from the given setting xml document.

Definition at line 162 of file KoGuidesData.cpp.

void KoGuidesData::paintGuides ( QPainter painter,
const KoViewConverter converter,
const QRectF area 
) const

Paints the guides using the given painter and viewconverter.

Only guides intersecting the given area are painted.

Parameters:
painter the painter
converter the view converter
area the area in need of updating

Definition at line 132 of file KoGuidesData.cpp.

void KoGuidesData::saveOdfSettings ( KoXmlWriter &  settingsWriter  ) 

Saves guide lines to the given settings xml writer.

Definition at line 187 of file KoGuidesData.cpp.

void KoGuidesData::setGuideLines ( const QList< qreal > &  horizontalLines,
const QList< qreal > &  verticalLines 
)

Set the positions of the horizontal and vertical guide lines.

Parameters:
horizontalLines a list of positions of the horizontal guide lines
verticalLines a list of positions of the vertical guide lines

Definition at line 97 of file KoGuidesData.cpp.

void KoGuidesData::setGuidesColor ( const QColor color  ) 

Sets the color of the guide lines.

Parameters:
color the new guides color

Definition at line 152 of file KoGuidesData.cpp.

void KoGuidesData::setHorizontalGuideLines ( const QList< qreal > &  lines  ) 

Set the positions of the horizontal guide lines.

Parameters:
lines a list of positions of the horizontal guide lines

Definition at line 87 of file KoGuidesData.cpp.

void KoGuidesData::setShowGuideLines ( bool  show  ) 
Parameters:
show display or not guide line

Definition at line 117 of file KoGuidesData.cpp.

void KoGuidesData::setVerticalGuideLines ( const QList< qreal > &  lines  ) 

Set the positions of the vertical guide lines.

Parameters:
lines a list of positions of the vertical guide lines

Definition at line 92 of file KoGuidesData.cpp.

bool KoGuidesData::showGuideLines (  )  const

Display or not guide lines.

Definition at line 112 of file KoGuidesData.cpp.

QList< qreal > KoGuidesData::verticalGuideLines (  )  const

Returns the list of vertical guide lines.

Definition at line 127 of file KoGuidesData.cpp.


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