Author: gs Date: Tue Nov 13 12:58:47 2007 New Revision: 42003 URL: http://svn.opensuse.org/viewcvs/yast?rev=42003&view=rev Log: remove unused code/add comments Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc?rev=42003&r1=42002&r2=42003&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc Tue Nov 13 12:58:47 2007 @@ -65,6 +65,14 @@ YAlignment::setSize( newwidth, newheight); } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCAlignment::setEnabled +// METHOD TYPE : void +// +// DESCRIPTION : +// void NCAlignment::setEnabled( bool do_bv ) { NCWidget::setEnabled( do_bv ); Modified: branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc?rev=42003&r1=42002&r2=42003&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc Tue Nov 13 12:58:47 2007 @@ -82,16 +82,40 @@ WIDDBG << endl; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCInputField::preferredWidth +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCInputField::preferredWidth() { return wGetDefsze().W; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCInputField::preferredHeight +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCInputField::preferredHeight() { return wGetDefsze().H; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCInputField::setEnabled +// METHOD TYPE : void +// +// DESCRIPTION : +// void NCInputField::setEnabled( bool do_bv ) { NCWidget::setEnabled( do_bv ); Modified: branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc?rev=42003&r1=42002&r2=42003&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc Tue Nov 13 12:58:47 2007 @@ -75,16 +75,40 @@ WIDDBG << endl; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCIntField::preferredWidth +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCIntField::preferredWidth() { return wGetDefsze().W; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCIntField::preferredHeight +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCIntField::preferredHeight() { return wGetDefsze().H; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCIntField::setEnabled +// METHOD TYPE : void +// +// DESCRIPTION : +// void NCIntField::setEnabled( bool do_bv ) { NCWidget::setEnabled( do_bv ); @@ -199,17 +223,8 @@ // void NCIntField::setValueInternal( int newValue ) { -#if 0 - if ( newValue < minValue() ) - cvalue = minValue(); - else if ( newValue > maxValue() ) - cvalue = maxValue(); - else - cvalue = newValue; - - YIntField::setValue( cvalue ); -#endif // checking newValue is done by YIntField + // -> no checks required cvalue = newValue; tUpdate(); } Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc?rev=42003&r1=42002&r2=42003&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc Tue Nov 13 12:58:47 2007 @@ -51,6 +51,14 @@ WIDDBG << endl; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCPushButton::preferredWidth +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCPushButton::preferredWidth() { wsze defsize = wGetDefsze(); @@ -58,11 +66,27 @@ return wGetDefsze().W; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCPushButton::preferredHeight +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCPushButton::preferredHeight() { return wGetDefsze().H; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCPushButton::setEnabled +// METHOD TYPE : void +// +// DESCRIPTION : +// void NCPushButton::setEnabled( bool do_bv ) { NCWidget::setEnabled( do_bv ); Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h?rev=42003&r1=42002&r2=42003&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h Tue Nov 13 12:58:47 2007 @@ -67,7 +67,7 @@ virtual NCursesEvent wHandleInput( wint_t key ); virtual void setLabel( const string & nlabel ); - //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); } + virtual void setEnabled( bool do_bv ); virtual bool setKeyboardFocus() { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org