[yast-commit] r42004 - in /branches/tmp/sh/mod-ui/ncurses/src: NCMultiLineEdit.cc NCMultiLineEdit.h README_mod-ui
Author: gs Date: Tue Nov 13 13:15:18 2007 New Revision: 42004 URL: http://svn.opensuse.org/viewcvs/yast?rev=42004&view=rev Log: correct preferredHeight() Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc?rev=42004&r1=42003&r2=42004&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc Tue Nov 13 13:15:18 2007 @@ -54,29 +54,39 @@ /////////////////////////////////////////////////////////////////// // // -// METHOD NAME : NCMultiLineEdit::nicesize -// METHOD TYPE : long +// METHOD NAME : NCMultiLineEdit::preferredWidth +// METHOD TYPE : int // // DESCRIPTION : // -long NCMultiLineEdit::nicesize( YUIDimension dim ) -{ - defsze.W = ( 5 > labelWidht() ? 5 : labelWidht() ) + 2; - return dim == YD_HORIZ ? wGetDefsze().W : wGetDefsze().H; -} - int NCMultiLineEdit::preferredWidth() { defsze.W = ( 5 > labelWidht() ? 5 : labelWidht() ) + 2; return wGetDefsze().W; } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCMultiLineEdit::preferredHeight +// METHOD TYPE : int +// +// DESCRIPTION : +// int NCMultiLineEdit::preferredHeight() { - //return wGetDefsze().H; - return YMultiLineEdit::defaultVisibleLines(); + return wGetDefsze().H; + //return YMultiLineEdit::defaultVisibleLines(); } +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCMultiLineEdit::setEnabled +// METHOD TYPE : void +// +// DESCRIPTION : +// void NCMultiLineEdit::setEnabled( bool do_bv ) { NCWidget::setEnabled( do_bv ); Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h?rev=42004&r1=42003&r2=42004&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h Tue Nov 13 13:15:18 2007 @@ -67,8 +67,6 @@ virtual ~NCMultiLineEdit(); - virtual long nicesize( YUIDimension dim ); - virtual int preferredWidth(); virtual int preferredHeight(); /** @@ -85,8 +83,7 @@ virtual NCursesEvent wHandleInput( wint_t key ); - //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); } - virtual void setEnabled( bool do_bv ); + virtual void setEnabled( bool do_bv ); virtual bool setKeyboardFocus() { if ( !grabFocus() ) Modified: branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui?rev=42004&r1=42003&r2=42004&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui (original) +++ branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui Tue Nov 13 13:15:18 2007 @@ -10,6 +10,11 @@ ---------------------------------------------------------- +TO DO - Common issues: +---------------------- +- Use WidgetFactory create methods, e.g. in NCAskForDirectory/File, NCPkgPopups +- call YUI_CHECK_NEW(() for all with 'new' created widgets, e.g. NCPopuptextEntry + NCTree ------ @@ -113,13 +118,6 @@ setHeader(): call YTable::setTableHeader ??? NCPopupMenu -Common issues: -- Use WidgetFactory create methods, e.g. in NCAskForDirectory/File -- remove NCSpacing 0.x which are without effect for ncurses (NCAskFor.., - NCPkgPopup..) -- call YUI_CHECK_NEW(() for all with 'new' created widgets, e.g. NCPopuptextEntry - - NCMenuButton/NCPopupMenu ------------------------ @@ -131,7 +129,7 @@ NCRichText ---------- -TODO: hyper links doesn't yet work +TODO: hyper links don't yet work PackageSelector -- 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