TRootContextMenu


class description - source file - inheritance tree

class TRootContextMenu : public TGPopupMenu, public TContextMenuImp

    private:
void CreateMenu(TObject* object) public:
TRootContextMenu TRootContextMenu(TContextMenu* c, const char* name) TRootContextMenu TRootContextMenu(TRootContextMenu&) virtual void ~TRootContextMenu() static TClass* Class() virtual void Dialog(TObject* object, TMethod* method) 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)

Data Members

private:
TRootDialog* fDialog dialog prompting for command line arguments TList* fCleanup list of objects to be deleted before refilling menu

Class Description

                                                                      
 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.
                                                                      
                      
                                                                      


TRootContextMenu(TContextMenu *c, const char *) : TGPopupMenu(gClient->GetRoot()), TContextMenuImp(c)
 Create context menu.

~TRootContextMenu()
 Delete a context menu.

void DisplayPopup(Int_t x, Int_t y)
 Display context popup menu for currently selected object.

void CreateMenu(TObject *object)
 Create the context menu depending in 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".

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Handle context menu messages.



Inline Functions


            TRootDialog* GetDialog() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
        TRootContextMenu TRootContextMenu(TRootContextMenu&)


Author: Fons Rademakers 12/02/98
Last update: root/gui:$Name: $:$Id: TRootContextMenu.cxx,v 1.1.1.1 2000/05/16 17:00:42 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.