qtroot.interface
Class TQCanvasMenu
- class TQCanvasMenu
- derived from QObject
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.
- Version: 2.0
- See Also: QObject,
- short interface to context sensitive menu
- authors Denis Bertini
Constructor Summary |
private | TQCanvasMenu(QWidget* parent, QWidget* tabWin, TCanvas* canvas) |
Method Summary |
private void | ChangeHisFillColor() |
private void | ChangeHisLineColor() |
private char * | createArgumentTitle(TMethodArg* argument) Create string describing argument (for use in dialog box). |
private char * | createDialogTitle(TObject* object, TMethod* method) Create a dialog title |
private void | dialog(TObject* obj, TMethod* method) Create a dialog object with OK and Cancel buttons. |
private 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). |
c
protected TCanvas* c
fCurrObj
protected TObject* fCurrObj
fDialog
protected TQRootDialog* fDialog
fMethods
protected TList fMethods
fParent
protected QWidget* fParent
fPopup
protected QPopupMenu* fPopup
fTabWin
protected QWidget* fTabWin
MousePosX
protected double MousePosX
MousePosY
protected double MousePosY
signals
private :publicslots:voidexecute signals
TQCanvasMenu
private TQCanvasMenu(QWidget* parent, QWidget* tabWin, TCanvas* canvas)
~TQCanvasMenu
private synchronized ~TQCanvasMenu()
ChangeHisFillColor
private void ChangeHisFillColor()
ChangeHisLineColor
private void ChangeHisLineColor()
createArgumentTitle
private char * createArgumentTitle(TMethodArg* argument)
- Create string describing argument (for use in dialog box).
createDialogTitle
private char * createDialogTitle(TObject* object, TMethod* method)
- Create a dialog title
dialog
private void dialog(TObject* obj, TMethod* method)
- Create a dialog object with OK and Cancel
buttons. This dialog prompts for the arguments
of "method"- Parameters:
- obj (TObject*)
- method (TMethod*)
popup
private 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).- Parameters:
- obj (TObject*)
- p (QPoint&)
to Class TList
to Class TCanvas
to Class TQRootDialog
30-06-2005