Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41633 - in /branches/tmp/sh/mod-ui/ncurses/src: NCPopupTable.cc NCPopupTable.h
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Tue, 30 Oct 2007 10:26:05 -0000
  • Message-id: <20071030102605.A8096374BC@xxxxxxxxxxxxxxxx>
Author: gs
Date: Tue Oct 30 11:26:05 2007
New Revision: 41633

URL: http://svn.opensuse.org/viewcvs/yast?rev=41633&view=rev
Log:
add method getCurrentItemPointer

Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc
branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h

Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc?rev=41633&r1=41632&r2=41633&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc Tue Oct 30 11:26:05 2007
@@ -61,7 +61,9 @@
if ( sellist )
return ;

- sellist = new NCTable( this, row.size() );
+ YTableHeader * tableHeader = new YTableHeader();
+ // sellist = new NCTable( this, row.size() );
+ sellist = new NCTable( this, tableHeader );
YUI_CHECK_NEW( sellist );

sellist->setBigList( true );
@@ -120,6 +122,14 @@
return sellist->getCurrentItem();
}

+YItem * NCPopupTable::getCurrentItemPointer( ) const
+{
+ if ( !sellist )
+ return 0;
+
+ return sellist->getCurrentItemPointer( );
+}
+
///////////////////////////////////////////////////////////////////
//
//

Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h?rev=41633&r1=41632&r2=41633&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h Tue Oct 30 11:26:05 2007
@@ -26,10 +26,10 @@
using namespace std;

#include "NCPopup.h"
-#include "YItem.h"
+#include "YTableItem.h"

class NCTable;
-class YCPValue;
+

///////////////////////////////////////////////////////////////////
//
@@ -54,7 +54,8 @@

void setCurrentItem( int index );
int getCurrentItem() const;
-
+ YItem * getCurrentItemPointer( ) const;
+
virtual NCursesEvent wHandleHotkey( wint_t ch );

protected:

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages