00001 #ifndef KDE__LABEL_H
00002 #define KDE__LABEL_H
00003
00004 #include <faith/widget.h>
00005 #include <faith/ui.h>
00006
00007 namespace Faith
00008 {
00009
00010 class FAITH_UI_EXPORT Label : public Faith::Widget
00011 {
00012 Q_OBJECT
00013 String mText;
00014
00015 public:
00016 Label(Widget *parent, const char *name=0);
00017 Label(const String &text, Widget *parent, const char *name=0);
00018
00019 String text() const { return mText; }
00020
00021 virtual Size sizeHint() const;
00022
00023 public slots:
00024 void setText(const Faith::String &);
00025
00026 protected:
00027 void paintEvent(Faith::PaintEvent *e);
00028 };
00029
00030
00031 }
00032
00033
00034
00035 #endif