CMS 3D CMS Logo

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 
30 public:
33 
38  // int m_lastIndex;
39  public:
42  int addEntry(const char* iEntryName, int idx, bool enable = true);
43  };
44 
45  // ---------- const member functions ---------------------
46 
47  // ---------- static member functions --------------------
48 
49  // ---------- member functions ---------------------------
50  void addTo(FWModelContextMenuHandler&, const FWModelId& id);
51 
56  virtual void select(int iEntryIndex, const FWModelId& id, int iX, int iY) = 0;
57 
58  FWViewContextMenuHandlerBase(const FWViewContextMenuHandlerBase&) = delete; // stop default
59 
60  const FWViewContextMenuHandlerBase& operator=(const FWViewContextMenuHandlerBase&) = delete; // stop default
61 
62 private:
64  virtual void init(MenuEntryAdder&, const FWModelId& id) = 0;
65 };
66 
67 #endif
virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY)=0
const FWViewContextMenuHandlerBase & operator=(const FWViewContextMenuHandlerBase &)=delete
virtual void init(MenuEntryAdder &, const FWModelId &id)=0
Called when have to add entries to the context menu.
enable
Messages.
Definition: DiMuonV_cfg.py:93
void addTo(FWModelContextMenuHandler &, const FWModelId &id)
int addEntry(const char *iEntryName, int idx, bool enable=true)