#include <Fireworks/Core/interface/CmsShowModelPopup.h>
Public Member Functions | |
void | changeModelColor (Color_t iColor) |
void | changeModelOpacity (Int_t opacity=100) |
ClassDefOverride (CmsShowModelPopup, 0) | |
void | clicked () |
void | CloseWindow () override |
CmsShowModelPopup (FWDetailViewManager *, FWSelectionManager *, const FWColorManager *, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1) | |
void | colorSetChanged () |
void | disconnectAll () |
void | fillModelPopup (const FWSelectionManager &iSelMgr) |
void | openDetailedView () |
void | toggleModelVisible (Bool_t on=kTRUE) |
void | updateDisplay () |
~CmsShowModelPopup () override | |
Private Member Functions | |
CmsShowModelPopup (const CmsShowModelPopup &) | |
const CmsShowModelPopup & | operator= (const CmsShowModelPopup &) |
Private Attributes | |
sigc::connection | m_changes |
const FWColorManager * | m_colorManager |
FWColorSelect * | m_colorSelectWidget |
sigc::connection | m_destroyedConn |
FWDetailViewManager * | m_detailViewManager |
FWDialogBuilder * | m_dialogBuilder |
TGCheckButton * | m_isVisibleButton |
sigc::connection | m_modelChangedConn |
TGLabel * | m_modelLabel |
std::set< FWModelId > | m_models |
TGHSlider * | m_opacitySlider |
std::vector< TGTextButton * > | m_openDetailedViewButtons |
Friends | |
class | CmsShowModelPopupDetailViewButtonAdapter |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 52 of file CmsShowModelPopup.h.
CmsShowModelPopup::CmsShowModelPopup | ( | FWDetailViewManager * | iManager, |
FWSelectionManager * | iSelMgr, | ||
const FWColorManager * | iColorMgr, | ||
const TGWindow * | p = nullptr , |
||
UInt_t | w = 1 , |
||
UInt_t | h = 1 |
||
) |
Definition at line 54 of file CmsShowModelPopup.cc.
References FWDialogBuilder::addCheckbox(), FWDialogBuilder::addColorPicker(), FWDialogBuilder::addHSeparator(), FWDialogBuilder::addHSlider(), FWDialogBuilder::addLabel(), FWDialogBuilder::expand(), fillModelPopup(), FWDialogBuilder::indent(), m_changes, m_colorSelectWidget, m_dialogBuilder, m_isVisibleButton, m_modelLabel, m_opacitySlider, m_openDetailedViewButtons, and FWSelectionManager::selectionChanged_.
|
override |
Definition at line 108 of file CmsShowModelPopup.cc.
References disconnectAll(), m_changes, m_colorSelectWidget, m_isVisibleButton, and m_opacitySlider.
|
private |
void CmsShowModelPopup::changeModelColor | ( | Color_t | color | ) |
Change the color of the selected objects.
NOTES:
Definition at line 290 of file CmsShowModelPopup.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_models, and FWDisplayProperties::setColor().
void CmsShowModelPopup::changeModelOpacity | ( | Int_t | opacity = 100 | ) |
Change the opacity of the selected objects. See above in changeModelColor for additional notes.
Definition at line 306 of file CmsShowModelPopup.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_models, and FWDisplayProperties::setTransparency().
CmsShowModelPopup::ClassDefOverride | ( | CmsShowModelPopup | , |
0 | |||
) |
void CmsShowModelPopup::clicked | ( | ) |
Definition at line 341 of file CmsShowModelPopup.cc.
References callgraph::cs, FWDetailViewManager::detailViewsFor(), m_detailViewManager, m_models, and FWDetailViewManager::openDetailViewFor().
|
inlineoverride |
Definition at line 64 of file CmsShowModelPopup.h.
void CmsShowModelPopup::colorSetChanged | ( | ) |
Definition at line 252 of file CmsShowModelPopup.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_colorSelectWidget, m_models, AlCaHLTBitMon_ParallelJobs::p, and FWColorSelect::SetColorByIndex().
Referenced by FWGUIManager::finishUpColorChange().
void CmsShowModelPopup::disconnectAll | ( | ) |
This is invoked to when no object is selected and sets the dialog in a disabled look.
Definition at line 263 of file CmsShowModelPopup.cc.
References cms::cuda::assert(), MillePedeFileConverter_cfg::e, mps_fire::i, m_colorSelectWidget, m_destroyedConn, m_isVisibleButton, m_modelChangedConn, m_modelLabel, m_opacitySlider, m_openDetailedViewButtons, and FWColorSelect::SetColorByIndex().
Referenced by fillModelPopup(), and ~CmsShowModelPopup().
void CmsShowModelPopup::fillModelPopup | ( | const FWSelectionManager & | iSelMgr | ) |
this updates the dialog when selection changes. It also handles multiple Selections by updating only the widgets which have non controversial (i.e. different across selected objects) values.
Definition at line 135 of file CmsShowModelPopup.cc.
References FWDisplayProperties::color(), FWDetailViewManager::detailViewsFor(), disconnectAll(), FWEventItem::ModelInfo::displayProperties(), MillePedeFileConverter_cfg::e, mps_fire::i, triggerObjects_cff::id, info(), FWDisplayProperties::isVisible(), B2GTnPMonitor_cfi::item, m_colorSelectWidget, m_destroyedConn, m_detailViewManager, m_isVisibleButton, m_modelChangedConn, m_modelLabel, m_models, m_opacitySlider, m_openDetailedViewButtons, alignCSCRings::s, FWSelectionManager::selected(), FWColorSelect::SetColorByIndex(), FWDisplayProperties::transparency(), and updateDisplay().
Referenced by CmsShowModelPopup().
void CmsShowModelPopup::openDetailedView | ( | ) |
Definition at line 335 of file CmsShowModelPopup.cc.
References FWDetailViewManager::detailViewsFor(), m_detailViewManager, m_models, and FWDetailViewManager::openDetailViewFor().
|
private |
void CmsShowModelPopup::toggleModelVisible | ( | Bool_t | on = kTRUE | ) |
Change (not toggle actually) the visibility of selected objects. See changeModelColor for additional notes.
Definition at line 322 of file CmsShowModelPopup.cc.
References mps_fire::i, info(), m_models, and FWDisplayProperties::setIsVisible().
void CmsShowModelPopup::updateDisplay | ( | ) |
Based on the actual models properties, update the GUI.
Definition at line 236 of file CmsShowModelPopup.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_colorSelectWidget, m_isVisibleButton, m_models, m_opacitySlider, AlCaHLTBitMon_ParallelJobs::p, and FWColorSelect::SetColorByIndex().
Referenced by fillModelPopup().
|
friend |
Definition at line 54 of file CmsShowModelPopup.h.
|
private |
Definition at line 98 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup(), and ~CmsShowModelPopup().
|
private |
Definition at line 101 of file CmsShowModelPopup.h.
|
private |
Definition at line 90 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup(), colorSetChanged(), disconnectAll(), fillModelPopup(), updateDisplay(), and ~CmsShowModelPopup().
|
private |
Definition at line 97 of file CmsShowModelPopup.h.
Referenced by disconnectAll(), and fillModelPopup().
|
private |
Definition at line 100 of file CmsShowModelPopup.h.
Referenced by clicked(), fillModelPopup(), and openDetailedView().
|
private |
Definition at line 103 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup().
|
private |
Definition at line 91 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup(), disconnectAll(), fillModelPopup(), updateDisplay(), and ~CmsShowModelPopup().
|
private |
Definition at line 96 of file CmsShowModelPopup.h.
Referenced by disconnectAll(), and fillModelPopup().
|
private |
Definition at line 89 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup(), disconnectAll(), and fillModelPopup().
|
private |
Definition at line 95 of file CmsShowModelPopup.h.
Referenced by changeModelColor(), changeModelOpacity(), clicked(), colorSetChanged(), fillModelPopup(), openDetailedView(), toggleModelVisible(), and updateDisplay().
|
private |
Definition at line 102 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup(), disconnectAll(), fillModelPopup(), updateDisplay(), and ~CmsShowModelPopup().
|
private |
Definition at line 92 of file CmsShowModelPopup.h.
Referenced by CmsShowModelPopup(), disconnectAll(), and fillModelPopup().