#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_.
Referenced by CloseWindow().
|
override |
Definition at line 107 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 289 of file CmsShowModelPopup.cc.
References FWEventItem::ModelInfo::displayProperties(), MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_models, and FWDisplayProperties::setColor().
Referenced by CloseWindow().
void CmsShowModelPopup::changeModelOpacity | ( | Int_t | opacity = 100 | ) |
Change the opacity of the selected objects. See above in changeModelColor for additional notes.
Definition at line 305 of file CmsShowModelPopup.cc.
References FWEventItem::ModelInfo::displayProperties(), MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_models, and FWDisplayProperties::setTransparency().
Referenced by CloseWindow().
CmsShowModelPopup::ClassDefOverride | ( | CmsShowModelPopup | , |
0 | |||
) |
Referenced by CloseWindow().
void CmsShowModelPopup::clicked | ( | ) |
Definition at line 340 of file CmsShowModelPopup.cc.
References fwrapper::cs, FWDetailViewManager::detailViewsFor(), m_detailViewManager, m_models, and FWDetailViewManager::openDetailViewFor().
Referenced by CloseWindow().
|
inlineoverride |
Definition at line 64 of file CmsShowModelPopup.h.
References changeModelColor(), changeModelOpacity(), ClassDefOverride(), clicked(), CmsShowModelPopup(), colorSetChanged(), disconnectAll(), fillModelPopup(), openDetailedView(), operator=(), toggleModelVisible(), and updateDisplay().
void CmsShowModelPopup::colorSetChanged | ( | ) |
Definition at line 251 of file CmsShowModelPopup.cc.
References FWDisplayProperties::color(), FWEventItem::ModelInfo::displayProperties(), MillePedeFileConverter_cfg::e, mps_fire::i, info(), m_colorSelectWidget, m_models, AlCaHLTBitMon_ParallelJobs::p, and FWColorSelect::SetColorByIndex().
Referenced by CloseWindow(), and 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 262 of file CmsShowModelPopup.cc.
References 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 CloseWindow(), 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 134 of file CmsShowModelPopup.cc.
References FWEventItem::changed_, FWDisplayProperties::color(), FWDetailViewManager::detailViewsFor(), disconnectAll(), FWEventItem::ModelInfo::displayProperties(), MillePedeFileConverter_cfg::e, FWEventItem::goingToBeDestroyed_, mps_fire::i, info(), FWDisplayProperties::isVisible(), B2GTnPMonitor_cfi::item, m_colorSelectWidget, m_destroyedConn, m_detailViewManager, m_isVisibleButton, m_modelChangedConn, m_modelLabel, m_models, m_opacitySlider, m_openDetailedViewButtons, FWEventItem::modelInfo(), FWEventItem::modelName(), FWEventItem::name(), alignCSCRings::s, FWSelectionManager::selected(), FWColorSelect::SetColorByIndex(), FWDisplayProperties::transparency(), and updateDisplay().
Referenced by CloseWindow(), and CmsShowModelPopup().
void CmsShowModelPopup::openDetailedView | ( | ) |
Definition at line 334 of file CmsShowModelPopup.cc.
References FWDetailViewManager::detailViewsFor(), m_detailViewManager, m_models, and FWDetailViewManager::openDetailViewFor().
Referenced by CloseWindow().
|
private |
Referenced by CloseWindow().
void CmsShowModelPopup::toggleModelVisible | ( | Bool_t | on = kTRUE | ) |
Change (not toggle actually) the visibility of selected objects. See changeModelColor for additional notes.
Definition at line 321 of file CmsShowModelPopup.cc.
References FWEventItem::ModelInfo::displayProperties(), mps_fire::i, info(), m_models, and FWDisplayProperties::setIsVisible().
Referenced by CloseWindow().
void CmsShowModelPopup::updateDisplay | ( | ) |
Based on the actual models properties, update the GUI.
Definition at line 235 of file CmsShowModelPopup.cc.
References FWDisplayProperties::color(), FWEventItem::ModelInfo::displayProperties(), MillePedeFileConverter_cfg::e, mps_fire::i, info(), FWDisplayProperties::isVisible(), m_colorSelectWidget, m_isVisibleButton, m_models, m_opacitySlider, AlCaHLTBitMon_ParallelJobs::p, FWColorSelect::SetColorByIndex(), and FWDisplayProperties::transparency().
Referenced by CloseWindow(), and 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().