25 #define YUILogComponent "ncurses" 26 #include <yui/YUILog.h> 27 #include "NCPopupTextEntry.h" 28 #include "NCInputField.h" 31 NCPopupTextEntry::NCPopupTextEntry(
const wpos at,
32 const std::string & label,
33 const std::string & text,
36 NCInputField::FTYPE t )
46 YUI_CHECK_NEW( wtext );
48 wtext->setValue( text );
49 wtext->setFldtype( t );
50 wtext->setReturnOnReturn(
true );
55 NCPopupTextEntry::~NCPopupTextEntry()
60 bool NCPopupTextEntry::postAgain()
62 if ( postevent == NCursesEvent::button )
69 std::string NCPopupTextEntry::askForText(
const wpos at,
70 const std::string & label,
71 const std::string & text,
77 YUI_CHECK_NEW( dialog );
81 result = dialog->value();
82 YDialog::deleteTopmostDialog();