TRootContextMenu


class description - source file - inheritance tree

class TRootContextMenu : public TGPopupMenu, public TContextMenuImp

    private:
void CreateMenu(TObject* object) public:
TRootContextMenu TRootContextMenu(TContextMenu* c, char* name) TRootContextMenu TRootContextMenu(TRootContextMenu&) virtual void ~TRootContextMenu() TClass* Class() virtual void Dialog(TObject* object, TMethod* method) virtual void DisplayPopup(Int_t x, Int_t y) TRootDialog* GetDialog() virtual TClass* IsA() 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()
                 TClass* Class()
                 TClass* IsA()
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
        TRootContextMenu TRootContextMenu(TRootContextMenu&)


Author: Fons Rademakers 12/02/98
Last update: 2.22/09 13/07/99 10.52.17 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.