#include <FWTriggerTableViewManager.h>
Public Member Functions | |
void | addTo (FWConfiguration &) const |
FWViewBase * | buildView (TEveWindowSlot *iParent, const std::string &type) |
FWTriggerTableViewManager (FWGUIManager *) | |
virtual void | newItem (const FWEventItem *) |
void | setFrom (const FWConfiguration &) |
virtual FWTypeToRepresentations | supportedTypesAndRepresentations () const |
virtual | ~FWTriggerTableViewManager () |
Protected Member Functions | |
virtual void | colorsChanged () |
virtual void | eventEnd () |
FWTriggerTableViewManager () | |
virtual void | modelChangesComing () |
virtual void | modelChangesDone () |
void | updateProcessList () |
Protected Attributes | |
std::vector< boost::shared_ptr < FWTriggerTableView > > | m_views |
Private Member Functions | |
void | beingDestroyed (const FWViewBase *) |
FWTriggerTableViewManager (const FWTriggerTableViewManager &) | |
const FWTriggerTableViewManager & | operator= (const FWTriggerTableViewManager &) |
Definition at line 22 of file FWTriggerTableViewManager.h.
FWTriggerTableViewManager::FWTriggerTableViewManager | ( | FWGUIManager * | iGUIMgr | ) |
Definition at line 30 of file FWTriggerTableViewManager.cc.
References buildView(), f, FWViewType::idToName(), FWViewType::kTableHLT, FWViewType::kTableL1, and FWGUIManager::registerViewBuilder().
: FWViewManagerBase() { FWGUIManager::ViewBuildFunctor f; f=boost::bind(&FWTriggerTableViewManager::buildView, this, _1, _2); iGUIMgr->registerViewBuilder(FWViewType::idToName(FWViewType::kTableHLT), f); iGUIMgr->registerViewBuilder(FWViewType::idToName(FWViewType::kTableL1), f); }
FWTriggerTableViewManager::~FWTriggerTableViewManager | ( | ) | [virtual] |
Definition at line 40 of file FWTriggerTableViewManager.cc.
{ }
FWTriggerTableViewManager::FWTriggerTableViewManager | ( | ) | [protected] |
FWTriggerTableViewManager::FWTriggerTableViewManager | ( | const FWTriggerTableViewManager & | ) | [private] |
void FWTriggerTableViewManager::addTo | ( | FWConfiguration & | ) | const [inline, virtual] |
void FWTriggerTableViewManager::beingDestroyed | ( | const FWViewBase * | iView | ) | [private] |
Definition at line 64 of file FWTriggerTableViewManager.cc.
References m_views.
Referenced by buildView().
class FWViewBase * FWTriggerTableViewManager::buildView | ( | TEveWindowSlot * | iParent, |
const std::string & | type | ||
) |
Definition at line 45 of file FWTriggerTableViewManager.cc.
References beingDestroyed(), FWViewManagerBase::colorManager(), FWViewManagerBase::context(), FWViewType::kTableHLT, m_views, and FWViewType::sName.
Referenced by FWTriggerTableViewManager().
{ boost::shared_ptr<FWTriggerTableView> view; if (type == FWViewType::sName[FWViewType::kTableHLT]) view.reset( new FWHLTTriggerTableView(iParent)); else view.reset( new FWL1TriggerTableView(iParent)); view->setProcessList(&(context().metadataManager()->processNamesInJob())); view->setBackgroundColor(colorManager().background()); m_views.push_back(boost::shared_ptr<FWTriggerTableView> (view)); view->beingDestroyed_.connect(boost::bind(&FWTriggerTableViewManager::beingDestroyed, this,_1)); return view.get(); }
void FWTriggerTableViewManager::colorsChanged | ( | ) | [protected, virtual] |
Implements FWViewManagerBase.
Definition at line 78 of file FWTriggerTableViewManager.cc.
References FWViewManagerBase::colorManager(), and m_views.
{ for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it= m_views.begin(), itEnd = m_views.end(); it != itEnd; ++it) { (*it)->setBackgroundColor(colorManager().background()); } }
void FWTriggerTableViewManager::eventEnd | ( | ) | [protected, virtual] |
Reimplemented from FWViewManagerBase.
Definition at line 89 of file FWTriggerTableViewManager.cc.
References m_views.
virtual void FWTriggerTableViewManager::modelChangesComing | ( | ) | [inline, protected, virtual] |
called when models have changed and so the display must be updated
Implements FWViewManagerBase.
Definition at line 44 of file FWTriggerTableViewManager.h.
{}
virtual void FWTriggerTableViewManager::modelChangesDone | ( | ) | [inline, protected, virtual] |
virtual void FWTriggerTableViewManager::newItem | ( | const FWEventItem * | ) | [inline, virtual] |
const FWTriggerTableViewManager& FWTriggerTableViewManager::operator= | ( | const FWTriggerTableViewManager & | ) | [private] |
void FWTriggerTableViewManager::setFrom | ( | const FWConfiguration & | ) | [inline, virtual] |
virtual FWTypeToRepresentations FWTriggerTableViewManager::supportedTypesAndRepresentations | ( | ) | const [inline, virtual] |
Implements FWViewManagerBase.
Definition at line 29 of file FWTriggerTableViewManager.h.
{ return FWTypeToRepresentations();}
void FWTriggerTableViewManager::updateProcessList | ( | ) | [protected] |
Definition at line 100 of file FWTriggerTableViewManager.cc.
References FWViewManagerBase::context(), and m_views.
std::vector<boost::shared_ptr<FWTriggerTableView> > FWTriggerTableViewManager::m_views [protected] |
Definition at line 52 of file FWTriggerTableViewManager.h.
Referenced by beingDestroyed(), buildView(), colorsChanged(), eventEnd(), and updateProcessList().