Logo ROOT  
Reference Guide
 
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
16////////////////////////////////////////////////////////////////////////////////
17// //
18// TContextMenuImp //
19// //
20// This class provides an interface to GUI independent //
21// context sensitive popup menus. //
22// //
23////////////////////////////////////////////////////////////////////////////////
24
25#include "Rtypes.h"
26
27class TContextMenu;
28class TObject;
29class TMethod;
30class TFunction;
31
32
34
35protected:
36 TContextMenu *fContextMenu; //TContextMenu associated with this implementation
37
39 : fContextMenu(cmi.fContextMenu) { }
41 {if(this!=&cmi) fContextMenu=cmi.fContextMenu;
42 return *this;}
43
44public:
46 virtual ~TContextMenuImp();
47
48 virtual TContextMenu *GetContextMenu() const { return fContextMenu; }
49
50 virtual void Dialog(TObject *object, TFunction *function);
51 virtual void Dialog(TObject *object, TMethod *method);
52 virtual void DisplayPopup(Int_t x, Int_t y);
53
54 ClassDef(TContextMenuImp,0) //Context sensitive popup menu implementation
55};
56
60
61#endif
#define c(i)
Definition RSha256.hxx:101
int Int_t
Definition RtypesCore.h:45
#define ClassDef(name, id)
Definition Rtypes.h:325
This class provides an interface to GUI independent context sensitive popup menus.
virtual ~TContextMenuImp()
TContextMenuImp(const TContextMenuImp &cmi)
virtual void Dialog(TObject *object, TFunction *function)
TContextMenuImp(TContextMenu *c=nullptr)
TContextMenu * fContextMenu
TContextMenuImp & operator=(const TContextMenuImp &cmi)
virtual TContextMenu * GetContextMenu() const
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:37
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17