CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWViewContextMenuHandlerBase.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWViewContextMenuHandlerBase
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones
10 // Created: Mon Nov 2 13:46:48 CST 2009
11 // $Id: FWViewContextMenuHandlerBase.cc,v 1.4 2011/03/25 18:02:46 amraktad Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
28 m_handler(&iHandler){}
29 
30 int
31 FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry(const char* iEntryName, int idx, bool enabled)
32 {
33  m_handler->addViewEntry(iEntryName, idx, enabled);
34  return idx;
35 }
36 
37 
38 //
39 // constructors and destructor
40 //
42 {
43 }
44 
45 // FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase(const FWViewContextMenuHandlerBase& rhs)
46 // {
47 // // do actual copying here;
48 // }
49 
51 {
52 }
53 
54 //
55 // assignment operators
56 //
57 // const FWViewContextMenuHandlerBase& FWViewContextMenuHandlerBase::operator=(const FWViewContextMenuHandlerBase& rhs)
58 // {
59 // //An exception safe implementation is
60 // FWViewContextMenuHandlerBase temp(rhs);
61 // swap(rhs);
62 //
63 // return *this;
64 // }
65 
66 //
67 // member functions
68 //
69 void
71 {
72  MenuEntryAdder adder(iHandle);
73  init(adder, id);
74 }
virtual void init(MenuEntryAdder &, const FWModelId &id)=0
Called when have to add entries to the context menu.
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)