26 #include <TEveBrowser.h>
27 #include <TEveManager.h>
28 #include <TEveElement.h>
29 #include <TEveWindow.h>
30 #include <TEveViewer.h>
31 #include <TGLViewer.h>
44 :
PopupMenu(display->client().GetRoot()), m_display(display), m_evtCtrl(0)
46 InstanceCount::increment(
this);
50 DD4hepMenu::~DD4hepMenu() {
62 pm.
menu().DisableEntry(
id);
64 pm.
menu().DisableEntry(
id);
66 pm.
menu().DisableEntry(
id);
68 pm.
menu().DisableEntry(
id);
70 menubar->AddPopup(
"&dd4hep",*
this,
new TGLayoutHints(hints, 0, 4, 0, 0));
75 TGPopupMenu& pm =
menu();
76 pm.DisableEntry(pm.GetEntry(
"Load XML")->GetEntryId());
77 pm.EnableEntry(pm.GetEntry(
"Show Event I/O")->GetEntryId());
78 pm.EnableEntry(pm.GetEntry(
"Open Event Data")->GetEntryId());
79 pm.DisableEntry(pm.GetEntry(
"Next Event")->GetEntryId());
80 pm.DisableEntry(pm.GetEntry(
"Previous Event")->GetEntryId());
86 if ( !fname.empty() ) {
95 if ( !fname.empty() ) {
104 browser->StartEmbedding(TRootBrowser::kLeft);
107 browser->SetTabTitle(
"Evt I/O", 0);
108 browser->StopEmbedding();
109 menu().DisableEntry(
menu().GetEntry(
"Show Event I/O")->GetEntryId());
119 TGPopupMenu& pm =
menu();
120 pm.EnableEntry(pm.GetEntry(
"Open Event Data")->GetEntryId());
121 pm.EnableEntry(pm.GetEntry(
"Next Event")->GetEntryId());
122 pm.EnableEntry(pm.GetEntry(
"Previous Event")->GetEntryId());
139 printout(INFO,
"DDEve",
"+++ The life of this display instance ended.... good bye!");
140 gSystem->Exit(0,kTRUE);