[yast-commit] r39870 - in /branches/tmp/sh/mod-ui/ncurses/src: NCSelectionBox.cc NCSelectionBox.h
Author: gs
Date: Wed Aug 1 14:54:47 2007
New Revision: 39870
URL: http://svn.opensuse.org/viewcvs/yast?rev=39870&view=rev
Log:
add addItem()
Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.h
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc?rev=39870&r1=39869&r2=39870&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc Wed Aug 1 14:54:47 2007
@@ -52,24 +52,6 @@
WIDDBG << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
-long NCSelectionBox::nicesize( YUIDimension dim )
-{
- wsze sze = ( biglist ) ? myPad()->tableSize() + 2 : wGetDefsze();
- if (dim == YD_HORIZ) {
- return sze.W > (int)(labelWidht()+2) ? sze.W : (labelWidht()+2);
- } else {
- return sze.H;
- }
-}
-
int NCSelectionBox::preferredWidth()
{
wsze sze = ( biglist ) ? myPad()->tableSize() + 2 : wGetDefsze();
@@ -113,6 +95,7 @@
{
if ( !myPad()->Lines() )
return -1;
+ NCMIL << "Current pos: " << myPad()->CurPos().L << endl;
return myPad()->CurPos().L;
}
@@ -168,6 +151,8 @@
//
// DESCRIPTION :
//
+// still used in NCPkgPopupDeps
+//
void NCSelectionBox::itemAdded( const YCPString& str, int index, bool selected )
{
vector
participants (1)
-
gs@svn.opensuse.org