GfxStripListMenu Class Reference

#include <GfxStripListMenu.h>

Inheritance diagram for GfxStripListMenu:
GfxMenu GfxMenu

List of all members.

Public Member Functions

 GfxStripListMenu ()
virtual ~GfxStripListMenu ()
GuiMenuMakeMenu (EVD *mp)
 GfxStripListMenu ()
virtual ~GfxStripListMenu ()
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
GfxStripListMenu.h,v 1.1 2003/05/21 20:59:54 musser Exp
Id
GfxStripListMenu.h,v 1.3 2003/01/02 18:30:10 bv Exp

Definition at line 23 of file EventDisplay/HEAD/GfxStripListMenu.h.


Constructor & Destructor Documentation

GfxStripListMenu::GfxStripListMenu (  )  [inline]

Definition at line 25 of file EventDisplay/HEAD/GfxStripListMenu.h.

00025 {}

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

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

00026 {}

GfxStripListMenu::GfxStripListMenu (  )  [inline]

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

00025 {}

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

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

00026 {}


Member Function Documentation

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

Definition at line 33 of file EventDisplay/HEAD/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 }

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

GfxStripListMenu

Implements GfxMenu.

Definition at line 19 of file Midad/HEAD/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 }

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

GfxStripListMenu

Implements GfxMenu.

Definition at line 19 of file EventDisplay/HEAD/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 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1