25 #define YUILogComponent "ncurses"
26 #include <yui/YUILog.h>
27 #include "NCPopupTable.h"
30 #include <yui/YMenuButton.h>
33 NCPopupTable::NCPopupTable(
const wpos & at )
40 NCPopupTable::~NCPopupTable()
45 void NCPopupTable::createList( std::vector<std::string> & row )
50 YTableHeader * tableHeader =
new YTableHeader();
53 sellist =
new NCTable(
this, tableHeader );
55 YUI_CHECK_NEW( sellist );
61 sellist->setNotify(
true );
65 void NCPopupTable::addItem( YItem *yitem, NCTableLine::STATE state )
70 sellist->
addItem( yitem, state );
79 void NCPopupTable::setCurrentItem(
int index )
88 int NCPopupTable::getCurrentItem()
const
97 YItem * NCPopupTable::getCurrentItemPointer()
const
109 return wHandleInput( KEY_RETURN );
111 return NCursesEvent::none;
115 bool NCPopupTable::postAgain()
119 postevent.detail = ( postevent == NCursesEvent::button ) ?
127 void NCPopupTable::stripHotkeys()