#include <tqcanvasmenu.h>
Public Slots | |
void | execute (int id) |
Slot defined to execute a method from a selected TObject using TObject::Execute() function. | |
void | EmitMenuCommandExecuted (TObject *, const char *) |
Signals | |
void | MenuCommandExecuted (TObject *, const char *) |
Public Member Functions | |
TQCanvasMenu (QWidget *parent=0, TCanvas *canvas=0) | |
TQCanvasMenu (QWidget *parent, QWidget *tabWin, TCanvas *canvas) | |
virtual | ~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). | |
void | dialog (TObject *obj, TMethod *method) |
Create a dialog object with OK and Cancel buttons. | |
char * | createDialogTitle (TObject *object, TMethod *method) |
Create a dialog title. | |
char * | createArgumentTitle (TMethodArg *argument) |
Create string describing argument (for use in dialog box). | |
void | ChangeHisLineColor () |
void | ChangeHisFillColor () |
Protected Attributes | |
TObject * | fCurrObj |
QPopupMenu * | fPopup |
TList | fMethods |
TCanvas * | c |
QWidget * | fParent |
QWidget * | fTabWin |
double | MousePosX |
double | MousePosY |
TQCanvasMenu
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 42 of file tqcanvasmenu.h.
|
Definition at line 44 of file tqcanvasmenu.cpp. |
|
Definition at line 53 of file tqcanvasmenu.cpp. |
|
Definition at line 62 of file tqcanvasmenu.cpp. References fPopup. |
|
Perform the corresponding selected TObject popup in the position defined by x, y coordinates (in user coordinate system).
Definition at line 101 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 219 of file tqcanvasmenu.cpp. References TQRootDialog::add(), c, createArgumentTitle(), createDialogTitle(), fParent, TQRootDialog::popup(), TQRootDialog::SetCanMenu(), and TQRootDialog::setTCanvas(). Referenced by execute(). |
|
Create a dialog title.
Definition at line 67 of file tqcanvasmenu.cpp. Referenced by dialog(). |
|
Create string describing argument (for use in dialog box).
Definition at line 82 of file tqcanvasmenu.cpp. Referenced by dialog(). |
|
Definition at line 329 of file tqcanvasmenu.cpp. References fCurrObj, and MenuCommandExecuted(). Referenced by execute(). |
|
Definition at line 342 of file tqcanvasmenu.cpp. References fCurrObj, and MenuCommandExecuted(). Referenced by execute(). |
|
Referenced by ChangeHisFillColor(), ChangeHisLineColor(), EmitMenuCommandExecuted(), and execute(). |
|
Slot defined to execute a method from a selected TObject using TObject::Execute() function. test: do this in any case! Definition at line 145 of file tqcanvasmenu.cpp. References c, ChangeHisFillColor(), ChangeHisLineColor(), dialog(), FALSE, fCurrObj, fMethods, MenuCommandExecuted(), MousePosX, and MousePosY. Referenced by popup(). |
|
Definition at line 214 of file tqcanvasmenu.cpp. References MenuCommandExecuted(). Referenced by TQRootDialog::executeMethod(). |
|
Definition at line 83 of file tqcanvasmenu.h. Referenced by ChangeHisFillColor(), ChangeHisLineColor(), execute(), popup(), and TQCanvasMenu(). |
|
Definition at line 84 of file tqcanvasmenu.h. Referenced by popup(), TQCanvasMenu(), and ~TQCanvasMenu(). |
|
Definition at line 85 of file tqcanvasmenu.h. |
|
Definition at line 86 of file tqcanvasmenu.h. Referenced by dialog(), execute(), and TQCanvasMenu(). |
|
Definition at line 87 of file tqcanvasmenu.h. Referenced by dialog(), and TQCanvasMenu(). |
|
Definition at line 88 of file tqcanvasmenu.h. Referenced by TQCanvasMenu(). |
|
Definition at line 89 of file tqcanvasmenu.h. |
|
Definition at line 90 of file tqcanvasmenu.h. |