library: libGuiBld
#include "TGuiBldDragManager.h"


class description - header file - source file
viewCVS header - viewCVS source

class TGuiBldDragManager: public TVirtualDragManager, public TGFrame

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
voidTGFrame::AddInput(UInt_t emask)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGFrame::ChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)
virtual voidTGFrame::ChangeOptions(UInt_t options)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
Bool_tTGFrame::Contains(Int_t x, Int_t y) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTGFrame::Delete(Option_t* = "")
virtual voidTGFrame::DeleteWindow()
virtual voidTQObject::Destroyed()
virtual voidTGWindow::DestroySubwindows()
virtual voidTGWindow::DestroyWindow()
Bool_tTQObject::Disconnect(const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = "0")
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGFrame::DrawBorder()
virtual voidTGFrame::DrawClass() const
virtual TObject*TGFrame::DrawClone(Option_t* = "") const
virtual voidTGFrame::DrawCopy(Handle_t, Int_t, Int_t)
virtual voidTGFrame::Dump() const
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
TGClient*TGObject::GetClient() const
static Int_tTGWindow::GetCounter()
static Pixel_tTGFrame::GetDefaultFrameBackground()
virtual UInt_tTGFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGFrame::GetDefaultSize() const
virtual UInt_tTGFrame::GetDefaultWidth() const
EDragTypeTVirtualDragManager::GetDragType() const
virtual Option_t*TObject::GetDrawOption() const
Bool_tGetDropStatus() const
virtual Int_tTGFrame::GetDropType() const
static Long_tTObject::GetDtorOnly()
virtual UInt_tTGWindow::GetEditDisabled() const
virtual Int_tGetEndDragX() const
virtual Int_tGetEndDragY() const
UInt_tTGFrame::GetEventMask() const
virtual Pixel_tTGFrame::GetForeground() const
TGFrameElement*TGFrame::GetFrameElement() const
virtual TGFrame*TGFrame::GetFrameFromPoint(Int_t x, Int_t y)
TGFrame*TVirtualDragManager::GetFrameUnder() const
UInt_tTGFrame::GetHeight() const
static const TGGC&TGFrame::GetHilightGC()
virtual const char*TObject::GetIconName() const
Handle_tTGObject::GetId() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
UInt_tTGFrame::GetMaxHeight() const
UInt_tTGFrame::GetMaxWidth() const
UInt_tTGFrame::GetMinHeight() const
UInt_tTGFrame::GetMinWidth() const
virtual const char*TGWindow::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UInt_tTGFrame::GetOptions() const
const TGWindow*TGWindow::GetParent() const
TGFrame*TVirtualDragManager::GetPasteFrame() const
TGFrame*GetSelected() const
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
TGFrame*TVirtualDragManager::GetSource() const
virtual Int_tGetStrartDragX() const
virtual Int_tGetStrartDragY() const
TGFrame*GetTarget() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
voidHandleAction(Int_t act)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGFrame::HandleCrossing(Event_t*)
virtual Bool_tTGFrame::HandleDragDrop(TGFrame*, Int_t, Int_t, TGLayoutHints*)
virtual Bool_tTGFrame::HandleDragEnter(TGFrame*)
virtual Bool_tTGFrame::HandleDragLeave(TGFrame*)
virtual Bool_tTGFrame::HandleDragMotion(TGFrame*)
virtual Bool_tTGFrame::HandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t*)
virtual Bool_tTGFrame::HandleSelectionClear(Event_t*)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTGObject::Hash() const
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = "0")
virtual voidTGWindow::IconifyWindow()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTGFrame::Inspect() const
static TVirtualDragManager*TVirtualDragManager::Instance()
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTGFrame::IsActive() const
virtual Bool_tTGFrame::IsComposite() const
Bool_tTVirtualDragManager::IsDragging() const
Bool_tTVirtualDragManager::IsDropping() const
virtual Bool_tTGFrame::IsEditable() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tTGFrame::IsLayoutBroken() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGWindow::IsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
Bool_tTVirtualDragManager::IsPasting() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsStopped() const
Bool_tTObject::IsZombie() const
virtual voidTGFrame::Layout()
static voidTQObject::LoadRQ_OBJECT()
virtual voidTGWindow::LowerWindow()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = "0")
virtual voidTObject::ls(Option_t* option = "") const
virtual voidTGFrame::MapRaised()
virtual voidTGFrame::MapSubwindows()
virtual voidTGFrame::MapWindow()
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)
virtual voidTGFrame::Move(Int_t x, Int_t y)
virtual voidTGFrame::MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
virtual Int_tTGWindow::MustCleanup() const
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TVirtualDragManager&TVirtualDragManager::operator=(const TVirtualDragManager&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTGFrame::Print(Option_t* option = "") const
virtual voidTGFrame::ProcessedEvent(Event_t* event)
virtual Bool_tTGFrame::ProcessMessage(Long_t, Long_t, Long_t)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTGFrame::ReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTGFrame::RemoveInput(UInt_t emask)
virtual voidTGFrame::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidTGFrame::Resize(TGDimension size)
virtual voidTGFrame::Resize(UInt_t w = 0, UInt_t h = 0)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTGFrame::SavePrimitive(ostream& out, Option_t* option = "")
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGFrame::SetBackgroundColor(Pixel_t back)
virtual voidTGWindow::SetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetBuilder(TRootGuiBuilder* b)
virtual voidTGFrame::SetCleanup(Int_t = kLocalCleanup)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
virtual voidTGFrame::SetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEditable(Bool_t on = kTRUE)
virtual voidTGWindow::SetEditDisabled(UInt_t on = kEditDisable)
virtual voidTGFrame::SetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
voidSetGridStep(UInt_t step)
virtual voidTGFrame::SetHeight(UInt_t h)
virtual voidTGFrame::SetLayoutBroken(Bool_t = kTRUE)
virtual voidTGWindow::SetMapSubwindows(Bool_t)
virtual voidTGFrame::SetMaxHeight(UInt_t h)
virtual voidTGFrame::SetMaxWidth(UInt_t w)
virtual voidTGFrame::SetMinHeight(UInt_t h)
virtual voidTGFrame::SetMinWidth(UInt_t w)
virtual voidTGWindow::SetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTVirtualDragManager::SetPasteFrame(TGFrame* f)
virtual voidTGFrame::SetSize(const TGDimension& s)
virtual voidTVirtualDragManager::SetSource(TGFrame* f)
virtual voidTVirtualDragManager::SetTarget(TGFrame* f)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTGFrame::SetWidth(UInt_t w)
virtual voidTGWindow::SetWindowName(const char* name = "0")
virtual voidTGFrame::SetX(Int_t x)
virtual voidTGFrame::SetY(Int_t y)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTGFrame::UnmapWindow()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
static Time_tTGFrame::GetLastClick()
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidTVirtualDragManager::Init()
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)
voidAddClassMenuMethods(TGPopupMenu* menu, TObject* object)
voidAddDialogMethods(TGPopupMenu* menu, TObject* object)
virtual Bool_tCancel(Bool_t delSrc)
Bool_tCanChangeLayout(TGWindow* w) const
Bool_tCanChangeLayoutOrder(TGWindow* w) const
Bool_tCanCompact(TGWindow* w) const
voidChangeSelected(TGFrame* f)
Bool_tCheckDragResize(Event_t* event)
Bool_tCheckTargetAtPoint(Int_t x, Int_t y)
voidCompact(Bool_t global = kTRUE)
voidDeleteFrame(TGFrame* frame)
virtual voidDoRedraw()
voidDoReplace(TGFrame* frame)
voidDrawGrabRect(Int_t i, Int_t x, Int_t y)
voidDrawGrabRectangles(TGWindow* win = 0)
virtual Bool_tDrop()
voidDropCanvas(TGCanvas* canvas)
virtual Bool_tEndDrag()
TGCompositeFrame*FindCompositeFrame(Window_t id)
TGCompositeFrame*FindLayoutFrame(TGFrame* f)
TGFrame*FindMdiFrame(TGFrame* in)
TGFrame*GetBtnEnableParent(TGFrame* fr)
TGFrame*GetEditableParent(TGFrame* f)
TList*GetFramesInside(Int_t x0, Int_t y0, Int_t x, Int_t y)
static TGColorDialog*GetGlobalColorDialog(Bool_t create = kTRUE)
static TGFontDialog*GetGlobalFontDialog()
TGFrame*GetMovableParent(TGWindow* p)
TGWindow*GetResizableParent(TGWindow* p)
voidGrabFrame(TGFrame* frame)
voidHandleAlignment(Int_t to, Bool_t lineup = kFALSE)
voidHandleButon3Pressed(Event_t*, TGFrame* frame = 0)
virtual Bool_tHandleButton(Event_t*)
virtual Bool_tHandleClientMessage(Event_t*)
virtual Bool_tHandleConfigureNotify(Event_t*)
voidHandleCopy(Bool_t brk_layout = kTRUE)
voidHandleDelete(Bool_t crop = kFALSE)
virtual Bool_tHandleDoubleClick(Event_t*)
virtual Bool_tHandleEvent(Event_t*)
virtual Bool_tHandleExpose(Event_t*)
voidHandleLayoutOrder(Bool_t forward = kTRUE)
virtual Bool_tHandleMotion(Event_t*)
voidHandleReturn(Bool_t on = kFALSE)
virtual Bool_tHandleSelection(Event_t*)
virtual Bool_tHandleSelectionRequest(Event_t*)
virtual Bool_tHandleTimer(TTimer*)
virtual Bool_tIgnoreEvent(Event_t* e)
TGFrame*InEditable(Window_t id)
Bool_tIsEditDisabled(TGWindow* f) const
Bool_tIsEventsDisabled(TGWindow* f) const
Bool_tIsFixedH(TGWindow* f) const
Bool_tIsFixedLayout(TGWindow* f) const
Bool_tIsFixedSize(TGWindow* f) const
Bool_tIsFixedW(TGWindow* f) const
Bool_tIsGrabDisabled(TGWindow* f) const
Bool_tIsLassoDrawn() const
Bool_tIsMoveWaiting() const
Bool_tIsPointVisible(Int_t x, Int_t y)
static voidMapGlobalDialog(TGMainFrame* dialog, TGFrame* fr)
voidMenu4Frame(TGFrame*, Int_t x, Int_t y)
voidMenu4Lasso(Int_t x, Int_t y)
voidPlaceFrame(TGFrame*, TGLayoutHints*)
voidPutToCanvas(TGCompositeFrame* cont)
voidRaiseMdiFrame(TGFrame* in)
Bool_tRecognizeGesture(Event_t*, TGFrame* frame = 0)
voidReparentFrames(TGFrame* newfr, TGCompositeFrame* oldfr)
Bool_tSave(const char* file = "")
Bool_tSaveFrame(const char* file = "0")
voidSelectFrame(TGFrame* frame, Bool_t add = kFALSE)
voidSetCursorType(Int_t cur)
voidSetLassoDrawn(Bool_t on)
voidSetPropertyEditor(TGuiBldEditor* e)
virtual Bool_tStartDrag(TGFrame* src, Int_t x, Int_t y)
voidSwitchEditable(TGFrame* frame)
voidToGrid(Int_t& x, Int_t& y)

Data Members

enum TGWindow::EEditMode { kEditEnable
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
Bool_tTVirtualDragManager::fMoveWaitingkTRUE if source is clicked but not moved
Bool_tTVirtualDragManager::fDraggingin dragging mode?
Bool_tTVirtualDragManager::fDroppingdrop is in progress
Bool_tTVirtualDragManager::fPastingpaste action is in progress
EDragTypeTVirtualDragManager::fDragTypedragging type
TGFrame*TVirtualDragManager::fSourceframe being dragged
TGFrame*TVirtualDragManager::fFrameUnderframe under drag
TGFrame*TVirtualDragManager::fTargetdrop target
Int_tTGFrame::fXframe x position
Int_tTGFrame::fYframe y position
UInt_tTGFrame::fWidthframe width
UInt_tTGFrame::fHeightframe height
UInt_tTGFrame::fMinWidthminimal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMaxHeightmaximal frame height
Int_tTGFrame::fBorderWidthframe border width
UInt_tTGFrame::fOptionsframe options
Pixel_tTGFrame::fBackgroundframe background color
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGFrameElement*TGFrame::fFEpointer to frame element
static Bool_tTGFrame::fgInit
static Pixel_tTGFrame::fgDefaultFrameBackground
static Pixel_tTGFrame::fgDefaultSelectedBackground
static Pixel_tTGFrame::fgWhitePixel
static Pixel_tTGFrame::fgBlackPixel
static const TGGC*TGFrame::fgBlackGC
static const TGGC*TGFrame::fgWhiteGC
static const TGGC*TGFrame::fgHilightGC
static const TGGC*TGFrame::fgShadowGC
static const TGGC*TGFrame::fgBckgndGC
static Time_tTGFrame::fgLastClick
static UInt_tTGFrame::fgLastButton
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static Window_tTGFrame::fgDbw
static UInt_tTGFrame::fgUserColor
const TGWindow*TGWindow::fParentParent window
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
TStringTGWindow::fNamename of the window used in SavePrimitive()
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
Handle_tTGObject::fIdX11/Win32 Window identifier
TGClient*TGObject::fClientConnection to display server
TList*TQObject::fListOfSignals! list of signals from this object
TList*TQObject::fListOfConnections! list of connections to this object
TGuiBldDragManagerPimpl*fPimplprivate data
TRootGuiBuilder*fBuilderpointer to gui builder
TGuiBldEditor*fEditorframe property editor
Bool_tfLassoDrawnkTRUE if lasso drawn
TStringfPasteFileNamepaste_clippboard file name
TStringfTmpBuildFiletemporary file name
Bool_tfSelectionIsOnselection with Shift key pressed
TGPopupMenu*fFrameMenucontext menu for frames
TGPopupMenu*fLassoMenucontext menu for lasso drawn
Window_tfTargetIdan id of window where drop
Bool_tfDropStatuskTRUE if drop was successfull
Bool_tfStopkTRUE if stopped
TGFrame*fSelectedselected frame. In most cases selected is
TList*fListOfDialogslist of dialog methods
static TGColorDialog*fgGlobalColorDialogcolor dialog
static TGFontDialog*fgGlobalFontDialogfont dialog

Class Description


 Constructor. Create "fantom window".
void Reset1()
 Reset some parameters 
void CreateListOfDialogs()
 Create a list of dialog methods
void Snap2Grid()
 Draw grid on editable frame and restore background on previuosly editted one
UInt_t GetGridStep()
 Return the grid step
void SetGridStep(UInt_t step)
 Set the grid step
Bool_t IgnoreEvent(Event_t *event)
 Return kTRUE if event is rejected for processing by drag manager
TGFrame* InEditable(Window_t id)
 Return a pointer to the parent window (which is being editted)
TGCompositeFrame * FindCompositeFrame(Window_t id)
 Find the first composite parent of window
void SetCursorType(Int_t cur)
 Set cursor for selcted/grabbed frame.
Bool_t CheckDragResize(Event_t *event)
 Check resize type event.
void DoRedraw()
 Redraw the editted window
void SwitchEditable(TGFrame *frame)
 Switch editable
void SelectFrame(TGFrame *frame, Bool_t add)
 Grab/Select frame
void ChangeSelected(TGFrame *fr)
 Inform outside wold that selected frame was changed
void GrabFrame(TGFrame *frame)
 grab frame (see SelectFrame)
void UngrabFrame()
 Ungrab/Unselect selected/grabbed frame.
Bool_t IsPointVisible(Int_t xi, Int_t yi)
 Helper function for IsSelectedWindow method
Bool_t IsSelectedVisible()
 Return kTRUE if grabbed/selected frame is not overlapped by other windows.
void DrawGrabRectangles(TGWindow *win)
 Draw small grab rectangles around grabbed/selected/frame
void DrawGrabRect(Int_t i, Int_t x, Int_t y)
 Helper method to draw grab rectangle at position x,y
void HighlightCompositeFrame(Window_t win)
 Raise composite frame when mouse is moving over it.
 That allows to highlight position of "plain" composite frames.
Bool_t HandleTimer(TTimer *t)
 The main event loop is  originated here
 It repeadeatly queries pointer state and position on the screen. 
 From this info an Event_t structure is built. 
Bool_t RecognizeGesture(Event_t *event, TGFrame *frame)
 Recognize what was done when mouse button pressed
void HandleButon3Pressed(Event_t *event, TGFrame *frame)
 Handle 3d mouse pressed (popup context menu)
Bool_t HandleButton(Event_t *event)
 Handle button event occured in some ROOT frame
Bool_t HandleConfigureNotify(Event_t *event)
 Resize events
Bool_t HandleExpose(Event_t *event)
 Handle repaint event
Bool_t HandleEvent(Event_t *event)
 Handle all events.
Bool_t HandleDoubleClick(Event_t *)
 Mouse double click handler (never should happen)
TGFrame * GetBtnEnableParent(TGFrame *fr)
 Return a parent which can handle button evevents.
void UnmapAllPopups()
 Unmap all popups 
Bool_t HandleButtonPress(Event_t *event)
 Handle button press event
Bool_t HandleButtonRelease(Event_t *event)
 Handle button release event
Bool_t HandleKey(Event_t *event)
 Handle key event
void ReparentFrames(TGFrame *newfr, TGCompositeFrame *oldfr)
 Reparent frames
TList * GetFramesInside(Int_t x0, Int_t y0, Int_t x, Int_t y)
 Return the list of frames inside of some area
void DropCanvas(TGCanvas *canvas)
 Drop canvas container
void PutToCanvas(TGCompositeFrame *cont)
 Create a new TGCanvas and place container into it
void HandleReturn(Bool_t on)
 Handling of  return/enter key pressing

 If on is kFALSE: 
    If Return or Enter key was pressed - Grab Act
    If lasso is  drawn - new composite frame is created and 
                         all frames inside lasso adopted as childrens.
    If lasso is not drawn and selected frame is composite one,
                       - new TGCanvas widget is created and selcted frmae became
                         container for this canvas.

 If on is kTRUE: 
    If Return or Enter key was pressed with Control Key - Drop Act,
    The opposite action to the Grab Act.
    If selected/grabbed frame is not a TGCanvas widget -
          all frames inside the grabbed/selected frame are "dropped" into
          the underlying frame and the grabbed frame is deleted.

    If selected/grabbed frame is a TGCanvas widget -
          container frame "dropped" to editable frame
void HandleAlignment(Int_t to, Bool_t lineup)
 Align frames located inside lasso area.
void HandleDelete(Bool_t crop)
 Handle delete or crop action

 crop is kFALSE - delete action
   - if lasso is drawn -> all frames inside lasso area are deleted
   - if frame is grabbed/selected -> the frame is deleted
 crop is kTRUE - crop action
   - if lasso is drawn -> all frames outside of lasso area are deleted
   - if frame is grabbed/selected -> all frames except the grabbed frame are deleted
     In both cases the main frame is shrinked to the size of crop area.
void DeleteFrame(TGFrame *frame)
 Delete frame
void HandleCut()
 Handle cut action
void HandleCopy(Bool_t brk_layout)
 Handle copy. This method is also used by SaveFrame method.
 In later case  brk_layout == kFALSE
void HandlePaste()
 Handle paste action.
void DoReplace(TGFrame *frame)
 Replace frame (doesn't work yet properly)
void HandleReplace()
 Handle replace 
void CloneEditable()
 Create a frame which is the same as currently editted frame
Bool_t Save(const char *file)
 Save an editted frame to the file
Bool_t SaveFrame(const char *file)
 Save composite frame as macro
void DoResize()
 handle resize
void DoMove()
 Handle move
TGFrame * FindMdiFrame(TGFrame *in)
 Return a pointer to the parent mdi frame
void RaiseMdiFrame(TGFrame *comp)
 Raise guibuilder's mdi frame.
void CheckTargetUnderGrab()
 Look for the drop target under grabbed/selected frame while moving 
Bool_t CheckTargetAtPoint(Int_t x, Int_t y)
 Helper. Look for the drop target under grabbed/selected frame while moving.
Bool_t HandleMotion(Event_t *event)
 Handle motion event
void PlaceFrame(TGFrame *frame, TGLayoutHints *hints)
 Put created frame at position of the last mouse click
void DrawLasso()
 Draw lasso for allocation new object
Bool_t HandleClientMessage(Event_t *event)
 Handle client message
Bool_t HandleDestroyNotify(Event_t *event)
 Handle destroy notify
Bool_t HandleSelection(Event_t *)
 not used yet.
Bool_t HandleSelectionRequest(Event_t *)
 not used yet.
TGFrame * GetMovableParent(TGWindow *p)
 Find parent frame which can be dragged
TGWindow * GetResizableParent(TGWindow *p)
 Find parent frame which can be resized
Bool_t StartDrag(TGFrame *src, Int_t x, Int_t y)
 Start dragging.
Bool_t EndDrag()
 End dragging.
Bool_t Cancel(Bool_t /*delSrc*/)
 Do cancel action.
Bool_t Drop()
 Drop grabbed frame
Bool_t IsMoveWaiting()
 Waits for either the mouse move from the given initial ButtonPress location
 or for the mouse button to be released. If mouse moves away from the initial
 ButtonPress location before the mouse button is released "IsMoveWaiting"
 returns kTRUE. If the mouse button released before the mose moved from the
 initial ButtonPress location, "IsMoveWaiting" returns kFALSE.
void Compact(Bool_t global)
 Layout and Resize frame.
 If global is kFALSE - compact selected frame
 If global is kFALSE - compact main frame of selected frame
void SetEditable(Bool_t on)
 Grab server.
void ToGrid(Int_t &x, Int_t &y)
 Return grid coordinates which are close to given
void HandleAction(Int_t act)
 Main handler of actions
Bool_t CanChangeLayout(TGWindow *w)
  kTRUE - if it's possible to switch disable/enable layout
Bool_t CanChangeLayoutOrder(TGWindow *w)
 kTRUE - if it's possible to change layout order in the parent's layout of window w
Bool_t CanCompact(TGWindow *w)
 kTRUE is frame could be compacted/"layouted"
void CreatePropertyEditor()
 Create widget property editor (it could be located outside of guibuilder)
void SetPropertyEditor(TGuiBldEditor *e)
 Helper method
void HandleLayoutOrder(Bool_t forward)
 Change layout order
void HandleGrid()
 Switch on/of grid drawn.
TGCompositeFrame * FindLayoutFrame(TGFrame *f)
 Helper to find a frame which can be layouted
void HandleUpdateSelected(TGFrame *f)
 When selected frame was changed by guibuilder editor -> update its appearence
void HideGrabRectangles()
 Hide/Unmap grab rectangles.
void DeletePropertyEditor()
 Delete widget property editor.
Int_t GetStrartDragX()
 Return the X coordinate where drag started
Int_t GetStrartDragY()
 Return the Y coordinate where drag started
Int_t GetEndDragX()
 Return the current X coordinate of the dragged frame
Int_t GetEndDragY()
 Returns the current Y coordinate of the dragged frame
void BreakLayout()
 Disable/Enable layout for selected/grabbed composite frame.
void SwitchLayout()
 Switch Horizontal/Vertical layout of selected/grabbed composite frame
TGFrame * GetSelected()
 Return the current grabbed/selected frame.
void CloseMenus()
 Helper to close all menus
TGFrame * GetEditableParent(TGFrame *fr)
 Return the parent frame which can be editted.
void AddDialogMethods(TGPopupMenu *menu, TObject *object)
 Add DIALOG entries to the selected frame popup menu
void AddClassMenuMethods(TGPopupMenu *menu, TObject *object)
 Add entries with class //*MENU* methods
void DoClassMenu(Int_t id)
 Process a method choosen via frame context menu 
void DeleteMenuDialog()
 Delete dialog and trash
void DoDialogOK()
 Process dialog OK button pressed
void DoDialogApply()
 Process dialog Apply button pressed
void DoDialogCancel()
 Process dialog Cancel button pressed
void Menu4Frame(TGFrame *frame, Int_t x, Int_t y)
 Create and  place context menu for selected frame
void Menu4Lasso(Int_t x, Int_t y)
 Create context menu for lasso actions.
Bool_t IsPasteFrameExist()
 Return kTRUE if paste frame exist.
TGColorDialog * GetGlobalColorDialog(Bool_t create)
 Return pointer to global color dialog. If dialog is not yet created 
 and input parameter is kTRUE - the dialog will be created.
TGFontDialog * GetGlobalFontDialog()
 Create global font dialog.
void MapGlobalDialog(TGMainFrame *dialog, TGFrame *fr)
 Map dialog and place it relative to selected frame.
void ChangeBackgroundColor(TGFrame *fr)
 Change background color via context menu.
void ChangeBackgroundColor(TGCompositeFrame *fr)
 Change background color via context menu for this frame and all subframes.
 This method is activated via context menu during guibuilding.
void ChangeTextColor(TGGroupFrame *fr)
 Change text color via color selection dialog. This method is activated
 via context menu during guibuilding.
void ChangeTextFont(TGGroupFrame *fr)
 Change text font via font selection dialog. This method is activated
 via context menu during guibuilding.
void ChangeProperties(TGTextButton *fr)
 Edit properties via font selection dialog. This method is activated
 via context menu during guibuilding.
void ChangeTextColor(TGTextButton *fr)
 Change text color via color selection dialog. This method is activated
 via context menu during guibuilding.
void ChangePicture(TGPictureButton *fr)
 Invoke file dialog to assign a new picture.
 This method is activated via context menu during guibuilding.
void ChangeBackgroundColor(TGCanvas *fr)
 Change background color via context menu
void ChangeBackgroundColor(TGComboBox *fr)
 Change background color for list box entries. This method is invoked
 via context menu during guibuilding.
void ChangeProperties(TGLabel *fr)
 Edit properties via font selection dialog. This method is activated
 via context menu during guibuilding.
void ChangeTextColor(TGLabel *fr)
 Change text color via color selection dialog. This method is activated
 via context menu during guibuilding.
void ChangeBackgroundColor(TGListBox *fr)
 Set background color for list box entries. This method is invoked
 via context menu during  guibuilding.
void ChangeBarColor(TGProgressBar *fr)
 Set progress bar color via TGColorDialog. 
 This method is activated via context menu during guibuilding.
void ChangeTextColor(TGProgressBar *fr)
 Change text color which displays position.
void ChangeTextColor(TGTextEntry *fr)
 Set text color. This method is invoked
 via context menu during  guibuilding.
void ChangeTextFont(TGTextEntry *fr)
 Change text font via font selection dialog. This method is activated
 via context menu during guibuilding.
void ChangeImage(TGIcon *fr)
 Invoke file dialog to assign a new image.
 This method is activated via context menu during guibuilding.
void SetLassoDrawn(Bool_t on)
 Set lasso drawn flag
Bool_t IsEditDisabled(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisable)); }
Bool_t IsGrabDisabled(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisableGrab)); }
Bool_t IsEventsDisabled(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisableEvents)); }
Bool_t IsFixedLayout(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisableLayout)); }
Bool_t IsFixedH(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisableHeight)); }
Bool_t IsFixedW(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisableWidth)); }
Bool_t IsFixedSize(TGWindow *f)
{ return (f && (f->GetEditDisabled() & kEditDisableResize)); }
Bool_t IsLassoDrawn()
{ return fLassoDrawn; }
TGFrame * GetTarget()
{ return fTarget; }
Bool_t GetDropStatus()
{ return fDropStatus; }
void SetBuilder(TRootGuiBuilder *b)
{ fBuilder = b; }
Bool_t IsStopped()
{ return fStop; }

Author: Valeriy Onuchin 12/09/04
Last update: root/guibuilder:$Name: $:$Id: TGuiBldDragManager.cxx,v 1.51 2006/07/05 07:02:22 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.