25 #define YUILogComponent "ncurses"
26 #include <yui/YUILog.h>
27 #include "NCPopupList.h"
28 #include <yui/YTableItem.h>
31 NCPopupList::NCPopupList(
const wpos at,
32 const std::string & label,
33 const std::list<std::string> & deflist,
37 createEntries( deflist, index );
41 NCPopupList::~NCPopupList()
47 void NCPopupList::createEntries(
const std::list<std::string> & deflist,
int index )
49 std::vector<std::string> row( 1 );
52 for ( std::list<std::string>::const_iterator entry = deflist.begin();
53 entry != deflist.end(); ++entry )
55 YItem *item =
new YTableItem(( *entry ) );
59 setCurrentItem( index );
63 bool NCPopupList::postAgain()
65 return NCPopupTable::postAgain();