#include <Fireworks/Core/interface/CmsShowEDI.h>
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 53 of file CmsShowEDI.h.
CmsShowEDI::CmsShowEDI | ( | const TGWindow * | p = 0 , |
UInt_t | w = 1 , |
||
UInt_t | h = 1 , |
||
FWSelectionManager * | selMgr = 0 , |
||
FWColorManager * | colorMgr = 0 |
||
) |
Definition at line 64 of file CmsShowEDI.cc.
References FWDialogBuilder::addCheckbox(), FWDialogBuilder::addColorPicker(), FWDialogBuilder::addHSeparator(), FWDialogBuilder::addHSlider(), FWDialogBuilder::addLabel(), FWDialogBuilder::addNumberEntry(), FWDialogBuilder::addTextButton(), FWDialogBuilder::addTextEntry(), FWDialogBuilder::addTextView(), FWDialogBuilder::addValidatingTextEntry(), FWDialogBuilder::beginTab(), FWDialogBuilder::endTab(), FWDialogBuilder::expand(), fillEDIFrame(), FWDialogBuilder::floatLeft(), FWDialogBuilder::indent(), FWSelectionManager::itemSelectionChanged_, m_backButton, m_colorSelectWidget, m_cw, m_deselectAllButton, m_filterButton, m_filterError, m_filterExpressionEntry, m_frontButton, m_instanceEntry, m_isVisibleButton, m_layerEntry, m_moduleEntry, m_nameEntry, m_objectLabel, m_opacitySlider, m_processEntry, m_removeButton, m_selectAllButton, m_selectButton, m_selectError, m_selectExpressionEntry, m_selectionManager, m_settersFrame, m_tabs, m_typeEntry, m_validator, FWEventItem::maxLayerValue(), FWEventItem::minLayerValue(), FWGUIValidatingTextEntry::setValidator(), FWDialogBuilder::tabs(), FWDialogBuilder::untabs(), and FWDialogBuilder::vSpacer().
: TGTransientFrame(gClient->GetDefaultRoot(), p, w, h), m_item(0), m_validator(new FWExpressionValidator), m_colorManager(colorMgr), m_settersFrame(0) { m_selectionManager = selMgr; SetCleanup(kDeepCleanup); m_selectionManager->itemSelectionChanged_.connect(boost::bind(&CmsShowEDI::fillEDIFrame,this)); TGVerticalFrame* vf = new TGVerticalFrame(this); AddFrame(vf, new TGLayoutHints(kLHintsExpandX|kLHintsExpandY, 0, 0, 0, 0)); FWDialogBuilder builder(vf); builder.indent(0) .addLabel(" ", 14, 2, &m_objectLabel) .vSpacer() .tabs(&m_tabs) .beginTab("Graphics") .indent(3) .addLabel("Color", 8) .addColorPicker(colorMgr, &m_colorSelectWidget).expand(false) .addHSeparator() .addLabel("Opacity", 8) .addHSlider(150, &m_opacitySlider) .addHSeparator() .addCheckbox("Visible", &m_isVisibleButton) .addHSeparator() .addLabel("Drawing order", 8) .addTextButton("To back", &m_backButton).floatLeft().expand(false) .addNumberEntry(0.0, 4, TGNumberFormat::kNESInteger, FWEventItem::minLayerValue(), FWEventItem::maxLayerValue(), &m_layerEntry).expand(false).floatLeft() .addTextButton("To front", &m_frontButton).expand(false) .vSpacer() .addHSeparator() .endTab() .beginTab("Filter") .indent(3) .addLabel("Expression", 8) .addValidatingTextEntry(0, &m_filterExpressionEntry).floatLeft() .addTextButton("Filter", &m_filterButton).expand(false) .addTextView("", &m_filterError) .vSpacer() .endTab() .beginTab("Select") .indent(3) .addLabel("Expression", 8) .addValidatingTextEntry(0, &m_selectExpressionEntry) .addTextButton("Select", &m_selectButton).floatLeft().expand(false) .addTextButton("Select all", &m_selectAllButton).expand(false).floatLeft() .addTextButton("Unselect all", &m_deselectAllButton).expand(false) .indent(3) .addLabel("Color Selection", 8) .addColorPicker(colorMgr, &m_cw).expand(false) .addTextView("", &m_selectError) .vSpacer() .endTab() .beginTab("Data") .indent(3) .addLabel("Name:", 8) .addTextEntry("None", &m_nameEntry) .addLabel("Labels:", 8) .addLabel("Type:", 8) .addTextEntry("None", &m_typeEntry) .addLabel("Module:", 8) .addTextEntry("None", &m_moduleEntry) .addLabel("Instance:", 8) .addTextEntry("None", &m_instanceEntry) .addLabel("Process:", 8) .addTextEntry("None", &m_processEntry) .addHSeparator() .addTextButton("Remove collection", &m_removeButton).expand(false) .vSpacer() .endTab() .untabs(); m_filterError->SetForegroundColor(gVirtualX->GetPixel(kRed)); m_filterError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground()); m_filterError->ChangeOptions(0); m_selectError->SetForegroundColor(gVirtualX->GetPixel(kRed)); m_selectError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground()); m_selectError->ChangeOptions(0); m_filterExpressionEntry->setValidator(m_validator); m_selectExpressionEntry->setValidator(m_validator); m_colorSelectWidget->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeItemColor(Color_t)"); m_cw->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeSelectionColor(Color_t)"); m_opacitySlider->Connect("PositionChanged(Int_t)", "CmsShowEDI", this, "changeItemOpacity(Int_t)"); m_isVisibleButton->Connect("Toggled(Bool_t)", "CmsShowEDI", this, "toggleItemVisible(Bool_t)"); m_filterExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runFilter()"); m_filterButton->Connect("Clicked()", "CmsShowEDI", this, "runFilter()"); m_selectExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runSelection()"); m_selectButton->Connect("Clicked()", "CmsShowEDI", this, "runSelection()"); m_removeButton->Connect("Clicked()", "CmsShowEDI", this, "removeItem()"); m_selectAllButton->Connect("Clicked()", "CmsShowEDI", this, "selectAll()"); m_deselectAllButton->Connect("Clicked()", "CmsShowEDI", this, "deselectAll()"); m_frontButton->Connect("Clicked()","CmsShowEDI",this,"moveToFront()"); m_backButton->Connect("Clicked()","CmsShowEDI",this,"moveToBack()"); m_layerEntry->Connect("ValueSet(Long_t)","CmsShowEDI",this,"moveToLayer(Long_t)"); TGCompositeFrame* cf = m_tabs->GetTabContainer(0); m_settersFrame = new TGVerticalFrame(cf); m_settersFrame->SetCleanup(kDeepCleanup); // m_settersFrame->SetBackgroundColor(0xff00ff); cf->AddFrame(m_settersFrame, new TGLayoutHints(kLHintsExpandX| kLHintsExpandY )); SetWindowName("Collection Controller"); MapSubwindows(); Resize(GetDefaultSize()); Layout(); fillEDIFrame(); }
CmsShowEDI::~CmsShowEDI | ( | ) | [virtual] |
Definition at line 190 of file CmsShowEDI.cc.
References disconnectAll(), m_backButton, m_colorSelectWidget, m_cw, m_deselectAllButton, m_filterButton, m_filterExpressionEntry, m_frontButton, m_isVisibleButton, m_layerEntry, m_opacitySlider, m_removeButton, m_selectAllButton, m_selectButton, m_selectExpressionEntry, and m_validator.
{ disconnectAll(); m_colorSelectWidget->Disconnect("ColorSelected(Pixel_t)", this, "changeItemColor(Pixel_t)"); m_cw->Disconnect("ColorSelected(Pixel_t)", this, "changeSelectionColor(Pixel_t)"); m_opacitySlider->Disconnect("PositionChanged(Int_t)", this, "changeItemColor"); m_isVisibleButton->Disconnect("Toggled(Bool_t)", this, "toggleItemVisible(Bool_t)"); m_filterExpressionEntry->Disconnect("ReturnPressed()", this, "runFilter()"); m_selectExpressionEntry->Disconnect("ReturnPressed()", this, "runSelection()"); m_filterButton->Disconnect("Clicked()", this, "runFilter()"); m_selectButton->Disconnect("Clicked()", this, "runSelection()"); m_selectAllButton->Disconnect("Clicked()", this, "selectAll()"); m_deselectAllButton->Disconnect("Clicked()", this, "deselectAll()"); m_removeButton->Disconnect("Clicked()", this, "removeItem()"); m_frontButton->Disconnect("Clicked()",this,"moveToFront()"); m_backButton->Disconnect("Clicked()",this,"moveToBack()"); m_layerEntry->Disconnect("ValueSet(Long_t)",this,"moveToLayer(Long_t)"); // delete m_objectLabel; // delete m_colorSelectWidget; // delete m_isVisibleButton; delete m_validator; }
CmsShowEDI::CmsShowEDI | ( | const CmsShowEDI & | ) | [private] |
void CmsShowEDI::changeItemColor | ( | Color_t | color | ) |
Set the item color.
Notice that I changed this to use a "Copy and modify approach", rather than a "create with old properties" method which was not propagating transparency.
Definition at line 417 of file CmsShowEDI.cc.
References FWEventItem::defaultDisplayProperties(), m_cw, m_item, FWDisplayProperties::setColor(), FWColorSelect::SetColorByIndex(), and FWEventItem::setDefaultDisplayProperties().
{ FWDisplayProperties changeProperties = m_item->defaultDisplayProperties(); changeProperties.setColor(color); m_item->setDefaultDisplayProperties(changeProperties); m_cw->SetColorByIndex(color,kFALSE); }
void CmsShowEDI::changeItemOpacity | ( | Int_t | opacity | ) |
Changes selected item opacity. Notice that we use opacity rather than transparency because this way the slider is by default 100% rather than 0. This is more a more natural and positive way of looking at things.
Glass is full!
See changeItemColor for additional details.
Definition at line 440 of file CmsShowEDI.cc.
References FWEventItem::defaultDisplayProperties(), m_item, FWEventItem::setDefaultDisplayProperties(), and FWDisplayProperties::setTransparency().
{ FWDisplayProperties changeProperties = m_item->defaultDisplayProperties(); changeProperties.setTransparency(100 - opacity); m_item->setDefaultDisplayProperties(changeProperties); }
void CmsShowEDI::changeSelectionColor | ( | Color_t | color | ) |
Definition at line 511 of file CmsShowEDI.cc.
References FWEventItem::changeManager(), FWEventItem::defaultDisplayProperties(), i, m_item, FWSelectionManager::selected(), FWEventItem::selectionManager(), FWDisplayProperties::setColor(), and FWEventItem::setDisplayProperties().
{ FWChangeSentry sentry(*(m_item->changeManager())); const std::set<FWModelId>& ss = m_item->selectionManager()->selected(); FWDisplayProperties dp = m_item->defaultDisplayProperties(); dp.setColor(c); for (std::set<FWModelId>::const_iterator i = ss.begin(); i != ss.end(); ++i ) { m_item->setDisplayProperties(i->index(), dp); } }
CmsShowEDI::ClassDef | ( | CmsShowEDI | , |
0 | |||
) |
void CmsShowEDI::clearPBFrame | ( | ) | [private] |
Definition at line 229 of file CmsShowEDI.cc.
References f, and m_settersFrame.
Referenced by disconnectAll(), and fillEDIFrame().
{ if (!m_settersFrame->GetList()->IsEmpty()) { // printf("remove FRAME \n"); TGFrameElement *el = (TGFrameElement*) m_settersFrame->GetList()->First(); TGFrame* f = el->fFrame; f->UnmapWindow(); m_settersFrame->RemoveFrame(f); f->DestroyWindow(); } }
virtual void CmsShowEDI::CloseWindow | ( | ) | [inline, virtual] |
Definition at line 61 of file CmsShowEDI.h.
{ UnmapWindow(); }
void CmsShowEDI::colorSetChanged | ( | ) |
Definition at line 531 of file CmsShowEDI.cc.
References FWDisplayProperties::color(), FWEventItem::defaultDisplayProperties(), m_colorSelectWidget, m_cw, m_item, AlCaHLTBitMon_ParallelJobs::p, and FWColorSelect::SetColorByIndex().
Referenced by FWGUIManager::finishUpColorChange().
{ if (m_item) { const FWDisplayProperties &p = m_item->defaultDisplayProperties(); m_colorSelectWidget->SetColorByIndex(p.color(),kFALSE); m_cw->SetColorByIndex(p.color(),kFALSE); } }
void CmsShowEDI::deselectAll | ( | ) |
Definition at line 501 of file CmsShowEDI.cc.
References FWEventItem::changeManager(), i, m_item, FWEventItem::size(), and FWEventItem::unselect().
{ FWChangeSentry sentry(*(m_item->changeManager())); for (int i = 0; i < static_cast<int>(m_item->size()); i++) { m_item->unselect(i); } }
void CmsShowEDI::disconnectAll | ( | ) |
Definition at line 370 of file CmsShowEDI.cc.
References clearPBFrame(), m_backButton, m_colorSelectWidget, m_deselectAllButton, m_destroyedConn, m_displayChangedConn, m_filterButton, m_filterExpressionEntry, m_frontButton, m_instanceEntry, m_isVisibleButton, m_item, m_layerEntry, m_modelChangedConn, m_moduleEntry, m_nameEntry, m_objectLabel, m_opacitySlider, m_processEntry, m_removeButton, m_selectAllButton, m_selectButton, m_selectExpressionEntry, m_typeEntry, and FWColorSelect::SetColorByIndex().
Referenced by fillEDIFrame(), and ~CmsShowEDI().
{ m_objectLabel->SetText("No Collection Selected"); clearPBFrame(); if(0 != m_item) { m_displayChangedConn.disconnect(); m_modelChangedConn.disconnect(); m_destroyedConn.disconnect(); m_item = 0; m_colorSelectWidget->SetColorByIndex(0,kFALSE); m_opacitySlider->SetPosition(100); m_isVisibleButton->SetDisabledAndSelected(kTRUE); m_filterExpressionEntry->SetText(0); m_selectExpressionEntry->SetText(0); m_nameEntry->SetText(0); m_typeEntry->SetText(0); m_moduleEntry->SetText(0); m_instanceEntry->SetText(0); m_processEntry->SetText(0); // else m_isVisibleButton->SetState(kButtonDown, kFALSE); m_colorSelectWidget->SetEnabled(kFALSE); m_opacitySlider->SetEnabled(kFALSE); m_isVisibleButton->SetEnabled(kFALSE); m_filterExpressionEntry->SetEnabled(kFALSE); m_filterButton->SetEnabled(kFALSE); m_selectExpressionEntry->SetEnabled(kFALSE); m_selectButton->SetEnabled(kFALSE); m_selectAllButton->SetEnabled(kFALSE); m_deselectAllButton->SetEnabled(kFALSE); m_removeButton->SetEnabled(kFALSE); m_backButton->SetEnabled(kFALSE); m_frontButton->SetEnabled(kFALSE); m_layerEntry->SetIntNumber(0); m_layerEntry->SetState(kFALSE); m_layerEntry->GetNumberEntry()->SetEnabled(kFALSE); m_layerEntry->GetButtonUp()->SetEnabled(kFALSE); m_layerEntry->GetButtonDown()->SetEnabled(kFALSE); } }
void CmsShowEDI::fillEDIFrame | ( | ) |
Definition at line 243 of file CmsShowEDI.cc.
References FWEventItem::changed_, clearPBFrame(), FWDisplayProperties::color(), FWEventItem::defaultDisplayProperties(), FWEventItem::defaultDisplayPropertiesChanged_, disconnectAll(), FWEventItem::filterExpression(), FWEventItem::getConfig(), FWEventItem::goingToBeDestroyed_, FWDisplayProperties::isVisible(), m_colorSelectWidget, m_cw, m_deselectAllButton, m_destroyedConn, m_displayChangedConn, m_filterButton, m_filterError, m_filterExpressionEntry, m_instanceEntry, m_isVisibleButton, m_item, m_layerEntry, m_modelChangedConn, m_moduleEntry, m_nameEntry, m_objectLabel, m_opacitySlider, m_processEntry, m_removeButton, m_selectAllButton, m_selectButton, m_selectError, m_selectExpressionEntry, m_selectionManager, m_settersFrame, m_typeEntry, m_validator, FWEventItem::modelType(), FWEventItem::moduleLabel(), FWEventItem::name(), AlCaHLTBitMon_ParallelJobs::p, FWProxyBuilderConfiguration::populateFrame(), FWEventItem::processName(), FWEventItem::productInstanceLabel(), alignCSCRings::s, FWSelectionManager::selectedItems(), FWColorSelect::SetColorByIndex(), FWExpressionValidator::setType(), FWDisplayProperties::transparency(), FWEventItem::type(), updateDisplay(), updateFilter(), and updateLayerControls().
Referenced by CmsShowEDI().
{ FWEventItem* iItem =0; bool multipleCollections = false; if(!m_selectionManager->selectedItems().empty()) { if(m_selectionManager->selectedItems().size()==1) { iItem=*(m_selectionManager->selectedItems().begin()); } else { multipleCollections=true; } } //m_item can be zero because we had 0 or many collections selected if (0 == m_item || iItem != m_item) { disconnectAll(); m_item = iItem; if(0 != m_item) { const FWDisplayProperties &p = iItem->defaultDisplayProperties(); m_objectLabel->SetText(iItem->name().c_str()); m_colorSelectWidget->SetColorByIndex(p.color(),kFALSE); m_opacitySlider->SetPosition(100 - p.transparency()); m_isVisibleButton->SetDisabledAndSelected(p.isVisible()); m_validator->setType(edm::TypeWithDict(*(iItem->modelType()->GetTypeInfo()))); m_filterExpressionEntry->SetText(iItem->filterExpression().c_str()); m_filterError->Clear(); m_selectError->Clear(); m_nameEntry->SetText(iItem->name().c_str()); m_typeEntry->SetText(iItem->type()->GetName()); m_moduleEntry->SetText(iItem->moduleLabel().c_str()); m_instanceEntry->SetText(iItem->productInstanceLabel().c_str()); m_processEntry->SetText(iItem->processName().c_str()); // else m_isVisibleButton->SetState(kButtonDown, kFALSE); m_colorSelectWidget->SetEnabled(kTRUE); m_opacitySlider->SetEnabled(kTRUE); m_isVisibleButton->SetEnabled(kTRUE); m_filterExpressionEntry->SetEnabled(kTRUE); m_selectExpressionEntry->SetEnabled(kTRUE); m_filterButton->SetEnabled(kTRUE); m_selectButton->SetEnabled(kTRUE); m_selectAllButton->SetEnabled(kTRUE); m_deselectAllButton->SetEnabled(kTRUE); m_cw->SetColorByIndex(p.color(),kFALSE); m_cw->SetEnabled(kTRUE); m_removeButton->SetEnabled(kTRUE); updateLayerControls(); m_layerEntry->SetState(kTRUE); m_displayChangedConn = m_item->defaultDisplayPropertiesChanged_.connect(boost::bind(&CmsShowEDI::updateDisplay, this)); m_modelChangedConn = m_item->changed_.connect(boost::bind(&CmsShowEDI::updateFilter, this)); // m_selectionChangedConn = m_selectionManager->selectionChanged_.connect(boost::bind(&CmsShowEDI::updateSelection, this)); m_destroyedConn = m_item->goingToBeDestroyed_.connect(boost::bind(&CmsShowEDI::disconnectAll, this)); clearPBFrame(); m_item->getConfig()->populateFrame(m_settersFrame); } else if(multipleCollections) { std::ostringstream s; s<<m_selectionManager->selectedItems().size()<<" Collections Selected"; m_objectLabel->SetText(s.str().c_str()); } Resize(GetDefaultSize()); Layout(); } }
void CmsShowEDI::moveToBack | ( | ) |
Definition at line 346 of file CmsShowEDI.cc.
References m_item, FWEventItem::moveToBack(), and updateLayerControls().
{ m_item->moveToBack(); updateLayerControls(); }
void CmsShowEDI::moveToFront | ( | ) |
Definition at line 352 of file CmsShowEDI.cc.
References m_item, FWEventItem::moveToFront(), and updateLayerControls().
{ m_item->moveToFront(); updateLayerControls(); }
void CmsShowEDI::moveToLayer | ( | Long_t | ) |
Definition at line 358 of file CmsShowEDI.cc.
References m_item, m_layerEntry, FWEventItem::moveToLayer(), and updateLayerControls().
{ m_item->moveToLayer(static_cast<Int_t>(m_layerEntry->GetIntNumber())); updateLayerControls(); }
const CmsShowEDI& CmsShowEDI::operator= | ( | const CmsShowEDI & | ) | [private] |
void CmsShowEDI::removeItem | ( | ) |
Definition at line 307 of file CmsShowEDI.cc.
References FWEventItem::destroy(), m_item, python::rootplot::argparse::message, FWEventItem::name(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ Int_t chosen=0; std::string message("This action will remove the "); message += m_item->name(); message +=" collection from the display." "\nIf you wish to return the collection you would have to use the 'Add Collection' window."; new TGMsgBox(gClient->GetDefaultRoot(), this, "Remove Collection Confirmation", message.c_str(), kMBIconExclamation, kMBCancel | kMBApply, &chosen); if(kMBApply == chosen) { m_item->destroy(); m_item = 0; //make sure the ROOT global editor does not try to use this gEve->EditElement(0); gEve->Redraw3D(); } }
void CmsShowEDI::runFilter | ( | ) |
Definition at line 447 of file CmsShowEDI.cc.
References FWExpressionException::column(), alignCSCRings::e, alcazmumu_cfi::filter, m_filterError, m_filterExpressionEntry, m_item, FWEventItem::setFilterExpression(), AlCaHLTBitMon_QueryRunRegistry::string, and FWExpressionException::what().
{ const std::string filter(m_filterExpressionEntry->GetText()); if (m_item != 0) { try { m_filterError->Clear(); m_item->setFilterExpression(filter); } catch( const FWExpressionException& e) { m_filterError->AddLine(e.what().c_str()); m_filterError->Update(); if(e.column() > -1) { m_filterExpressionEntry->SetCursorPosition(e.column()); } } } }
void CmsShowEDI::runSelection | ( | ) |
Definition at line 464 of file CmsShowEDI.cc.
References FWExpressionException::column(), alignCSCRings::e, m_cw, m_item, m_selectError, m_selectExpressionEntry, FWModelExpressionSelector::select(), corrVsCorr::selection, FWEventItem::selectionManager(), AlCaHLTBitMon_QueryRunRegistry::string, and FWExpressionException::what().
{ FWModelExpressionSelector selector; const std::string selection(m_selectExpressionEntry->GetText()); if (m_item != 0) { try { m_selectError->Clear(); //NOTE call clearModelSelectionLeaveItem so that the item does not get deselected // just for safety use a copy of the pointer to m_item FWEventItem* item = m_item; item->selectionManager()-> clearModelSelectionLeaveItem(); selector.select(item, selection, TColor::GetColor(m_cw->GetColor())); } catch( const FWExpressionException& e) { m_selectError->AddLine(e.what().c_str()); m_selectError->Update(); if (e.column() > -1) { m_selectExpressionEntry->SetCursorPosition(e.column()); } } } }
void CmsShowEDI::selectAll | ( | ) |
Definition at line 492 of file CmsShowEDI.cc.
References FWEventItem::changeManager(), i, m_item, FWEventItem::select(), and FWEventItem::size().
{ FWChangeSentry sentry(*(m_item->changeManager())); for (int i = 0; i < static_cast<int>(m_item->size()); i++) { m_item->select(i); } }
void CmsShowEDI::show | ( | FWDataCategories | iToView | ) |
Definition at line 524 of file CmsShowEDI.cc.
References m_tabs.
Referenced by FWGUIManager::showEDIFrame().
{ m_tabs->SetTab(iToView); }
void CmsShowEDI::toggleItemVisible | ( | Bool_t | on = kTRUE | ) |
See changeItemColor for additional details.
Definition at line 426 of file CmsShowEDI.cc.
References FWEventItem::defaultDisplayProperties(), m_item, FWEventItem::setDefaultDisplayProperties(), and FWDisplayProperties::setIsVisible().
{ FWDisplayProperties changeProperties = m_item->defaultDisplayProperties(); changeProperties.setIsVisible(on); m_item->setDefaultDisplayProperties(changeProperties); }
void CmsShowEDI::updateDisplay | ( | ) |
Definition at line 330 of file CmsShowEDI.cc.
References FWDisplayProperties::color(), FWEventItem::defaultDisplayProperties(), FWDisplayProperties::isVisible(), m_colorSelectWidget, m_isVisibleButton, m_item, m_opacitySlider, FWColorSelect::SetColorByIndex(), and FWDisplayProperties::transparency().
Referenced by fillEDIFrame().
{ //std::cout<<"Updating display"<<std::endl; const FWDisplayProperties &props = m_item->defaultDisplayProperties(); m_colorSelectWidget->SetColorByIndex(props.color(),kFALSE); m_opacitySlider->SetPosition(100 - props.transparency()); m_isVisibleButton->SetState(props.isVisible() ? kButtonDown : kButtonUp, kFALSE); }
void CmsShowEDI::updateFilter | ( | ) |
Definition at line 365 of file CmsShowEDI.cc.
References FWEventItem::filterExpression(), m_filterExpressionEntry, and m_item.
Referenced by fillEDIFrame().
{ m_filterExpressionEntry->SetText(m_item->filterExpression().c_str()); }
void CmsShowEDI::updateLayerControls | ( | ) |
Definition at line 339 of file CmsShowEDI.cc.
References FWEventItem::isInBack(), FWEventItem::isInFront(), FWEventItem::layer(), m_backButton, m_frontButton, m_item, and m_layerEntry.
Referenced by fillEDIFrame(), moveToBack(), moveToFront(), and moveToLayer().
{ m_backButton->SetEnabled(!m_item->isInBack()); m_frontButton->SetEnabled(!m_item->isInFront()); m_layerEntry->SetIntNumber(m_item->layer()); }
TGTextButton* CmsShowEDI::m_backButton [private] |
Definition at line 105 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), updateLayerControls(), and ~CmsShowEDI().
FWColorManager* CmsShowEDI::m_colorManager [private] |
Definition at line 131 of file CmsShowEDI.h.
FWColorSelect* CmsShowEDI::m_colorSelectWidget [private] |
Definition at line 107 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), colorSetChanged(), disconnectAll(), fillEDIFrame(), updateDisplay(), and ~CmsShowEDI().
FWColorSelect* CmsShowEDI::m_cw [private] |
Definition at line 116 of file CmsShowEDI.h.
Referenced by changeItemColor(), CmsShowEDI(), colorSetChanged(), fillEDIFrame(), runSelection(), and ~CmsShowEDI().
TGTextButton* CmsShowEDI::m_deselectAllButton [private] |
Definition at line 115 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), and ~CmsShowEDI().
sigc::connection CmsShowEDI::m_destroyedConn [private] |
Definition at line 126 of file CmsShowEDI.h.
Referenced by disconnectAll(), and fillEDIFrame().
sigc::connection CmsShowEDI::m_displayChangedConn [private] |
Definition at line 124 of file CmsShowEDI.h.
Referenced by disconnectAll(), and fillEDIFrame().
TGTextButton* CmsShowEDI::m_filterButton [private] |
Definition at line 112 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), and ~CmsShowEDI().
TGTextView* CmsShowEDI::m_filterError [private] |
Definition at line 128 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), fillEDIFrame(), and runFilter().
Definition at line 110 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), runFilter(), updateFilter(), and ~CmsShowEDI().
TGTextButton* CmsShowEDI::m_frontButton [private] |
Definition at line 104 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), updateLayerControls(), and ~CmsShowEDI().
TGTextEntry* CmsShowEDI::m_instanceEntry [private] |
Definition at line 120 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), and fillEDIFrame().
TGCheckButton* CmsShowEDI::m_isVisibleButton [private] |
Definition at line 109 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), updateDisplay(), and ~CmsShowEDI().
FWEventItem* CmsShowEDI::m_item [private] |
Definition at line 122 of file CmsShowEDI.h.
Referenced by changeItemColor(), changeItemOpacity(), changeSelectionColor(), colorSetChanged(), deselectAll(), disconnectAll(), fillEDIFrame(), moveToBack(), moveToFront(), moveToLayer(), removeItem(), runFilter(), runSelection(), selectAll(), toggleItemVisible(), updateDisplay(), updateFilter(), and updateLayerControls().
TGNumberEntry* CmsShowEDI::m_layerEntry [private] |
Definition at line 106 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), moveToLayer(), updateLayerControls(), and ~CmsShowEDI().
sigc::connection CmsShowEDI::m_modelChangedConn [private] |
Definition at line 125 of file CmsShowEDI.h.
Referenced by disconnectAll(), and fillEDIFrame().
TGTextEntry* CmsShowEDI::m_moduleEntry [private] |
Definition at line 119 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), and fillEDIFrame().
TGTextEntry* CmsShowEDI::m_nameEntry [private] |
Definition at line 117 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), and fillEDIFrame().
TGLabel* CmsShowEDI::m_objectLabel [private] |
Definition at line 102 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), and fillEDIFrame().
TGHSlider* CmsShowEDI::m_opacitySlider [private] |
Definition at line 108 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), updateDisplay(), and ~CmsShowEDI().
TGTextEntry* CmsShowEDI::m_processEntry [private] |
Definition at line 121 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), and fillEDIFrame().
TGTextButton* CmsShowEDI::m_removeButton [private] |
Definition at line 103 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), and ~CmsShowEDI().
TGTextButton* CmsShowEDI::m_selectAllButton [private] |
Definition at line 114 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), and ~CmsShowEDI().
TGTextButton* CmsShowEDI::m_selectButton [private] |
Definition at line 113 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), and ~CmsShowEDI().
TGTextView* CmsShowEDI::m_selectError [private] |
Definition at line 129 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), fillEDIFrame(), and runSelection().
Definition at line 111 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), fillEDIFrame(), runSelection(), and ~CmsShowEDI().
FWSelectionManager* CmsShowEDI::m_selectionManager [private] |
Definition at line 100 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), and fillEDIFrame().
TGCompositeFrame* CmsShowEDI::m_settersFrame [private] |
Definition at line 133 of file CmsShowEDI.h.
Referenced by clearPBFrame(), CmsShowEDI(), and fillEDIFrame().
TGTab* CmsShowEDI::m_tabs [private] |
Definition at line 101 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), and show().
TGTextEntry* CmsShowEDI::m_typeEntry [private] |
Definition at line 118 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), disconnectAll(), and fillEDIFrame().
FWExpressionValidator* CmsShowEDI::m_validator [private] |
Definition at line 130 of file CmsShowEDI.h.
Referenced by CmsShowEDI(), fillEDIFrame(), and ~CmsShowEDI().