summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetelistviewitem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-07 22:02:54 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-07 22:02:54 +0000
commite2e6ec17cf1177e4bb81609e8e884e000819dfdc (patch)
treeb7491d60010c277ee80c223e293b4caac6e8b69e /kopete/libkopete/ui/kopetelistviewitem.h
parentf815711d039485259835e246103d3e7f8f3d7203 (diff)
downloadtdenetwork-e2e6ec17cf1177e4bb81609e8e884e000819dfdc.tar.gz
tdenetwork-e2e6ec17cf1177e4bb81609e8e884e000819dfdc.zip
* Part 2/2 of Chakra patches
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1172713 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/kopetelistviewitem.h')
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.h69
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