CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
39 
40 public:
44  FWGUIManager*);
46 
47  // ---------- const member functions ---------------------
49  void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase*) const;
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  void chosenItem(Int_t);
55  void colorChangeRequested(Color_t);
56 
57  void addViewEntry(const char*, int, bool enabled= true);
59 private:
61 
62  const FWModelContextMenuHandler& operator=(const FWModelContextMenuHandler&); // stop default
63 
64  void createModelContext() const;
65  void createColorPopup() const;
66  // ---------- member data --------------------------------
67  mutable TGPopupMenu* m_modelPopup;
73  mutable TGMenuEntry* m_seperator;
74  mutable TGMenuEntry* m_viewSeperator;
75  mutable TGMenuEntry* m_afterViewSeperator;
76  mutable Int_t m_x;
77  mutable Int_t m_y;
78  mutable unsigned int m_nDetailViewEntries;
79  mutable unsigned int m_nViewEntries;
81 };
82 
83 
84 #endif
FWModelContextMenuHandler(FWSelectionManager *, FWDetailViewManager *, FWColorManager *, FWGUIManager *)
FWSelectionManager * m_selectionManager
const FWModelContextMenuHandler & operator=(const FWModelContextMenuHandler &)
FWViewContextMenuHandlerBase * m_viewHander
void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase *) const
NOTE: iX and iY are in global coordinates.
ClassDef(FWModelContextMenuHandler, 0)
FWDetailViewManager * m_detailViewManager
void addViewEntry(const char *, int, bool enabled=true)