2 #include "KeySymbols.h" 10 AddInput(kKeyPressMask);
21 TGPopupMenu::PoppedUp();
22 gVirtualX->SetInputFocus(fId);
23 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kTRUE);
29 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kFALSE);
30 TGPopupMenu::PoppedDown();
35 if (event->fType != kGKeyPress)
return kTRUE;
39 gVirtualX->LookupString(event, tmp,
sizeof(tmp), keysym);
41 TGMenuEntry *ce = fCurrent;
47 if (ce) ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
48 while (ce && ((ce->GetType() == kMenuSeparator) ||
49 (ce->GetType() == kMenuLabel) ||
50 !(ce->GetStatus() & kMenuEnableMask)))
52 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
54 if (!ce) ce = (TGMenuEntry*)GetListOfEntries()->Last();
60 if (ce) ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
61 while (ce && ((ce->GetType() == kMenuSeparator) ||
62 (ce->GetType() == kMenuLabel) ||
63 !(ce->GetStatus() & kMenuEnableMask)))
65 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
67 if (!ce) ce = (TGMenuEntry*)GetListOfEntries()->First();
75 ev.fType = kButtonRelease;
77 return HandleButton(&ev);
82 void *
dummy =
nullptr;
83 return EndMenu(dummy);
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::vector< std::vector< double > > tmp