CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWViewContextMenuHandlerBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewContextMenuHandlerBase_h
2 #define Fireworks_Core_FWViewContextMenuHandlerBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewContextMenuHandlerBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Mon Nov 2 13:46:26 CST 2009
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 class FWModelId;
28 
29 
31 {
32 
33 public:
36 
41  // int m_lastIndex;
42  public:
45  int addEntry(const char* iEntryName, int idx, bool enable = true);
46  };
47 
48  // ---------- const member functions ---------------------
49 
50  // ---------- static member functions --------------------
51 
52  // ---------- member functions ---------------------------
53  void addTo(FWModelContextMenuHandler&, const FWModelId &id);
54 
59  virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY) = 0;
60 protected:
61 
62 private:
64 
66 
68  virtual void init(MenuEntryAdder&, const FWModelId &id) = 0;
69 
70 
71 };
72 
73 #endif
virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY)=0
virtual void init(MenuEntryAdder &, const FWModelId &id)=0
Called when have to add entries to the context menu.
const FWViewContextMenuHandlerBase & operator=(const FWViewContextMenuHandlerBase &)
void addTo(FWModelContextMenuHandler &, const FWModelId &id)
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
int addEntry(const char *iEntryName, int idx, bool enable=true)