31 virtual void activate_widget( YCheckBoxFrame * widget );
32 virtual void activate_widget( YComboBox * widget );
33 virtual void activate_widget( YDateField * widget );
34 virtual void activate_widget( YSelectionBox * widget );
35 virtual void activate_widget( YTimeField * widget );
37 virtual void activate_widget ( YMultiSelectionBox * widget, YItem * item );
42 void activate_nc_widget( T * widget ) {
43 if( widget->notify() &&
dynamic_cast<NCWidget*
>( widget ) )
45 NCursesEvent
event = NCursesEvent::Activated;
46 event.widget =
dynamic_cast<NCWidget*
>( widget );
47 YNCHttpUI::ui()->sendEvent( event );
51 template<
typename T,
typename I>
52 void activate_nc_widget( T * widget , I * item) {
53 if( widget->notify() &&
dynamic_cast<NCWidget*
>( widget ) )
55 NCursesEvent event( NCursesEvent::menu );
56 event.selection = (YMenuItem *) item;
57 event.widget =
dynamic_cast<NCWidget*
>( widget );
58 YNCHttpUI::ui()->sendEvent( event );