Definition at line 5 of file FWPopupMenu.cc.
◆ FWPopupMenu()
FWPopupMenu::FWPopupMenu |
( |
const TGWindow * |
p = nullptr , |
|
|
UInt_t |
w = 10 , |
|
|
UInt_t |
h = 10 , |
|
|
UInt_t |
options = 0 |
|
) |
| |
|
inline |
Definition at line 7 of file FWPopupMenu.cc.
9 AddInput(kKeyPressMask);
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
◆ HandleKey()
Bool_t FWPopupMenu::HandleKey |
( |
Event_t * |
event | ) |
|
|
inlineoverride |
Definition at line 29 of file FWPopupMenu.cc.
References makeMEIFBenchmarkPlots::ev, and createJobs::tmp.
30 if (
event->fType != kGKeyPress)
35 gVirtualX->LookupString(
event,
tmp,
sizeof(
tmp), keysym);
37 TGMenuEntry* ce = fCurrent;
42 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
43 while (ce && ((ce->GetType() == kMenuSeparator) || (ce->GetType() == kMenuLabel) ||
44 !(ce->GetStatus() & kMenuEnableMask))) {
45 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
48 ce = (TGMenuEntry*)GetListOfEntries()->Last();
54 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
55 while (ce && ((ce->GetType() == kMenuSeparator) || (ce->GetType() == kMenuLabel) ||
56 !(ce->GetStatus() & kMenuEnableMask))) {
57 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
60 ce = (TGMenuEntry*)GetListOfEntries()->First();
67 ev.fType = kButtonRelease;
69 return HandleButton(&
ev);
73 void*
dummy =
nullptr;
74 return EndMenu(
dummy);
◆ PoppedDown()
void FWPopupMenu::PoppedDown |
( |
| ) |
|
|
inlineoverride |
◆ PoppedUp()
void FWPopupMenu::PoppedUp |
( |
| ) |
|
|
inlineoverride |
Definition at line 18 of file FWPopupMenu.cc.
References MainPageGenerator::l.
19 TGPopupMenu::PoppedUp();
20 gVirtualX->SetInputFocus(fId);
21 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kTRUE);