CMS 3D CMS Logo

FWModelContextMenuHandler.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWModelContextMenuHandler_h
2 #define Fireworks_Core_FWModelContextMenuHandler_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWModelContextMenuHandler
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Sep 22 13:26:02 CDT 2009
19 //
20 
21 // system include files
22 #include "Rtypes.h"
23 #include "GuiTypes.h"
24 
25 // user include files
26 
27 // forward declarations
28 class TGPopupMenu;
29 class TGMenuEntry;
30 class FWSelectionManager;
32 class FWColorManager;
33 class FWColorPopup;
34 class FWGUIManager;
36 
38 public:
41 
42  // ---------- const member functions ---------------------
44  void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase*) const;
45 
46  // ---------- static member functions --------------------
47 
48  // ---------- member functions ---------------------------
49  void chosenItem(Int_t);
50  void colorChangeRequested(Color_t);
51 
52  void addViewEntry(const char*, int, bool enabled = true);
54 
55 private:
57 
58  const FWModelContextMenuHandler& operator=(const FWModelContextMenuHandler&); // stop default
59 
60  void createModelContext() const;
61  void createColorPopup() const;
62  // ---------- member data --------------------------------
63  mutable TGPopupMenu* m_modelPopup;
69  mutable TGMenuEntry* m_seperator;
70  mutable TGMenuEntry* m_viewSeperator;
71  mutable TGMenuEntry* m_afterViewSeperator;
72  mutable Int_t m_x;
73  mutable Int_t m_y;
74  mutable unsigned int m_nDetailViewEntries;
75  mutable unsigned int m_nViewEntries;
77 };
78 
79 #endif
FWModelContextMenuHandler::m_colorPopup
FWColorPopup * m_colorPopup
Definition: FWModelContextMenuHandler.h:64
FWGUIManager
Definition: FWGUIManager.h:95
FWModelContextMenuHandler::m_seperator
TGMenuEntry * m_seperator
Definition: FWModelContextMenuHandler.h:69
FWViewContextMenuHandlerBase
Definition: FWViewContextMenuHandlerBase.h:29
FWModelContextMenuHandler::m_nDetailViewEntries
unsigned int m_nDetailViewEntries
Definition: FWModelContextMenuHandler.h:74
FWModelContextMenuHandler
Definition: FWModelContextMenuHandler.h:37
FWModelContextMenuHandler::m_modelPopup
TGPopupMenu * m_modelPopup
Definition: FWModelContextMenuHandler.h:63
FWModelContextMenuHandler::addViewEntry
void addViewEntry(const char *, int, bool enabled=true)
Definition: FWModelContextMenuHandler.cc:198
FWDetailViewManager
Definition: FWDetailViewManager.h:35
FWModelContextMenuHandler::m_colorManager
FWColorManager * m_colorManager
Definition: FWModelContextMenuHandler.h:67
FWModelContextMenuHandler::operator=
const FWModelContextMenuHandler & operator=(const FWModelContextMenuHandler &)
FWModelContextMenuHandler::~FWModelContextMenuHandler
virtual ~FWModelContextMenuHandler()
Definition: FWModelContextMenuHandler.cc:84
FWModelContextMenuHandler::m_x
Int_t m_x
Definition: FWModelContextMenuHandler.h:72
FWModelContextMenuHandler::m_detailViewManager
FWDetailViewManager * m_detailViewManager
Definition: FWModelContextMenuHandler.h:66
FWModelContextMenuHandler::FWModelContextMenuHandler
FWModelContextMenuHandler(FWSelectionManager *, FWDetailViewManager *, FWColorManager *, FWGUIManager *)
Definition: FWModelContextMenuHandler.cc:60
FWModelContextMenuHandler::m_afterViewSeperator
TGMenuEntry * m_afterViewSeperator
Definition: FWModelContextMenuHandler.h:71
FWSelectionManager
Definition: FWSelectionManager.h:34
FWModelContextMenuHandler::colorChangeRequested
void colorChangeRequested(Color_t)
Definition: FWModelContextMenuHandler.cc:187
FWModelContextMenuHandler::ClassDef
ClassDef(FWModelContextMenuHandler, 0)
FWModelContextMenuHandler::m_y
Int_t m_y
Definition: FWModelContextMenuHandler.h:73
FWModelContextMenuHandler::m_guiManager
FWGUIManager * m_guiManager
Definition: FWModelContextMenuHandler.h:68
FWColorManager
Definition: FWColorManager.h:45
FWColorPopup
Definition: FWColorSelect.h:68
FWModelContextMenuHandler::m_viewSeperator
TGMenuEntry * m_viewSeperator
Definition: FWModelContextMenuHandler.h:70
FWModelContextMenuHandler::createModelContext
void createModelContext() const
Definition: FWModelContextMenuHandler.cc:313
FWModelContextMenuHandler::m_viewHander
FWViewContextMenuHandlerBase * m_viewHander
Definition: FWModelContextMenuHandler.h:76
FWModelContextMenuHandler::showSelectedModelContext
void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase *) const
NOTE: iX and iY are in global coordinates.
Definition: FWModelContextMenuHandler.cc:227
FWModelContextMenuHandler::m_nViewEntries
unsigned int m_nViewEntries
Definition: FWModelContextMenuHandler.h:75
FWModelContextMenuHandler::chosenItem
void chosenItem(Int_t)
Definition: FWModelContextMenuHandler.cc:114
FWModelContextMenuHandler::createColorPopup
void createColorPopup() const
Definition: FWModelContextMenuHandler.cc:337
FWModelContextMenuHandler::m_selectionManager
FWSelectionManager * m_selectionManager
Definition: FWModelContextMenuHandler.h:65
pixel_dqm_sourceclient-live_cfg.enabled
enabled
Definition: pixel_dqm_sourceclient-live_cfg.py:136