#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 61 of file FWModelContextMenuHandler.cc.
|
virtual |
Definition at line 87 of file FWModelContextMenuHandler.cc.
References m_modelPopup.
|
private |
void FWModelContextMenuHandler::addViewEntry | ( | const char * | iEntryName, |
int | iEntryIndex, | ||
bool | enabled = true |
||
) |
Definition at line 216 of file FWModelContextMenuHandler.cc.
References assert(), kViewOptionsMO, m_afterViewSeperator, m_modelPopup, m_nViewEntries, and m_viewSeperator.
void FWModelContextMenuHandler::chosenItem | ( | Int_t | iChoice | ) |
Definition at line 121 of file FWModelContextMenuHandler.cc.
References assert(), FWColorManager::backgroundColorIndex(), create_public_lumi_plots::color, colors, createColorPopup(), FWDetailViewManager::detailViewsFor(), FWColorManager::fillLimitedColors(), cmsHarvester::index, FWDisplayProperties::isVisible(), 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 203 of file FWModelContextMenuHandler.cc.
References m_selectionManager, FWSelectionManager::selected(), and FWDisplayProperties::setColor().
|
private |
Definition at line 361 of file FWModelContextMenuHandler.cc.
References colors, FWColorManager::fillLimitedColors(), FWColorPopup::InitContent(), m_colorManager, and m_colorPopup.
Referenced by chosenItem().
|
private |
Definition at line 335 of file FWModelContextMenuHandler.cc.
References 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 248 of file FWModelContextMenuHandler.cc.
References FWViewContextMenuHandlerBase::addTo(), assert(), createModelContext(), FWDetailViewManager::detailViewsFor(), i, cmsHarvester::index, FWDisplayProperties::isVisible(), 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 75 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), and createModelContext().
|
private |
Definition at line 71 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and createColorPopup().
|
mutableprivate |
Definition at line 68 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and createColorPopup().
|
private |
Definition at line 70 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().
|
private |
Definition at line 72 of file FWModelContextMenuHandler.h.
Referenced by chosenItem().
|
mutableprivate |
Definition at line 67 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), createModelContext(), showSelectedModelContext(), and ~FWModelContextMenuHandler().
|
mutableprivate |
Definition at line 78 of file FWModelContextMenuHandler.h.
Referenced by createModelContext(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 79 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), and showSelectedModelContext().
|
private |
Definition at line 69 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), colorChangeRequested(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 73 of file FWModelContextMenuHandler.h.
Referenced by createModelContext(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 80 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 74 of file FWModelContextMenuHandler.h.
Referenced by addViewEntry(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 76 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().
|
mutableprivate |
Definition at line 77 of file FWModelContextMenuHandler.h.
Referenced by chosenItem(), and showSelectedModelContext().