library: libGui #include "TRootContextMenu.h" |
TRootContextMenu
class description - header file - source file - inheritance tree (.pdf)
private:
TRootContextMenu(const TRootContextMenu&)
void CreateMenu(TObject* object)
TRootContextMenu& operator=(const TRootContextMenu&)
public:
TRootContextMenu(TContextMenu* c = 0, const char* name = "ROOT Context Menu")
virtual ~TRootContextMenu()
static TClass* Class()
virtual void Dialog(TObject* object, TMethod* method)
virtual void Dialog(TObject* object, TFunction* function)
virtual void DisplayPopup(Int_t x, Int_t y)
TRootDialog* GetDialog() const
virtual TClass* IsA() const
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
TRootDialog* fDialog dialog prompting for command line arguments
TList* fTrash list of objects to be deleted before refilling menu
TRootContextMenu
This class provides an interface to context sensitive popup menus.
These menus pop up when the user hits the right mouse button, and
are destroyed when the menu pops downs.
The picture below shows a canvas with a pop-up menu.
The picture below shows a canvas with a pop-up menu and a dialog box.
void CreateMenu(TObject *object)
Create the context menu depending on the selected object.
void Dialog(TObject *object, TMethod *method)
Create dialog object with OK and Cancel buttons. This dialog
prompts for the arguments of "method".
void Dialog(TObject *object, TFunction *function)
Create dialog object with OK and Cancel buttons. This dialog
prompts for the arguments of "function".
function may be a global function or a method
Author: Fons Rademakers 12/02/98
Last update: root/gui:$Name: $:$Id: TRootContextMenu.cxx,v 1.15 2006/04/13 15:32:35 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.