24 using namespace DD4hep;
30 m_popup.Connect(
"Activated(int)",
"DD4hep::PopupMenu",
this,
"HandleMenu(int)");
36 m_popup.Disconnect(
"Activated(int)",
this,
"HandleMenu(int)");
57 m_popup.AddPopup(s,popup,before,p);
69 Callbacks::const_iterator i =
m_calls.find(
id);
71 TGMenuEntry*
e =
m_popup.GetEntry(
id);
72 void* ud = e->GetUserData();
73 const void* args[2] = {&
e, ud};
74 printout(
INFO,
"PopupMenu",
"+++ HandleMenu: executing callback with ID=%d Arg=%p [%p]",
id,ud,&ud);
75 (*i).second.execute(args);
78 printout(
INFO,
"PopupMenu",
"+++ HandleMenu: unhandled callback with ID=%d",
id);
93 return m_popup.IsEntryChecked(
id);
static void decrement(T *)
Decrement count according to type information.
Definition of the generic callback structure for member functions.
static void increment(T *)
Increment count according to type information.
int printout(PrintLevel severity, const char *src, const char *fmt,...)
Calls the display action with a given severity level.