00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef YQColoredLabel_h
00022 #define YQColoredLabel_h
00023
00024 #include <qlabel.h>
00025 #include <ycp/YCPString.h>
00026
00027 #include "YLabel.h"
00028
00029
00030 class YQColoredLabel : public QLabel, public YLabel
00031 {
00032 Q_OBJECT
00033
00034 public:
00035
00039 YQColoredLabel( QWidget * parent,
00040 const YWidgetOpt & opt,
00041 YCPString text,
00042 YColor & fg,
00043 YColor & bg,
00044 int margin );
00045
00051 void setEnabling( bool enabled );
00052
00058 long nicesize( YUIDimension dim );
00059
00063 void setSize( long newWidth, long newHeight );
00064
00068 void setLabel( const YCPString & label );
00069 };
00070
00071 #endif // YQColoredLabel_h