#include <Fireworks/Core/interface/FWTableViewManager.h>
Classes | |
struct | TableEntry |
class | TableHandle |
Public Types | |
typedef std::vector< const FWEventItem * > | Items |
typedef std::vector< TableEntry > | TableEntries |
typedef std::map< std::string, TableEntries > | TableSpecs |
Public Member Functions | |
void | addTo (FWConfiguration &) const override |
void | addToImpl (FWConfiguration &) const |
FWViewBase * | buildView (TEveWindowSlot *iParent, const std::string &type) |
void | destroyItem (const FWEventItem *item) |
FWTableViewManager (FWGUIManager *) | |
const Items & | items () const |
void | newItem (const FWEventItem *) override |
void | notifyViews () |
void | removeAllItems (void) |
void | setFrom (const FWConfiguration &) override |
FWTypeToRepresentations | supportedTypesAndRepresentations () const override |
TableSpecs::iterator | tableFormats (const edm::TypeWithDict &key) |
TableSpecs::iterator | tableFormats (const TClass &key) |
~FWTableViewManager () override | |
Public Member Functions inherited from FWViewManagerBase | |
void | colorsChangedSlot () |
const fireworks::Context & | context () const |
virtual void | eventBegin () |
virtual void | eventEnd () |
void | modelChangesComingSlot () |
void | modelChangesDoneSlot () |
void | setChangeManager (FWModelChangeManager *iCM) |
void | setColorManager (FWColorManager *iCM) |
virtual void | setContext (const fireworks::Context *x) |
virtual | ~FWViewManagerBase () |
Public Member Functions inherited from FWConfigurable | |
FWConfigurable () | |
virtual | ~FWConfigurable () |
Static Public Attributes | |
static const std::string | kConfigColumns |
static const std::string | kConfigTypeNames = "typeNames" |
Protected Types | |
typedef std::vector< std::shared_ptr< FWTableView > > | Views |
Protected Member Functions | |
void | colorsChanged () override |
void | dataChanged () |
FWTableViewManager () | |
void | modelChangesComing () override |
void | modelChangesDone () override |
Protected Member Functions inherited from FWViewManagerBase | |
FWModelChangeManager & | changeManager () const |
FWColorManager & | colorManager () const |
void * | createInstanceOf (const TClass *iBaseClass, const char *iNameOfClass) |
FWViewManagerBase () | |
Protected Attributes | |
Items | m_items |
TableSpecs | m_tableFormats |
Views | m_views |
Private Member Functions | |
void | beingDestroyed (const FWViewBase *) |
FWTableViewManager (const FWTableViewManager &) | |
const FWTableViewManager & | operator= (const FWTableViewManager &) |
TableHandle | table (const char *collection) |
TableSpecs::iterator | tableFormatsImpl (const edm::TypeWithDict &key) |
Friends | |
class | FWTableView |
class | FWTableViewTableManager |
Description: Base class for a Manger for a specific type of View
Usage: <usage>
Definition at line 38 of file FWTableViewManager.h.
typedef std::vector<const FWEventItem *> FWTableViewManager::Items |
Container for the event items which have a table.
Definition at line 51 of file FWTableViewManager.h.
typedef std::vector<TableEntry> FWTableViewManager::TableEntries |
Container for the description of the columns of a given table.
Definition at line 53 of file FWTableViewManager.h.
typedef std::map<std::string, TableEntries> FWTableViewManager::TableSpecs |
Type for the collection specific (i.e. those that do not use default) table definition.
Definition at line 56 of file FWTableViewManager.h.
|
protected |
Definition at line 91 of file FWTableViewManager.h.
FWTableViewManager::FWTableViewManager | ( | FWGUIManager * | iGUIMgr | ) |
Definition at line 46 of file FWTableViewManager.cc.
References FWTableViewManager::TableEntry::BOOL, buildView(), f, FWViewType::idToName(), FWTableViewManager::TableEntry::INT, FWViewType::kTable, FWGUIManager::registerViewBuilder(), and table().
|
override |
Definition at line 214 of file FWTableViewManager.cc.
|
protected |
|
private |
|
overridevirtual |
Implements FWConfigurable.
Definition at line 487 of file FWTableViewManager.cc.
References addToImpl(), and m_views.
Referenced by items().
void FWTableViewManager::addToImpl | ( | FWConfiguration & | iTo | ) | const |
Definition at line 501 of file FWTableViewManager.cc.
References FWConfiguration::addKeyValue(), FWConfiguration::addValue(), mps_check::columns, mps_splice::entry, FWTableViewManager::TableEntry::expression, kConfigTypeNames, m_tableFormats, FWTableViewManager::TableEntry::name, FWTableViewManager::TableEntry::precision, AlCaHLTBitMon_QueryRunRegistry::string, and FWViewBase::typeName().
Referenced by FWTableView::addTo(), addTo(), and items().
|
private |
Definition at line 380 of file FWTableViewManager.cc.
References m_views.
Referenced by buildView().
class FWViewBase * FWTableViewManager::buildView | ( | TEveWindowSlot * | iParent, |
const std::string & | type | ||
) |
Definition at line 368 of file FWTableViewManager.cc.
References beingDestroyed(), FWViewManagerBase::colorManager(), and m_views.
Referenced by FWTableViewManager().
|
overrideprotectedvirtual |
Notify all the views that colors have changed
Implements FWViewManagerBase.
Definition at line 464 of file FWTableViewManager.cc.
References FWViewManagerBase::colorManager(), MillePedeFileConverter_cfg::e, mps_fire::i, and m_views.
|
protected |
Definition at line 471 of file FWTableViewManager.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, and m_views.
Referenced by FWTableView::addColumn(), FWTableView::deleteColumn(), modelChangesDone(), and FWTableView::modifyColumn().
void FWTableViewManager::destroyItem | ( | const FWEventItem * | iItem | ) |
Remove iItem from the list
iItem the item to be removed.
Definition at line 421 of file FWTableViewManager.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, m_items, and notifyViews().
Referenced by newItem().
|
inline |
Definition at line 70 of file FWTableViewManager.h.
References addTo(), addToImpl(), crabWrapper::key, m_items, notifyViews(), setFrom(), and tableFormats().
Referenced by FWTableView::addTo(), FWTableView::item(), python.rootplot.core.Options::kwarg_list(), FWTableView::selectCollection(), FWTableView::setFrom(), FWTableViewTableManager::updateEvaluators(), and FWTableView::updateItems().
|
overrideprotectedvirtual |
Called when models have changed and so the display must be updated.
Implements FWViewManagerBase.
Definition at line 447 of file FWTableViewManager.cc.
|
overrideprotectedvirtual |
Implements FWViewManagerBase.
Definition at line 453 of file FWTableViewManager.cc.
References dataChanged().
|
overridevirtual |
Implements FWViewManagerBase.
Definition at line 395 of file FWTableViewManager.cc.
References destroyItem(), FWEventItem::goingToBeDestroyed_, m_items, and notifyViews().
void FWTableViewManager::notifyViews | ( | void | ) |
Tell the views to update their item list.
Definition at line 405 of file FWTableViewManager.cc.
References FWTableView::dataChanged(), MillePedeFileConverter_cfg::e, mps_fire::i, m_views, and FWTableView::updateItems().
Referenced by destroyItem(), items(), newItem(), and removeAllItems().
|
private |
void FWTableViewManager::removeAllItems | ( | void | ) |
Remove all items present in the view.
This should watch the FWEventItemsManager::goingToClearItems_ signal.
Definition at line 440 of file FWTableViewManager.cc.
References m_items, and notifyViews().
Referenced by CmsShowMainBase::setupViewManagers().
|
overridevirtual |
Implements FWConfigurable.
Definition at line 528 of file FWTableViewManager.cc.
References FWTableViewManager::TableHandle::column(), mps_check::columns, jets_cff::expr, fwLog, cmsBatch::handle, kConfigTypeNames, fwlog::kWarning, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, FWConfiguration::stringValues(), table(), and FWConfiguration::valueForKey().
Referenced by items(), and FWTableView::setFrom().
|
overridevirtual |
Implements FWViewManagerBase.
Definition at line 478 of file FWTableViewManager.cc.
References kConfigTypeNames, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Define a new table for type name
name the typename of the object contained in the table.
If a table with the same name is already there, its entries are reset.
Definition at line 235 of file FWTableViewManager.cc.
References cmsBatch::handle, and m_tableFormats.
Referenced by FWTableViewManager(), setFrom(), and tableFormats().
FWTableViewManager::TableSpecs::iterator FWTableViewManager::tableFormats | ( | const edm::TypeWithDict & | key | ) |
Find the entries for a given type key, possibly recursively searching recursively in the class hierarchy for a base class that matches.
key the edm::TypeWithDict of the collection for which we want to have the key definition.
FIXME: how about actually inspecting the type and show all the int and floats if no description is found??
Definition at line 297 of file FWTableViewManager.cc.
References FWTableViewManager::TableEntry::BOOL, FWTableViewManager::TableHandle::column(), edm::FunctionWithDict::finalReturnType(), edm::FunctionWithDict::functionParameterSize(), cmsBatch::handle, FWTableViewManager::TableEntry::INT, edm::MemberWithDict::isConst(), edm::FunctionWithDict::isConst(), edm::MemberWithDict::isPublic(), edm::FunctionWithDict::isPublic(), funct::m, m_tableFormats, edm::MemberWithDict::name(), edm::FunctionWithDict::name(), edm::TypeWithDict::name(), AlCaHLTBitMon_QueryRunRegistry::string, table(), tableFormatsImpl(), and edm::MemberWithDict::typeOf().
Referenced by items(), FWTableView::selectCollection(), and tableFormats().
FWTableViewManager::TableSpecs::iterator FWTableViewManager::tableFormats | ( | const TClass & | key | ) |
Helper function which uses TClass rather than edm::TypeWithDict.
Otherwise identical to FWTableViewManager::tableFormats(const TClass &key).
Definition at line 362 of file FWTableViewManager.cc.
References edm::TypeWithDict::byName(), and tableFormats().
|
private |
Helper function to do recursive lookup of specialized table description for a given type key.
Definition at line 265 of file FWTableViewManager.cc.
References runEdmFileComparison::base, m_tableFormats, and edm::TypeWithDict::name().
Referenced by tableFormats().
|
friend |
Definition at line 40 of file FWTableViewManager.h.
|
friend |
Definition at line 41 of file FWTableViewManager.h.
|
static |
Definition at line 80 of file FWTableViewManager.h.
|
static |
Definition at line 79 of file FWTableViewManager.h.
Referenced by addToImpl(), setFrom(), and supportedTypesAndRepresentations().
|
protected |
Definition at line 94 of file FWTableViewManager.h.
Referenced by destroyItem(), items(), newItem(), and removeAllItems().
|
protected |
Definition at line 95 of file FWTableViewManager.h.
Referenced by addToImpl(), FWTableView::selectCollection(), table(), tableFormats(), and tableFormatsImpl().
|
protected |
Definition at line 93 of file FWTableViewManager.h.
Referenced by FWTableView::addTo(), addTo(), beingDestroyed(), buildView(), colorsChanged(), dataChanged(), notifyViews(), and FWTableView::setFrom().