[yast-commit] r40984 - in /branches/tmp/sh/mod-ui/ncurses/src: NCLabel.cc NCLabel.h
Author: gs Date: Thu Sep 20 14:50:47 2007 New Revision: 40984 URL: http://svn.opensuse.org/viewcvs/yast?rev=40984&view=rev Log: replace setLabel by setText Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc?rev=40984&r1=40983&r2=40984&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc Thu Sep 20 14:50:47 2007 @@ -35,7 +35,7 @@ , heading( isHeading ) { WIDDBG << endl; - setLabel( nlabel ); + setText( nlabel ); hotlabel = &label; wstate = NC::WSdumb; } @@ -98,17 +98,17 @@ /////////////////////////////////////////////////////////////////// // // -// METHOD NAME : NCLabel::setLabel +// METHOD NAME : NCLabel::setText // METHOD TYPE : void // // DESCRIPTION : // -void NCLabel::setLabel( const string & nlabel ) +void NCLabel::setText( const string & nlabel ) { label = NCstring( nlabel ); NCDBG << "LABEL: " << NCstring(nlabel) << " Longest line: " << label.width()<< endl; defsze = label.size(); - YLabel::setLabel( nlabel ); + YLabel::setText( nlabel ); Redraw(); } Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h?rev=40984&r1=40983&r2=40984&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h Thu Sep 20 14:50:47 2007 @@ -65,8 +65,8 @@ **/ virtual void setSize( int newWidth, int newHeight ); - virtual void setLabel( const string & nlabel ); - //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( isEnabled()=do_bv ); } + virtual void setText( const string & nlabel ); + virtual void setEnabled( bool do_bv ); virtual int preferredWidth(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org