kaddressbook
KABEntryPainter Class Reference
#include <kabentrypainter.h>
Detailed Description
Definition at line 36 of file kabentrypainter.h.
Public Member Functions | |
| int | hitsEmail (const QPoint &p) |
| int | hitsPhone (const QPoint &p) |
| int | hitsTalk (const QPoint &p) |
| int | hitsURL (const QPoint &p) |
| KABEntryPainter () | |
| bool | printAddressee (const KABC::Addressee &addr, const QRect &window, QPainter *p, int top=0, bool fake=false, QRect *rect=0) |
| void | setBackgroundColor (const QColor &color=Qt::black) |
| void | setBodyFont (const QFont &font=QFont("Helvetica", 12, QFont::Normal, true)) |
| void | setCommentFont (const QFont &font=QFont("Helvetica", 10, QFont::Normal, true)) |
| void | setFixedFont (const QFont &font=QFont("Courier", 12, QFont::Normal, true)) |
| void | setForegroundColor (const QColor &color=Qt::black) |
| void | setHeaderColor (const QColor &color=Qt::white) |
| void | setHeaderFont (const QFont &font=QFont("Helvetica", 12, QFont::Normal, true)) |
| void | setHeadLineFont (const QFont &font=QFont("Helvetica", 12, QFont::Normal, true)) |
| void | setShowAddresses (bool value=true) |
| void | setShowEmails (bool value=true) |
| void | setShowPhones (bool value=true) |
| void | setShowURLs (bool value=true) |
| void | setUseHeaderColor (bool value=true) |
| ~KABEntryPainter () | |
Constructor & Destructor Documentation
| KABEntryPainter::KABEntryPainter | ( | ) |
Definition at line 34 of file kabentrypainter.cpp.
| KABEntryPainter::~KABEntryPainter | ( | ) |
Definition at line 40 of file kabentrypainter.cpp.
Member Function Documentation
| int KABEntryPainter::hitsEmail | ( | const QPoint & | p | ) |
Returns the index of the rectangle if the point p is inside of one of the email addresses.
The index is the position of the email address in the emails list. If it does not point at one of the email addresses, -1 is returned.
Definition at line 113 of file kabentrypainter.cpp.
| int KABEntryPainter::hitsPhone | ( | const QPoint & | p | ) |
Returns the index of the rectangle if the point p is inside of one of the telephone numbers.
See hitsEmail
Definition at line 123 of file kabentrypainter.cpp.
| int KABEntryPainter::hitsTalk | ( | const QPoint & | p | ) |
Returns the index of the rectangle if the point p is inside of one of the telephone numbers.
See hitsEmail
Definition at line 128 of file kabentrypainter.cpp.
| int KABEntryPainter::hitsURL | ( | const QPoint & | p | ) |
Returns the index of the rectangle if the point p is inside of one of the telephone numbers.
See hitsEmail
Definition at line 118 of file kabentrypainter.cpp.
| bool KABEntryPainter::printAddressee | ( | const KABC::Addressee & | addr, | |
| const QRect & | window, | |||
| QPainter * | p, | |||
| int | top = 0, |
|||
| bool | fake = false, |
|||
| QRect * | rect = 0 | |||
| ) |
Paint one entry using the given painter.
May not only be used on printer objects but on any suitable QPaintDevice. The function does not paint a background, just the contents of the addressee.
- Parameters:
-
addr The addressee that should be printed. window The rectangle where the addressee should be printed to. p A painter object to print it. top The starting pixel in vertical direction (coordinate system origin in the upper left corner), it is zero by default, but may be larger than this to place another addressee below an already printed one. fake If this is true, the addressee is not really printed, it only calculates the space needed to draw this entry onto the given window.
- Returns:
- false if some error happens, otherwise true.
Definition at line 148 of file kabentrypainter.cpp.
| void KABEntryPainter::setBackgroundColor | ( | const QColor & | color = Qt::black |
) |
Definition at line 53 of file kabentrypainter.cpp.
| void KABEntryPainter::setBodyFont | ( | const QFont & | font = QFont( "Helvetica", 12, QFont::Normal, true ) |
) |
Definition at line 73 of file kabentrypainter.cpp.
| void KABEntryPainter::setCommentFont | ( | const QFont & | font = QFont( "Helvetica", 10, QFont::Normal, true ) |
) |
Definition at line 83 of file kabentrypainter.cpp.
| void KABEntryPainter::setFixedFont | ( | const QFont & | font = QFont( "Courier", 12, QFont::Normal, true ) |
) |
Definition at line 78 of file kabentrypainter.cpp.
| void KABEntryPainter::setForegroundColor | ( | const QColor & | color = Qt::black |
) |
Definition at line 48 of file kabentrypainter.cpp.
| void KABEntryPainter::setHeaderColor | ( | const QColor & | color = Qt::white |
) |
Definition at line 58 of file kabentrypainter.cpp.
| void KABEntryPainter::setHeaderFont | ( | const QFont & | font = QFont( "Helvetica", 12, QFont::Normal, true ) |
) |
Definition at line 63 of file kabentrypainter.cpp.
| void KABEntryPainter::setHeadLineFont | ( | const QFont & | font = QFont( "Helvetica", 12, QFont::Normal, true ) |
) |
Definition at line 68 of file kabentrypainter.cpp.
| void KABEntryPainter::setShowAddresses | ( | bool | value = true |
) |
Definition at line 93 of file kabentrypainter.cpp.
| void KABEntryPainter::setShowEmails | ( | bool | value = true |
) |
Definition at line 98 of file kabentrypainter.cpp.
| void KABEntryPainter::setShowPhones | ( | bool | value = true |
) |
Definition at line 103 of file kabentrypainter.cpp.
| void KABEntryPainter::setShowURLs | ( | bool | value = true |
) |
Definition at line 108 of file kabentrypainter.cpp.
| void KABEntryPainter::setUseHeaderColor | ( | bool | value = true |
) |
Definition at line 88 of file kabentrypainter.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference