17 #include "KeySymbols.h" 67 m_selectionManager(iSM),
68 m_detailViewManager(iDVM),
76 m_nDetailViewEntries(0),
109 class change_visibility {
111 change_visibility(
bool iIsVisible): m_isVisible(iIsVisible) {}
112 void operator()(
const FWModelId& iID)
const {
130 change_visibility(!
id.item()->modelInfo(
id.
index()).displayProperties().isVisible())
139 std::vector<Color_t>
colors;
192 assert(!viewChoices.empty());
208 FWDisplayProperties changeProperties = it->item()->modelInfo(it->index()).displayProperties();
210 it->item()->setDisplayProperties(it->index(), changeProperties);
255 if(
id.item()->modelInfo(
id.
index()).displayProperties().isVisible()) {
280 if(!viewChoices.empty()) {
283 index != viewChoices.size();
293 if ( viewChoices[
index][0] !=
'!') {
352 "FWModelContextMenuHandler",
353 const_cast<FWModelContextMenuHandler*>(
this),
354 "chosenItem(Int_t)");
362 std::vector<Color_t>
colors;
367 m_colorPopup->Connect(
"ColorSelected(Color_t)",
"FWModelContextMenuHandler", const_cast<FWModelContextMenuHandler*>(
this),
"colorChangeRequested(Color_t)");
const std::set< FWModelId > & selected() const
FWModelContextMenuHandler(FWSelectionManager *, FWDetailViewManager *, FWColorManager *, FWGUIManager *)
void setColor(Color_t iColor)
FWSelectionManager * m_selectionManager
TGMenuEntry * m_seperator
unsigned int m_nDetailViewEntries
unsigned int m_nViewEntries
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
void createModelContext() const
FWColorManager * m_colorManager
void fillLimitedColors(std::vector< Color_t > &cv) const
TGPopupMenu * m_modelPopup
void showEDIFrame(int iInfoToShow=-1)
Allowed values are -1 or ones from FWDataCategories enum.
virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY)=0
static const char *const kOpenDetailView
BackgroundColorIndex backgroundColorIndex() const
void colorChangeRequested(Color_t)
virtual ~FWModelContextMenuHandler()
TGMenuEntry * m_afterViewSeperator
FWGUIManager * m_guiManager
FWViewContextMenuHandlerBase * m_viewHander
void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase *) const
NOTE: iX and iY are in global coordinates.
void addTo(FWModelContextMenuHandler &, const FWModelId &id)
TGMenuEntry * m_viewSeperator
std::vector< std::string > detailViewsFor(const FWModelId &) const
FWDetailViewManager * m_detailViewManager
void addViewEntry(const char *, int, bool enabled=true)
void openDetailViewFor(const FWModelId &, const std::string &)
ClassImp(FWModelContextMenuHandler)
ModelInfo modelInfo(int iIndex) const
void setIsVisible(bool iSet)
FWColorPopup * m_colorPopup
void createColorPopup() const
const FWEventItem * item() const