From e2e6ec17cf1177e4bb81609e8e884e000819dfdc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 7 Sep 2010 22:02:54 +0000 Subject: * Part 2/2 of Chakra patches git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1172713 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/libkopete/ui/kopetelistviewitem.h | 69 +++++++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 5 deletions(-) (limited to 'kopete/libkopete/ui/kopetelistviewitem.h') diff --git a/kopete/libkopete/ui/kopetelistviewitem.h b/kopete/libkopete/ui/kopetelistviewitem.h index 154e9760..77d06540 100644 --- a/kopete/libkopete/ui/kopetelistviewitem.h +++ b/kopete/libkopete/ui/kopetelistviewitem.h @@ -236,7 +236,7 @@ public: BoxComponent( ComponentBase *parent, Direction dir = Horizontal ); ~BoxComponent(); - void layout( const TQRect &rect ); + virtual void layout( const TQRect &rect ); virtual int widthForHeight( int height ); virtual int heightForWidth( int width ); @@ -256,6 +256,52 @@ private: Private *d; }; +/** + * ContactBoxComponent + */ +class ContactBoxComponent : public BoxComponent +{ +public: + ContactBoxComponent(ComponentBase *parent, Direction dir = Horizontal); + ~ContactBoxComponent(); + + virtual void reloadTheme(); + + virtual void layout(const TQRect &rect); + + virtual int widthForHeight(int height); + virtual int heightForWidth(int width); + + virtual void paint(TQPainter *painter, const TQColorGroup &cg); + +private: + class Private; + Private *d; +}; + +/** + * GroupBoxComponent + */ +class GroupBoxComponent : public BoxComponent +{ +public: + GroupBoxComponent(ComponentBase *parent, Direction dir = Horizontal); + ~GroupBoxComponent(); + + virtual void reloadTheme(); + + virtual void layout(const TQRect &rect); + + virtual int widthForHeight(int height); + virtual int heightForWidth(int width); + + virtual void paint(TQPainter *painter, const TQColorGroup &cg); + +private: + class Private; + Private *d; +}; + class TextComponent : public Component { public: @@ -293,19 +339,32 @@ public: ImageComponent( ComponentBase *parent, int minW, int minH ); ~ImageComponent(); - void setPixmap( const TQPixmap &img, bool adjustSize = true); + virtual void setPixmap( const TQPixmap &img, bool adjustSize = true); TQPixmap pixmap( void ); - void paint( TQPainter *painter, const TQColorGroup &cg ); + virtual void paint( TQPainter *painter, const TQColorGroup &cg ); - void scale( int w, int h, TQImage::ScaleMode ); + virtual void scale( int w, int h, TQImage::ScaleMode ); static int RTTI; virtual int rtti() const { return RTTI; } -private: +protected: class Private; Private *d; }; +/** + * FaceComponent + */ +class FaceComponent : public ImageComponent +{ +public: + FaceComponent(ComponentBase *parent): ImageComponent(parent) {} + FaceComponent(ComponentBase *parent, int minW, int minH): ImageComponent(parent, minH, minW) {} + + void setPixmap(const TQPixmap &img, bool adjustSize = true); + void paint(TQPainter *painter, const TQColorGroup &cg); +}; + /** * ContactComponent */ -- cgit v1.2.1