QUserPanel QUserPanel 0 0 682 559 User panel unnamed TabWidget DragAndDropTab Drag && drop unnamed DragKindLbl textLabel4 layout1 unnamed InfoBtn Info EditBtn Edit DrawBtn Draw spacer6 Horizontal Expanding 120 20 DragClassLbl textLabel3 DragLbl textLabel2 DragItemLbl textLabel5 InfoLabel1 This is example of using drag & drop mechanism of Go4 in user gui.<br> Any object from browser can be draged in this widget.<br> Widget can react on two events:<br> 1. Drag enter action. In that case user can accept or <br> discard draged object in IsAcceptDrag() function.<br> 2. Drop action. In that case object can be linked to widget. <br> After that widget will be informed when object is updated or deleted. WordBreak|AlignVCenter spacer5 Vertical Expanding 20 40 PrintTab Object print unnamed PrintInfoLabel This example shows how Print() method of any object from browser can be called.<br> First select method which is used in obj->Print() to produce output <br> and then just drag & drop object to this label (not to output window). PrintLbl PrintLbl PrintEdit true stdoutButton stdout (printf) is used in obj->Print() true coutButton cout is used in obj->Print() MonitoringTab Drawing unnamed 2 2 DrawInfoLbl This is example of using QtRoot canvas inside user widget. <br> Just drag & drop items like histograms or graphs from browser to canvas to draw them. fxDrawCanvas 7 7 0 1 100 100 textLabel1 This is an example of Go4 User GUI. <br>This panel uses functionality, provided by QGo4Widget class. <br>Tab widgets shows drag and drop facility, easy print method and monitoring example QGo4RootCanvas
QGo4RootCanvas.h
-1 -1 0 5 5 0 0 image0 CanvasDropEvent(QDropEvent*, TPad*) CanvasStatusEvent(const char*) DoCanvasResize()
789c534e494dcbcc4b554829cdcdad8c2fcf4c29c95030e0524611cd48cd4ccf28010a1797249664262b2467241641a592324b8aa363156c15aab914146aadb90067111b1f InfoBtn clicked() QUserPanel InfoBtn_clicked() EditBtn clicked() QUserPanel EditBtn_clicked() DrawBtn clicked() QUserPanel DrawBtn_clicked() coutButton clicked() stdoutButton toggle() stdoutButton clicked() coutButton toggle() fxDrawCanvas CanvasDropEvent(QDropEvent*, TPad*) QUserPanel CanvasDropEventSlot(QDropEvent*,TPad*) fxDrawCanvas DoCanvasResize() QUserPanel DoCanvasResizeSlot() QGo4Widget.h sstream iostream stdio.h qdragobject.h Riostream.h Rstrstream.h TClass.h TCanvas.h TGo4Proxy.h QGo4RootCanvas.h QUserPanel.ui.h InfoBtn_clicked() EditBtn_clicked() DrawBtn_clicked() CanvasDropEventSlot(QDropEvent*,TPad*) DoCanvasResizeSlot() init() destroy() kindString( int kind ) IsAcceptDrag( const char * itemname, TClass * cl, int kind ) DropItem( const char * itemname, TClass * cl, int kind ) linkedObjectUpdated( const char * linkname, TObject * obj ) linkedObjectRemoved( const char * linkname ) PrintObject(TObject* obj) DrawObjectOnCanvas(const char* itemname)