#include <GuiMenu.h>
Inheritance diagram for GuiMenu:

Public Types | |
| typedef std::list< SigC::Ptr< GuiMenuEntry > > | GuiMenuList |
| typedef std::list< SigC::Ptr< GuiMenu > > | GuiSubMenuList |
Public Member Functions | |
| GuiMenu () | |
| virtual | ~GuiMenu () |
| virtual void | Activated (int id) |
| GuiMenuList::iterator | Add (const char *label) |
| GuiMenuList::iterator | Add (const char *label, SigC::Slot0< void > slot) |
| GuiMenuList::iterator | Add (const char *label, GuiMenu &menu) |
| GuiMenuList::iterator | Insert (GuiMenuList::iterator gmitr, const char *label) |
| GuiMenuList::iterator | Insert (GuiMenuList::iterator gmitr, const char *label, SigC::Slot0< void > slot) |
| GuiMenuList::iterator | Insert (GuiMenuList::iterator gmitr, const char *label, GuiMenu &menu) |
| void | CheckEntry (GuiMenuList::iterator &mit, bool check_it=true) |
| bool | IsEntryChecked (GuiMenuList::iterator &mit) |
| GuiMenuList & | GetMenuList () |
| void | ClearAll () |
Private Member Functions | |
| void | CheckEntry (int) |
| bool | IsEntryChecked (int) |
Private Attributes | |
| GuiMenuList | fEntries |
| GuiSubMenuList | fSubMenus |
|
|
Definition at line 49 of file GuiMenu.h. Referenced by GetMenuList(). |
|
|
|
|
|
Definition at line 7 of file GuiMenu.cxx. References GuiBase::SetLayoutHints(). 00007 : TGPopupMenu(0)
00008 {
00009 SetLayoutHints(kLHintsTop|kLHintsLeft);
00010 }
|
|
|
Definition at line 55 of file GuiMenu.h. References fEntries.
|
|
|
Definition at line 12 of file GuiMenu.cxx. References GuiMenuEntry::Trigger(). 00013 {
00014 gVirtualX->Update(1); // XSync
00015 // could change pointer here....
00016 this->TGPopupMenu::Activated(id);
00017 GuiMenuEntry* gme = (GuiMenuEntry*)id; // yes, I am evil.
00018 gme->Trigger();
00019 }
|
|
||||||||||||
|
Definition at line 37 of file GuiMenu.cxx. References fEntries, and Insert().
|
|
||||||||||||
|
Definition at line 32 of file GuiMenu.cxx. References fEntries, and Insert().
|
|
|
Definition at line 22 of file GuiMenu.cxx. References fEntries, and Insert(). Referenced by add_menu(), add_to_page_menu(), GuiToggledSubMenu::AddItem(), GuiToggledMenuItem::AddToMenu(), EVD::BuildGfxMenu(), MultiPage::BuildMenus(), EVD::BuildMenus(), CheezyPage::BuildMenus(), GuiToggledSubMenu::CreateMenu(), fill_menu(), fill_mydisplay_menu(), fill_recurs_menu(), fill_test_menu(), TridPage::Init(), main(), GfxTrackListMenu::MakeMenu(), GfxStripListMenu::MakeMenu(), GfxShowerListMenu::MakeMenu(), GfxMCVecListMenu::MakeMenu(), GfxDigitListMenu::MakeMenu(), my_add_to_window_menu(), RegistryGui::SetPossiblesMenu(), TridPageDisplay::SetupMenus(), PageDisplay::SetupMenus(), and TridControl::TridControl(). 00023 {
00024 if (label)
00025 return this->Insert(fEntries.end(),label);
00026 else {
00027 this->AddSeparator(0);
00028 return fEntries.end();
00029 }
00030 }
|
|
|
Definition at line 86 of file GuiMenu.h. 00086 {} // don't use
|
|
||||||||||||
|
Definition at line 89 of file GuiMenu.cxx. Referenced by GuiToggledSubMenu::AddItem(), GuiToggledMenuItem::AddToMenu(), MultiPage::BuildMenus(), EVD::BuildMenus(), GuiToggledSubMenu::CallBack(), GuiToggledMenuItem::CallBack(), GfxTrackListMenu::HideAll(), GfxStripListMenu::HideAll(), GfxShowerListMenu::HideAll(), GfxMCVecListMenu::HideAll(), GfxDigitListMenu::HideAll(), TridControl::HistoMenuHandler(), TridPage::Init(), toggle_mux(), MultiPage::ToggleRealCoords(), EVD::ToggleRealCoords(), EVD::ToggleTimeZoom(), and TridPage::ViewMenuHandler(). 00090 {
00091 GuiMenuEntry* gme = *mit;
00092
00093 if (check_it)
00094 this->TGPopupMenu::CheckEntry((int)gme);
00095 else
00096 this->TGPopupMenu::UnCheckEntry((int)gme);
00097 }
|
|
|
Definition at line 104 of file GuiMenu.cxx. References fEntries, and fSubMenus. Referenced by clear_menu(), and remake_menu(). 00105 {
00106 GuiSubMenuList::iterator smit, send = fSubMenus.end();
00107 for (smit = fSubMenus.begin(); smit != send; ++smit)
00108 (*smit)->ClearAll();
00109
00110 GuiMenuList::iterator mit, end = fEntries.end();
00111 for (mit = fEntries.begin(); mit != end; ++mit)
00112 this->DeleteEntry((*mit)->GetEntry());
00113
00114 fSubMenus.clear();
00115 fEntries.clear();
00116 }
|
|
|
Definition at line 79 of file GuiMenu.h. References GuiMenuList. Referenced by GuiToggledSubMenu::CallBack(), TridControl::HistoMenuHandler(), and TridPage::ViewMenuHandler(). 00079 { return fEntries; }
|
|
||||||||||||||||
|
Definition at line 73 of file GuiMenu.cxx. References fEntries, fSubMenus, and GuiMenuEntry::SetEntry(). 00075 {
00076 menu.GuiBase::SetName(label);
00077
00078 GuiMenuEntry* gme = manage(new GuiMenuEntry);
00079 fSubMenus.push_back(&menu);
00080
00081 if (gmitr == fEntries.end())
00082 this->AddPopup(label,&menu);
00083 else
00084 this->AddPopup(label,&menu,(*gmitr)->GetEntry());
00085 gme->SetEntry(this->GetEntry(label));
00086 return fEntries.insert(gmitr,gme);
00087 }
|
|
||||||||||||||||
|
Definition at line 57 of file GuiMenu.cxx. References GuiMenuEntry::Connect(), fEntries, s(), and GuiMenuEntry::SetEntry(). 00059 {
00060 GuiMenuEntry* gme = manage(new GuiMenuEntry);
00061 gme->Connect(s);
00062
00063 int id = (int)gme; // evil
00064
00065 if (gmitr == fEntries.end())
00066 this->AddEntry(label,id);
00067 else
00068 this->AddEntry(label,id,0,0,(*gmitr)->GetEntry());
00069 gme->SetEntry(this->GetEntry(id));
00070 return fEntries.insert(gmitr,gme);
00071 }
|
|
||||||||||||
|
Definition at line 43 of file GuiMenu.cxx. References fEntries, and GuiMenuEntry::SetEntry(). Referenced by Add(), and insert_menu(). 00044 {
00045 GuiMenuEntry* gme = manage(new GuiMenuEntry);
00046
00047 int id = (int)gme; // evil
00048
00049 if (gmitr == fEntries.end())
00050 this->AddEntry(label,id);
00051 else
00052 this->AddEntry(label,id,0,0,(*gmitr)->GetEntry());
00053 gme->SetEntry(this->GetEntry(id));
00054 return fEntries.insert(gmitr,gme);
00055 }
|
|
|
Definition at line 87 of file GuiMenu.h. 00087 { return false; } // don't use
|
|
|
Definition at line 98 of file GuiMenu.cxx. Referenced by GfxTrackListMenu::HideAll(), GfxStripListMenu::HideAll(), GfxShowerListMenu::HideAll(), GfxMCVecListMenu::HideAll(), GfxDigitListMenu::HideAll(), MultiPage::ToggleRealCoords(), EVD::ToggleRealCoords(), and EVD::ToggleTimeZoom(). 00099 {
00100 GuiMenuEntry* gme = *mit;
00101 return this->TGPopupMenu::IsEntryChecked((int)gme);
00102 }
|
|
|
Definition at line 89 of file GuiMenu.h. Referenced by Add(), ClearAll(), Insert(), and ~GuiMenu(). |
|
|
Definition at line 90 of file GuiMenu.h. Referenced by ClearAll(), and Insert(). |
1.3.9.1