#include <sailpainter.h>

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 |
Definition at line 68 of file sailpainter.h.
| CTextPainter::CTextPainter | ( | QPaintDevice * | pd | ) |
Construct a new CTextPainter.
Definition at line 367 of file sailpainter.cpp.
| void CTextPainter::printReset | ( | ) |
Reset the text cursors to its initial position.
Definition at line 375 of file sailpainter.cpp.
Referenced by CSailDataPrinter::print().
| void CTextPainter::printHeader | ( | const QString | title | ) |
Print a header banner (used at the top of a for example).
| title | the title to print |
Definition at line 386 of file sailpainter.cpp.
Referenced by CSailDataPrinter::print().
| void CTextPainter::printDataSection | ( | const QString | title | ) |
Print a data section title.
| title | the title of the section |
Definition at line 403 of file sailpainter.cpp.
Referenced by CSailDataPrinter::print().
| void CTextPainter::printDataLine | ( | const QString | title, | |
| const QString | data0 = "", |
|||
| const QString | data1 = "", |
|||
| const QString | data2 = "" | |||
| ) |
Print a line of data.
| 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.
Referenced by CSailDataPrinter::print().
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().
1.5.6