30 #include <yui/YLabel.h>
32 #include "NCWordWrapper.h"
41 friend std::ostream & operator<<( std::ostream & str,
const NCLabel & obj );
53 virtual const char * location()
const {
return "NCLabel"; }
55 virtual void wRedraw();
60 const std::string & text,
61 bool isHeading =
false,
62 bool isOutputField =
false );
66 virtual int preferredWidth();
67 virtual int preferredHeight();
69 virtual void setSize(
int newWidth,
int newHeight );
71 virtual void setText(
const std::string & nlabel );
74 virtual void setAutoWrap(
bool autoWrap =
true );
virtual void setEnabled(bool do_bv)
Pure virtual to make sure every widget implements it.
Helper class to word-wrap text into a specified maximum line width.