Logo ROOT  
Reference Guide
TGuiBldDragManager.h
Go to the documentation of this file.
1 // @(#)root/guibuilder:$Id$
2 // Author: Valeriy Onuchin 12/09/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGuiBldDragManager
13 #define ROOT_TGuiBldDragManager
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGuiBldDragManager //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGFrame.h"
23 
24 #include "TVirtualDragManager.h"
25 
26 class TTimer;
27 class TGuiBldDragManagerPimpl;
28 class TRootGuiBuilder;
29 class TQUndoManager;
30 class TGPopupMenu;
31 class TGuiBldEditor;
32 class TGColorDialog;
33 class TGFontDialog;
34 class TGTextButton;
35 class TGPictureButton;
36 class TGCanvas;
37 class TGComboBox;
38 class TGLabel;
39 class TGListBox;
40 class TGProgressBar;
41 class TGScrollBar;
42 class TGTextEntry;
43 class TGIcon;
44 
45 
55 };
56 
57 //////////////////////////////////////////////////////////////////////////
59 
60 friend class TGClient;
61 friend class TGFrame;
62 friend class TGMainFrame;
63 friend class TGGrabRect;
64 friend class TRootGuiBuilder;
66 friend class TGuiBldMenuDialog;
67 friend class TGuiBldGeometryFrame;
68 friend class TGuiBldEditor;
69 
70 private:
71  TGuiBldDragManagerPimpl *fPimpl; // private data
72 
73  TRootGuiBuilder *fBuilder; // pointer to gui builder
74  TGuiBldEditor *fEditor; // frame property editor
75  Bool_t fLassoDrawn; // kTRUE if lasso drawn
76  TString fPasteFileName; // paste_clippboard file name
77  TString fTmpBuildFile; // temporary file name
78  Bool_t fSelectionIsOn; // selection with Shift key pressed
79  TGPopupMenu *fFrameMenu; // context menu for frames
80  TGPopupMenu *fLassoMenu; // context menu for lasso drawn
81  Window_t fTargetId; // an id of window where drop
82  Bool_t fDropStatus; // kTRUE if drop was successfull
83  Bool_t fStop; // kTRUE if stopped
84  TGFrame *fSelected; // selected frame. In most cases selected is
85  // the same frame as grabbed frame.
86  TList *fListOfDialogs; // list of dialog methods
87 
88  static TGColorDialog *fgGlobalColorDialog; // color dialog
90 
91  static TGFontDialog *fgGlobalFontDialog; // font dialog
92  static TGFontDialog *GetGlobalFontDialog(); //
93 
94 
95  void Reset1();
96  void DrawGrabRectangles(TGWindow *win = 0);
97  void DrawGrabRect(Int_t i, Int_t x, Int_t y);
101  void CloseMenus();
102  Bool_t IsEditDisabled(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisable)); }
103  Bool_t IsGrabDisabled(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisableGrab)); }
104  Bool_t IsEventsDisabled(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisableEvents)); }
105  Bool_t IsFixedLayout(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisableLayout)); }
106  Bool_t IsFixedH(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisableHeight)); }
107  Bool_t IsFixedW(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisableWidth)); }
108  Bool_t IsFixedSize(TGWindow *f) const { return (f && (f->GetEditDisabled() & kEditDisableResize)); }
109  Bool_t CanChangeLayout(TGWindow *w) const;
111  Bool_t CanCompact(TGWindow *w) const;
112 
113  void ChangeSelected(TGFrame *f);
119  void RaiseMdiFrame(TGFrame *in);
121  void AddClassMenuMethods(TGPopupMenu *menu, TObject *object);
122  void AddDialogMethods(TGPopupMenu *menu, TObject *object);
123  void DeleteMenuDialog();
124  void CreateListOfDialogs();
125 
126 private:
128  void GrabFrame(TGFrame *frame);
129  void UngrabFrame();
131  void DeletePropertyEditor();
132 
134  void ToGrid(Int_t &x, Int_t &y);
135  void DoReplace(TGFrame *frame);
136  void DeleteFrame(TGFrame *frame);
137  void HandleDelete(Bool_t crop = kFALSE);
138  void HandleReturn(Bool_t on = kFALSE);
139  void HandleAlignment(Int_t to, Bool_t lineup = kFALSE);
140  void HandleCut();
141  void HandleCopy(Bool_t brk_layout = kTRUE);
142  void HandlePaste();
143  void HandleReplace();
144  void HandleGrid();
145  void CloneEditable();
146  void DropCanvas(TGCanvas *canvas);
147  void PutToCanvas(TGCompositeFrame *cont);
148  Bool_t Save(const char *file = "");
149  Bool_t SaveFrame(const char *file = 0);
151  void DoResize();
152  void DoMove();
153  void DrawLasso();
154  void PlaceFrame(TGFrame*, TGLayoutHints *);
155  void ReparentFrames(TGFrame *newfr,
156  TGCompositeFrame *oldfr);
158  void SetCursorType(Int_t cur);
159  void CheckTargetUnderGrab();
161  void Compact(Bool_t global = kTRUE);
163  Bool_t EndDrag();
164  Bool_t Drop();
165  Bool_t Cancel(Bool_t delSrc);
166  void Menu4Frame(TGFrame *, Int_t x, Int_t y);
167  void Menu4Lasso(Int_t x, Int_t y);
168  void CreatePropertyEditor();
169  void DoRedraw();
170  void SwitchEditable(TGFrame *frame);
171  void UnmapAllPopups();
172  void BreakLayout();
173  void SwitchLayout();
174 
175  Bool_t RecognizeGesture(Event_t *, TGFrame *frame = 0);
187  void HandleButon3Pressed(Event_t *, TGFrame *frame = 0);
190 
191  Bool_t IsMoveWaiting() const;
192  Bool_t IsLassoDrawn() const { return fLassoDrawn; }
193  void SetLassoDrawn(Bool_t on);
194  void HideGrabRectangles();
198 
199 public:
201  virtual ~TGuiBldDragManager();
202 
203  void HandleAction(Int_t act);
205 
206  TGFrame *GetTarget() const { return fTarget; }
207  TGFrame *GetSelected() const;
208  void Snap2Grid();
209  void SetGridStep(UInt_t step);
212  Int_t GetStrartDragX() const;
213  Int_t GetStrartDragY() const;
214  Int_t GetEndDragX() const;
215  Int_t GetEndDragY() const;
216 
217  Bool_t GetDropStatus() const { return fDropStatus; }
219 
220  Bool_t IsStopped() const { return fStop; }
221  void SetEditable(Bool_t on = kTRUE);
222  void SelectFrame(TGFrame *frame, Bool_t add = kFALSE);
223 
224  static void MapGlobalDialog(TGMainFrame *dialog, TGFrame *fr);
225 
227  void TimerEvent(Event_t *ev)
228  { Emit("TimerEvent(Event_t*)", (Long_t)ev); } // *SIGNAL*
229 
230  // hadndling dynamic context menus
231  void DoClassMenu(Int_t);
232  void DoDialogOK();
233  void DoDialogApply();
234  void DoDialogCancel();
235 
236  void ChangeProperties(TGLabel *); //*MENU* *DIALOG*icon=bld_fontselect.png*
237  void ChangeProperties(TGTextButton *); //*MENU* *DIALOG*icon=bld_fontselect.png*
238 
239  void ChangeTextFont(TGGroupFrame *); //*MENU* *DIALOG*icon=bld_fontselect.png*
240  void ChangeTextFont(TGTextEntry *); //*MENU* *DIALOG*icon=bld_fontselect.png*
241 
242  void ChangePicture(TGPictureButton *); //*MENU* *DIALOG*icon=bld_open.png*
243  void ChangeImage(TGIcon *); //*MENU* *DIALOG*icon=bld_open.png*
244 
245  void ChangeBarColor(TGProgressBar *); //*MENU* *DIALOG*icon=bld_colorselect.png*
246 
247  void ChangeTextColor(TGGroupFrame *); //*MENU* *DIALOG*icon=bld_colorselect.png*
248  void ChangeTextColor(TGLabel *); //*MENU* *DIALOG*icon=bld_colorselect.png*
249  void ChangeTextColor(TGTextButton *); //*MENU* *DIALOG*icon=bld_colorselect.png*
250  void ChangeTextColor(TGProgressBar *); //*MENU* *DIALOG*icon=bld_colorselect.png*
251  void ChangeTextColor(TGTextEntry *); //*MENU* *DIALOG*icon=bld_colorselect.png*
252 
253  void ChangeBackgroundColor(TGListBox *); //*MENU* *DIALOG*icon=bld_colorselect.png*
254  void ChangeBackgroundColor(TGCanvas *); //*MENU* *DIALOG*icon=bld_colorselect.png*
255  void ChangeBackgroundColor(TGComboBox *); //*MENU* *DIALOG*icon=bld_colorselect.png*
256  void ChangeBackgroundColor(TGFrame *); //*MENU* *DIALOG*icon=bld_colorselect.png*
257  void ChangeBackgroundColor(TGCompositeFrame *); //*MENU* *DIALOG*icon=bld_colorselect.png*
258 
259  ClassDef(TGuiBldDragManager,0) // drag and drop manager
260 };
261 
262 
263 #endif
TGuiBldDragManager::HandleExpose
Bool_t HandleExpose(Event_t *)
Handle repaint event.
Definition: TGuiBldDragManager.cxx:1957
kCompactGlobalAct
@ kCompactGlobalAct
Definition: TGuiBldDragManager.h:49
TGuiBldDragManager::HandleClientMessage
Bool_t HandleClientMessage(Event_t *)
Handle client message.
Definition: TGuiBldDragManager.cxx:4123
TGListBox
Definition: TGListBox.h:288
TGuiBldDragManager::fSelected
TGFrame * fSelected
Definition: TGuiBldDragManager.h:84
TGuiBldDragManager::HandleConfigureNotify
Bool_t HandleConfigureNotify(Event_t *)
Resize events.
Definition: TGuiBldDragManager.cxx:1938
TGuiBldDragManager::GetTarget
TGFrame * GetTarget() const
Definition: TGuiBldDragManager.h:206
TGuiBldDragManager::CanChangeLayout
Bool_t CanChangeLayout(TGWindow *w) const
kTRUE - if it's possible to switch disable/enable layout
Definition: TGuiBldDragManager.cxx:4829
TGuiBldDragManager::DrawLasso
void DrawLasso()
Draw lasso for allocation new object.
Definition: TGuiBldDragManager.cxx:4041
TGuiBldDragManager::TGuiBldDragManager
TGuiBldDragManager()
Definition: TGuiBldDragManager.cxx:891
TGuiBldDragManager::fPasteFileName
TString fPasteFileName
Definition: TGuiBldDragManager.h:76
TGuiBldDragManager::FindMdiFrame
TGFrame * FindMdiFrame(TGFrame *in)
Return a pointer to the parent mdi frame.
Definition: TGuiBldDragManager.cxx:3738
kCompactAct
@ kCompactAct
Definition: TGuiBldDragManager.h:49
TGWindow
Definition: TGWindow.h:31
kDeleteAct
@ kDeleteAct
Definition: TGuiBldDragManager.h:50
TGuiBldDragManager::fLassoMenu
TGPopupMenu * fLassoMenu
Definition: TGuiBldDragManager.h:80
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TGuiBldDragManager::GetGlobalColorDialog
static TGColorDialog * GetGlobalColorDialog(Bool_t create=kTRUE)
Return pointer to global color dialog.
Definition: TGuiBldDragManager.cxx:5797
e
#define e(i)
Definition: RSha256.hxx:121
TGuiBldDragManager::GetFramesInside
TList * GetFramesInside(Int_t x0, Int_t y0, Int_t x, Int_t y)
Return the list of frames inside of some area.
Definition: TGuiBldDragManager.cxx:2569
TGMainFrame
Definition: TGFrame.h:444
kEditableAct
@ kEditableAct
Definition: TGuiBldDragManager.h:47
TGuiBldDragManager::IsEditDisabled
Bool_t IsEditDisabled(TGWindow *f) const
Definition: TGuiBldDragManager.h:102
TGuiBldDragManager::CheckTargetAtPoint
Bool_t CheckTargetAtPoint(Int_t x, Int_t y)
Helper. Look for the drop target under grabbed/selected frame while moving.
Definition: TGuiBldDragManager.cxx:3811
TGuiBldDragManager::CreateListOfDialogs
void CreateListOfDialogs()
Create a list of dialog methods.
Definition: TGuiBldDragManager.cxx:984
f
#define f(i)
Definition: RSha256.hxx:122
TGScrollBar
Definition: TGScrollBar.h:80
TGuiBldDragManager::fSelectionIsOn
Bool_t fSelectionIsOn
Definition: TGuiBldDragManager.h:78
kPasteAct
@ kPasteAct
Definition: TGuiBldDragManager.h:48
TGuiBldDragManager::GetBtnEnableParent
TGFrame * GetBtnEnableParent(TGFrame *fr)
Return a parent which can handle button evevents.
Definition: TGuiBldDragManager.cxx:2133
TGuiBldDragManager::Compact
void Compact(Bool_t global=kTRUE)
Layout and Resize frame.
Definition: TGuiBldDragManager.cxx:4515
TGuiBldDragManager::RecognizeGesture
Bool_t RecognizeGesture(Event_t *, TGFrame *frame=0)
Recognize what was done when mouse button pressed.
Definition: TGuiBldDragManager.cxx:1745
TGuiBldDragManager::fLassoDrawn
Bool_t fLassoDrawn
Definition: TGuiBldDragManager.h:75
TGuiBldDragManager::DeleteMenuDialog
void DeleteMenuDialog()
Delete dialog and trash.
Definition: TGuiBldDragManager.cxx:5533
kUndoAct
@ kUndoAct
Definition: TGuiBldDragManager.h:53
TGuiBldDragManager::SaveFrame
Bool_t SaveFrame(const char *file=0)
Save composite frame as macro.
Definition: TGuiBldDragManager.cxx:3358
kCropAct
@ kCropAct
Definition: TGuiBldDragManager.h:48
TQUndoManager
Definition: TQCommand.h:103
TGuiBldDragManager::CanCompact
Bool_t CanCompact(TGWindow *w) const
kTRUE is frame could be compacted/"layouted"
Definition: TGuiBldDragManager.cxx:4848
TGuiBldDragManager::IsEventsDisabled
Bool_t IsEventsDisabled(TGWindow *f) const
Definition: TGuiBldDragManager.h:104
TGuiBldDragManager::fgGlobalFontDialog
static TGFontDialog * fgGlobalFontDialog
Definition: TGuiBldDragManager.h:91
TGuiBldDragManager::GetEndDragX
Int_t GetEndDragX() const
Return the current X coordinate of the dragged frame.
Definition: TGuiBldDragManager.cxx:5116
TGuiBldDragManager::DoMove
void DoMove()
Handle move.
Definition: TGuiBldDragManager.cxx:3685
TGuiBldDragManager::SetBuilder
void SetBuilder(TRootGuiBuilder *b)
Definition: TGuiBldDragManager.h:218
TGWindow::kEditDisableLayout
@ kEditDisableLayout
Definition: TGWindow.h:61
TGLabel
Definition: TGLabel.h:32
TGuiBldDragManager::fPimpl
TGuiBldDragManagerPimpl * fPimpl
Definition: TGuiBldDragManager.h:71
TGuiBldDragManager::IsPasteFrameExist
Bool_t IsPasteFrameExist()
Return kTRUE if paste frame exist.
Definition: TGuiBldDragManager.cxx:5788
TGuiBldGeometryFrame
Definition: TGuiBldGeometryFrame.h:34
TGWindow::kEditDisable
@ kEditDisable
Definition: TGWindow.h:58
TGuiBldDragManager::HandleButtonPress
Bool_t HandleButtonPress(Event_t *)
Handle button press event.
Definition: TGuiBldDragManager.cxx:2169
TGuiBldDragManager::GetDropStatus
Bool_t GetDropStatus() const
Definition: TGuiBldDragManager.h:217
TGTextButton
Definition: TGButton.h:142
kLeftAct
@ kLeftAct
Definition: TGuiBldDragManager.h:51
TGuiBldDragManager::RaiseMdiFrame
void RaiseMdiFrame(TGFrame *in)
Raise guibuilder's mdi frame.
Definition: TGuiBldDragManager.cxx:3759
kGrabAct
@ kGrabAct
Definition: TGuiBldDragManager.h:50
kUpAct
@ kUpAct
Definition: TGuiBldDragManager.h:51
Int_t
int Int_t
Definition: RtypesCore.h:45
TGuiBldDragManager::CheckDragResize
Bool_t CheckDragResize(Event_t *event)
Check resize type event.
Definition: TGuiBldDragManager.cxx:1127
TRootGuiBuilder
Definition: TRootGuiBuilder.h:65
TGuiBldDragManager::HandleAction
void HandleAction(Int_t act)
Main handler of actions.
Definition: TGuiBldDragManager.cxx:4693
TGuiBldDragManager::ToGrid
void ToGrid(Int_t &x, Int_t &y)
Return grid coordinates which are close to given.
Definition: TGuiBldDragManager.cxx:4683
TGuiBldDragManager::DeletePropertyEditor
void DeletePropertyEditor()
Delete widget property editor.
Definition: TGuiBldDragManager.cxx:5085
x
Double_t x[n]
Definition: legend1.C:17
TGuiBldDragManager::HandleMotion
Bool_t HandleMotion(Event_t *)
Handle motion event.
Definition: TGuiBldDragManager.cxx:3891
TGuiBldDragManager::HighlightCompositeFrame
void HighlightCompositeFrame(Window_t)
Raise composite frame when mouse is moving over it.
Definition: TGuiBldDragManager.cxx:1584
TGWindow::kEditDisableHeight
@ kEditDisableHeight
Definition: TGWindow.h:63
TGuiBldDragManager::FindCompositeFrame
TGCompositeFrame * FindCompositeFrame(Window_t id)
Find the first composite parent of window.
Definition: TGuiBldDragManager.cxx:1080
TGuiBldDragManager::DrawGrabRectangles
void DrawGrabRectangles(TGWindow *win=0)
Draw small grab rectangles around grabbed/selected/frame.
Definition: TGuiBldDragManager.cxx:1523
kLayoutVAct
@ kLayoutVAct
Definition: TGuiBldDragManager.h:53
TGuiBldDragManager::PlaceFrame
void PlaceFrame(TGFrame *, TGLayoutHints *)
Put created frame at position of the last mouse click.
Definition: TGuiBldDragManager.cxx:3946
TGuiBldDragManager::FindLayoutFrame
TGCompositeFrame * FindLayoutFrame(TGFrame *f)
Helper to find a frame which can be layouted.
Definition: TGuiBldDragManager.cxx:5005
kReplaceAct
@ kReplaceAct
Definition: TGuiBldDragManager.h:51
TGuiBldDragManager::ChangePicture
void ChangePicture(TGPictureButton *)
Invoke file dialog to assign a new picture.
Definition: TGuiBldDragManager.cxx:5993
kSaveAct
@ kSaveAct
Definition: TGuiBldDragManager.h:50
TGuiBldDragManager::DoReplace
void DoReplace(TGFrame *frame)
Replace frame (doesn't work yet properly)
Definition: TGuiBldDragManager.cxx:3197
kSelectAct
@ kSelectAct
Definition: TGuiBldDragManager.h:54
TString
Definition: TString.h:136
TGuiBldDragManager::ChangeBackgroundColor
void ChangeBackgroundColor(TGListBox *)
Set background color for list box entries.
Definition: TGuiBldDragManager.cxx:6161
TGuiBldDragManager::ReparentFrames
void ReparentFrames(TGFrame *newfr, TGCompositeFrame *oldfr)
Reparent frames.
Definition: TGuiBldDragManager.cxx:2511
TGFrame
Definition: TGFrame.h:105
kNewAct
@ kNewAct
Definition: TGuiBldDragManager.h:52
TGuiBldDragManager::HandleSelectionRequest
Bool_t HandleSelectionRequest(Event_t *)
not used yet.
Definition: TGuiBldDragManager.cxx:4207
TGuiBldDragManager::GetEndDragY
Int_t GetEndDragY() const
Returns the current Y coordinate of the dragged frame.
Definition: TGuiBldDragManager.cxx:5124
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGuiBldDragManager::SetGridStep
void SetGridStep(UInt_t step)
Set the grid step.
Definition: TGuiBldDragManager.cxx:1027
TGuiBldDragManager::PutToCanvas
void PutToCanvas(TGCompositeFrame *cont)
Create a new TGCanvas and place container into it.
Definition: TGuiBldDragManager.cxx:2639
TGuiBldDragManager::HideGrabRectangles
void HideGrabRectangles()
Hide/Unmap grab rectangles.
Definition: TGuiBldDragManager.cxx:5064
TGuiBldDragManager::HandleTimerEvent
Bool_t HandleTimerEvent(Event_t *ev, TTimer *t)
Handle timer events or events coming from the recorder.
Definition: TGuiBldDragManager.cxx:1636
TGuiBldDragManager::HandleDoubleClick
Bool_t HandleDoubleClick(Event_t *)
Mouse double click handler (never should happen)
Definition: TGuiBldDragManager.cxx:2121
b
#define b(i)
Definition: RSha256.hxx:118
TGuiBldDragManager::Save
Bool_t Save(const char *file="")
Save an editted frame to the file.
Definition: TGuiBldDragManager.cxx:3290
TGWindow::kEditDisableEvents
@ kEditDisableEvents
Definition: TGWindow.h:59
kMethodMenuAct
@ kMethodMenuAct
Definition: TGuiBldDragManager.h:54
bool
TGuiBldDragManager::HandleButon3Pressed
void HandleButon3Pressed(Event_t *, TGFrame *frame=0)
Handle 3d mouse pressed (popup context menu)
Definition: TGuiBldDragManager.cxx:1886
kNoneAct
@ kNoneAct
Definition: TGuiBldDragManager.h:47
TGuiBldDragManager::HandleUpdateSelected
void HandleUpdateSelected(TGFrame *)
When selected frame was changed by guibuilder editor -> update its appearence.
Definition: TGuiBldDragManager.cxx:5025
TGuiBldDragManager::HandleCopy
void HandleCopy(Bool_t brk_layout=kTRUE)
Handle copy.
Definition: TGuiBldDragManager.cxx:3073
TGuiBldDragManager::IgnoreEvent
Bool_t IgnoreEvent(Event_t *e)
Return kTRUE if event is rejected for processing by drag manager.
Definition: TGuiBldDragManager.cxx:1035
TGuiBldDragManager::Menu4Frame
void Menu4Frame(TGFrame *, Int_t x, Int_t y)
Create and place context menu for selected frame.
Definition: TGuiBldDragManager.cxx:5572
TGuiBldDragManager::TGuiBldMenuDialog
friend class TGuiBldMenuDialog
Definition: TGuiBldDragManager.h:66
kLayDownAct
@ kLayDownAct
Definition: TGuiBldDragManager.h:49
TGuiBldDragManager::SwitchLayout
void SwitchLayout()
Switch Horizontal/Vertical layout of selected/grabbed composite frame.
Definition: TGuiBldDragManager.cxx:5171
TGuiBldDragManager::HandleAlignment
void HandleAlignment(Int_t to, Bool_t lineup=kFALSE)
Align frames located inside lasso area.
Definition: TGuiBldDragManager.cxx:2800
TGIcon
Definition: TGIcon.h:30
TGuiBldDragManager::ChangeTextColor
void ChangeTextColor(TGGroupFrame *)
Change text color via color selection dialog.
Definition: TGuiBldDragManager.cxx:5889
TGuiBldDragManager::HandlePaste
void HandlePaste()
Handle paste action.
Definition: TGuiBldDragManager.cxx:3137
TGuiBldDragManager::TGuiBldDragManagerRepeatTimer
friend class TGuiBldDragManagerRepeatTimer
Definition: TGuiBldDragManager.h:65
TGuiBldDragManager::fEditor
TGuiBldEditor * fEditor
Definition: TGuiBldDragManager.h:74
TGuiBldDragManager::GetStrartDragY
Int_t GetStrartDragY() const
Return the Y coordinate where drag started.
Definition: TGuiBldDragManager.cxx:5108
TGuiBldDragManager::fDropStatus
Bool_t fDropStatus
Definition: TGuiBldDragManager.h:82
TGuiBldDragManager::HandleButtonRelease
Bool_t HandleButtonRelease(Event_t *)
Handle button release event.
Definition: TGuiBldDragManager.cxx:2243
TGuiBldDragManager::HandleKey
Bool_t HandleKey(Event_t *)
Handle key event.
Definition: TGuiBldDragManager.cxx:2299
TGuiBldDragManager::SetLassoDrawn
void SetLassoDrawn(Bool_t on)
Set lasso drawn flag.
Definition: TGuiBldDragManager.cxx:6321
TGuiBldDragManager::AddDialogMethods
void AddDialogMethods(TGPopupMenu *menu, TObject *object)
Add DIALOG entries to the selected frame popup menu.
Definition: TGuiBldDragManager.cxx:5313
TTimer
Definition: TTimer.h:51
TGuiBldDragManager::GetResizableParent
TGWindow * GetResizableParent(TGWindow *p)
Find parent frame which can be resized.
Definition: TGuiBldDragManager.cxx:4242
kOpenAct
@ kOpenAct
Definition: TGuiBldDragManager.h:53
TGuiBldDragManager::HandleTimer
Bool_t HandleTimer(TTimer *)
The main event loop is originated here It repeadeatly queries pointer state and position on the scree...
Definition: TGuiBldDragManager.cxx:1628
kSaveFrameAct
@ kSaveFrameAct
Definition: TGuiBldDragManager.h:50
TGuiBldDragManager::HandleDelete
void HandleDelete(Bool_t crop=kFALSE)
Handle delete or crop action.
Definition: TGuiBldDragManager.cxx:2896
TGuiBldDragManager::HandleGrid
void HandleGrid()
Switch on/of grid drawn.
Definition: TGuiBldDragManager.cxx:4956
TVirtualDragManager::fTarget
TGFrame * fTarget
Definition: TVirtualDragManager.h:38
TGColorDialog
Definition: TGColorDialog.h:157
TGuiBldDragManager::DoClassMenu
void DoClassMenu(Int_t)
Process a method chosen via frame context menu.
Definition: TGuiBldDragManager.cxx:5481
TGuiBldDragManager::SetEditable
void SetEditable(Bool_t on=kTRUE)
Grab server.
Definition: TGuiBldDragManager.cxx:4616
TGuiBldDragManager::HandleSelection
Bool_t HandleSelection(Event_t *)
not used yet.
Definition: TGuiBldDragManager.cxx:4195
TGWindow::kEditDisableGrab
@ kEditDisableGrab
Definition: TGWindow.h:60
TGuiBldDragManager::ChangeTextFont
void ChangeTextFont(TGGroupFrame *)
Change text font via font selection dialog.
Definition: TGuiBldDragManager.cxx:5910
TGuiBldDragManager::Menu4Lasso
void Menu4Lasso(Int_t x, Int_t y)
Create context menu for lasso actions.
Definition: TGuiBldDragManager.cxx:5749
TGTextEntry
Definition: TGTextEntry.h:39
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TGuiBldDragManager::DoResize
void DoResize()
handle resize
Definition: TGuiBldDragManager.cxx:3468
TGFrame.h
Long_t
long Long_t
Definition: RtypesCore.h:54
TVirtualDragManager
Definition: TVirtualDragManager.h:28
TGLayoutHints
Definition: TGLayout.h:57
TGGroupFrame
Definition: TGFrame.h:587
TGuiBldDragManager::IsSelectedVisible
Bool_t IsSelectedVisible()
Return kTRUE if grabbed/selected frame is not overlapped by other windows.
Definition: TGuiBldDragManager.cxx:1468
TGuiBldDragManager::fStop
Bool_t fStop
Definition: TGuiBldDragManager.h:83
TGuiBldDragManager::DoDialogCancel
void DoDialogCancel()
Process dialog Cancel button pressed.
Definition: TGuiBldDragManager.cxx:5563
TGuiBldDragManager::IsStopped
Bool_t IsStopped() const
Definition: TGuiBldDragManager.h:220
Window_t
Handle_t Window_t
Definition: GuiTypes.h:28
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGuiBldDragManager::IsFixedSize
Bool_t IsFixedSize(TGWindow *f) const
Definition: TGuiBldDragManager.h:108
TGuiBldDragManager::GetEditableParent
TGFrame * GetEditableParent(TGFrame *f)
Return the parent frame which can be editted.
Definition: TGuiBldDragManager.cxx:5252
TGuiBldDragManager::Snap2Grid
void Snap2Grid()
Draw grid on editable frame and restore background on previuosly editted one.
Definition: TGuiBldDragManager.cxx:1004
y
Double_t y[n]
Definition: legend1.C:17
TGuiBldDragManager::MapGlobalDialog
static void MapGlobalDialog(TGMainFrame *dialog, TGFrame *fr)
Map dialog and place it relative to selected frame.
Definition: TGuiBldDragManager.cxx:5832
TGuiBldDragManager::Cancel
Bool_t Cancel(Bool_t delSrc)
Do cancel action.
Definition: TGuiBldDragManager.cxx:4374
kGridAct
@ kGridAct
Definition: TGuiBldDragManager.h:52
TGuiBldDragManager::ChangeSelected
void ChangeSelected(TGFrame *f)
Inform outside wold that selected frame was changed.
Definition: TGuiBldDragManager.cxx:1312
TGFontDialog
Definition: TGFontDialog.h:36
TGuiBldDragManager::ChangeProperties
void ChangeProperties(TGLabel *)
Edit properties via font selection dialog.
Definition: TGuiBldDragManager.cxx:6105
kBreakLayoutAct
@ kBreakLayoutAct
Definition: TGuiBldDragManager.h:52
TGuiBldDragManager::HandleCut
void HandleCut()
Handle cut action.
Definition: TGuiBldDragManager.cxx:3056
kLayUpAct
@ kLayUpAct
Definition: TGuiBldDragManager.h:49
TGuiBldDragManager::fTmpBuildFile
TString fTmpBuildFile
Definition: TGuiBldDragManager.h:77
TGComboBox
Definition: TGComboBox.h:67
TGuiBldDragManager::DoRedraw
void DoRedraw()
Redraw the editted window.
Definition: TGuiBldDragManager.cxx:1155
TGuiBldDragManager::AddClassMenuMethods
void AddClassMenuMethods(TGPopupMenu *menu, TObject *object)
Add entries with class //*MENU* methods.
Definition: TGuiBldDragManager.cxx:5348
TGuiBldEditor
Definition: TGuiBldEditor.h:39
TGuiBldDragManager::CloneEditable
void CloneEditable()
Create a frame which is the same as currently editted frame.
Definition: TGuiBldDragManager.cxx:3267
TGuiBldDragManager::fgGlobalColorDialog
static TGColorDialog * fgGlobalColorDialog
Definition: TGuiBldDragManager.h:88
TGuiBldDragManager::SetPropertyEditor
void SetPropertyEditor(TGuiBldEditor *e)
Helper method.
Definition: TGuiBldDragManager.cxx:4882
kRedoAct
@ kRedoAct
Definition: TGuiBldDragManager.h:53
TGuiBldDragManager::IsFixedH
Bool_t IsFixedH(TGWindow *f) const
Definition: TGuiBldDragManager.h:106
TGuiBldDragManager::EndDrag
Bool_t EndDrag()
End dragging.
Definition: TGuiBldDragManager.cxx:4328
TGuiBldDragManager::DrawGrabRect
void DrawGrabRect(Int_t i, Int_t x, Int_t y)
Helper method to draw grab rectangle at position x,y.
Definition: TGuiBldDragManager.cxx:1570
TGuiBldDragManager::GetMovableParent
TGFrame * GetMovableParent(TGWindow *p)
Find parent frame which can be dragged.
Definition: TGuiBldDragManager.cxx:4219
kCutAct
@ kCutAct
Definition: TGuiBldDragManager.h:48
TGuiBldDragManager::BreakLayout
void BreakLayout()
Disable/Enable layout for selected/grabbed composite frame.
Definition: TGuiBldDragManager.cxx:5132
TGuiBldDragManager::GrabFrame
void GrabFrame(TGFrame *frame)
grab frame (see SelectFrame)
Definition: TGuiBldDragManager.cxx:1341
TGuiBldDragManager::DeleteFrame
void DeleteFrame(TGFrame *frame)
Delete frame.
Definition: TGuiBldDragManager.cxx:3022
TGProgressBar
Definition: TGProgressBar.h:31
TGuiBldDragManager::HandleLayoutOrder
void HandleLayoutOrder(Bool_t forward=kTRUE)
Change layout order.
Definition: TGuiBldDragManager.cxx:4898
TGuiBldDragManager::IsMoveWaiting
Bool_t IsMoveWaiting() const
Waits for either the mouse move from the given initial ButtonPress location or for the mouse button t...
Definition: TGuiBldDragManager.cxx:4505
kRightAct
@ kRightAct
Definition: TGuiBldDragManager.h:51
TGPictureButton
Definition: TGButton.h:228
TGuiBldDragManager::GetGridStep
UInt_t GetGridStep()
Return the grid step.
Definition: TGuiBldDragManager.cxx:1019
TGuiBldDragManager::Drop
Bool_t Drop()
Drop grabbed frame.
Definition: TGuiBldDragManager.cxx:4388
TGuiBldDragManager::SwitchEditable
void SwitchEditable(TGFrame *frame)
Switch editable.
Definition: TGuiBldDragManager.cxx:1173
TGuiBldDragManager::HandleReturn
void HandleReturn(Bool_t on=kFALSE)
Handling of return/enter key pressing.
Definition: TGuiBldDragManager.cxx:2691
TGuiBldDragManager::GetGlobalFontDialog
static TGFontDialog * GetGlobalFontDialog()
Create global font dialog.
Definition: TGuiBldDragManager.cxx:5819
TGuiBldDragManager::CreatePropertyEditor
void CreatePropertyEditor()
Create widget property editor (it could be located outside of guibuilder)
Definition: TGuiBldDragManager.cxx:4863
file
Definition: file.py:1
TGuiBldDragManager::fBuilder
TRootGuiBuilder * fBuilder
Definition: TGuiBldDragManager.h:73
TGuiBldDragManager::TGGrabRect
friend class TGGrabRect
Definition: TGuiBldDragManager.h:63
kReparentAct
@ kReparentAct
Definition: TGuiBldDragManager.h:47
TGuiBldDragManager::InEditable
TGFrame * InEditable(Window_t id)
Return a pointer to the parent window (which is being editted)
Definition: TGuiBldDragManager.cxx:1057
TGuiBldDragManager::UnmapAllPopups
void UnmapAllPopups()
Unmap all popups.
Definition: TGuiBldDragManager.cxx:2149
TMVA::DNN::forward
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN
Definition: NeuralNet.icc:546
TGuiBldDragManager::GetStrartDragX
Int_t GetStrartDragX() const
Return the X coordinate where drag started.
Definition: TGuiBldDragManager.cxx:5100
TObject
Definition: TObject.h:37
TGuiBldDragManager::fTargetId
Window_t fTargetId
Definition: TGuiBldDragManager.h:81
TGuiBldDragManager::DoDialogApply
void DoDialogApply()
Process dialog Apply button pressed.
Definition: TGuiBldDragManager.cxx:5555
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGPopupMenu
Definition: TGMenu.h:123
Event_t
Definition: GuiTypes.h:173
kSwitchLayoutAct
@ kSwitchLayoutAct
Definition: TGuiBldDragManager.h:52
TGuiBldDragManager::DoDialogOK
void DoDialogOK()
Process dialog OK button pressed.
Definition: TGuiBldDragManager.cxx:5544
kCloneAct
@ kCloneAct
Definition: TGuiBldDragManager.h:50
TGuiBldDragManager::CloseMenus
void CloseMenus()
Helper to close all menus.
Definition: TGuiBldDragManager.cxx:5236
TGuiBldDragManager::HandleReplace
void HandleReplace()
Handle replace.
Definition: TGuiBldDragManager.cxx:3245
kCopyAct
@ kCopyAct
Definition: TGuiBldDragManager.h:48
TGuiBldDragManager::SelectFrame
void SelectFrame(TGFrame *frame, Bool_t add=kFALSE)
Grab/Select frame.
Definition: TGuiBldDragManager.cxx:1218
TGWindow::kEditDisableWidth
@ kEditDisableWidth
Definition: TGWindow.h:64
TGuiBldDragManager::UngrabFrame
void UngrabFrame()
Ungrab/Unselect selected/grabbed frame.
Definition: TGuiBldDragManager.cxx:1398
kLayoutHAct
@ kLayoutHAct
Definition: TGuiBldDragManager.h:53
kDownAct
@ kDownAct
Definition: TGuiBldDragManager.h:51
TGuiBldDragManager::fFrameMenu
TGPopupMenu * fFrameMenu
Definition: TGuiBldDragManager.h:79
TGuiBldDragManager::ChangeBarColor
void ChangeBarColor(TGProgressBar *)
Set progress bar color via TGColorDialog.
Definition: TGuiBldDragManager.cxx:6178
TVirtualDragManager.h
kToggleMenuAct
@ kToggleMenuAct
Definition: TGuiBldDragManager.h:54
kDropAct
@ kDropAct
Definition: TGuiBldDragManager.h:48
TGuiBldDragManager::~TGuiBldDragManager
virtual ~TGuiBldDragManager()
Destructor.
Definition: TGuiBldDragManager.cxx:943
TGCompositeFrame
Definition: TGFrame.h:324
TGuiBldDragManager::IsPointVisible
Bool_t IsPointVisible(Int_t x, Int_t y)
Helper function for IsSelectedWindow method.
Definition: TGuiBldDragManager.cxx:1440
TGCanvas
Definition: TGCanvas.h:202
TGuiBldDragManager::DropCanvas
void DropCanvas(TGCanvas *canvas)
Drop canvas container.
Definition: TGuiBldDragManager.cxx:2607
TGuiBldDragManager::HandleButton
Bool_t HandleButton(Event_t *)
Handle button event occured in some ROOT frame.
Definition: TGuiBldDragManager.cxx:1918
TGuiBldDragManager::IsLassoDrawn
Bool_t IsLassoDrawn() const
Definition: TGuiBldDragManager.h:192
TGuiBldDragManager::IsGrabDisabled
Bool_t IsGrabDisabled(TGWindow *f) const
Definition: TGuiBldDragManager.h:103
TGuiBldDragManager::fListOfDialogs
TList * fListOfDialogs
Definition: TGuiBldDragManager.h:86
TGuiBldDragManager::GetSelected
TGFrame * GetSelected() const
Return the current grabbed/selected frame.
Definition: TGuiBldDragManager.cxx:5228
TGuiBldDragManager::ChangeImage
void ChangeImage(TGIcon *)
Invoke file dialog to assign a new image.
Definition: TGuiBldDragManager.cxx:6272
TGuiBldDragManager::HandleEvent
Bool_t HandleEvent(Event_t *)
Handle all events.
Definition: TGuiBldDragManager.cxx:1997
kEndEditAct
@ kEndEditAct
Definition: TGuiBldDragManager.h:51
TGClient
Definition: TGClient.h:46
kPropertyAct
@ kPropertyAct
Definition: TGuiBldDragManager.h:47
TGuiBldDragManager::IsFixedLayout
Bool_t IsFixedLayout(TGWindow *f) const
Definition: TGuiBldDragManager.h:105
TGWindow::kEditDisableResize
@ kEditDisableResize
Definition: TGWindow.h:62
TGuiBldDragManager::Reset1
void Reset1()
Reset some parameters.
Definition: TGuiBldDragManager.cxx:973
TGuiBldDragManager::CheckTargetUnderGrab
void CheckTargetUnderGrab()
Look for the drop target under grabbed/selected frame while moving.
Definition: TGuiBldDragManager.cxx:3782
EActionType
EActionType
Definition: TGuiBldDragManager.h:46
TList
Definition: TList.h:44
TGuiBldDragManager::IsFixedW
Bool_t IsFixedW(TGWindow *f) const
Definition: TGuiBldDragManager.h:107
TQObject::Emit
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition: TQObject.h:164
TGuiBldDragManager::TimerEvent
void TimerEvent(Event_t *ev)
Definition: TGuiBldDragManager.h:227
TGuiBldDragManager
Definition: TGuiBldDragManager.h:58
int
TGuiBldDragManager::CanChangeLayoutOrder
Bool_t CanChangeLayoutOrder(TGWindow *w) const
kTRUE - if it's possible to change layout order in the parent's layout of window w
Definition: TGuiBldDragManager.cxx:4838
TGuiBldDragManager::HandleDestroyNotify
Bool_t HandleDestroyNotify(Event_t *)
Handle destroy notify.
Definition: TGuiBldDragManager.cxx:4182
TGuiBldDragManager::StartDrag
Bool_t StartDrag(TGFrame *src, Int_t x, Int_t y)
Start dragging.
Definition: TGuiBldDragManager.cxx:4265
TGuiBldDragManager::SetCursorType
void SetCursorType(Int_t cur)
Set cursor for selcted/grabbed frame.
Definition: TGuiBldDragManager.cxx:1103