ROOT  6.06/09
Reference Guide
Public Slots | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TQCanvasMenu Class Reference

Definition at line 50 of file TQCanvasMenu.h.

Public Slots

void Execute (int id)
 Slot defined to execute a method from a selected TObject using TObject::Execute() function. More...
 

Public Member Functions

 TQCanvasMenu (QWidget *parent=0, TCanvas *canvas=0)
 
 TQCanvasMenu (QWidget *parent, QWidget *tabWin, TCanvas *canvas)
 ctor, create the popup menu More...
 
virtual ~TQCanvasMenu ()
 dtor More...
 
void Popup (TObject *obj, double x, double y, QMouseEvent *e)
 Perform the corresponding selected TObject popup in the position defined by x, y coordinates (in user coordinate system). More...
 
void Dialog (TObject *obj, TMethod *method)
 Create dialog object with OK and Cancel buttons. More...
 
char * CreateDialogTitle (TObject *object, TMethod *method)
 Create title for dialog box retrieving argument values. More...
 
char * CreateArgumentTitle (TMethodArg *argument)
 Create string describing argument (for use in dialog box). More...
 

Protected Attributes

TObjectfCurrObj
 
QPopupMenu * fPopup
 
TList fMethods
 
TCanvasfc
 
TQRootDialogfDialog
 
QWidget * fParent
 
QWidget * fTabWin
 
double fMousePosX
 
double fMousePosY
 

Private Member Functions

 TQCanvasMenu (const TQCanvasMenu &c)
 
TQCanvasMenuoperator= (const TQCanvasMenu &)
 

#include <TQCanvasMenu.h>

+ Inheritance diagram for TQCanvasMenu:
+ Collaboration diagram for TQCanvasMenu:

Constructor & Destructor Documentation

TQCanvasMenu::TQCanvasMenu ( const TQCanvasMenu c)
private
TQCanvasMenu::TQCanvasMenu ( QWidget *  parent = 0,
TCanvas canvas = 0 
)
TQCanvasMenu::TQCanvasMenu ( QWidget *  parent,
QWidget *  tabWin,
TCanvas canvas 
)

ctor, create the popup menu

Definition at line 57 of file TQCanvasMenu.cxx.

TQCanvasMenu::~TQCanvasMenu ( )
virtual

dtor

Definition at line 71 of file TQCanvasMenu.cxx.

Member Function Documentation

char * TQCanvasMenu::CreateArgumentTitle ( TMethodArg argument)

Create string describing argument (for use in dialog box).

Definition at line 94 of file TQCanvasMenu.cxx.

Referenced by Dialog().

char * TQCanvasMenu::CreateDialogTitle ( TObject object,
TMethod method 
)

Create title for dialog box retrieving argument values.

Definition at line 79 of file TQCanvasMenu.cxx.

Referenced by Dialog().

void TQCanvasMenu::Dialog ( TObject object,
TMethod method 
)

Create dialog object with OK and Cancel buttons.

This dialog prompts for the arguments of "method".

Definition at line 184 of file TQCanvasMenu.cxx.

Referenced by Execute().

void TQCanvasMenu::Execute ( int  id)
slot

Slot defined to execute a method from a selected TObject using TObject::Execute() function.

Definition at line 155 of file TQCanvasMenu.cxx.

Referenced by Popup().

TQCanvasMenu& TQCanvasMenu::operator= ( const TQCanvasMenu )
inlineprivate

Definition at line 56 of file TQCanvasMenu.h.

void TQCanvasMenu::Popup ( TObject obj,
double  x,
double  y,
QMouseEvent *  e 
)

Perform the corresponding selected TObject popup in the position defined by x, y coordinates (in user coordinate system).

Parameters
obj(TObject*)
p(QPoint&)

Definition at line 119 of file TQCanvasMenu.cxx.

Referenced by TQRootCanvas::mousePressEvent().

Member Data Documentation

TCanvas* TQCanvasMenu::fc
protected

Definition at line 74 of file TQCanvasMenu.h.

Referenced by Dialog(), Execute(), and TQCanvasMenu().

TObject* TQCanvasMenu::fCurrObj
protected

Definition at line 71 of file TQCanvasMenu.h.

Referenced by Execute(), Popup(), and TQCanvasMenu().

TQRootDialog* TQCanvasMenu::fDialog
protected

Definition at line 75 of file TQCanvasMenu.h.

Referenced by Dialog(), and TQCanvasMenu().

TList TQCanvasMenu::fMethods
protected

Definition at line 73 of file TQCanvasMenu.h.

Referenced by Execute(), and Popup().

double TQCanvasMenu::fMousePosX
protected

Definition at line 78 of file TQCanvasMenu.h.

Referenced by Execute(), Popup(), and TQCanvasMenu().

double TQCanvasMenu::fMousePosY
protected

Definition at line 79 of file TQCanvasMenu.h.

Referenced by Execute(), Popup(), and TQCanvasMenu().

QWidget* TQCanvasMenu::fParent
protected

Definition at line 77 of file TQCanvasMenu.h.

Referenced by Dialog(), and TQCanvasMenu().

QPopupMenu* TQCanvasMenu::fPopup
protected

Definition at line 72 of file TQCanvasMenu.h.

Referenced by Popup(), TQCanvasMenu(), and ~TQCanvasMenu().

QWidget * TQCanvasMenu::fTabWin
protected

Definition at line 77 of file TQCanvasMenu.h.

Referenced by TQCanvasMenu().


The documentation for this class was generated from the following files: