23 #define GO4_CLASS_EXPORT __declspec(dllexport)
25 #define GO4_CLASS_EXPORT __declspec(dllimport)
30 #define GO4_CLASS_EXPORT
36 #define QDESIGNER_WIDGET_EXPORT GO4_CLASS_EXPORT
38 #include <QtDesigner/QDesignerExportWidget>
44 #include "TVirtualX.h"
72 enum { act_Update = 1, act_Resize = 2 };
82 bool showEventStatus()
const;
83 void setShowEventStatus(
bool s);
88 void SelectedPadChanged(TPad*);
91 void PadClicked(TPad*);
94 void PadDoubleClicked(TPad*);
96 void MenuCommandExecuted(TObject*,
const char*);
98 void CanvasStatusEvent(
const char*);
100 void CanvasDropEvent(QDropEvent*, TPad*);
102 void CanvasLeaveEvent();
104 void CanvasUpdated();
108 void cd(Int_t subpadnumber=0);
109 virtual void Browse(TBrowser *b);
110 void Clear(Option_t *option=
"");
111 void Close(Option_t *option=
"");
112 virtual void Draw(Option_t *option=
"");
113 virtual TObject *DrawClone(Option_t *option=
"");
114 virtual TObject *DrawClonePad();
115 virtual void EditorBar();
116 void EnterLeave(TPad *prevSelPad, TObject *prevSelObj);
117 void FeedbackMode(Bool_t set);
119 void UseCurrentStyle();
121 const char *GetDISPLAY();
122 TContextMenu *GetContextMenu();
123 Int_t GetDoubleBuffer();
127 Color_t GetHighLightColor();
128 TVirtualPad *GetPadSave();
129 TObject *GetSelected() ;
130 Option_t *GetSelectedOpt();
131 TVirtualPad *GetSelectedPad();
132 Bool_t GetShowEventStatus();
133 Bool_t GetAutoExec();
134 Size_t GetXsizeUser();
135 Size_t GetYsizeUser();
136 Size_t GetXsizeReal();
137 Size_t GetYsizeReal();
139 Int_t GetWindowTopX();
140 Int_t GetWindowTopY();
141 UInt_t GetWindowWidth();
142 UInt_t GetWindowHeight();
145 virtual void GetCanvasPar(Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh);
146 virtual void HandleInput(EEventType button, Int_t x, Int_t y);
151 virtual void ls(Option_t *option=
"");
152 void Modified(Bool_t=1);
153 void MoveOpaque(Int_t set=1);
154 Bool_t OpaqueMoving() ;
155 Bool_t OpaqueResizing() ;
156 virtual void Paint(Option_t *option=
"");
157 virtual TPad *Pick(Int_t px, Int_t py, TObjLink *&pickobj);
158 virtual TPad *Pick(Int_t px, Int_t py, TObject *prevSelObj);
159 virtual void Resize(Option_t *option=
"");
160 void ResizeOpaque(Int_t set=1);
161 void SaveSource(
const char *filename=
"", Option_t *option=
"");
162 virtual void SetCursor(ECursor cursor);
163 virtual void SetDoubleBuffer(Int_t mode=1);
164 void SetWindowPosition(Int_t x, Int_t y);
165 void SetWindowSize(UInt_t ww, UInt_t wh);
166 void SetCanvasSize(UInt_t ww, UInt_t wh);
167 void SetHighLightColor(Color_t col);
168 void SetSelected(TObject *obj);
169 void SetSelectedPad(TPad *pad);
171 virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0);
172 void SetBatch(Bool_t batch=kTRUE);
173 void SetRetained(Bool_t retained=kTRUE);
174 void SetTitle(
const char *title=
"");
175 virtual void ToggleEventStatus();
176 virtual void ToggleAutoExec();
177 virtual void Update();
179 void executeMenu(
int id);
180 void processRepaintTimer();
184 virtual void dropEvent( QDropEvent *Event );
185 virtual void dragEnterEvent( QDragEnterEvent *e );
186 virtual void mousePressEvent( QMouseEvent *e );
187 virtual void mouseReleaseEvent( QMouseEvent *e );
188 virtual void resizeEvent( QResizeEvent *e );
189 virtual void paintEvent( QPaintEvent *e );
190 virtual void mouseDoubleClickEvent(QMouseEvent* e );
191 virtual void mouseMoveEvent(QMouseEvent *e);
192 virtual void wheelEvent( QWheelEvent* e);
193 virtual void leaveEvent(QEvent *e);
194 virtual void closeEvent( QCloseEvent * e);
200 return (
double) p * fQtScalingfactor;
205 void methodDialog(TObject*
object, TMethod* method);
206 QAction* addMenuAction(QMenu* menu, QSignalMapper* map,
const QString& text,
int id);
208 void activateRepaint(
int act);
double scaledPosition(int p)
Graphic Qt Widget based Canvas.
void setMaskDoubleClick(bool on=true)
virtual QPaintEngine * paintEngine() const