GfxDigitListMenu Class Reference

#include <GfxDigitListMenu.h>

Inheritance diagram for GfxDigitListMenu:
GfxMenu GfxMenu

List of all members.

Public Member Functions

 GfxDigitListMenu ()
virtual ~GfxDigitListMenu ()
GuiMenuMakeMenu (EVD *mp)
 GfxDigitListMenu ()
virtual ~GfxDigitListMenu ()
GuiMenuMakeMenu (MultiPage *mp)

Private Member Functions

void HideAll (GuiMenu *menu, GuiMenu::GuiMenuList::iterator mit)
void HideAll (GuiMenu *menu, GuiMenu::GuiMenuList::iterator mit)

Detailed Description

Id
GfxDigitListMenu.h,v 1.1 2003/05/21 20:59:53 musser Exp
Id
GfxDigitListMenu.h,v 1.6 2003/01/02 18:30:10 bv Exp

Definition at line 24 of file EventDisplay/HEAD/GfxDigitListMenu.h.


Constructor & Destructor Documentation

GfxDigitListMenu::GfxDigitListMenu (  )  [inline]

Definition at line 26 of file EventDisplay/HEAD/GfxDigitListMenu.h.

00026 {}

virtual GfxDigitListMenu::~GfxDigitListMenu (  )  [inline, virtual]

Definition at line 27 of file EventDisplay/HEAD/GfxDigitListMenu.h.

00027 {}

GfxDigitListMenu::GfxDigitListMenu (  )  [inline]

Definition at line 25 of file Midad/HEAD/MultiPage/GfxDigitListMenu.h.

00025 {}

virtual GfxDigitListMenu::~GfxDigitListMenu (  )  [inline, virtual]

Definition at line 26 of file Midad/HEAD/MultiPage/GfxDigitListMenu.h.

00026 {}


Member Function Documentation

void GfxDigitListMenu::HideAll ( GuiMenu menu,
GuiMenu::GuiMenuList::iterator  mit 
) [private]
void GfxDigitListMenu::HideAll ( GuiMenu menu,
GuiMenu::GuiMenuList::iterator  mit 
) [private]

Definition at line 31 of file EventDisplay/HEAD/GfxDigitListMenu.cxx.

References GuiMenu::CheckEntry(), done(), GfxProxy< T >::GetInstances(), NamedFactory::GetProxy(), NamedFactory::Instance(), and GuiMenu::IsEntryChecked().

Referenced by MakeMenu().

00032 {
00033     NamedFactory& nf = NamedFactory::Instance("Gfx");
00034     NamedProxy* np = nf.GetProxy("DigitList");
00035 
00036     GfxProxy<GfxDigitList>* gp = dynamic_cast<GfxProxy<GfxDigitList>*>(np);
00037     if (!gp) {
00038         cerr << "Can't get GfxDigitList proxy\n";
00039         return;
00040     }
00041 
00042     list<GfxDigitList*> dls = gp->GetInstances();
00043     list<GfxDigitList*>::iterator lit, done = dls.end();
00044 
00045     bool tf = ! menu->IsEntryChecked(mit);
00046 
00047     menu->CheckEntry(mit,tf);
00048     for (lit = dls.begin(); lit != done; ++lit)
00049         (*lit)->HideDigits(tf);
00050 }

GuiMenu * GfxDigitListMenu::MakeMenu ( MultiPage mp  )  [virtual]

GfxDigitListMenu

Implements GfxMenu.

Definition at line 20 of file Midad/HEAD/MultiPage/GfxDigitListMenu.cxx.

References GuiMenu::Add(), and HideAll().

00021 {
00022     GuiMenu::GuiMenuList::iterator mit;
00023 
00024     GuiMenu* gfx_menu = new GuiMenu;
00025     mit = gfx_menu->Add("Hide all");
00026     (*mit)->Connect(bind(slot_class(*this,&GfxDigitListMenu::HideAll),gfx_menu,mit));
00027 
00028     return gfx_menu;
00029 }

GuiMenu * GfxDigitListMenu::MakeMenu ( EVD mp  )  [virtual]

GfxDigitListMenu

Implements GfxMenu.

Definition at line 19 of file EventDisplay/HEAD/GfxDigitListMenu.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,&GfxDigitListMenu::HideAll),gfx_menu,mit));
00026     //    HideAll(gfx_menu,mit);
00027     return gfx_menu;
00028 }


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1