#include <Fireworks/Core/interface/FWModelContextMenuHandler.h>
Public Member Functions | |
void | addViewEntry (const char *, int, bool enabled=true) |
void | chosenItem (Int_t) |
ClassDef (FWModelContextMenuHandler, 0) | |
void | colorChangeRequested (Color_t) |
FWModelContextMenuHandler (FWSelectionManager *, FWDetailViewManager *, FWColorManager *, FWGUIManager *) | |
void | showSelectedModelContext (Int_t iX, Int_t iY, FWViewContextMenuHandlerBase *) const |
NOTE: iX and iY are in global coordinates. More... | |
virtual | ~FWModelContextMenuHandler () |
Private Member Functions | |
void | createColorPopup () const |
void | createModelContext () const |
FWModelContextMenuHandler (const FWModelContextMenuHandler &) | |
const FWModelContextMenuHandler & | operator= (const FWModelContextMenuHandler &) |
Private Attributes | |
TGMenuEntry * | m_afterViewSeperator |
FWColorManager * | m_colorManager |
FWColorPopup * | m_colorPopup |
FWDetailViewManager * | m_detailViewManager |
FWGUIManager * | m_guiManager |
TGPopupMenu * | m_modelPopup |
unsigned int | m_nDetailViewEntries |
unsigned int | m_nViewEntries |
FWSelectionManager * | m_selectionManager |
TGMenuEntry * | m_seperator |
FWViewContextMenuHandlerBase * | m_viewHander |
TGMenuEntry * | m_viewSeperator |
Int_t | m_x |
Int_t | m_y |
Description: Controls the context menus
Usage: This file is used internally by the system
Definition at line 37 of file FWModelContextMenuHandler.h.
FWModelContextMenuHandler::FWModelContextMenuHandler | ( | FWSelectionManager * | iSM, |
FWDetailViewManager * | iDVM, | ||
FWColorManager * | iCM, | ||
FWGUIManager * | iGM | ||
) |
Definition at line 60 of file FWModelContextMenuHandler.cc.
|
virtual |
Definition at line 84 of file FWModelContextMenuHandler.cc.
References m_modelPopup.
|
private |
void FWModelContextMenuHandler::addViewEntry | ( | const char * | iEntryName, |
int | iEntryIndex, | ||
bool | enabled = true |
||
) |
Definition at line 198 of file FWModelContextMenuHandler.cc.
References cms::cuda::assert(), cms::soa::RestrictQualify::enabled, kViewOptionsMO, m_afterViewSeperator, m_modelPopup, m_nViewEntries, and m_viewSeperator.
void FWModelContextMenuHandler::chosenItem | ( | Int_t | iChoice | ) |
Definition at line 114 of file FWModelContextMenuHandler.cc.
References cms::cuda::assert(), FWColorManager::backgroundColorIndex(), pv::colors, createColorPopup(), FWDetailViewManager::detailViewsFor(), FWColorManager::fillLimitedColors(), B2GTnPMonitor_cfi::item, FWColorManager::kBlackIndex, kOpen3DRegion, kOpenCollectionControllerMO, kOpenDetailViewMO, kOpenObjectControllerMO, kSetColorMO, kSetVisibleMO, kViewOptionsMO, m_colorManager, m_colorPopup, m_detailViewManager, m_guiManager, m_selectionManager, m_viewHander, m_x, m_y, FWGUIManager::open3DRegion(), FWDetailViewManager::openDetailViewFor(), FWColorPopup::PlacePopup(), FWColorPopup::ResetColors(), FWViewContextMenuHandlerBase::select(), FWSelectionManager::selected(), FWColorPopup::SetName(), FWColorPopup::SetSelection(), FWGUIManager::showEDIFrame(), and FWGUIManager::showModelPopup().
FWModelContextMenuHandler::ClassDef | ( | FWModelContextMenuHandler | , |
0 | |||
) |
void FWModelContextMenuHandler::colorChangeRequested | ( | Color_t | color | ) |
Definition at line 187 of file FWModelContextMenuHandler.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, m_selectionManager, FWSelectionManager::selected(), and FWDisplayProperties::setColor().
|
private |
Definition at line 337 of file FWModelContextMenuHandler.cc.
References pv::colors, FWColorManager::fillLimitedColors(), FWColorPopup::InitContent(), m_colorManager, and m_colorPopup.
Referenced by chosenItem().
|
private |
Definition at line 313 of file FWModelContextMenuHandler.cc.
References cms::cuda::assert(), kOpen3DRegion, kOpenCollectionControllerMO, kOpenDetailView, kOpenDetailViewMO, kOpenObjectControllerMO, kSetColorMO, kSetVisibleMO, m_afterViewSeperator, m_modelPopup, m_nDetailViewEntries, and m_seperator.
Referenced by showSelectedModelContext().
|
private |
void FWModelContextMenuHandler::showSelectedModelContext | ( | Int_t | iX, |
Int_t | iY, | ||
FWViewContextMenuHandlerBase * | iHandler | ||
) | const |
NOTE: iX and iY are in global coordinates.
Definition at line 227 of file FWModelContextMenuHandler.cc.
References FWViewContextMenuHandlerBase::addTo(), cms::cuda::assert(), createModelContext(), FWDetailViewManager::detailViewsFor(), mps_fire::i, B2GTnPMonitor_cfi::item, kOpenDetailView, kOpenDetailViewMO, kSetVisibleMO, kViewOptionsMO, m_detailViewManager, m_modelPopup, m_nDetailViewEntries, m_nViewEntries, m_selectionManager, m_seperator, m_viewHander, m_viewSeperator, m_x, m_y, FWSelectionManager::selected(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FWGUIManager::showSelectedModelContextMenu().
|
mutableprivate |
Definition at line 71 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), and createModelContext().
|
private |
Definition at line 67 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and createColorPopup().
|
mutableprivate |
Definition at line 64 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and createColorPopup().
|
private |
Definition at line 66 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().
|
private |
Definition at line 68 of file FWModelContextMenuHandler.h.
Referenced by chosenItem().
|
mutableprivate |
Definition at line 63 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), createModelContext(), showSelectedModelContext(), and ~FWModelContextMenuHandler().
|
mutableprivate |
Definition at line 74 of file FWModelContextMenuHandler.h.
Referenced by createModelContext(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 75 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), and showSelectedModelContext().
|
private |
Definition at line 65 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), colorChangeRequested(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 69 of file FWModelContextMenuHandler.h.
Referenced by createModelContext(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 76 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 70 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 72 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 73 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().