#include <Fireworks/Core/interface/CmsShowModelPopup.h>
Public Member Functions | |
void | changeModelColor (Color_t iColor) |
void | changeModelOpacity (Int_t opacity=100) |
ClassDef (CmsShowModelPopup, 0) | |
void | clicked () |
virtual void | CloseWindow () |
CmsShowModelPopup (FWDetailViewManager *, FWSelectionManager *, const FWColorManager *, const TGWindow *p=0, 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 () |
virtual | ~CmsShowModelPopup () |
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 = 0 , |
||
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_.
|
virtual |
Definition at line 106 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 310 of file CmsShowModelPopup.cc.
References FWEventItem::ModelInfo::displayProperties(), alignCSCRings::e, 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 329 of file CmsShowModelPopup.cc.
References FWEventItem::ModelInfo::displayProperties(), alignCSCRings::e, i, info, m_models, and FWDisplayProperties::setTransparency().
CmsShowModelPopup::ClassDef | ( | CmsShowModelPopup | , |
0 | |||
) |
void CmsShowModelPopup::clicked | ( | ) |
Definition at line 371 of file CmsShowModelPopup.cc.
References fwrapper::cs, FWDetailViewManager::detailViewsFor(), m_detailViewManager, m_models, and FWDetailViewManager::openDetailViewFor().
|
inlinevirtual |
Definition at line 63 of file CmsShowModelPopup.h.
void CmsShowModelPopup::colorSetChanged | ( | ) |
Definition at line 264 of file CmsShowModelPopup.cc.
References FWDisplayProperties::color(), FWEventItem::ModelInfo::displayProperties(), alignCSCRings::e, 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 279 of file CmsShowModelPopup.cc.
References alignCSCRings::e, 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 FWEventItem::changed_, FWDisplayProperties::color(), FWDetailViewManager::detailViewsFor(), disconnectAll(), FWEventItem::ModelInfo::displayProperties(), alignCSCRings::e, FWEventItem::goingToBeDestroyed_, i, getHLTprescales::index, info, FWDisplayProperties::isVisible(), 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 CmsShowModelPopup().
void CmsShowModelPopup::openDetailedView | ( | ) |
Definition at line 363 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 348 of file CmsShowModelPopup.cc.
References FWEventItem::ModelInfo::displayProperties(), i, info, m_models, and FWDisplayProperties::setIsVisible().
void CmsShowModelPopup::updateDisplay | ( | ) |
Based on the actual models properties, update the GUI.
Definition at line 244 of file CmsShowModelPopup.cc.
References FWDisplayProperties::color(), FWEventItem::ModelInfo::displayProperties(), alignCSCRings::e, i, info, FWDisplayProperties::isVisible(), m_colorSelectWidget, m_isVisibleButton, m_models, m_opacitySlider, AlCaHLTBitMon_ParallelJobs::p, FWColorSelect::SetColorByIndex(), and FWDisplayProperties::transparency().
Referenced by fillModelPopup().
|
friend |
Definition at line 56 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().