Logo ROOT   6.12/07
Reference Guide
List of all members | Public Slots | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TQCanvasMenu Class Reference

Definition at line 48 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)
 ctor, create the popup menu More...
 
 TQCanvasMenu (QWidget *parent, QWidget *tabWin, TCanvas *canvas)
 ctor, create the popup menu More...
 
virtual ~TQCanvasMenu ()
 dtor More...
 
char * CreateArgumentTitle (TMethodArg *argument)
 Create string describing argument (for use in dialog box). More...
 
char * CreateDialogTitle (TObject *object, TMethod *method)
 Create title for dialog box retrieving argument values. More...
 
void Dialog (TObject *obj, TMethod *method)
 Create dialog object with OK and Cancel buttons. 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...
 

Protected Attributes

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

Private Member Functions

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

#include <TQCanvasMenu.h>

Inheritance diagram for TQCanvasMenu:
[legend]

Constructor & Destructor Documentation

◆ TQCanvasMenu() [1/3]

TQCanvasMenu::TQCanvasMenu ( const TQCanvasMenu c)
private

◆ TQCanvasMenu() [2/3]

TQCanvasMenu::TQCanvasMenu ( QWidget *  parent = 0,
TCanvas canvas = 0 
)

ctor, create the popup menu

Definition at line 43 of file TQCanvasMenu.cxx.

◆ TQCanvasMenu() [3/3]

TQCanvasMenu::TQCanvasMenu ( QWidget *  parent,
QWidget *  tabWin,
TCanvas canvas 
)

ctor, create the popup menu

Definition at line 57 of file TQCanvasMenu.cxx.

◆ ~TQCanvasMenu()

TQCanvasMenu::~TQCanvasMenu ( )
virtual

dtor

Definition at line 71 of file TQCanvasMenu.cxx.

Member Function Documentation

◆ CreateArgumentTitle()

char * TQCanvasMenu::CreateArgumentTitle ( TMethodArg argument)

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

Definition at line 94 of file TQCanvasMenu.cxx.

◆ CreateDialogTitle()

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

Create title for dialog box retrieving argument values.

Definition at line 79 of file TQCanvasMenu.cxx.

◆ 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.

◆ 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.

◆ operator=()

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

Definition at line 54 of file TQCanvasMenu.h.

◆ Popup()

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.

Member Data Documentation

◆ fc

TCanvas* TQCanvasMenu::fc
protected

Definition at line 72 of file TQCanvasMenu.h.

◆ fCurrObj

TObject* TQCanvasMenu::fCurrObj
protected

Definition at line 69 of file TQCanvasMenu.h.

◆ fDialog

TQRootDialog* TQCanvasMenu::fDialog
protected

Definition at line 73 of file TQCanvasMenu.h.

◆ fMethods

TList TQCanvasMenu::fMethods
protected

Definition at line 71 of file TQCanvasMenu.h.

◆ fMousePosX

double TQCanvasMenu::fMousePosX
protected

Definition at line 76 of file TQCanvasMenu.h.

◆ fMousePosY

double TQCanvasMenu::fMousePosY
protected

Definition at line 77 of file TQCanvasMenu.h.

◆ fParent

QWidget* TQCanvasMenu::fParent
protected

Definition at line 75 of file TQCanvasMenu.h.

◆ fPopup

QPopupMenu* TQCanvasMenu::fPopup
protected

Definition at line 70 of file TQCanvasMenu.h.

◆ fTabWin

QWidget * TQCanvasMenu::fTabWin
protected

Definition at line 75 of file TQCanvasMenu.h.

Libraries for TQCanvasMenu:
[legend]

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