#include <FWPathsPopup.h>
Public Member Functions | |
void | applyEditor () |
void | cellClicked (Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY) |
FWPathsPopup (FWFFLooper *, FWGUIManager *) | |
Bool_t | HandleKey (Event_t *event) override |
bool & | hasChanges () |
void | postEvent (edm::Event const &event) |
void | postModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &) |
void | preModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &) |
void | scheduleReloadEvent () |
void | setup (const edm::ScheduleInfo *info) |
void | updateFilterString (const char *str) |
void | windowIsClosing () |
Private Member Functions | |
ClassDefOverride (FWPathsPopup, 0) | |
Private Attributes | |
TGTextButton * | m_apply |
FWGUIManager * | m_guiManager |
bool | m_hasChanges |
const edm::ScheduleInfo * | m_info |
FWFFLooper * | m_looper |
TGLabel * | m_moduleLabel |
TGLabel * | m_moduleName |
FWPSetTableManager * | m_psTable |
TGTextEntry * | m_search |
FWTableWidget * | m_tableWidget |
Definition at line 27 of file FWPathsPopup.h.
FWPathsPopup::FWPathsPopup | ( | FWFFLooper * | looper, |
FWGUIManager * | guiManager | ||
) |
Definition at line 36 of file FWPathsPopup.cc.
References FWDialogBuilder::addLabel(), FWDialogBuilder::addTable(), FWDialogBuilder::addTextButton(), FWDialogBuilder::addTextEntry(), FWTableWidget::body(), FWTableWidget::disableGrowInWidth(), FWDialogBuilder::expand(), FWDialogBuilder::floatLeft(), FWDialogBuilder::indent(), m_apply, FWPSetTableManager::m_editor, m_psTable, m_search, m_tableWidget, FWTableWidget::SetBackgroundColor(), FWPSetTableManager::setCellValueEditor(), FWTableWidget::SetHeaderBackgroundColor(), FWTableWidget::SetLineSeparatorColor(), and FWDialogBuilder::spaceDown().
void FWPathsPopup::applyEditor | ( | ) |
Proxies the applyEditor() method in the model so that it can be connected to GUI, signals.
Definition at line 105 of file FWPathsPopup.cc.
References FWPSetTableManager::applyEditor(), m_apply, and m_psTable.
Referenced by cellClicked(), and scheduleReloadEvent().
void FWPathsPopup::cellClicked | ( | Int_t | iRow, |
Int_t | iColumn, | ||
Int_t | iButton, | ||
Int_t | iKeyMod, | ||
Int_t | iGlobalX, | ||
Int_t | iGlobalY | ||
) |
Handles clicking on the table cells.
Clicking on a cell in the first column opens / closes a given node. Clicking on a cell in the second column moves the editor to that cell.
Definition at line 117 of file FWPathsPopup.cc.
References applyEditor(), FWPSetTableManager::data(), FWPSetTableManager::PSetData::editable, m_psTable, FWPSetTableManager::rowToIndex(), FWPSetTableManager::selectedColumn(), FWPSetTableManager::selectedRow(), FWPSetTableManager::setExpanded(), and FWPSetTableManager::setSelection().
|
private |
|
override |
Handle pressing of esc.
Definition at line 92 of file FWPathsPopup.cc.
References FWPSetTableManager::cancelEditor(), m_psTable, and FWPSetTableManager::setSelection().
|
inline |
Definition at line 35 of file FWPathsPopup.h.
References m_hasChanges.
Referenced by FWFFLooper::duringLoop().
void FWPathsPopup::postEvent | ( | edm::Event const & | event | ) |
Definition at line 162 of file FWPathsPopup.cc.
References FWTableWidget::body(), FWTableManagerBase::dataChanged(), FWTabularWidget::DoRedraw(), MillePedeFileConverter_cfg::e, fwLog, mps_fire::i, fwlog::kInfo, m_guiManager, m_info, m_psTable, m_tableWidget, pi, SimL1EmulatorRepack_CalouGT_cff::processName, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, L1TEGammaOffline_cfi::triggerNames, triggerResults, update, FWPSetTableManager::update(), FWPSetTableManager::updateSchedule(), and FWGUIManager::updateStatus().
Referenced by FWFFLooper::duringLoop().
void FWPathsPopup::postModuleEvent | ( | edm::StreamContext const & | s, |
edm::ModuleCallingContext const & | mcc | ||
) |
Gets called by CMSSW as modules are about to be processed.
Definition at line 151 of file FWPathsPopup.cc.
References m_guiManager, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleName(), and FWGUIManager::updateStatus().
Referenced by FWFFLooper::attachTo().
void FWPathsPopup::preModuleEvent | ( | edm::StreamContext const & | s, |
edm::ModuleCallingContext const & | mcc | ||
) |
Gets called by CMSSW as we process modules.
Definition at line 157 of file FWPathsPopup.cc.
References m_guiManager, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleName(), and FWGUIManager::updateStatus().
Referenced by FWFFLooper::attachTo().
void FWPathsPopup::scheduleReloadEvent | ( | ) |
Modifies the module and asks the looper to reload the event.
FIXME: implement 2 and 3.
Definition at line 209 of file FWPathsPopup.cc.
References applyEditor(), gather_cfg::cout, data, FWPSetTableManager::entries(), cppFunctionSkipper::exception, m_apply, m_hasChanges, m_looper, m_psTable, FWPSetTableManager::modules(), edm::pythonToCppException(), and FWFFLooper::requestChanges().
void FWPathsPopup::setup | ( | const edm::ScheduleInfo * | info | ) |
Finish the setup of the GUI
Definition at line 145 of file FWPathsPopup.cc.
References cms::cuda::assert(), info(), and m_info.
Referenced by FWFFLooper::startingNewLoop().
void FWPathsPopup::updateFilterString | ( | const char * | str | ) |
Definition at line 138 of file FWPathsPopup.cc.
References FWPSetTableManager::applyEditor(), m_psTable, FWPSetTableManager::setSelection(), str, and FWPSetTableManager::updateFilter().
void FWPathsPopup::windowIsClosing | ( | ) |
Definition at line 31 of file FWPathsPopup.cc.
|
private |
Definition at line 55 of file FWPathsPopup.h.
Referenced by applyEditor(), FWPathsPopup(), and scheduleReloadEvent().
|
private |
Definition at line 59 of file FWPathsPopup.h.
Referenced by postEvent(), postModuleEvent(), and preModuleEvent().
|
private |
Definition at line 50 of file FWPathsPopup.h.
Referenced by hasChanges(), and scheduleReloadEvent().
|
private |
Definition at line 45 of file FWPathsPopup.h.
Referenced by postEvent(), and setup().
|
private |
Definition at line 48 of file FWPathsPopup.h.
Referenced by scheduleReloadEvent().
|
private |
Definition at line 52 of file FWPathsPopup.h.
|
private |
Definition at line 53 of file FWPathsPopup.h.
|
private |
Definition at line 56 of file FWPathsPopup.h.
Referenced by applyEditor(), cellClicked(), FWPathsPopup(), HandleKey(), postEvent(), scheduleReloadEvent(), and updateFilterString().
|
private |
Definition at line 58 of file FWPathsPopup.h.
Referenced by FWPathsPopup().
|
private |
Definition at line 57 of file FWPathsPopup.h.
Referenced by FWPathsPopup(), and postEvent().