#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(), MillePedeFileConverter_cfg::e, m_editor, m_entries, m_modules, m_row_to_index, m_selectedColumn, m_selectedRow, class-composition::parent, setSelection(), and summarizeEdmComparisonLogfiles::success.
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(), data(), fwLog, FWTextTableCellRenderer::getDefaultGC(), FWTextTreeCellRenderer::iconWidth(), validateAlignments::indent, fireworks::italicGC(), fwlog::kWarning, label, m_entries, m_filter, m_modules, m_paths, m_renderer, m_row_to_index, m_selectedColumn, m_selectedRow, reco_skim_cfg_mod::maxSize, castor_dqm_sourceclient_file_cfg::path, DivergingColor::red, FWTextTableCellRenderer::setData(), FWTextTableCellRenderer::setGraphicsContext(), FWTextTreeCellRenderer::setIndentation(), FWTextTreeCellRenderer::setIsOpen(), FWTextTreeCellRenderer::setIsParent(), FWTextTreeCellRenderer::showEditor(), AlCaHLTBitMon_QueryRunRegistry::string, sTypeTranslations, TypeTrans::table_, and relativeConstraints::value.
Definition at line 174 of file FWPSetTableManager.cc.
References data(), m_entries, contentValuesCheck::ss, and findQualityFiles::v.
Referenced by handleEntry().
|
private |
Definition at line 182 of file FWPSetTableManager.cc.
References data(), cuy::ii, m_entries, contentValuesCheck::ss, and findQualityFiles::v.
Referenced by handleEntry().
|
inline |
Definition at line 106 of file FWPSetTableManager.h.
References m_entries.
Referenced by applyEditor(), FWPathsPopup::cellClicked(), cellRenderer(), createScalarString(), createVectorString(), 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(), mps_splice::entry, submitPVResolutionJobs::key, m_entries, m_modules, m_parentStack, diffTwoXMLs::ranges, contentValuesCheck::ss, and triggerMatcherToHLTDebug_cfi::tags.
Referenced by handlePSet().
|
private |
Definition at line 157 of file FWPSetTableManager.cc.
References MillePedeFileConverter_cfg::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(), mps_splice::entry, handlePSet(), submitPVResolutionJobs::key, m_entries, m_modules, m_parentStack, and m_paths.
Referenced by handlePSet().
|
private |
Definition at line 122 of file FWPSetTableManager.cc.
References data(), MillePedeFileConverter_cfg::e, FWPSetTableManager::PSetData::editable, mps_splice::entry, handlePSet(), mps_fire::i, 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, and FWPSetTableManager::PSetData::tracked.
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 data(), MillePedeFileConverter_cfg::e, mps_fire::i, m_entries, m_filter, and m_row_to_index.
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 data(), FWTableManagerBase::dataChanged(), 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(), m_editor, m_entries, m_row_to_index, m_selectedColumn, m_selectedRow, 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 fwLog, implSort(), fwlog::kError, m_modules, m_pathIndex, m_paths, hlt_dqm_clientPB-live_cfg::me, FWPSetTableManager::PathInfo::moduleEnd, FWPSetTableManager::PathInfo::moduleStart, TriggerAnalyzer::passed, FWPSetTableManager::ModuleInfo::passed, FWPSetTableManager::PathInfo::passed, 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(), MillePedeFileConverter_cfg::e, ALCARECOTkAlBeamHalo_cff::filter, mps_fire::i, m_entries, m_filter, pi, recalculateVisibility(), and svgfig::stack.
Referenced by FWPathsPopup::updateFilterString().
|
protected |
Definition at line 383 of file FWPSetTableManager.cc.
References cms::cuda::assert(), FWPSetTableManager::ModuleInfo::current_pset, FWPSetTableManager::ModuleInfo::dirty, MillePedeFileConverter_cfg::e, FWPSetTableManager::PSetData::editable, FWPSetTableManager::ModuleInfo::entry, FWPSetTableManager::PathInfo::entryId, handlePSet(), mps_fire::i, info(), 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, FWPSetTableManager::PathInfo::moduleStart, FWPSetTableManager::ModuleInfo::orig_pset, FWPSetTableManager::PSetData::parent, FWPSetTableManager::ModuleInfo::passed, FWPSetTableManager::PathInfo::passed, FWPSetTableManager::PSetData::path, FWPSetTableManager::ModuleInfo::path, hltMonBTagIPClient_cfi::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().