Back to home page

EIC code displayed by LXR

 
 

    


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 // @(#)root/base:$Id$
0002 // Author: Nenad Buncic   08/02/96
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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 // interface to GUI independent context sensitive popup menus.
0023 class TContextMenuImp {
0024 
0025 protected:
0026    TContextMenu *fContextMenu{nullptr}; //TContextMenu associated with this implementation
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) //Context sensitive popup menu implementation
0047 };
0048 
0049 #endif