Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TContextMenuImp.h
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Nenad Buncic 08/02/96
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TContextMenuImp
13#define ROOT_TContextMenuImp
14
15#include "Rtypes.h"
16
17class TContextMenu;
18class TObject;
19class TMethod;
20class TFunction;
21
22// interface to GUI independent context sensitive popup menus.
24
25protected:
26 TContextMenu *fContextMenu{nullptr}; //TContextMenu associated with this implementation
27
30 {
31 if (this != &cmi)
32 fContextMenu = cmi.fContextMenu;
33 return *this;
34 }
35
36public:
38 virtual ~TContextMenuImp() {}
39
40 virtual TContextMenu *GetContextMenu() const { return fContextMenu; }
41
42 virtual void Dialog(TObject *object, TFunction *function) { (void) object; (void) function; }
43 virtual void Dialog(TObject *object, TMethod *method) { (void) object; (void) method; }
44 virtual void DisplayPopup(Int_t x, Int_t y) { (void) x; (void) y; }
45
46 ClassDef(TContextMenuImp,0) //Context sensitive popup menu implementation
47};
48
49#endif
#define c(i)
Definition RSha256.hxx:101
#define ClassDef(name, id)
Definition Rtypes.h:342
This class provides an interface to GUI independent context sensitive popup menus.
TContextMenuImp(const TContextMenuImp &cmi)
TContextMenuImp(TContextMenu *c=nullptr)
TContextMenu * fContextMenu
virtual void Dialog(TObject *object, TFunction *function)
TContextMenuImp & operator=(const TContextMenuImp &cmi)
virtual TContextMenu * GetContextMenu() const
virtual void Dialog(TObject *object, TMethod *method)
virtual ~TContextMenuImp()
virtual void DisplayPopup(Int_t x, Int_t y)
This class provides an interface to context sensitive popup menus.
Global functions class (global functions are obtained from CINT).
Definition TFunction.h:30
Each ROOT class (see TClass) has a linked list of methods.
Definition TMethod.h:38
Mother of all ROOT objects.
Definition TObject.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17