template<class DataDocT>
Reimplemented from OglGui::ButtonListener. Reimplemented in Impala::Visualization::SegmentationDocumentGuiAnno, Impala::Visualization::SegmentationDocumentGuiMain, and Impala::Visualization::VxsDocumentGuiPlay. Definition at line 305 of file DataDocumentGui.h. 00306 { 00307 int listenerData = (int)((long long) vData); 00308 switch (listenerData) 00309 { 00310 case BUT_CONCEPT: { 00311 if (!mDataDoc->HasConcepts()) 00312 break; 00313 OGLMENU menu = oglSys.MenuCreate(); 00314 for (int i=0 ; i<mDataDoc->NrConcepts() ; i++) 00315 oglSys.MenuAdd(menu, (char*) mDataDoc->GetConcept(i).c_str(), 00316 0, 100 + i); 00317 int choice = oglSys.MenuPopUp(mOglWnd, menu); 00318 if (choice >= 100) 00319 { 00320 mDataDoc->SetConcept(choice - 100); 00321 mConceptField->SetText(mDataDoc->GetConcept()); 00322 mConceptField->ResetCaret(); 00323 HandleNewConcept(); 00324 } 00325 oglSys.MenuDestroy(menu); 00326 break; 00327 } 00328 case BUT_ADD_CONCEPT: 00329 mDataDoc->SetConcept(mConceptField->GetText()); 00330 HandleNewConcept(); 00331 break; 00332 case BUT_LOAD_CONCEPTS: 00333 HandleLoadConcepts(mConceptFileField->GetText()); 00334 break; 00335 case BUT_SAVE_CONCEPTS: 00336 HandleSaveConcepts(mConceptFileField->GetText()); 00337 break; 00338 case BUT_BOOKMARK: 00339 AddCursorToBookmarked(); 00340 break; 00341 case BUT_UNBOOKMARK: 00342 RemoveCursorFromBookmarked(); 00343 break; 00344 case BUT_CLEAR_BOOKMARKED: 00345 ClearBookmarked(); 00346 break; 00347 case BUT_LOAD_BOOKMARKED: 00348 LoadBookmarked(); 00349 break; 00350 case BUT_SAVE_BOOKMARKED: 00351 SaveBookmarked(); 00352 break; 00353 } // end switch 00354 }
|