#include <tqcanvasmenu.h>
Public Slots | |
void | execute (int id) |
Slot defined to execute a method from a selected TObject using TObject::Execute() function. More... | |
Public Methods | |
TQCanvasMenu (QWidget *parent=0, TCanvas *canvas=0) | |
TQCanvasMenu (QWidget *parent, QWidget *tabWin, TCanvas *canvas) | |
~TQCanvasMenu () | |
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 a dialog object with OK and Cancel buttons. More... | |
char * | createDialogTitle (TObject *object, TMethod *method) |
Create a dialog title. More... | |
char * | createArgumentTitle (TMethodArg *argument) |
Create string describing argument (for use in dialog box). More... | |
void | ChangeHisLineColor () |
void | ChangeHisFillColor () |
Protected Attributes | |
TObject * | fCurrObj |
QPopupMenu * | fPopup |
TList | fMethods |
TCanvas * | c |
TQRootDialog * | fDialog |
QWidget * | fParent |
QWidget * | fTabWin |
double | MousePosX |
double | MousePosY |
This class provides an interface to Qt based context sensitive popup menus. These menus pop up when the user hits the right mouse button, and are destroyed when the menu pops downs.
Definition at line 48 of file tqcanvasmenu.h.
|
Definition at line 51 of file tqcanvasmenu.h. |
|
Definition at line 59 of file tqcanvasmenu.h. |
|
Definition at line 69 of file tqcanvasmenu.h. References fPopup. |
|
Perform the corresponding selected TObject popup in the position defined by x, y coordinates (in user coordinate system).
Definition at line 116 of file tqcanvasmenu.cpp. References execute(), fCurrObj, fMethods, fPopup, MousePosX, and MousePosY. Referenced by TQRootCanvas::mousePressEvent(). |
|
Create a dialog object with OK and Cancel buttons. This dialog prompts for the arguments of "method"
Definition at line 254 of file tqcanvasmenu.cpp. References TQRootDialog::add(), c, createArgumentTitle(), createDialogTitle(), fDialog, fParent, TQRootDialog::popup(), and TQRootDialog::setTCanvas(). Referenced by execute(). |
|
Create a dialog title.
Definition at line 84 of file tqcanvasmenu.cpp. Referenced by dialog(). |
|
Create string describing argument (for use in dialog box).
Definition at line 98 of file tqcanvasmenu.cpp. Referenced by dialog(). |
|
Definition at line 362 of file tqcanvasmenu.cpp. Referenced by execute(). |
|
Definition at line 376 of file tqcanvasmenu.cpp. Referenced by execute(). |
|
Slot defined to execute a method from a selected TObject using TObject::Execute() function.
Definition at line 160 of file tqcanvasmenu.cpp. References c, ChangeHisFillColor(), ChangeHisLineColor(), dialog(), fCurrObj, fMethods, MousePosX, and MousePosY. Referenced by popup(). |
|
Definition at line 115 of file tqcanvasmenu.h. Referenced by ChangeHisFillColor(), ChangeHisLineColor(), execute(), popup(), and TQCanvasMenu(). |
|
Definition at line 116 of file tqcanvasmenu.h. Referenced by popup(), TQCanvasMenu(), and ~TQCanvasMenu(). |
|
Definition at line 117 of file tqcanvasmenu.h. |
|
Definition at line 118 of file tqcanvasmenu.h. Referenced by ChangeHisFillColor(), ChangeHisLineColor(), dialog(), execute(), and TQCanvasMenu(). |
|
Definition at line 119 of file tqcanvasmenu.h. Referenced by dialog(). |
|
Definition at line 120 of file tqcanvasmenu.h. Referenced by dialog(), and TQCanvasMenu(). |
|
Definition at line 120 of file tqcanvasmenu.h. Referenced by TQCanvasMenu(). |
|
Definition at line 121 of file tqcanvasmenu.h. |
|
Definition at line 122 of file tqcanvasmenu.h. |