00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KDMRECT_H
00023 #define KDMRECT_H
00024
00025 #include "kdmitem.h"
00026
00027 #include <tqcolor.h>
00028 #include <tqfont.h>
00029
00030
00031
00032
00033
00034 class KdmRect : public KdmItem {
00035 Q_OBJECT
00036
00037 public:
00038 KdmRect( KdmItem *parent, const TQDomNode &node, const char *name = 0 );
00039 KdmRect( TQWidget *parent, const TQDomNode &node, const char *name = 0 );
00040
00041 protected:
00042
00043 virtual void drawContents( TQPainter *p, const TQRect &r );
00044
00045
00046 virtual void statusChanged();
00047
00048 struct RectStruct {
00049 struct RectClass {
00050 float alpha;
00051 TQColor color;
00052 bool present;
00053 TQFont font;
00054 } normal, active, prelight;
00055 bool hasBorder;
00056 } rect;
00057
00058 virtual void setWidget( TQWidget *widget );
00059
00060 void init( const TQDomNode &node, const char *name );
00061
00062 private:
00063 void setAttribs( TQWidget *widget );
00064 void recursiveSetAttribs( TQLayoutItem *item );
00065 };
00066
00067 #endif