Definition at line 4 of file FWPopupMenu.cc.
FWPopupMenu::FWPopupMenu |
( |
const TGWindow * |
p = nullptr , |
|
|
UInt_t |
w = 10 , |
|
|
UInt_t |
h = 10 , |
|
|
UInt_t |
options = 0 |
|
) |
| |
|
inline |
Definition at line 6 of file FWPopupMenu.cc.
8 AddInput(kKeyPressMask);
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Bool_t FWPopupMenu::HandleKey |
( |
Event_t * |
event | ) |
|
|
inlineoverride |
Definition at line 28 of file FWPopupMenu.cc.
References ev, and createJobs::tmp.
29 if (
event->fType != kGKeyPress)
34 gVirtualX->LookupString(
event, tmp,
sizeof(tmp), keysym);
36 TGMenuEntry* ce = fCurrent;
41 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
42 while (ce && ((ce->GetType() == kMenuSeparator) || (ce->GetType() == kMenuLabel) ||
43 !(ce->GetStatus() & kMenuEnableMask))) {
44 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
47 ce = (TGMenuEntry*)GetListOfEntries()->Last();
53 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
54 while (ce && ((ce->GetType() == kMenuSeparator) || (ce->GetType() == kMenuLabel) ||
55 !(ce->GetStatus() & kMenuEnableMask))) {
56 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
59 ce = (TGMenuEntry*)GetListOfEntries()->First();
66 ev.fType = kButtonRelease;
68 return HandleButton(&ev);
72 void*
dummy =
nullptr;
73 return EndMenu(dummy);
void FWPopupMenu::PoppedDown |
( |
| ) |
|
|
inlineoverride |
void FWPopupMenu::PoppedUp |
( |
| ) |
|
|
inlineoverride |
Definition at line 17 of file FWPopupMenu.cc.
References cmsLHEtoEOSManager::l.
18 TGPopupMenu::PoppedUp();
19 gVirtualX->SetInputFocus(fId);
20 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kTRUE);