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(FWSelectionManager *, FWDetailViewManager *, FWColorManager *, FWGUIManager *)
FWSelectionManager * m_selectionManager
const FWModelContextMenuHandler & operator=(const FWModelContextMenuHandler &)
constexpr bool enabled
Definition: SoACommon.h:73
void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase *) const
NOTE: iX and iY are in global coordinates.
FWViewContextMenuHandlerBase * m_viewHander
ClassDef(FWModelContextMenuHandler, 0)
FWDetailViewManager * m_detailViewManager
void addViewEntry(const char *, int, bool enabled=true)