FWPopupMenu::FWPopupMenu |
( |
const TGWindow * |
p = 0 , |
|
|
UInt_t |
w = 10 , |
|
|
UInt_t |
h = 10 , |
|
|
UInt_t |
options = 0 |
|
) |
| |
|
inline |
Definition at line 47 of file FWModelContextMenuHandler.cc.
50 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 | ) |
|
|
inlinevirtual |
Definition at line 73 of file FWModelContextMenuHandler.cc.
References tmp.
75 if (
event->fType != kGKeyPress)
return kTRUE;
79 gVirtualX->LookupString(
event, tmp,
sizeof(tmp), keysym);
81 TGMenuEntry *ce = fCurrent;
87 if (ce) ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
88 while (ce && ((ce->GetType() == kMenuSeparator) ||
89 (ce->GetType() == kMenuLabel) ||
90 !(ce->GetStatus() & kMenuEnableMask)))
92 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
94 if (!ce) ce = (TGMenuEntry*)GetListOfEntries()->Last();
100 if (ce) ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
101 while (ce && ((ce->GetType() == kMenuSeparator) ||
102 (ce->GetType() == kMenuLabel) ||
103 !(ce->GetStatus() & kMenuEnableMask)))
105 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
107 if (!ce) ce = (TGMenuEntry*)GetListOfEntries()->First();
115 ev.fType = kButtonRelease;
117 return HandleButton(&ev);
123 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 |
( |
| ) |
|
|
inlinevirtual |
virtual void FWPopupMenu::PoppedUp |
( |
| ) |
|
|
inlinevirtual |