CTextPainter Class Reference

#include <sailpainter.h>

Inheritance diagram for CTextPainter:

CSailPainter

List of all members.

Public Member Functions

 CTextPainter (QPaintDevice *pd)
void printReset ()
void printHeader (const QString title)
void printDataSection (const QString title)
void printDataLine (const QString title, const QString data0="", const QString data1="", const QString data2="")

Protected Attributes

real xPos
real yPos


Detailed Description

A text painter.

Definition at line 68 of file sailpainter.h.


Constructor & Destructor Documentation

CTextPainter::CTextPainter ( QPaintDevice *  pd  ) 

Construct a new CTextPainter.

Definition at line 367 of file sailpainter.cpp.


Member Function Documentation

void CTextPainter::printReset (  ) 

Reset the text cursors to its initial position.

Definition at line 375 of file sailpainter.cpp.

References xPos, and yPos.

Referenced by CSailDataPrinter::print().

void CTextPainter::printHeader ( const QString  title  ) 

Print a header banner (used at the top of a for example).

Parameters:
title the title to print

Definition at line 386 of file sailpainter.cpp.

References xPos, and yPos.

Referenced by CSailDataPrinter::print().

void CTextPainter::printDataSection ( const QString  title  ) 

Print a data section title.

Parameters:
title the title of the section

Definition at line 403 of file sailpainter.cpp.

References xPos, and yPos.

Referenced by CSailDataPrinter::print().

void CTextPainter::printDataLine ( const QString  title,
const QString  data0 = "",
const QString  data1 = "",
const QString  data2 = "" 
)

Print a line of data.

Parameters:
title the title for the current line of data
data0 first value
data1 second value
data2 third value

Definition at line 420 of file sailpainter.cpp.

References xPos, and yPos.

Referenced by CSailDataPrinter::print().


Member Data Documentation

real CTextPainter::xPos [protected]

current x offset for text output

Definition at line 79 of file sailpainter.h.

Referenced by printDataLine(), printDataSection(), printHeader(), and printReset().

real CTextPainter::yPos [protected]

current y offset for text output

Definition at line 81 of file sailpainter.h.

Referenced by printDataLine(), printDataSection(), printHeader(), and printReset().


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6