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 protected:
59 private:
60  FWViewContextMenuHandlerBase(const FWViewContextMenuHandlerBase&) = delete; // stop default
61 
62  const FWViewContextMenuHandlerBase& operator=(const FWViewContextMenuHandlerBase&) = delete; // stop default
63 
65  virtual void init(MenuEntryAdder&, const FWModelId& id) = 0;
66 };
67 
68 #endif
FWViewContextMenuHandlerBase::operator=
const FWViewContextMenuHandlerBase & operator=(const FWViewContextMenuHandlerBase &)=delete
FWViewContextMenuHandlerBase::select
virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY)=0
FWModelId
Definition: FWModelId.h:28
FWViewContextMenuHandlerBase
Definition: FWViewContextMenuHandlerBase.h:29
Reconstruction_hiPF_cff.enable
enable
Definition: Reconstruction_hiPF_cff.py:84
FWModelContextMenuHandler
Definition: FWModelContextMenuHandler.h:37
training_settings.idx
idx
Definition: training_settings.py:16
FWViewContextMenuHandlerBase::init
virtual void init(MenuEntryAdder &, const FWModelId &id)=0
Called when have to add entries to the context menu.
FWViewContextMenuHandlerBase::MenuEntryAdder::m_handler
FWModelContextMenuHandler * m_handler
Definition: FWViewContextMenuHandlerBase.h:37
FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry
int addEntry(const char *iEntryName, int idx, bool enable=true)
Definition: FWViewContextMenuHandlerBase.cc:29
FWViewContextMenuHandlerBase::MenuEntryAdder::MenuEntryAdder
MenuEntryAdder(FWModelContextMenuHandler &)
Definition: FWViewContextMenuHandlerBase.cc:26
FWViewContextMenuHandlerBase::MenuEntryAdder
Definition: FWViewContextMenuHandlerBase.h:34
FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase
FWViewContextMenuHandlerBase()
Definition: FWViewContextMenuHandlerBase.cc:37
FWViewContextMenuHandlerBase::addTo
void addTo(FWModelContextMenuHandler &, const FWModelId &id)
Definition: FWViewContextMenuHandlerBase.cc:61
FWViewContextMenuHandlerBase::~FWViewContextMenuHandlerBase
virtual ~FWViewContextMenuHandlerBase()
Definition: FWViewContextMenuHandlerBase.cc:44