diff options
Diffstat (limited to 'kopete/libkopete/ui/kopetelistviewitem.h')
-rw-r--r-- | kopete/libkopete/ui/kopetelistviewitem.h | 69 |
1 files changed, 64 insertions, 5 deletions
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,20 +339,33 @@ 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 */ class ContactComponent : public ImageComponent |