#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 *) | |
virtual Bool_t | HandleKey (Event_t *event) |
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 | |
ClassDef (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 28 of file FWPathsPopup.h.
FWPathsPopup::FWPathsPopup | ( | FWFFLooper * | looper, |
FWGUIManager * | guiManager | ||
) |
Definition at line 39 of file FWPathsPopup.cc.
References FWDialogBuilder::addLabel(), FWDialogBuilder::addTable(), FWDialogBuilder::addTextButton(), FWDialogBuilder::addTextEntry(), FWTableWidget::body(), FWTableWidget::disableGrowInWidth(), idDealer::editor, 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 110 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 124 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 |
|
virtual |
Handle pressing of esc.
Definition at line 94 of file FWPathsPopup.cc.
References FWPSetTableManager::cancelEditor(), m_psTable, and FWPSetTableManager::setSelection().
|
inline |
Definition at line 37 of file FWPathsPopup.h.
References m_hasChanges.
Referenced by FWFFLooper::duringLoop().
void FWPathsPopup::postEvent | ( | edm::Event const & | event | ) |
Definition at line 184 of file FWPathsPopup.cc.
References FWTableWidget::body(), FWPSetTableManager::PathUpdate::choiceMaker, FWTableManagerBase::dataChanged(), FWTabularWidget::DoRedraw(), alignCSCRings::e, edm::ProcessHistory::empty(), fwLog, i, edm::HandleBase::isValid(), fwlog::kInfo, m_guiManager, m_info, m_psTable, m_tableWidget, FWPSetTableManager::PathUpdate::passed, FWPSetTableManager::PathUpdate::pathName, pi, edm::Event::processHistory(), FSQHLTOfflineSource_cfi::processName, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, edm::TriggerNames::triggerName(), edm::TriggerNames::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 168 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 176 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 237 of file FWPathsPopup.cc.
References applyEditor(), gather_cfg::cout, FWPSetTableManager::ModuleInfo::current_pset, AlCaHLTBitMon_QueryRunRegistry::data, FWPSetTableManager::ModuleInfo::dirty, FWPSetTableManager::entries(), FWPSetTableManager::ModuleInfo::entry, cppFunctionSkipper::exception, FWPSetTableManager::PSetData::label, m_apply, m_hasChanges, m_looper, m_psTable, FWPSetTableManager::modules(), edm::pythonToCppException(), FWFFLooper::requestChanges(), and cms::Exception::what().
void FWPathsPopup::setup | ( | const edm::ScheduleInfo * | info | ) |
Finish the setup of the GUI
Definition at line 160 of file FWPathsPopup.cc.
References assert(), info(), and m_info.
Referenced by FWFFLooper::startingNewLoop().
void FWPathsPopup::updateFilterString | ( | const char * | str | ) |
Definition at line 151 of file FWPathsPopup.cc.
References FWPSetTableManager::applyEditor(), m_psTable, FWPSetTableManager::setSelection(), and FWPSetTableManager::updateFilter().
void FWPathsPopup::windowIsClosing | ( | ) |
Definition at line 33 of file FWPathsPopup.cc.
|
private |
Definition at line 57 of file FWPathsPopup.h.
Referenced by applyEditor(), FWPathsPopup(), and scheduleReloadEvent().
|
private |
Definition at line 61 of file FWPathsPopup.h.
Referenced by postEvent(), postModuleEvent(), and preModuleEvent().
|
private |
Definition at line 52 of file FWPathsPopup.h.
Referenced by hasChanges(), and scheduleReloadEvent().
|
private |
Definition at line 47 of file FWPathsPopup.h.
Referenced by postEvent(), and setup().
|
private |
Definition at line 50 of file FWPathsPopup.h.
Referenced by scheduleReloadEvent().
|
private |
Definition at line 54 of file FWPathsPopup.h.
|
private |
Definition at line 55 of file FWPathsPopup.h.
|
private |
Definition at line 58 of file FWPathsPopup.h.
Referenced by applyEditor(), cellClicked(), FWPathsPopup(), HandleKey(), postEvent(), scheduleReloadEvent(), and updateFilterString().
|
private |
Definition at line 60 of file FWPathsPopup.h.
Referenced by FWPathsPopup().
|
private |
Definition at line 59 of file FWPathsPopup.h.
Referenced by FWPathsPopup(), and postEvent().