ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_Rtypes
26 #include "Rtypes.h"
27 #endif
28 
29 class TContextMenu;
30 class TObject;
31 class TMethod;
32 class TFunction;
33 
34 
36 
37 protected:
38  TContextMenu *fContextMenu; //TContextMenu associated with this implementation
39 
41  : fContextMenu(cmi.fContextMenu) { }
43  {if(this!=&cmi) fContextMenu=cmi.fContextMenu;
44  return *this;}
45 
46 public:
47  TContextMenuImp(TContextMenu *c=0) : fContextMenu(c) { }
48  virtual ~TContextMenuImp() { }
49 
50  virtual TContextMenu *GetContextMenu() const { return fContextMenu; }
51 
52  virtual void Dialog(TObject *object, TFunction *function);
53  virtual void Dialog(TObject *object, TMethod *method);
54  virtual void DisplayPopup(Int_t x, Int_t y);
55 
56  ClassDef(TContextMenuImp,0) //Context sensitive popup menu implementation
57 };
58 
62 
63 #endif
This class provides an interface to GUI independent context sensitive popup menus.
TContextMenuImp & operator=(const TContextMenuImp &cmi)
virtual TContextMenu * GetContextMenu() const
int Int_t
Definition: RtypesCore.h:41
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:254
TContextMenuImp(TContextMenu *c=0)
virtual void Dialog(TObject *object, TFunction *function)
virtual ~TContextMenuImp()
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:44
TContextMenu * fContextMenu
Double_t y[n]
Definition: legend1.C:17
Mother of all ROOT objects.
Definition: TObject.h:58
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:40
TContextMenuImp(const TContextMenuImp &cmi)
virtual void DisplayPopup(Int_t x, Int_t y)