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 // $Id: FWViewContextMenuHandlerBase.h,v 1.5 2011/03/25 18:02:45 amraktad Exp $
20 //
21 
22 // system include files
23 
24 // user include files
25 
26 // forward declarations
27 class FWModelId;
29 
30 
32 {
33 
34 public:
37 
42  // int m_lastIndex;
43  public:
46  int addEntry(const char* iEntryName, int idx, bool enable = true);
47  };
48 
49  // ---------- const member functions ---------------------
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  void addTo(FWModelContextMenuHandler&, const FWModelId &id);
55 
60  virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY) = 0;
61 protected:
62 
63 private:
65 
67 
69  virtual void init(MenuEntryAdder&, const FWModelId &id) = 0;
70 
71 
72 };
73 
74 #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)