Warning, file /include/root/TContextMenuImp.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TContextMenuImp
0013 #define ROOT_TContextMenuImp
0014
0015 #include "Rtypes.h"
0016
0017 class TContextMenu;
0018 class TObject;
0019 class TMethod;
0020 class TFunction;
0021
0022
0023 class TContextMenuImp {
0024
0025 protected:
0026 TContextMenu *fContextMenu{nullptr};
0027
0028 TContextMenuImp(const TContextMenuImp &cmi) : fContextMenu(cmi.fContextMenu) {}
0029 TContextMenuImp &operator=(const TContextMenuImp &cmi)
0030 {
0031 if (this != &cmi)
0032 fContextMenu = cmi.fContextMenu;
0033 return *this;
0034 }
0035
0036 public:
0037 TContextMenuImp(TContextMenu *c = nullptr) : fContextMenu(c) {}
0038 virtual ~TContextMenuImp() {}
0039
0040 virtual TContextMenu *GetContextMenu() const { return fContextMenu; }
0041
0042 virtual void Dialog(TObject *object, TFunction *function) { (void) object; (void) function; }
0043 virtual void Dialog(TObject *object, TMethod *method) { (void) object; (void) method; }
0044 virtual void DisplayPopup(Int_t x, Int_t y) { (void) x; (void) y; }
0045
0046 ClassDef(TContextMenuImp,0)
0047 };
0048
0049 #endif