#ifndef ROOT_TQCanvasMenu
#define ROOT_TQCanvasMenu
#ifndef __CINT__
#include "qobject.h"
# if (QT_VERSION > 0x039999) // Added by cholm@nbi.dk - for Qt 3
# include <q3popupmenu.h>
typedef Q3PopupMenu QPopupMenu;
# else
class QPopupMenu;
# endif
#else
class QPopupMenu;
#endif
#ifndef ROOT_TList
#include "TList.h"
#endif
class TCanvas;
class TObject;
class TMethodArg;
class TQRootDialog;
class QObject;
class QAction;
class QMouseEvent;
class QResizeEvent;
class QPaintEvent;
class QWidget;
class TQCanvasMenu : public QObject {
#ifndef __CINT__
Q_OBJECT
#endif
private:
TQCanvasMenu(const TQCanvasMenu &c);
TQCanvasMenu& operator=(const TQCanvasMenu&) {return *this;}
public:
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);
void Dialog(TObject *obj, TMethod* method);
char* CreateDialogTitle( TObject *object, TMethod *method );
char* CreateArgumentTitle(TMethodArg *argument);
public slots:
void Execute(int id);
protected:
TObject* fCurrObj;
QPopupMenu *fPopup;
TList fMethods;
TCanvas *fc;
TQRootDialog *fDialog;
QWidget *fParent,*fTabWin;
double fMousePosX;
double fMousePosY;
ClassDef(TQCanvasMenu,1)
};
#endif