MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / myFlChoiceWin_CB

Method myFlChoiceWin_CB

src/csvapplication.cpp:3166–3178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3164 ((Fl_Widget *) parent)->hide();
3165}
3166void CsvApplication::myFlChoiceWin_CB(Fl_Widget *widget, long data) {
3167 My_Fl_Small_Window *myWidget = (My_Fl_Small_Window *)widget;
3168 if( data == TCRUNCHER_MYFLCHOICE_MAGICAL) {
3169 // pressed ENTER
3170 myWidget->dataExchange = 0;
3171 myWidget->hide();
3172 }
3173 if( data == 0 ) {
3174 // ESC or red close button
3175 myWidget->dataExchange = -1;
3176 myWidget->hide();
3177 }
3178}
3179
3180
3181/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected