Logo ROOT   6.14/05
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 33 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 *wparent=0, TCanvas *canvas=0)
 ctor, create the popup menu More...
 
 TQCanvasMenu (QWidget *wparent, 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
 
QMenu fMenu
 
TList fMethods
 
double fMousePosX
 
double fMousePosY
 
QWidget * fParent
 
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 *  wparent = 0,
TCanvas canvas = 0 
)

ctor, create the popup menu

Definition at line 30 of file TQCanvasMenu.cxx.

◆ TQCanvasMenu() [3/3]

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

ctor, create the popup menu

Definition at line 43 of file TQCanvasMenu.cxx.

◆ ~TQCanvasMenu()

TQCanvasMenu::~TQCanvasMenu ( )
virtual

dtor

Definition at line 56 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 78 of file TQCanvasMenu.cxx.

◆ CreateDialogTitle()

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

Create title for dialog box retrieving argument values.

Definition at line 63 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 164 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 135 of file TQCanvasMenu.cxx.

◆ operator=()

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

Definition at line 39 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 103 of file TQCanvasMenu.cxx.

Member Data Documentation

◆ fc

TCanvas* TQCanvasMenu::fc
protected

Definition at line 57 of file TQCanvasMenu.h.

◆ fCurrObj

TObject* TQCanvasMenu::fCurrObj
protected

Definition at line 54 of file TQCanvasMenu.h.

◆ fDialog

TQRootDialog* TQCanvasMenu::fDialog
protected

Definition at line 58 of file TQCanvasMenu.h.

◆ fMenu

QMenu TQCanvasMenu::fMenu
protected

Definition at line 55 of file TQCanvasMenu.h.

◆ fMethods

TList TQCanvasMenu::fMethods
protected

Definition at line 56 of file TQCanvasMenu.h.

◆ fMousePosX

double TQCanvasMenu::fMousePosX
protected

Definition at line 61 of file TQCanvasMenu.h.

◆ fMousePosY

double TQCanvasMenu::fMousePosY
protected

Definition at line 62 of file TQCanvasMenu.h.

◆ fParent

QWidget* TQCanvasMenu::fParent
protected

Definition at line 60 of file TQCanvasMenu.h.

◆ fTabWin

QWidget * TQCanvasMenu::fTabWin
protected

Definition at line 60 of file TQCanvasMenu.h.

Libraries for TQCanvasMenu:
[legend]

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