Author: gs Date: Tue Nov 13 14:31:23 2007 New Revision: 42013 URL: http://svn.opensuse.org/viewcvs/yast?rev=42013&view=rev Log: add preferredW/H Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.cc branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.h Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.cc?rev=42013&r1=42012&r2=42013&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.cc Tue Nov 13 14:31:23 2007 @@ -359,15 +359,27 @@ /////////////////////////////////////////////////////////////////// // // -// METHOD NAME : NCPkgPopupDeps::niceSize -// METHOD TYPE : void +// METHOD NAME : NCPkgPopupDeps::preferredWidth +// METHOD TYPE : int // // DESCRIPTION : // +int NCPkgPopupDeps::preferredWidth() +{ + return NCurses::cols()-15; +} -long NCPkgPopupDeps::nicesize(YUIDimension dim) +/////////////////////////////////////////////////////////////////// +// +// +// METHOD NAME : NCPkgPopupDeps::preferredHeight +// METHOD TYPE : int +// +// DESCRIPTION : +// +int NCPkgPopupDeps::preferredHeight() { - return ( dim == YD_HORIZ ? NCurses::cols()-15 : NCurses::lines()-5 ); + return NCurses::lines()-5; } /////////////////////////////////////////////////////////////////// Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.h?rev=42013&r1=42012&r2=42013&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.h (original) +++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDeps.h Tue Nov 13 14:31:23 2007 @@ -95,7 +95,8 @@ NCPkgPopupDeps( const wpos at, NCPackageSelector * pkger ); virtual ~NCPkgPopupDeps(); - virtual long nicesize(YUIDimension dim); + virtual int preferredWidth(); + virtual int preferredHeight(); NCursesEvent showDependencyPopup( NCPkgSolverAction action ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org