ROOT logo
ROOT » GUI » GUI » TVirtualDragManager

class TVirtualDragManager

 TVirtualDragManager

 Virtual drag and drop manager used for the GUI builder.

Function Members (Methods)

public:
TVirtualDragManager()
TVirtualDragManager(const TVirtualDragManager&)
virtual~TVirtualDragManager()
virtual Bool_tCancel(Bool_t = kTRUE)
static TClass*Class()
virtual Bool_tDrop()
virtual Bool_tEndDrag()
EDragTypeGetEDragType() const
virtual Int_tGetEndDragX() const
virtual Int_tGetEndDragY() const
TGFrame*GetFrameUnder() const
TGFrame*GetPasteFrame() const
TGFrame*GetSource() const
virtual Int_tGetStrartDragX() const
virtual Int_tGetStrartDragY() const
TGFrame*GetTarget() const
virtual Bool_tHandleEvent(Event_t*)
virtual Bool_tHandleTimerEvent(Event_t*, TTimer*)
virtual Bool_tIgnoreEvent(Event_t*)
static TVirtualDragManager*Instance()
virtual TClass*IsA() const
Bool_tIsDragging() const
Bool_tIsDropping() const
Bool_tIsMoveWaiting() const
Bool_tIsPasting() const
TVirtualDragManager&operator=(const TVirtualDragManager&)
virtual voidSetEditable(Bool_t)
virtual voidSetPasteFrame(TGFrame* f)
virtual voidSetSource(TGFrame* f)
virtual voidSetTarget(TGFrame* f)
virtual voidShowMembers(TMemberInspector&)
virtual Bool_tStartDrag(TGFrame* = 0, Int_t = 0, Int_t = 0)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
protected:
virtual voidInit()

Data Members

protected:
EDragTypefDragTypedragging type
Bool_tfDraggingin dragging mode?
Bool_tfDroppingdrop is in progress
TGFrame*fFrameUnderframe under drag
Bool_tfMoveWaitingkTRUE if source is clicked but not moved
TGFrame*fPasteFrame
Bool_tfPastingpaste action is in progress
TGFrame*fSourceframe being dragged
TGFrame*fTargetdrop target

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TVirtualDragManager()
 Constructor.
TVirtualDragManager * Instance()
 Load plugin and create drag manager object.
void Init()
 Initialization.
TVirtualDragManager()
virtual ~TVirtualDragManager()
{}
EDragType GetEDragType() const
{ return fDragType; }
Bool_t IsMoveWaiting() const
{ return fMoveWaiting; }
Bool_t IsDragging() const
{ return fDragging; }
Bool_t IsDropping() const
{ return fDropping; }
Bool_t IsPasting() const
{ return fPasting; }
TGFrame * GetTarget() const
{ return fTarget; }
TGFrame * GetSource() const
{ return fSource; }
TGFrame * GetFrameUnder() const
{ return fFrameUnder; }
TGFrame * GetPasteFrame() const
{ return fPasteFrame; }
void SetTarget(TGFrame* f)
{ fTarget = f; }
void SetSource(TGFrame* f)
{ fSource = f; }
void SetPasteFrame(TGFrame* f)
{ fPasteFrame = f; }
Bool_t StartDrag(TGFrame* = 0, Int_t = 0, Int_t = 0)
{ return kFALSE; }
Bool_t EndDrag()
{ return kFALSE; }
Bool_t Drop()
{ return kFALSE; }
Bool_t Cancel(Bool_t = kTRUE)
{ return kFALSE; }
Bool_t HandleEvent(Event_t* )
{ return kFALSE; }
Bool_t HandleTimerEvent(Event_t* , TTimer* )
{ return kFALSE; }
Bool_t IgnoreEvent(Event_t* )
{ return kTRUE; }
void SetEditable(Bool_t )
{}
Int_t GetStrartDragX() const
{ return 0; }
Int_t GetStrartDragY() const
{ return 0; }
Int_t GetEndDragX() const
{ return 0; }
Int_t GetEndDragY() const
{ return 0; }