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

Public Member Functions | |
| GfxStripListMenu () | |
| virtual | ~GfxStripListMenu () |
| GuiMenu * | MakeMenu (EVD *mp) |
| GfxStripListMenu () | |
| virtual | ~GfxStripListMenu () |
| GuiMenu * | MakeMenu (MultiPage *mp) |
Private Member Functions | |
| void | HideAll (GuiMenu *menu, GuiMenu::GuiMenuList::iterator mit) |
| void | HideAll (GuiMenu *menu, GuiMenu::GuiMenuList::iterator mit) |
Contact: bv@bnl.gov
Created on: Thu Oct 17 15:45:47 2002
Definition at line 23 of file EventDisplay/GfxStripListMenu.h.
|
|
Definition at line 25 of file EventDisplay/GfxStripListMenu.h. 00025 {}
|
|
|
Definition at line 26 of file EventDisplay/GfxStripListMenu.h. 00026 {}
|
|
|
Definition at line 25 of file Midad/MultiPage/GfxStripListMenu.h. 00025 {}
|
|
|
Definition at line 26 of file Midad/MultiPage/GfxStripListMenu.h. 00026 {}
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 33 of file EventDisplay/GfxStripListMenu.cxx. References GuiMenu::CheckEntry(), done(), GfxProxy< T >::GetInstances(), NamedFactory::GetProxy(), NamedFactory::Instance(), and GuiMenu::IsEntryChecked(). Referenced by MakeMenu(). 00034 {
00035 NamedFactory& nf = NamedFactory::Instance("Gfx");
00036 NamedProxy* np = nf.GetProxy("StripList");
00037
00038 GfxProxy<GfxStripList>* gp = dynamic_cast<GfxProxy<GfxStripList>*>(np);
00039 if (!gp) {
00040 cerr << "Can't get GfxStripList proxy\n";
00041 return;
00042 }
00043
00044 list<GfxStripList*> dls = gp->GetInstances();
00045 list<GfxStripList*>::iterator lit, done = dls.end();
00046
00047 bool tf = ! menu->IsEntryChecked(mit);
00048
00049 menu->CheckEntry(mit,tf);
00050 for (lit = dls.begin(); lit != done; ++lit)
00051 (*lit)->HideStrips(tf);
00052 }
|
|
|
GfxStripListMenu Implements GfxMenu. Definition at line 19 of file Midad/MultiPage/GfxStripListMenu.cxx. References GuiMenu::Add(), and HideAll(). 00020 {
00021 GuiMenu::GuiMenuList::iterator mit;
00022
00023 GuiMenu* gfx_menu = new GuiMenu;
00024 mit = gfx_menu->Add("Hide all");
00025 (*mit)->Connect(bind(slot_class(*this,&GfxStripListMenu::HideAll),gfx_menu,mit));
00026
00027 return gfx_menu;
00028 }
|
|
|
GfxStripListMenu Implements GfxMenu. Definition at line 19 of file EventDisplay/GfxStripListMenu.cxx. References GuiMenu::Add(), and HideAll(). 00020 {
00021 GuiMenu::GuiMenuList::iterator mit;
00022
00023 GuiMenu* gfx_menu = new GuiMenu;
00024 mit = gfx_menu->Add("Hide all");
00025 (*mit)->Connect(bind(slot_class(*this,&GfxStripListMenu::HideAll),gfx_menu,mit));
00026
00027 // hide at program start
00028
00029 HideAll(gfx_menu,mit);
00030
00031 return gfx_menu;
00032 }
|
1.3.9.1