#include <Fireworks/FWInterface/interface/FWPSetTableManager.h>
Classes | |
struct | ModuleInfo |
struct | PathInfo |
struct | PathUpdate |
struct | PSetData |
Public Member Functions | |
bool | cellDataIsSortable () const override |
FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const override |
std::vector< PSetData > & | data () |
FWPSetTableManager () | |
FWPSetTableManager (const FWPSetTableManager &)=delete | |
std::vector< std::string > | getTitles () const override |
returns the title names for each column More... | |
void | implSort (int, bool) override |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'. More... | |
std::vector< unsigned int > | maxWidthForColumns () const override |
for each column in the table this returns the present maximum width for that column More... | |
int | numberOfColumns () const override |
Number of columns in the table. More... | |
int | numberOfRows () const override |
Number of rows in the table. More... | |
const FWPSetTableManager & | operator= (const FWPSetTableManager &)=delete |
virtual bool | rowIsSelected (int row) const |
std::vector< int > & | rowToIndex () |
int | selectedColumn () const |
int | selectedRow () const |
virtual const std::string | title () const |
int | unsortedRowNumber (int unsorted) const override |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data More... | |
virtual void | updateFilter (const char *filter) |
~FWPSetTableManager () override | |
Public Member Functions inherited from FWTableManagerBase | |
virtual void | buttonPressedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY) |
Called if mouse button pressed in Row Header, defaults is to do nothing. More... | |
virtual void | buttonReleasedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY) |
virtual unsigned int | cellHeight () const |
require all cells to be the same height More... | |
ClassDefOverride (FWTableManagerBase, 0) | |
void | dataChanged () |
Classes which inherit from FWTableManagerBase must call this when their underlying data changes. More... | |
FWTableManagerBase () | |
virtual bool | hasLabelHeaders () const |
virtual bool | hasRowHeaders () const |
Returns 'true' if this table has row headers. Defaults return value is false. More... | |
virtual FWTableCellRendererBase * | rowHeader (int iSortedRowNumber) const |
Returns the renderer for the row header for the sorted row number iSortedRowNumber. More... | |
void | sort (int iCol, bool iSortOrder) |
Call to have table sorted on values in column iCol with the sort order being descending if iSortOrder is 'true'. More... | |
int | sortColumn (void) |
The current sort column. More... | |
bool | sortOrder (void) |
The current sort order for the table. More... | |
void | visualPropertiesChanged () |
Classes which inherit from FWTableManagerBase must call this when how the data is shown (e.g. color) changes. More... | |
~FWTableManagerBase () override | |
Protected Member Functions | |
bool | applyEditor () |
void | cancelEditor () |
std::vector< PSetData > & | entries () |
std::vector< ModuleInfo > & | modules () |
void | setExpanded (int row) |
void | setSelection (int row, int column, int mask) |
void | update (std::vector< PathUpdate > &pathUpdates) |
void | updateSchedule (const edm::ScheduleInfo *info) |
Private Member Functions | |
template<class T > | |
void | createScalarString (PSetData &data, T v) |
template<typename T > | |
void | createVectorString (FWPSetTableManager::PSetData &data, const T &v, bool quotes) |
void | handleEntry (const edm::Entry &entry, const std::string &key) |
void | handlePSet (edm::ParameterSet *psp) |
void | handlePSetEntry (edm::ParameterSetEntry &entry, const std::string &key) |
void | handleVPSetEntry (edm::VParameterSetEntry &entry, const std::string &key) |
void | recalculateVisibility () |
void | setCellValueEditor (FWPSetCellEditor *editor) |
Private Attributes | |
std::vector< std::string > | m_availablePaths |
FWPSetCellEditor * | m_editor |
std::vector< PSetData > | m_entries |
std::string | m_filter |
std::vector< ModuleInfo > | m_modules |
std::vector< size_t > | m_parentStack |
std::map< std::string, size_t > | m_pathIndex |
std::vector< PathInfo > | m_paths |
FWTextTreeCellRenderer | m_renderer |
std::vector< int > | m_row_to_index |
int | m_selectedColumn |
int | m_selectedRow |
Friends | |
class | FWPathsPopup |
Description: [one line class summary]
Usage: <usage>
Definition at line 33 of file FWPSetTableManager.h.
FWPSetTableManager::FWPSetTableManager | ( | ) |
Definition at line 86 of file FWPSetTableManager.cc.
References FWTextTableCellRenderer::getDefaultHighlightGC(), m_renderer, recalculateVisibility(), FWTextTableCellRenderer::setHighlightContext(), and FWTableManagerBase::visualPropertiesChanged().
|
override |
Definition at line 96 of file FWPSetTableManager.cc.
|
delete |
|
protected |
This is invoked every single time the editor contents must be applied to the selected entry in the pset.
Definition at line 519 of file FWPSetTableManager.cc.
References FWPSetCellEditor::apply(), data(), alignCSCRings::e, m_editor, m_entries, m_modules, m_row_to_index, m_selectedColumn, m_selectedRow, FWPSetTableManager::PSetData::module, SpecificationBuilder_cfi::parent(), FWPSetTableManager::PSetData::parent, setSelection(), summarizeEdmComparisonLogfiles::success, and FWPSetTableManager::PSetData::value.
Referenced by FWPathsPopup::applyEditor(), and FWPathsPopup::updateFilterString().
|
protected |
Does not apply changes and closes window.
Definition at line 506 of file FWPSetTableManager.cc.
References m_editor, and setSelection().
Referenced by FWPathsPopup::HandleKey().
|
inlineoverridevirtual |
Reimplemented from FWTableManagerBase.
Definition at line 100 of file FWPSetTableManager.h.
|
overridevirtual |
Returns the particular renderer used to handle the requested cell. Arguments: iSortedRowNumber: the row number from the present sort (i.e. the cell number of the view) iCol: the column number of the cell. The returned value must be used immediately and not held onto since the same Renderer can be used for subsequent calls
Implements FWTableManagerBase.
Definition at line 642 of file FWPSetTableManager.cc.
References fireworks::boldGC(), FWPSetTableManager::PSetData::childMatches, data(), FWPSetTableManager::PSetData::editable, FWPSetTableManager::PSetData::expandedFilter, FWPSetTableManager::PSetData::expandedUser, fwLog, FWTextTableCellRenderer::getDefaultGC(), FWTextTreeCellRenderer::iconWidth(), dataformats::indent(), fireworks::italicGC(), fwlog::kWarning, label, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::level, m_entries, m_filter, m_modules, m_paths, m_renderer, m_row_to_index, m_selectedColumn, m_selectedRow, FWPSetTableManager::PSetData::matches, reco_skim_cfg_mod::maxSize, callgraph::module, FWPSetTableManager::PSetData::module, FWPSetTableManager::ModuleInfo::passed, FWPSetTableManager::PathInfo::passed, fed_dqm_sourceclient-live_cfg::path, FWPSetTableManager::PSetData::path, DivergingColor::red, FWTextTableCellRenderer::setData(), FWTextTableCellRenderer::setGraphicsContext(), FWTextTreeCellRenderer::setIndentation(), FWTextTreeCellRenderer::setIsOpen(), FWTextTreeCellRenderer::setIsParent(), FWTextTreeCellRenderer::showEditor(), AlCaHLTBitMon_QueryRunRegistry::string, TypeTrans::table_, FWPSetTableManager::PSetData::type, relativeConstraints::value, and FWPSetTableManager::PSetData::value.
Definition at line 174 of file FWPSetTableManager.cc.
References m_entries, contentValuesCheck::ss, findQualityFiles::v, and FWPSetTableManager::PSetData::value.
Referenced by handleEntry().
|
private |
Definition at line 182 of file FWPSetTableManager.cc.
References cuy::ii, m_entries, contentValuesCheck::ss, and FWPSetTableManager::PSetData::value.
Referenced by handleEntry().
|
inline |
Definition at line 106 of file FWPSetTableManager.h.
References m_entries.
Referenced by applyEditor(), FWPathsPopup::cellClicked(), cellRenderer(), handleEntry(), handlePSetEntry(), handleVPSetEntry(), recalculateVisibility(), setExpanded(), setSelection(), and updateFilter().
|
inlineprotected |
Definition at line 144 of file FWPSetTableManager.h.
References m_entries.
Referenced by FWPathsPopup::scheduleReloadEvent().
|
overridevirtual |
returns the title names for each column
Implements FWTableManagerBase.
Definition at line 557 of file FWPSetTableManager.cc.
References numberOfColumns().
|
private |
Definition at line 199 of file FWPSetTableManager.cc.
References createScalarString(), createVectorString(), data(), FWPSetTableManager::PSetData::editable, edm::InputTag::encode(), edm::ESInputTag::encode(), edm::Entry::getBool(), edm::Entry::getDouble(), edm::Entry::getESInputTag(), edm::Entry::getEventID(), edm::Entry::getEventRange(), edm::Entry::getFileInPath(), edm::Entry::getInputTag(), edm::Entry::getInt32(), edm::Entry::getLuminosityBlockID(), edm::Entry::getLuminosityBlockRange(), edm::Entry::getString(), edm::Entry::getUInt32(), edm::Entry::getUInt64(), edm::Entry::getVDouble(), edm::Entry::getVESInputTag(), edm::Entry::getVEventID(), edm::Entry::getVEventRange(), edm::Entry::getVInputTag(), edm::Entry::getVInt32(), edm::Entry::getVInt64(), edm::Entry::getVLuminosityBlockID(), edm::Entry::getVLuminosityBlockRange(), edm::Entry::getVString(), edm::Entry::getVUInt32(), edm::Entry::getVUInt64(), edm::Entry::isTracked(), submitPVResolutionJobs::key, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::level, m_entries, m_modules, m_parentStack, FWPSetTableManager::PSetData::module, FWPSetTableManager::PSetData::parent, diffTwoXMLs::ranges, edm::FileInPath::relativePath(), contentValuesCheck::ss, getPayloadData::tags, FWPSetTableManager::PSetData::tracked, FWPSetTableManager::PSetData::type, edm::Entry::typeCode(), and FWPSetTableManager::PSetData::value.
Referenced by handlePSet().
|
private |
Definition at line 157 of file FWPSetTableManager.cc.
References alignCSCRings::e, handleEntry(), handlePSetEntry(), handleVPSetEntry(), mps_fire::i, edm::ParameterSet::psetTable(), edm::ParameterSet::tbl(), and edm::ParameterSet::vpsetTable().
Referenced by handlePSetEntry(), handleVPSetEntry(), and updateSchedule().
|
private |
Definition at line 104 of file FWPSetTableManager.cc.
References data(), FWPSetTableManager::PSetData::editable, handlePSet(), edm::ParameterSetEntry::isTracked(), submitPVResolutionJobs::key, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::level, m_entries, m_modules, m_parentStack, m_paths, FWPSetTableManager::PSetData::module, FWPSetTableManager::PSetData::parent, FWPSetTableManager::PSetData::path, FWPSetTableManager::PSetData::pset, edm::ParameterSetEntry::psetForUpdate(), FWPSetTableManager::PSetData::tracked, and FWPSetTableManager::PSetData::type.
Referenced by handlePSet().
|
private |
Definition at line 122 of file FWPSetTableManager.cc.
References data(), alignCSCRings::e, FWPSetTableManager::PSetData::editable, handlePSet(), mps_fire::i, edm::VParameterSetEntry::isTracked(), submitPVResolutionJobs::key, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::level, m_entries, m_modules, m_parentStack, m_paths, FWPSetTableManager::PSetData::module, FWPSetTableManager::PSetData::parent, FWPSetTableManager::PSetData::path, FWPSetTableManager::PSetData::pset, contentValuesCheck::ss, FWPSetTableManager::PSetData::tracked, FWPSetTableManager::PSetData::type, edm::VParameterSetEntry::vpset(), and edm::VParameterSetEntry::vpsetForUpdate().
Referenced by handlePSet().
|
overridevirtual |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.
Implements FWTableManagerBase.
Definition at line 617 of file FWPSetTableManager.cc.
Referenced by update().
|
overridevirtual |
for each column in the table this returns the present maximum width for that column
Reimplemented from FWTableManagerBase.
Definition at line 606 of file FWPSetTableManager.cc.
References FWTableManagerBase::cellHeight(), m_editor, and FWTableManagerBase::maxWidthForColumns().
|
inlineprotected |
Definition at line 143 of file FWPSetTableManager.h.
References m_modules.
Referenced by FWPathsPopup::scheduleReloadEvent().
|
overridevirtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 575 of file FWPSetTableManager.cc.
Referenced by getTitles().
|
overridevirtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 573 of file FWPSetTableManager.cc.
References m_row_to_index.
|
delete |
|
private |
Definition at line 817 of file FWPSetTableManager.cc.
References FWPSetTableManager::PSetData::childMatches, data(), alignCSCRings::e, mps_fire::i, FWPSetTableManager::PSetData::level, m_entries, m_filter, m_row_to_index, FWPSetTableManager::PSetData::matches, FWPSetTableManager::PSetData::parent, and FWPSetTableManager::PSetData::visible.
Referenced by FWPSetTableManager(), setExpanded(), updateFilter(), and updateSchedule().
|
virtual |
|
inline |
Definition at line 107 of file FWPSetTableManager.h.
References m_row_to_index.
Referenced by FWPathsPopup::cellClicked(), and setExpanded().
int FWPSetTableManager::selectedColumn | ( | ) | const |
Definition at line 567 of file FWPSetTableManager.cc.
References m_selectedColumn.
Referenced by FWPathsPopup::cellClicked().
int FWPSetTableManager::selectedRow | ( | ) | const |
Definition at line 565 of file FWPSetTableManager.cc.
References m_selectedRow.
Referenced by FWPathsPopup::cellClicked().
|
private |
Definition at line 500 of file FWPSetTableManager.cc.
References m_editor, m_renderer, and FWTextTreeCellRenderer::setCellEditor().
Referenced by FWPathsPopup::FWPathsPopup().
|
protected |
Definition at line 620 of file FWPSetTableManager.cc.
References FWPSetTableManager::PSetData::childMatches, data(), FWTableManagerBase::dataChanged(), FWPSetTableManager::PSetData::expandedFilter, FWPSetTableManager::PSetData::expandedUser, m_entries, m_filter, recalculateVisibility(), rowToIndex(), and FWTableManagerBase::visualPropertiesChanged().
Referenced by FWPathsPopup::cellClicked().
|
protected |
Definition at line 577 of file FWPSetTableManager.cc.
References FWTableManagerBase::cellHeight(), data(), FWPSetTableManager::PSetData::editable, m_editor, m_entries, m_row_to_index, m_selectedColumn, m_selectedRow, FWPSetTableManager::PSetData::value, and FWTableManagerBase::visualPropertiesChanged().
Referenced by applyEditor(), cancelEditor(), FWPathsPopup::cellClicked(), FWPathsPopup::HandleKey(), and FWPathsPopup::updateFilterString().
|
virtual |
Definition at line 555 of file FWPSetTableManager.cc.
|
overridevirtual |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data
Implements FWTableManagerBase.
Definition at line 571 of file FWPSetTableManager.cc.
|
protected |
Update the status of a given path. This is the information that changes on event by event basis.
Definition at line 466 of file FWPSetTableManager.cc.
References FWPSetTableManager::PathUpdate::choiceMaker, fwLog, implSort(), fwlog::kError, m_modules, m_pathIndex, m_paths, hlt_dqm_clientPB-live_cfg::me, FWPSetTableManager::PathInfo::moduleEnd, FWPSetTableManager::PathInfo::moduleStart, FWPSetTableManager::ModuleInfo::passed, FWPSetTableManager::PathUpdate::passed, FWPSetTableManager::PathInfo::passed, FWPSetTableManager::PathUpdate::pathName, and pi.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), and FWPathsPopup::postEvent().
|
virtual |
Definition at line 742 of file FWPSetTableManager.cc.
References data(), FWTableManagerBase::dataChanged(), alignCSCRings::e, alcazmumu_cfi::filter, mps_fire::i, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::level, m_entries, m_filter, FWPSetTableManager::PSetData::matches, FWPSetTableManager::PSetData::parent, pi, recalculateVisibility(), svgfig::stack, and FWPSetTableManager::PSetData::value.
Referenced by FWPathsPopup::updateFilterString().
|
protected |
Definition at line 383 of file FWPSetTableManager.cc.
References cms::cuda::assert(), edm::ScheduleInfo::availablePaths(), FWPSetTableManager::ModuleInfo::current_pset, FWPSetTableManager::ModuleInfo::dirty, alignCSCRings::e, FWPSetTableManager::PSetData::editable, FWPSetTableManager::ModuleInfo::entry, FWPSetTableManager::PathInfo::entryId, handlePSet(), mps_fire::i, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::level, m_availablePaths, m_entries, m_filter, m_modules, m_parentStack, m_pathIndex, m_paths, hlt_dqm_clientPB-live_cfg::me, FWPSetTableManager::PSetData::module, edm::ScheduleInfo::modulesInPath(), FWPSetTableManager::PathInfo::moduleStart, FWPSetTableManager::ModuleInfo::orig_pset, edm::ScheduleInfo::parametersForModule(), FWPSetTableManager::PSetData::parent, FWPSetTableManager::ModuleInfo::passed, FWPSetTableManager::PathInfo::passed, FWPSetTableManager::PSetData::path, FWPSetTableManager::ModuleInfo::path, EgammaValidation_cff::pathName, FWPSetTableManager::PSetData::pset, recalculateVisibility(), AlCaHLTBitMon_QueryRunRegistry::string, edm::ParameterSet::tbl(), and FWPSetTableManager::PSetData::value.
Referenced by FWPathsPopup::postEvent().
|
friend |
Definition at line 34 of file FWPSetTableManager.h.
|
private |
Definition at line 185 of file FWPSetTableManager.h.
Referenced by updateSchedule().
|
private |
Definition at line 184 of file FWPSetTableManager.h.
Referenced by applyEditor(), cancelEditor(), FWPathsPopup::FWPathsPopup(), maxWidthForColumns(), setCellValueEditor(), and setSelection().
|
private |
Definition at line 174 of file FWPSetTableManager.h.
Referenced by applyEditor(), cellRenderer(), createScalarString(), createVectorString(), data(), entries(), handleEntry(), handlePSetEntry(), handleVPSetEntry(), recalculateVisibility(), setExpanded(), setSelection(), updateFilter(), and updateSchedule().
|
private |
Definition at line 183 of file FWPSetTableManager.h.
Referenced by cellRenderer(), recalculateVisibility(), setExpanded(), updateFilter(), and updateSchedule().
|
private |
Definition at line 177 of file FWPSetTableManager.h.
Referenced by applyEditor(), cellRenderer(), handleEntry(), handlePSetEntry(), handleVPSetEntry(), modules(), update(), and updateSchedule().
|
private |
Definition at line 179 of file FWPSetTableManager.h.
Referenced by handleEntry(), handlePSetEntry(), handleVPSetEntry(), and updateSchedule().
|
private |
Definition at line 178 of file FWPSetTableManager.h.
Referenced by update(), and updateSchedule().
|
private |
Index in m_entries where to find paths
Definition at line 176 of file FWPSetTableManager.h.
Referenced by cellRenderer(), handlePSetEntry(), handleVPSetEntry(), update(), and updateSchedule().
|
mutableprivate |
Definition at line 187 of file FWPSetTableManager.h.
Referenced by cellRenderer(), FWPSetTableManager(), and setCellValueEditor().
|
private |
Definition at line 180 of file FWPSetTableManager.h.
Referenced by applyEditor(), cellRenderer(), numberOfRows(), recalculateVisibility(), rowToIndex(), and setSelection().
|
private |
Definition at line 182 of file FWPSetTableManager.h.
Referenced by applyEditor(), cellRenderer(), selectedColumn(), and setSelection().
|
private |
Definition at line 181 of file FWPSetTableManager.h.
Referenced by applyEditor(), cellRenderer(), rowIsSelected(), selectedRow(), and setSelection().