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 // $Id: FWModelContextMenuHandler.h,v 1.8 2011/03/25 18:02:46 amraktad Exp $
20 //
21 
22 // system include files
23 #include "Rtypes.h"
24 #include "GuiTypes.h"
25 
26 // user include files
27 
28 // forward declarations
29 class TGPopupMenu;
30 class TGMenuEntry;
31 class FWSelectionManager;
33 class FWColorManager;
34 class FWColorPopup;
35 class FWGUIManager;
37 
39 {
40 
41 public:
45  FWGUIManager*);
47 
48  // ---------- const member functions ---------------------
50  void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase*) const;
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  void chosenItem(Int_t);
56  void colorChangeRequested(Color_t);
57 
58  void addViewEntry(const char*, int, bool enabled= true);
60 private:
62 
63  const FWModelContextMenuHandler& operator=(const FWModelContextMenuHandler&); // stop default
64 
65  void createModelContext() const;
66  void createColorPopup() const;
67  // ---------- member data --------------------------------
68  mutable TGPopupMenu* m_modelPopup;
74  mutable TGMenuEntry* m_seperator;
75  mutable TGMenuEntry* m_viewSeperator;
76  mutable TGMenuEntry* m_afterViewSeperator;
77  mutable Int_t m_x;
78  mutable Int_t m_y;
79  mutable unsigned int m_nDetailViewEntries;
80  mutable unsigned int m_nViewEntries;
82 };
83 
84 
85 #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)