Definition at line 4 of file FWPopupMenu.cc.
FWPopupMenu::FWPopupMenu |
( |
const TGWindow * |
p = 0 , |
|
|
UInt_t |
w = 10 , |
|
|
UInt_t |
h = 10 , |
|
|
UInt_t |
options = 0 |
|
) |
| |
|
inline |
Definition at line 7 of file FWPopupMenu.cc.
10 AddInput(kKeyPressMask);
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual Bool_t FWPopupMenu::HandleKey |
( |
Event_t * |
event | ) |
|
|
inlineoverridevirtual |
Definition at line 33 of file FWPopupMenu.cc.
References ev, and tmp.
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);
83 return EndMenu(dummy);
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::vector< std::vector< double > > tmp
virtual void FWPopupMenu::PoppedDown |
( |
| ) |
|
|
inlineoverridevirtual |
virtual void FWPopupMenu::PoppedUp |
( |
| ) |
|
|
inlineoverridevirtual |
Definition at line 19 of file FWPopupMenu.cc.
References prof2calltree::l.
21 TGPopupMenu::PoppedUp();
22 gVirtualX->SetInputFocus(fId);
23 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kTRUE);