25 #define YUILogComponent "ncurses"
26 #include <yui/YUILog.h>
31 NCLabel::NCLabel( YWidget * parent,
32 const std::string & nlabel,
35 : YLabel( parent, nlabel, isHeading, isOutputField )
37 , heading( isHeading )
39 yuiDebug() << std::endl;
48 yuiDebug() << std::endl;
52 int NCLabel::preferredWidth()
54 return wGetDefsze().W;
58 int NCLabel::preferredHeight()
60 return wGetDefsze().H;
67 YLabel::setEnabled( do_bv );
71 void NCLabel::setSize(
int newwidth,
int newheight )
73 wRelocate(
wpos( 0 ),
wsze( newheight, newwidth ) );
77 void NCLabel::setText(
const std::string & nlabel )
80 yuiDebug() <<
"LABEL: " <<
NCstring( nlabel ) <<
" Longest line: " << label.width() << std::endl;
81 defsze = label.size();
82 YLabel::setText( nlabel );
87 void NCLabel::wRedraw()
92 chtype bg = heading ? wStyle().dumb.title
97 label.drawAt( *win, bg, bg );
int bkgd(const chtype ch)
virtual void setEnabled(bool do_bv)