24 #ifndef KABENTRYPAINTER_H
25 #define KABENTRYPAINTER_H
27 #include <tdeabc/addressbook.h>
32 #include <tqvaluelist.h>
34 typedef TQValueList<TQRect> TQRectList;
61 bool printAddressee( const TDEABC::Addressee &addr, const TQRect &window,
62 TQPainter *p, int top = 0, bool fake = false,
65 void setForegroundColor( const TQColor &color = TQt::black );
66 void setBackgroundColor( const TQColor &color = TQt::black );
67 void setHeaderColor( const TQColor &color = TQt::white );
69 void setHeaderFont( const TQFont &font = TQFont( "Helvetica", 12, TQFont::Normal, true ) );
70 void setHeadLineFont( const TQFont &font = TQFont( "Helvetica", 12, TQFont::Normal, true ) );
71 void setBodyFont( const TQFont &font = TQFont( "Helvetica", 12, TQFont::Normal, true ) );
72 void setFixedFont( const TQFont &font = TQFont( "Courier", 12, TQFont::Normal, true ) );
73 void setCommentFont( const TQFont &font = TQFont( "Helvetica", 10, TQFont::Normal, true ) );
75 void setUseHeaderColor( bool value = true );
77 void setShowAddresses( bool value = true );
78 void setShowEmails( bool value = true );
79 void setShowPhones( bool value = true );
80 void setShowURLs( bool value = true );
88 int hitsEmail( const TQPoint &p );
94 int hitsPhone( const TQPoint &p );
100 int hitsTalk( const TQPoint &p );
106 int hitsURL( const TQPoint &p );
109 int hits( const TQRectList& rects, const TQPoint &p );
111 TQColor mForegroundColor;
112 TQColor mBackgroundColor;
113 TQColor mHeaderColor;
116 TQFont mHeadLineFont;
121 bool mUseHeaderColor;
127 TQRectList mEmailRects;
128 TQRectList mPhoneRects;
129 TQRectList mURLRects;
130 TQRectList mTalkRects;
|