]> icculus.org git repositories - duncan/yast2-web-wt.git/blob - src/YWebLabel.h
label widget, not working yet
[duncan/yast2-web-wt.git] / src / YWebLabel.h
1
2 #ifndef WebLabel_h
3 #define WebLabel_h
4
5 #include "YLabel.h"
6
7 #include <WLabel>
8
9 class YWebLabel : public Wt::WLabel, public YLabel
10 {
11 public:
12
13     /**
14      * Constructor.
15      **/
16     YWebLabel( YWidget *    parent,
17               const string & text,
18               bool     isHeading = false,
19               bool     isOutputField = false );
20
21     /**
22      * Destructor.
23      **/
24     virtual ~YWebLabel();
25
26     /**
27      * Set the text the widget displays.
28      *
29      * Reimplemented from YLabel.
30      **/
31     virtual void setText( const string & newText );
32
33     /**
34      * Switch bold font on or off.
35      *
36      * Reimplemented from YLabel.
37      **/
38     virtual void setUseBoldFont( bool bold );
39     
40     /**
41      * Set enabled / disabled state.
42      *
43      * Reimplemented from YWidget.
44      **/
45     virtual void setEnabled( bool enabled );
46
47     /**
48      * Preferred width of the widget.
49      *
50      * Reimplemented from YWidget.
51      **/
52     virtual int preferredWidth();
53
54     /**
55      * Preferred height of the widget.
56      *
57      * Reimplemented from YWidget.
58      **/
59     virtual int preferredHeight();
60
61     /**
62      * Set the new size of the widget.
63      *
64      * Reimplemented from YWidget.
65      **/
66     virtual void setSize( int newWidth, int newHeight );
67 };
68
69
70 #endif // WebLabel_h