Author: gs Date: Tue Oct 2 12:32:23 2007 New Revision: 41187 URL: http://svn.opensuse.org/viewcvs/yast?rev=41187&view=rev Log: add comment Modified: branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc?rev=41187&r1=41186&r2=41187&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc Tue Oct 2 12:32:23 2007 @@ -35,7 +35,7 @@ , NCWidget( parent ) , label( nlabel ) , maxval( maxValue ) - , cval( 0 ) // FIXME - was 4. param progress + , cval( 0 ) , lwin( 0 ) , twin( 0 ) { @@ -44,6 +44,7 @@ maxval = 1; hotlabel = &label; setLabel( nlabel ); + // initial progress isn't an argument any longer //setProgress( progress ); wstate = NC::WSdumb; } @@ -186,27 +187,6 @@ Redraw(); } -#if 0 -/////////////////////////////////////////////////////////////////// -// -// -// METHOD NAME : NCProgressBar::setProgress -// METHOD TYPE : void -// -// DESCRIPTION : -// -void NCProgressBar::setProgress( const YCPInteger & nval ) -{ - cval = nval->value(); - if ( cval < 0 ) - cval = 0; - else if ( cval > maxval ) - cval = maxval; - Redraw(); - YProgressBar::setProgress( nval ); -} -#endif - /////////////////////////////////////////////////////////////////// // // -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org