Logo ROOT  
Reference Guide
TGListTree.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Fons Rademakers 25/02/98
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2021, 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_TGListTree
13 #define ROOT_TGListTree
14 
15 
16 #include "TGCanvas.h"
17 #include "TGWidget.h"
18 #include "TGDNDManager.h"
19 
20 class TGPicture;
21 class TGToolTip;
22 class TGCanvas;
23 class TList;
24 class TBufferFile;
25 
27 {
28  friend class TGListTree;
29 
30 private:
31  TGListTreeItem(const TGListTreeItem&) = delete;
33 
34 protected:
35  TGClient *fClient; // pointer to TGClient
36  TGListTreeItem *fParent; // pointer to parent
37  TGListTreeItem *fFirstchild; // pointer to first child item
38  TGListTreeItem *fLastchild; // pointer to last child item
39  TGListTreeItem *fPrevsibling; // pointer to previous sibling
40  TGListTreeItem *fNextsibling; // pointer to next sibling
41 
42  Bool_t fOpen; // true if item is open
43 
44  Int_t fDNDState; // EDNDFlags
45 
46  // State managed by TGListTree during drawing.
47  Int_t fY; // y position of item
48  Int_t fXtext; // x position of item text
49  Int_t fYtext; // y position of item text
50  UInt_t fHeight; // item height
51 
52 public:
54  virtual ~TGListTreeItem() {}
55 
56  TGListTreeItem *GetParent() const { return fParent; }
58  TGListTreeItem *GetLastChild() const { return fLastchild; }
61 
62  virtual Bool_t IsOpen() const { return fOpen; }
63  virtual void SetOpen(Bool_t o) { fOpen = o; }
64 
65  virtual Bool_t IsActive() const = 0;
66  virtual Pixel_t GetActiveColor() const = 0;
67  virtual void SetActive(Bool_t) {}
68 
69  void Rename(const char* new_name) { SetText(new_name); }
70  virtual const char *GetText() const = 0;
71  virtual Int_t GetTextLength() const = 0;
72  virtual const char *GetTipText() const = 0;
73  virtual Int_t GetTipTextLength() const = 0;
74  virtual void SetText(const char *) {}
75  virtual void SetTipText(const char *) {}
76 
77  virtual void SetUserData(void *, Bool_t=kFALSE) {}
78  virtual void *GetUserData() const = 0;
79 
80  virtual const TGPicture*GetPicture() const = 0;
81  virtual void SetPictures(const TGPicture*, const TGPicture*) {}
82  virtual const TGPicture*GetCheckBoxPicture() const = 0;
83  virtual void SetCheckBoxPictures(const TGPicture*, const TGPicture*) {}
84  virtual UInt_t GetPicWidth() const;
85 
86  virtual void SetCheckBox(Bool_t=kTRUE) {}
87  virtual Bool_t HasCheckBox() const = 0;
88  virtual void CheckItem(Bool_t=kTRUE) = 0;
89  virtual void Toggle() { SetCheckBox( ! IsChecked()); }
90  virtual Bool_t IsChecked() const = 0;
91 
92  // Propagation of checked-state form children to parents.
93  virtual void CheckAllChildren(Bool_t=kTRUE) {}
94  virtual void CheckChildren(TGListTreeItem*, Bool_t) {}
95  virtual Bool_t HasCheckedChild(Bool_t=kFALSE) { return kTRUE; } // !!!!
96  virtual Bool_t HasUnCheckedChild(Bool_t=kFALSE) { return kTRUE; } // !!!!
97  virtual void UpdateState() {}
98 
99  // Item coloration (underline + minibox)
100  virtual Bool_t HasColor() const = 0;
101  virtual Color_t GetColor() const = 0;
102  virtual void SetColor(Color_t) {}
103  virtual void ClearColor() {}
104 
105  // Drag and drop.
106  void SetDNDSource(Bool_t onoff)
107  { if (onoff) fDNDState |= kIsDNDSource; else fDNDState &= ~kIsDNDSource; }
108  void SetDNDTarget(Bool_t onoff)
109  { if (onoff) fDNDState |= kIsDNDTarget; else fDNDState &= ~kIsDNDTarget; }
110  Bool_t IsDNDSource() const { return fDNDState & kIsDNDSource; }
111  Bool_t IsDNDTarget() const { return fDNDState & kIsDNDTarget; }
112 
113  // Allow handling by the items themselves ... NOT USED in TGListTree yet !!!!
114  virtual Bool_t HandlesDragAndDrop() const { return kFALSE; }
115  virtual void HandleDrag() {}
116  virtual void HandleDrop() {}
117 
118  virtual void SavePrimitive(std::ostream&, Option_t*, Int_t) {}
119 
120  ClassDef(TGListTreeItem,0) // Abstract base-class for items that go into a TGListTree container.
121 };
122 
123 
125 {
126 private:
127  Bool_t fActive; // true if item is active
128  Bool_t fCheckBox; // true if checkbox is visible
129  Bool_t fChecked; // true if item is checked
130  Bool_t fOwnsData; // true if user data has to be deleted
131  TString fText; // item text
132  TString fTipText; // tooltip text
133  const TGPicture *fOpenPic; // icon for open state
134  const TGPicture *fClosedPic; // icon for closed state
135  const TGPicture *fCheckedPic; // icon for checked item
136  const TGPicture *fUncheckedPic; // icon for unchecked item
137  void *fUserData; // pointer to user data structure
138 
139  Bool_t fHasColor; // true if item has assigned color
140  Color_t fColor; // item's color
141 
144 
145 public:
146  TGListTreeItemStd(TGClient *fClient = gClient, const char *name = nullptr,
147  const TGPicture *opened = nullptr, const TGPicture *closed = nullptr,
148  Bool_t checkbox = kFALSE);
149  virtual ~TGListTreeItemStd();
150 
151  virtual Pixel_t GetActiveColor() const;
152  virtual Bool_t IsActive() const { return fActive; }
153  virtual void SetActive(Bool_t a) { fActive = a; }
154 
155  virtual const char *GetText() const { return fText.Data(); }
156  virtual Int_t GetTextLength() const { return fText.Length(); }
157  virtual const char *GetTipText() const { return fTipText.Data(); }
158  virtual Int_t GetTipTextLength() const { return fTipText.Length(); }
159  virtual void SetText(const char *text) { fText = text; }
160  virtual void SetTipText(const char *tip) { fTipText = tip; }
161 
162  virtual void SetUserData(void *userData, Bool_t own=kFALSE) { fUserData = userData; fOwnsData=own; }
163  virtual void *GetUserData() const { return fUserData; }
164 
165  virtual const TGPicture*GetPicture() const { return fOpen ? fOpenPic : fClosedPic; }
166  virtual const TGPicture*GetCheckBoxPicture() const { return fCheckBox ? (fChecked ? fCheckedPic : fUncheckedPic) : 0; }
167  virtual void SetPictures(const TGPicture *opened, const TGPicture *closed);
168  virtual void SetCheckBoxPictures(const TGPicture *checked, const TGPicture *unchecked);
169 
170  virtual void SetCheckBox(Bool_t on = kTRUE);
171  virtual Bool_t HasCheckBox() const { return fCheckBox; }
172  virtual void CheckItem(Bool_t checked = kTRUE) { fChecked = checked; }
173  virtual void Toggle() { fChecked = !fChecked; }
174  virtual Bool_t IsChecked() const { return fChecked; }
175 
176  virtual void CheckAllChildren(Bool_t state = kTRUE);
177  virtual void CheckChildren(TGListTreeItem *item, Bool_t state);
180  virtual void UpdateState();
181 
182  virtual Bool_t HasColor() const { return fHasColor; }
183  virtual Color_t GetColor() const { return fColor; }
184  virtual void SetColor(Color_t color) { fHasColor = true;fColor = color; }
185  virtual void ClearColor() { fHasColor = false; }
186 
187  virtual void SavePrimitive(std::ostream &out, Option_t *option, Int_t n);
188 
189  ClassDef(TGListTreeItemStd,0) //Item that goes into a TGListTree container
190 };
191 
192 
193 class TGListTree : public TGContainer {
194 
195 public:
196  //---- color markup mode of tree items
198  kDefault = 0,
200  kColorBox = BIT(1)
201  };
202  enum ECheckMode {
203  kSimple = BIT(2),
204  kRecursive = BIT(3)
205  };
206 
207 protected:
208  TGListTreeItem *fFirst; // pointer to first item in list
209  TGListTreeItem *fLast; // pointer to last item in list
210  TGListTreeItem *fSelected; // pointer to selected item in list
211  TGListTreeItem *fCurrent; // pointer to current item in list
212  TGListTreeItem *fBelowMouse; // pointer to item below mouses cursor
213  Int_t fHspacing; // horizontal spacing between items
214  Int_t fVspacing; // vertical spacing between items
215  Int_t fIndent; // number of pixels indentation
216  Int_t fMargin; // number of pixels margin from left side
217  Pixel_t fGrayPixel; // gray draw color
218  GContext_t fActiveGC; // activated (selected) drawing context
219  GContext_t fDrawGC; // icon drawing context
220  GContext_t fLineGC; // dashed line drawing context
221  GContext_t fHighlightGC; // highlighted icon drawing context
222  FontStruct_t fFont; // font used to draw item text
223  UInt_t fDefw; // default list width
224  UInt_t fDefh; // default list height
225  Int_t fExposeTop; // top y postion of visible region
226  Int_t fExposeBottom; // bottom y position of visible region
227  TGToolTip *fTip; // tooltip shown when moving over list items
228  TGListTreeItem *fTipItem; // item for which tooltip is set
229  TBufferFile *fBuf; // buffer used for Drag and Drop
230  TDNDData fDNDData; // Drag and Drop data
231  Atom_t *fDNDTypeList; // handles DND types
232  TGListTreeItem *fDropItem; // item on which DND is over
233  Bool_t fAutoTips; // assume item->fUserData is TObject and use GetTitle() for tip text
234  Bool_t fAutoCheckBoxPic;// change check box picture if parent and children have diffrent state
235  Bool_t fDisableOpen; // disable branch opening on double-clicks
236  Bool_t fUserControlled; // let user decides what is the behaviour on events
237  Bool_t fEventHandled; // flag used from user code to bypass standard event handling
238  UInt_t fLastEventState; // modifier state of the last keyboard event
239 
240  EColorMarkupMode fColorMode; // if/how to render item's main color
241  ECheckMode fCheckMode; // how to propagate check properties through the tree
242  GContext_t fColorGC; // drawing context for main item color
243 
245  static const TGFont *fgDefaultFont;
246  static TGGC *fgActiveGC;
247  static TGGC *fgDrawGC;
248  static TGGC *fgLineGC;
250  static TGGC *fgColorGC;
251  static const TGPicture *fgOpenPic; // icon for open item
252  static const TGPicture *fgClosedPic; // icon for closed item
253  static const TGPicture *fgCheckedPic; // icon for checked item
254  static const TGPicture *fgUncheckedPic; // icon for unchecked item
255 
256  static Pixel_t GetGrayPixel();
258  static const TGGC &GetActiveGC();
259  static const TGGC &GetDrawGC();
260  static const TGGC &GetLineGC();
261  static const TGGC &GetHighlightGC();
262  static const TGGC &GetColorGC();
263 
264  void Draw(Handle_t id, Int_t yevent, Int_t hevent);
265  void Draw(Option_t * ="") { MayNotUse("Draw(Option_t*)"); }
267  void DrawItem(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y, Int_t *xroot,
268  UInt_t *retwidth, UInt_t *retheight);
269  void DrawItemName(Handle_t id, TGListTreeItem *item);
270  void DrawNode(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y);
271  virtual void UpdateChecked(TGListTreeItem *item, Bool_t redraw = kFALSE);
272 
273  void SaveChildren(std::ostream &out, TGListTreeItem *item, Int_t &n);
274  void RemoveReference(TGListTreeItem *item);
275  void PDeleteItem(TGListTreeItem *item);
276  void PDeleteChildren(TGListTreeItem *item);
277  void InsertChild(TGListTreeItem *parent, TGListTreeItem *item);
278  void InsertChildren(TGListTreeItem *parent, TGListTreeItem *item);
280  TGListTreeItem **finditem);
281  TGListTreeItem *FindItem(Int_t findy);
282  void *FindItem(const TString& name,
283  Bool_t direction = kTRUE,
284  Bool_t caseSensitive = kTRUE,
285  Bool_t beginWith = kFALSE)
286  { return TGContainer::FindItem(name, direction, caseSensitive, beginWith); }
287 
288  virtual void Layout() {}
289 
290  void OnMouseOver(TGFrame*) { }
291  void CurrentChanged(Int_t /*x*/, Int_t /*y*/) { }
294  void Clicked(TGFrame *, Int_t /*btn*/) { }
295  void Clicked(TGFrame *, Int_t /*btn*/, Int_t /*x*/, Int_t /*y*/) { }
296  void DoubleClicked(TGFrame *, Int_t /*btn*/) { }
297  void DoubleClicked(TGFrame *, Int_t /*btn*/, Int_t /*x*/, Int_t /*y*/) { }
298  void KeyPressed(TGFrame *, UInt_t /*keysym*/, UInt_t /*mask*/) { }
299 
300 private:
301  TGListTree(const TGListTree&) = delete;
302  TGListTree& operator=(const TGListTree&) = delete;
303 
304 public:
305  TGListTree(TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
306  UInt_t options = 0, Pixel_t back = GetWhitePixel());
307  TGListTree(TGCanvas *p, UInt_t options, Pixel_t back = GetWhitePixel());
308 
309  virtual ~TGListTree();
310 
311  virtual Bool_t HandleButton(Event_t *event);
312  virtual Bool_t HandleDoubleClick(Event_t *event);
313  virtual Bool_t HandleCrossing(Event_t *event);
314  virtual Bool_t HandleMotion(Event_t *event);
315  virtual Bool_t HandleKey(Event_t *event);
316 
317  virtual void SetCanvas(TGCanvas *canvas) { fCanvas = canvas; }
318  virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
319 
320  virtual void DrawOutline(Handle_t id, TGListTreeItem *item, Pixel_t col=0xbbbbbb,
321  Bool_t clear=kFALSE);
322  virtual void DrawActive(Handle_t id, TGListTreeItem *item);
323 
324  virtual TGDimension GetDefaultSize() const
325  { return TGDimension(fDefw, fDefh); }
326 
327  void AddItem(TGListTreeItem *parent, TGListTreeItem *item);
328  TGListTreeItem *AddItem(TGListTreeItem *parent, const char *string,
329  const TGPicture *open = 0,
330  const TGPicture *closed = 0,
331  Bool_t checkbox = kFALSE);
332  TGListTreeItem *AddItem(TGListTreeItem *parent, const char *string,
333  void *userData, const TGPicture *open = 0,
334  const TGPicture *closed = 0,
335  Bool_t checkbox = kFALSE);
336  void RenameItem(TGListTreeItem *item, const char *string);
338  void OpenItem(TGListTreeItem *item);
339  void CloseItem(TGListTreeItem *item);
340  void CheckItem(TGListTreeItem *item, Bool_t check = kTRUE);
341  void SetCheckBox(TGListTreeItem *item, Bool_t on = kTRUE);
342  void ToggleItem(TGListTreeItem *item);
343  Int_t RecursiveDeleteItem(TGListTreeItem *item, void *userData);
344 
346  Int_t Reparent(TGListTreeItem *item, TGListTreeItem *newparent);
348  void SetToolTipItem(TGListTreeItem *item, const char *string);
349  void SetAutoTips(Bool_t on = kTRUE) { fAutoTips = on; }
351  void SetSelected(TGListTreeItem *item) { fSelected = item; }
352  void AdjustPosition(TGListTreeItem *item);
354 
355  // overwrite TGContainer's methods
356  void Home(Bool_t select = kFALSE);
357  void End(Bool_t select = kFALSE);
358  void PageUp(Bool_t select = kFALSE);
359  void PageDown(Bool_t select = kFALSE);
360  void LineUp(Bool_t select = kFALSE);
361  void LineDown(Bool_t select = kFALSE);
362  void Search(Bool_t close = kTRUE);
363 
364  Int_t Sort(TGListTreeItem *item);
367  void HighlightItem(TGListTreeItem *item);
368  void ClearHighlighted();
369  void GetPathnameFromItem(TGListTreeItem *item, char *path, Int_t depth = 0);
370  void UnselectAll(Bool_t draw);
371  void SetToolTipText(const char *text, Int_t x, Int_t y, Long_t delayms);
372  void HighlightItem(TGListTreeItem *item, Bool_t state, Bool_t draw);
373  void HighlightChildren(TGListTreeItem *item, Bool_t state, Bool_t draw);
374  void DisableOpen(Bool_t disable = kTRUE) { fDisableOpen = disable;}
375  void GetChecked(TList *checked);
376  void GetCheckedChildren(TList *checked, TGListTreeItem *item);
377  void CheckAllChildren(TGListTreeItem *item, Bool_t state);
378 
379  TGListTreeItem *GetFirstItem() const { return fFirst; }
380  TGListTreeItem *GetSelected() const { return fSelected; }
381  TGListTreeItem *GetCurrent() const { return fCurrent; }
384  TGListTreeItem *FindSiblingByData(TGListTreeItem *item, void *userData);
385  TGListTreeItem *FindChildByName(TGListTreeItem *item, const char *name);
386  TGListTreeItem *FindChildByData(TGListTreeItem *item, void *userData);
387  TGListTreeItem *FindItemByPathname(const char *path);
388  TGListTreeItem *FindItemByObj(TGListTreeItem *item, void *ptr);
389 
390  void AddItem(const char *string) { AddItem(fSelected, string); } //*MENU*
391  void AddRoot(const char *string) { AddItem(0, string); } //*MENU*
392  Int_t DeleteSelected() { return (fSelected ? DeleteItem(fSelected) : 0); } //*MENU*
393  void RenameSelected(const char *string) { if (fSelected) RenameItem(fSelected, string); } //*MENU*
394 
395  virtual void MouseOver(TGListTreeItem *entry); //*SIGNAL*
396  virtual void MouseOver(TGListTreeItem *entry, UInt_t mask); //*SIGNAL*
397  virtual void KeyPressed(TGListTreeItem *entry, UInt_t keysym, UInt_t mask); //*SIGNAL*
398  virtual void ReturnPressed(TGListTreeItem *entry); //*SIGNAL*
399  virtual void Clicked(TGListTreeItem *entry, Int_t btn); //*SIGNAL*
400  virtual void Clicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y); //*SIGNAL*
401  virtual void Clicked(TGListTreeItem *entry, Int_t btn, UInt_t mask, Int_t x, Int_t y); //*SIGNAL*
402  virtual void DoubleClicked(TGListTreeItem *entry, Int_t btn); //*SIGNAL*
403  virtual void DoubleClicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y); //*SIGNAL*
404  virtual void Checked(TObject *obj, Bool_t check); //*SIGNAL*
405  virtual void DataDropped(TGListTreeItem *item, TDNDData *data); //*SIGNAL*
406 
407  // Utility functions
408  Int_t FontHeight();
409  Int_t FontAscent();
410  Int_t TextWidth(const char *c);
411 
412  static const TGPicture *GetOpenPic();
413  static const TGPicture *GetClosedPic();
414  static const TGPicture *GetCheckedPic();
415  static const TGPicture *GetUncheckedPic();
416 
417  // User control
421  Bool_t IsEventHandled() const { return fEventHandled; }
422 
425  Int_t xroot, Int_t yroot);
426  Atom_t HandleDNDEnter(Atom_t * typelist);
428 
430  return &fDNDData;
431  }
432 
434  void SetColorMode(EColorMarkupMode colorMode) { fColorMode = colorMode; }
435 
436  ECheckMode GetCheckMode() const { return fCheckMode; }
437  void SetCheckMode(ECheckMode mode) { fCheckMode = mode; }
438 
439  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
440 
441  ClassDef(TGListTree,0) //Show items in a tree structured list
442 };
443 
444 #endif
TGListTree::HighlightChildren
void HighlightChildren(TGListTreeItem *item, Bool_t state, Bool_t draw)
Highlight item children.
Definition: TGListTree.cxx:543
TGListTree::SortChildren
Int_t SortChildren(TGListTreeItem *item)
Sort children of item.
Definition: TGListTree.cxx:2209
c
#define c(i)
Definition: RSha256.hxx:101
TGListTree::kSimple
@ kSimple
Definition: TGListTree.h:203
TGListTree::InsertChild
void InsertChild(TGListTreeItem *parent, TGListTreeItem *item)
Insert child in list.
Definition: TGListTree.cxx:1794
n
const Int_t n
Definition: legend1.C:16
TGListTree::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list tree widget as a C++ statements on output stream out.
Definition: TGListTree.cxx:2600
TGListTreeItemStd::fOpenPic
const TGPicture * fOpenPic
Definition: TGListTree.h:133
TGListTree::FindSiblingByData
TGListTreeItem * FindSiblingByData(TGListTreeItem *item, void *userData)
Find sibling of item by userData.
Definition: TGListTree.cxx:2255
TGListTreeItemStd::fUncheckedPic
const TGPicture * fUncheckedPic
Definition: TGListTree.h:136
TGListTree::GetCheckMode
ECheckMode GetCheckMode() const
Definition: TGListTree.h:436
first
Definition: first.py:1
TGListTreeItem::SetColor
virtual void SetColor(Color_t)
Definition: TGListTree.h:102
TGListTree::HandleKey
virtual Bool_t HandleKey(Event_t *event)
The key press event handler converts a key press to some line editor action.
Definition: TGListTree.cxx:934
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
TGListTree::GetCurrent
TGListTreeItem * GetCurrent() const
Definition: TGListTree.h:381
TGListTree::RemoveReference
void RemoveReference(TGListTreeItem *item)
This function removes the specified item from the linked list.
Definition: TGListTree.cxx:1722
TGListTree::FindChildByName
TGListTreeItem * FindChildByName(TGListTreeItem *item, const char *name)
Find child of item by name.
Definition: TGListTree.cxx:2277
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:100
TGListTreeItem::SetCheckBox
virtual void SetCheckBox(Bool_t=kTRUE)
Definition: TGListTree.h:86
TGListTree::fActiveGC
GContext_t fActiveGC
Definition: TGListTree.h:218
TGListTreeItem::GetTipText
virtual const char * GetTipText() const =0
TGListTree::fHighlightGC
GContext_t fHighlightGC
Definition: TGListTree.h:221
TGListTree::DoubleClicked
void DoubleClicked(TGFrame *, Int_t, Int_t, Int_t)
Emit DoubleClicked() signal.
Definition: TGListTree.h:297
TGListTree::kColorUnderline
@ kColorUnderline
Definition: TGListTree.h:199
TGListTree::InsertChildren
void InsertChildren(TGListTreeItem *parent, TGListTreeItem *item)
Insert a list of ALREADY LINKED children into another list.
Definition: TGListTree.cxx:1842
TGContainer::fCanvas
TGCanvas * fCanvas
Definition: TGCanvas.h:41
TGListTree::~TGListTree
virtual ~TGListTree()
Delete list tree widget.
Definition: TGListTree.cxx:472
TGListTreeItemStd::HasCheckedChild
virtual Bool_t HasCheckedChild(Bool_t first=kFALSE)
Add all child items of 'item' into the list 'checked'.
Definition: TGListTree.cxx:178
TGListTree::fIndent
Int_t fIndent
Definition: TGListTree.h:215
TGListTree::UpdateChecked
virtual void UpdateChecked(TGListTreeItem *item, Bool_t redraw=kFALSE)
Update the state of the node 'item' according to the children states.
Definition: TGListTree.cxx:2783
TGPicture
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
TGListTreeItem::GetCheckBoxPicture
virtual const TGPicture * GetCheckBoxPicture() const =0
TGListTreeItem::GetPicture
virtual const TGPicture * GetPicture() const =0
TGListTree::GetLineGC
static const TGGC & GetLineGC()
Return graphics context in use for line drawing.
Definition: TGListTree.cxx:2489
TGListTree::AddRoot
void AddRoot(const char *string)
Definition: TGListTree.h:391
TGDimension
Definition: TGDimension.h:18
TGListTreeItem::fNextsibling
TGListTreeItem * fNextsibling
Definition: TGListTree.h:40
TGListTree::HandleMotion
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event.
Definition: TGListTree.cxx:806
TGListTreeItem::GetPicWidth
virtual UInt_t GetPicWidth() const
Return width of item's icon.
Definition: TGListTree.cxx:102
TGListTree::DrawItemName
void DrawItemName(Handle_t id, TGListTreeItem *item)
Draw name of list tree item.
Definition: TGListTree.cxx:1633
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGListTreeItemStd::CheckAllChildren
virtual void CheckAllChildren(Bool_t state=kTRUE)
Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE.
Definition: TGListTree.cxx:241
TGListTree::PDeleteChildren
void PDeleteChildren(TGListTreeItem *item)
Recursively delete all children of an item.
Definition: TGListTree.cxx:1777
TGListTreeItemStd::fActive
Bool_t fActive
Definition: TGListTree.h:127
TGListTree::SetCheckMode
void SetCheckMode(ECheckMode mode)
Definition: TGListTree.h:437
TString::Data
const char * Data() const
Definition: TString.h:369
TGListTree::GetActiveGC
static const TGGC & GetActiveGC()
Return default graphics context in use.
Definition: TGListTree.cxx:2442
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TGListTree::FontAscent
Int_t FontAscent()
Returns ascent of currently used font.
Definition: TGListTree.cxx:503
TGListTree::fLastEventState
UInt_t fLastEventState
Definition: TGListTree.h:238
TGListTree::DrawOutline
virtual void DrawOutline(Handle_t id, TGListTreeItem *item, Pixel_t col=0xbbbbbb, Bool_t clear=kFALSE)
Draw a outline of color 'col' around an item.
Definition: TGListTree.cxx:1584
TGListTreeItem::GetPrevSibling
TGListTreeItem * GetPrevSibling() const
Definition: TGListTree.h:59
TGListTree::ClearHighlighted
void ClearHighlighted()
Un highlight items.
Definition: TGListTree.cxx:2389
TGListTree::SearchChildren
Int_t SearchChildren(TGListTreeItem *item, Int_t y, Int_t findy, TGListTreeItem **finditem)
Search child item.
Definition: TGListTree.cxx:1883
TGListTree::fgActiveGC
static TGGC * fgActiveGC
Definition: TGListTree.h:246
TGListTree::DrawChildren
Int_t DrawChildren(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y, Int_t xroot)
Draw children of item in list tree.
Definition: TGListTree.cxx:1453
TGListTreeItemStd::SetPictures
virtual void SetPictures(const TGPicture *opened, const TGPicture *closed)
Change list tree item icons.
Definition: TGListTree.cxx:314
TGListTree::fDrawGC
GContext_t fDrawGC
Definition: TGListTree.h:219
kIsDNDSource
@ kIsDNDSource
Definition: TGFrame.h:75
TGListTree::Reparent
Int_t Reparent(TGListTreeItem *item, TGListTreeItem *newparent)
Make newparent the new parent of item.
Definition: TGListTree.cxx:2102
TGListTree::DrawItem
void DrawItem(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y, Int_t *xroot, UInt_t *retwidth, UInt_t *retheight)
Draw list tree item.
Definition: TGListTree.cxx:1482
TGListTree::Sort
Int_t Sort(TGListTreeItem *item)
Sort items starting with item.
Definition: TGListTree.cxx:2147
TGListTreeItem::HandleDrag
virtual void HandleDrag()
Definition: TGListTree.h:115
TGListTreeItem::CheckChildren
virtual void CheckChildren(TGListTreeItem *, Bool_t)
Definition: TGListTree.h:94
TGListTree::fDefw
UInt_t fDefw
Definition: TGListTree.h:223
FontStruct_t
Handle_t FontStruct_t
Pointer to font structure.
Definition: GuiTypes.h:39
TGListTree::fColorGC
GContext_t fColorGC
Definition: TGListTree.h:242
TGListTree::GetGrayPixel
static Pixel_t GetGrayPixel()
Return gray draw color in use.
Definition: TGListTree.cxx:2418
TGListTree::fDNDTypeList
Atom_t * fDNDTypeList
Definition: TGListTree.h:231
TGListTree::ReturnPressed
void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
Definition: TGListTree.h:293
TGListTree::HighlightItem
void HighlightItem(TGListTreeItem *item)
Highlight item.
Definition: TGListTree.cxx:2379
TGListTree::FindChildByData
TGListTreeItem * FindChildByData(TGListTreeItem *item, void *userData)
Find child of item by userData.
Definition: TGListTree.cxx:2300
TGListTree::RenameSelected
void RenameSelected(const char *string)
Definition: TGListTree.h:393
TGListTree::CurrentChanged
void CurrentChanged(Int_t, Int_t)
Emit signal when current position changed.
Definition: TGListTree.h:291
TGListTree::Home
void Home(Bool_t select=kFALSE)
Move content to the top.
Definition: TGListTree.cxx:1191
TGListTreeItem::GetText
virtual const char * GetText() const =0
TGListTree::fCheckMode
ECheckMode fCheckMode
Definition: TGListTree.h:241
TGListTree::GetSelected
TGListTreeItem * GetSelected() const
Definition: TGListTree.h:380
TGListTreeItemStd::fText
TString fText
Definition: TGListTree.h:131
TGListTreeItemStd::fUserData
void * fUserData
Definition: TGListTree.h:137
Int_t
int Int_t
Definition: RtypesCore.h:45
TGListTree::DeleteChildren
Int_t DeleteChildren(TGListTreeItem *item)
Delete children of item from list.
Definition: TGListTree.cxx:2087
TGListTree::SetEventHandled
void SetEventHandled(Bool_t eh=kTRUE)
Definition: TGListTree.h:420
TGListTreeItemStd::ClearColor
virtual void ClearColor()
Definition: TGListTree.h:185
TGListTreeItem::SavePrimitive
virtual void SavePrimitive(std::ostream &, Option_t *, Int_t)
Definition: TGListTree.h:118
TGListTree::fEventHandled
Bool_t fEventHandled
Definition: TGListTree.h:237
TGListTreeItemStd::GetTextLength
virtual Int_t GetTextLength() const
Definition: TGListTree.h:156
TGListTreeItemStd::fColor
Color_t fColor
Definition: TGListTree.h:140
TGListTree::End
void End(Bool_t select=kFALSE)
Move content to the bottom.
Definition: TGListTree.cxx:1199
TGListTree::GetCheckedPic
static const TGPicture * GetCheckedPic()
Returns the icon used for checked checkbox.
Definition: TGListTree.cxx:2578
TGListTree
A list tree is a widget that can contain a number of items arranged in a tree structure.
Definition: TGListTree.h:193
TGListTree::SortSiblings
Int_t SortSiblings(TGListTreeItem *item)
Sort siblings of item.
Definition: TGListTree.cxx:2201
TGListTree::kColorBox
@ kColorBox
Definition: TGListTree.h:200
x
Double_t x[n]
Definition: legend1.C:17
TString::Length
Ssiz_t Length() const
Definition: TString.h:410
TGListTreeItem::HasCheckBox
virtual Bool_t HasCheckBox() const =0
TGToolTip
Definition: TGToolTip.h:24
TGListTree::HandleButton
virtual Bool_t HandleButton(Event_t *event)
Handle button events in the list tree.
Definition: TGListTree.cxx:565
TGListTree::FindItemByPathname
TGListTreeItem * FindItemByPathname(const char *path)
Find item by pathname.
Definition: TGListTree.cxx:2324
TGListTree::fAutoTips
Bool_t fAutoTips
Definition: TGListTree.h:233
TObject::MayNotUse
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
Definition: TObject.cxx:946
TGListTree::fGrayPixel
Pixel_t fGrayPixel
Definition: TGListTree.h:217
TGListTree::fHspacing
Int_t fHspacing
Definition: TGListTree.h:213
TGListTree::FindItem
void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t beginWith=kFALSE)
Definition: TGListTree.h:282
TGListTree::fgColorGC
static TGGC * fgColorGC
Definition: TGListTree.h:250
TGListTree::FindItemByObj
TGListTreeItem * FindItemByObj(TGListTreeItem *item, void *ptr)
Find item with fUserData == ptr.
Definition: TGListTree.cxx:2827
TGListTree::HasUserControl
Bool_t HasUserControl() const
Definition: TGListTree.h:419
TGListTree::CurrentChanged
void CurrentChanged(TGFrame *)
Emit signal when current selected frame changed.
Definition: TGListTree.h:292
TGListTree::AddItem
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
Definition: TGListTree.cxx:1957
TGListTree::DeleteItem
Int_t DeleteItem(TGListTreeItem *item)
Delete item from list tree.
Definition: TGListTree.cxx:2015
TGListTree::DrawNode
void DrawNode(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y)
Draw node (little + in box).
Definition: TGListTree.cxx:1674
TGListTreeItem::CheckItem
virtual void CheckItem(Bool_t=kTRUE)=0
TGDNDManager.h
TGListTree::fLast
TGListTreeItem * fLast
Definition: TGListTree.h:209
TGListTree::fgOpenPic
static const TGPicture * fgOpenPic
Definition: TGListTree.h:251
TString
Basic string class.
Definition: TString.h:136
ROOT::Math::detail::open
@ open
Definition: GenVectorIO.h:35
TGListTree::GetBelowMouse
TGListTreeItem * GetBelowMouse() const
Definition: TGListTree.h:382
TGListTree::fFirst
TGListTreeItem * fFirst
Definition: TGListTree.h:208
TGFrame
Definition: TGFrame.h:80
TGListTree::Layout
virtual void Layout()
Layout container entries.
Definition: TGListTree.h:288
TGListTree::fDNDData
TDNDData fDNDData
Definition: TGListTree.h:230
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGListTree::DeleteSelected
Int_t DeleteSelected()
Definition: TGListTree.h:392
TGListTreeItemStd::HasUnCheckedChild
virtual Bool_t HasUnCheckedChild(Bool_t first=kFALSE)
Add all child items of 'item' into the list 'checked'.
Definition: TGListTree.cxx:201
TGListTreeItemStd::fCheckedPic
const TGPicture * fCheckedPic
Definition: TGListTree.h:135
Color_t
short Color_t
Definition: RtypesCore.h:92
text
TText * text
Definition: entrylist_figure1.C:10
TGListTree::GetChecked
void GetChecked(TList *checked)
Add all checked list tree items of this list tree into the list 'checked'.
Definition: TGListTree.cxx:2849
TGListTree::KeyPressed
void KeyPressed(TGFrame *, UInt_t, UInt_t)
Signal emitted when keyboard key pressed.
Definition: TGListTree.h:298
TGListTree::GetFirstItem
TGListTreeItem * GetFirstItem() const
Definition: TGListTree.h:379
TGListTree::ECheckMode
ECheckMode
Definition: TGListTree.h:202
bool
TGListTreeItemStd::GetPicture
virtual const TGPicture * GetPicture() const
Definition: TGListTree.h:165
TGListTreeItemStd::GetText
virtual const char * GetText() const
Definition: TGListTree.h:155
TGContainer::AdjustPosition
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
Definition: TGCanvas.cxx:1793
TGListTree::Search
void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
Definition: TGListTree.cxx:1330
TGListTreeItem::fXtext
Int_t fXtext
Definition: TGListTree.h:48
TGListTree::PageUp
void PageUp(Bool_t select=kFALSE)
Move content one page up.
Definition: TGListTree.cxx:1207
TGListTree::ReparentChildren
Int_t ReparentChildren(TGListTreeItem *item, TGListTreeItem *newparent)
Make newparent the new parent of the children of item.
Definition: TGListTree.cxx:2118
TGListTreeItemStd::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option, Int_t n)
Save a list tree item attributes as a C++ statements on output stream.
Definition: TGListTree.cxx:2678
GContext_t
Handle_t GContext_t
Graphics context handle.
Definition: GuiTypes.h:38
TGListTree::SetAutoTips
void SetAutoTips(Bool_t on=kTRUE)
Definition: TGListTree.h:349
TGListTreeItem::GetTipTextLength
virtual Int_t GetTipTextLength() const =0
TGListTree::CloseItem
void CloseItem(TGListTreeItem *item)
Close item in list tree (i.e. hide child items).
Definition: TGListTree.cxx:2044
gClient
#define gClient
Definition: TGClient.h:157
TGListTreeItem::IsActive
virtual Bool_t IsActive() const =0
TGListTree::Draw
void Draw(Option_t *="")
Default Draw method for all objects.
Definition: TGListTree.h:265
TGListTreeItemStd::HasCheckBox
virtual Bool_t HasCheckBox() const
Definition: TGListTree.h:171
TGListTree::fgLineGC
static TGGC * fgLineGC
Definition: TGListTree.h:248
TGListTree::GetDrawGC
static const TGGC & GetDrawGC()
Return default graphics context in use.
Definition: TGListTree.cxx:2467
kIsDNDTarget
@ kIsDNDTarget
Definition: TGFrame.h:76
TGListTreeItemStd::GetUserData
virtual void * GetUserData() const
Definition: TGListTree.h:163
TGListTreeItem::fPrevsibling
TGListTreeItem * fPrevsibling
Definition: TGListTree.h:39
TGListTree::fTip
TGToolTip * fTip
Definition: TGListTree.h:227
TGListTree::UnselectAll
void UnselectAll(Bool_t draw)
Unselect all items.
Definition: TGListTree.cxx:556
TGListTreeItemStd::UpdateState
virtual void UpdateState()
Update the state of the node 'item' according to the children states.
Definition: TGListTree.cxx:224
TGListTreeItemStd::GetColor
virtual Color_t GetColor() const
Definition: TGListTree.h:183
TGListTreeItemStd
Definition: TGListTree.h:125
TGListTree::kDefault
@ kDefault
Definition: TGListTree.h:198
TGListTree::Clicked
void Clicked(TGFrame *, Int_t)
Emit Clicked() signal.
Definition: TGListTree.h:294
TGListTree::PDeleteItem
void PDeleteItem(TGListTreeItem *item)
Delete given item.
Definition: TGListTree.cxx:1750
TGListTree::GetDefaultFontStruct
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
Definition: TGListTree.cxx:2432
TGListTree::fFont
FontStruct_t fFont
Definition: TGListTree.h:222
h
#define h(i)
Definition: RSha256.hxx:106
TGListTree::SetSelected
void SetSelected(TGListTreeItem *item)
Definition: TGListTree.h:351
TGListTree::GetCheckedChildren
void GetCheckedChildren(TList *checked, TGListTreeItem *item)
Add all child items of 'item' into the list 'checked'.
Definition: TGListTree.cxx:2866
TGListTreeItem::fClient
TGClient * fClient
Definition: TGListTree.h:35
TGListTree::GetColorGC
static const TGGC & GetColorGC()
Return graphics context for highlighted frame background.
Definition: TGListTree.cxx:2535
TGListTreeItem::GetActiveColor
virtual Pixel_t GetActiveColor() const =0
TGGC
Encapsulate a graphics context used in the low level graphics.
Definition: TGGC.h:22
TGListTreeItem::SetUserData
virtual void SetUserData(void *, Bool_t=kFALSE)
Definition: TGListTree.h:77
TGListTreeItem::Toggle
virtual void Toggle()
Definition: TGListTree.h:89
TGListTree::FindSiblingByName
TGListTreeItem * FindSiblingByName(TGListTreeItem *item, const char *name)
Find sibling of item by name.
Definition: TGListTree.cxx:2233
TGListTreeItem::GetLastChild
TGListTreeItem * GetLastChild() const
Definition: TGListTree.h:58
TGListTree::PageDown
void PageDown(Bool_t select=kFALSE)
Move content one page down.
Definition: TGListTree.cxx:1222
TGListTreeItemStd::SetUserData
virtual void SetUserData(void *userData, Bool_t own=kFALSE)
Definition: TGListTree.h:162
a
auto * a
Definition: textangle.C:12
Atom_t
Handle_t Atom_t
WM token.
Definition: GuiTypes.h:37
TGListTreeItem::~TGListTreeItem
virtual ~TGListTreeItem()
Definition: TGListTree.h:54
TGListTree::CheckItem
void CheckItem(TGListTreeItem *item, Bool_t check=kTRUE)
Set check button state for the node 'item'.
Definition: TGListTree.cxx:2759
TGListTree::fCurrent
TGListTreeItem * fCurrent
Definition: TGListTree.h:211
TGListTree::DisableOpen
void DisableOpen(Bool_t disable=kTRUE)
Definition: TGListTree.h:374
TGListTreeItem::HasColor
virtual Bool_t HasColor() const =0
TGListTree::AdjustPosition
void AdjustPosition()
Move content to position of highlighted/activated frame.
Definition: TGListTree.h:353
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TGListTree::fExposeBottom
Int_t fExposeBottom
Definition: TGListTree.h:226
TGListTreeItem::fLastchild
TGListTreeItem * fLastchild
Definition: TGListTree.h:38
TGListTreeItemStd::Toggle
virtual void Toggle()
Definition: TGListTree.h:173
Long_t
long Long_t
Definition: RtypesCore.h:54
TGListTreeItemStd::SetCheckBox
virtual void SetCheckBox(Bool_t on=kTRUE)
Set a check box on the tree node.
Definition: TGListTree.cxx:281
TGListTree::FindItem
TGListTreeItem * FindItem(Int_t findy)
Find item at postion findy.
Definition: TGListTree.cxx:1918
TGListTreeItem::fY
Int_t fY
Definition: TGListTree.h:47
TGListTreeItem::SetDNDSource
void SetDNDSource(Bool_t onoff)
Definition: TGListTree.h:106
TGListTreeItemStd::SetColor
virtual void SetColor(Color_t color)
Definition: TGListTree.h:184
TGListTree::fUserControlled
Bool_t fUserControlled
Definition: TGListTree.h:236
TGListTreeItem::fOpen
Bool_t fOpen
Definition: TGListTree.h:42
TGListTreeItem::SetCheckBoxPictures
virtual void SetCheckBoxPictures(const TGPicture *, const TGPicture *)
Definition: TGListTree.h:83
TGListTree::SetToolTipText
void SetToolTipText(const char *text, Int_t x, Int_t y, Long_t delayms)
Set tool tip text associated with this item.
Definition: TGListTree.cxx:1700
TGListTreeItem::IsOpen
virtual Bool_t IsOpen() const
Definition: TGListTree.h:62
TGListTree::Clicked
void Clicked(TGFrame *, Int_t, Int_t, Int_t)
Emit Clicked() signal.
Definition: TGListTree.h:295
TGListTree::fgCheckedPic
static const TGPicture * fgCheckedPic
Definition: TGListTree.h:253
TGListTree::operator=
TGListTree & operator=(const TGListTree &)=delete
TGListTreeItemStd::IsActive
virtual Bool_t IsActive() const
Definition: TGListTree.h:152
TGListTreeItem::IsDNDTarget
Bool_t IsDNDTarget() const
Definition: TGListTree.h:111
TGContainer::FindItem
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
Definition: TGCanvas.cxx:1690
TGListTree::HandleCrossing
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse crossing event.
Definition: TGListTree.cxx:705
BIT
#define BIT(n)
Definition: Rtypes.h:85
TGListTree::LineDown
void LineDown(Bool_t select=kFALSE)
Move content one item-size down.
Definition: TGListTree.cxx:1262
TGListTreeItemStd::HasColor
virtual Bool_t HasColor() const
Definition: TGListTree.h:182
TGListTree::HandleDNDLeave
Bool_t HandleDNDLeave()
Handle drag leave events.
Definition: TGListTree.cxx:773
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGListTree::kRecursive
@ kRecursive
Definition: TGListTree.h:204
y
Double_t y[n]
Definition: legend1.C:17
TGListTree::HandleDNDPosition
Atom_t HandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot)
Handle dragging position events.
Definition: TGListTree.cxx:732
TGListTreeItem::HasUnCheckedChild
virtual Bool_t HasUnCheckedChild(Bool_t=kFALSE)
Definition: TGListTree.h:96
TGListTree::fColorMode
EColorMarkupMode fColorMode
Definition: TGListTree.h:240
TGListTreeItemStd::GetCheckBoxPicture
virtual const TGPicture * GetCheckBoxPicture() const
Definition: TGListTree.h:166
TDNDData
Drag and drop data container.
Definition: TGDNDManager.h:64
TGListTreeItemStd::GetTipText
virtual const char * GetTipText() const
Definition: TGListTree.h:157
TGListTree::fgDefaultFont
static const TGFont * fgDefaultFont
Definition: TGListTree.h:245
TGListTreeItem::CheckAllChildren
virtual void CheckAllChildren(Bool_t=kTRUE)
Definition: TGListTree.h:93
TGListTreeItem::GetFirstChild
TGListTreeItem * GetFirstChild() const
Definition: TGListTree.h:57
TGListTree::HandleDNDEnter
Atom_t HandleDNDEnter(Atom_t *typelist)
Handle drag enter events.
Definition: TGListTree.cxx:758
TGWidget.h
TGListTree::CheckAllChildren
void CheckAllChildren(TGListTreeItem *item, Bool_t state)
Check all child items of 'item' and 'item' itself according to the state value: kTRUE means check all...
Definition: TGListTree.cxx:2885
TGListTreeItem::HandleDrop
virtual void HandleDrop()
Definition: TGListTree.h:116
TGListTreeItemStd::CheckItem
virtual void CheckItem(Bool_t checked=kTRUE)
Definition: TGListTree.h:172
TGListTreeItem::IsChecked
virtual Bool_t IsChecked() const =0
TGListTreeItem::SetTipText
virtual void SetTipText(const char *)
Definition: TGListTree.h:75
TGListTreeItem::fParent
TGListTreeItem * fParent
Definition: TGListTree.h:36
unsigned int
TGListTreeItem::GetTextLength
virtual Int_t GetTextLength() const =0
TGListTree::fgClosedPic
static const TGPicture * fgClosedPic
Definition: TGListTree.h:252
TGListTree::SetCanvas
virtual void SetCanvas(TGCanvas *canvas)
Definition: TGListTree.h:317
TGListTree::TGListTree
TGListTree(const TGListTree &)=delete
TGListTree::IsEventHandled
Bool_t IsEventHandled() const
Definition: TGListTree.h:421
TGListTreeItemStd::fCheckBox
Bool_t fCheckBox
Definition: TGListTree.h:128
ROOT::Math::detail::close
@ close
Definition: GenVectorIO.h:35
TGListTreeItemStd::GetTipTextLength
virtual Int_t GetTipTextLength() const
Definition: TGListTree.h:158
TGListTree::GetPathnameFromItem
void GetPathnameFromItem(TGListTreeItem *item, char *path, Int_t depth=0)
Get pathname from item.
Definition: TGListTree.cxx:2398
TGListTreeItem::fHeight
UInt_t fHeight
Definition: TGListTree.h:50
TGListTreeItemStd::SetText
virtual void SetText(const char *text)
Definition: TGListTree.h:159
TGListTree::fMargin
Int_t fMargin
Definition: TGListTree.h:216
TGListTree::TextWidth
Int_t TextWidth(const char *c)
Returns text width relative to currently used font.
Definition: TGListTree.cxx:515
TGListTree::Draw
void Draw(Handle_t id, Int_t yevent, Int_t hevent)
Draw list tree widget.
Definition: TGListTree.cxx:1407
TGListTree::SetToolTipItem
void SetToolTipItem(TGListTreeItem *item, const char *string)
Set tooltip text for this item.
Definition: TGListTree.cxx:2077
TGListTree::fDisableOpen
Bool_t fDisableOpen
Definition: TGListTree.h:235
TGContainer
Manages a content area.
Definition: TGCanvas.h:31
TGListTree::fTipItem
TGListTreeItem * fTipItem
Definition: TGListTree.h:228
TGListTreeItemStd::SetCheckBoxPictures
virtual void SetCheckBoxPictures(const TGPicture *checked, const TGPicture *unchecked)
Change list tree check item icons.
Definition: TGListTree.cxx:289
TGListTreeItemStd::GetActiveColor
virtual Pixel_t GetActiveColor() const
Return color for marking items that are active or selected.
Definition: TGListTree.cxx:170
TGListTree::EColorMarkupMode
EColorMarkupMode
Definition: TGListTree.h:197
TGListTreeItem::SetActive
virtual void SetActive(Bool_t)
Definition: TGListTree.h:67
TGListTree::fSelected
TGListTreeItem * fSelected
Definition: TGListTree.h:210
TGListTree::AddItem
void AddItem(const char *string)
Definition: TGListTree.h:390
TGListTree::SetCheckBox
void SetCheckBox(TGListTreeItem *item, Bool_t on=kTRUE)
Set check button state for the node 'item'.
Definition: TGListTree.cxx:2767
TGListTreeItemStd::operator=
TGListTreeItemStd & operator=(const TGListTreeItemStd &)=delete
TGListTree::FontHeight
Int_t FontHeight()
Returns height of currently used font.
Definition: TGListTree.cxx:493
TGListTree::SaveChildren
void SaveChildren(std::ostream &out, TGListTreeItem *item, Int_t &n)
Save child items as a C++ statements on output stream out.
Definition: TGListTree.cxx:2661
TGListTreeItem::SetDNDTarget
void SetDNDTarget(Bool_t onoff)
Definition: TGListTree.h:108
TGListTreeItem::GetColor
virtual Color_t GetColor() const =0
TGListTree::ToggleItem
void ToggleItem(TGListTreeItem *item)
Toggle check button state of the node 'item'.
Definition: TGListTree.cxx:2775
TGListTreeItem::GetUserData
virtual void * GetUserData() const =0
TGListTree::GetDefaultSize
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGListTree.h:324
TGListTree::fAutoCheckBoxPic
Bool_t fAutoCheckBoxPic
Definition: TGListTree.h:234
TGListTree::HandleDNDDrop
Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
Definition: TGListTree.cxx:781
TGListTreeItemStd::fOwnsData
Bool_t fOwnsData
Definition: TGListTree.h:130
TGListTree::fgUncheckedPic
static const TGPicture * fgUncheckedPic
Definition: TGListTree.h:254
TGListTree::fDefh
UInt_t fDefh
Definition: TGListTree.h:224
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TGListTreeItem::operator=
TGListTreeItem & operator=(const TGListTreeItem &)=delete
Handle_t
ULong_t Handle_t
Generic resource handle.
Definition: GuiTypes.h:26
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGListTreeItem::SetOpen
virtual void SetOpen(Bool_t o)
Definition: TGListTree.h:63
TGListTree::GetDNDData
virtual TDNDData * GetDNDData(Atom_t)
Definition: TGListTree.h:429
TGListTree::RenameItem
void RenameItem(TGListTreeItem *item, const char *string)
Rename item in list tree.
Definition: TGListTree.cxx:2003
Event_t
Event structure.
Definition: GuiTypes.h:174
TGListTree::DrawActive
virtual void DrawActive(Handle_t id, TGListTreeItem *item)
Draw active item with its active color.
Definition: TGListTree.cxx:1609
TGListTree::DataDropped
virtual void DataDropped(TGListTreeItem *item, TDNDData *data)
Emit DataDropped() signal.
Definition: TGListTree.cxx:792
TGListTreeItem::ClearColor
virtual void ClearColor()
Definition: TGListTree.h:103
name
char name[80]
Definition: TGX11.cxx:110
TGListTreeItem::SetText
virtual void SetText(const char *)
Definition: TGListTree.h:74
TGCanvas.h
TGListTreeItem::GetNextSibling
TGListTreeItem * GetNextSibling() const
Definition: TGListTree.h:60
TGFrame::GetWhitePixel
static Pixel_t GetWhitePixel()
Get white pixel value.
Definition: TGFrame.cxx:709
TGListTree::GetUncheckedPic
static const TGPicture * GetUncheckedPic()
Returns the icon used for unchecked checkbox.
Definition: TGListTree.cxx:2589
TGListTree::SetColorMode
void SetColorMode(EColorMarkupMode colorMode)
Definition: TGListTree.h:434
TGListTree::DoubleClicked
void DoubleClicked(TGFrame *, Int_t)
Emit DoubleClicked() signal.
Definition: TGListTree.h:296
TGListTree::fBelowMouse
TGListTreeItem * fBelowMouse
Definition: TGListTree.h:212
TGListTreeItem::UpdateState
virtual void UpdateState()
Definition: TGListTree.h:97
TGListTree::fgHighlightGC
static TGGC * fgHighlightGC
Definition: TGListTree.h:249
TGListTree::LineUp
void LineUp(Bool_t select=kFALSE)
Move content one item-size up.
Definition: TGListTree.cxx:1236
TGListTreeItemStd::SetActive
virtual void SetActive(Bool_t a)
Definition: TGListTree.h:153
TGListTreeItemStd::fTipText
TString fTipText
Definition: TGListTree.h:132
TGListTreeItemStd::TGListTreeItemStd
TGListTreeItemStd(const TGListTreeItemStd &)=delete
TGListTreeItemStd::SetTipText
virtual void SetTipText(const char *tip)
Definition: TGListTree.h:160
TGListTree::fVspacing
Int_t fVspacing
Definition: TGListTree.h:214
TGListTree::OnMouseOver
void OnMouseOver(TGFrame *)
Signal emitted when pointer is over entry.
Definition: TGListTree.h:290
TGListTree::Checked
virtual void Checked(TObject *obj, Bool_t check)
Emit Checked() signal.
Definition: TGListTree.cxx:1106
TGListTree::fLineGC
GContext_t fLineGC
Definition: TGListTree.h:220
TGListTreeItemStd::CheckChildren
virtual void CheckChildren(TGListTreeItem *item, Bool_t state)
Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE.
Definition: TGListTree.cxx:258
TGListTreeItemStd::fClosedPic
const TGPicture * fClosedPic
Definition: TGListTree.h:134
TGListTreeItem::IsDNDSource
Bool_t IsDNDSource() const
Definition: TGListTree.h:110
TGListTree::fgDrawGC
static TGGC * fgDrawGC
Definition: TGListTree.h:247
TGListTree::GetHighlightGC
static const TGGC & GetHighlightGC()
Return graphics context for highlighted frame background.
Definition: TGListTree.cxx:2513
TGListTree::GetColorMode
EColorMarkupMode GetColorMode() const
Definition: TGListTree.h:433
TGFont
Encapsulate fonts used in the GUI system.
Definition: TGFont.h:140
TGListTree::SetUserControl
void SetUserControl(Bool_t ctrl=kTRUE)
Definition: TGListTree.h:418
TGListTree::fDropItem
TGListTreeItem * fDropItem
Definition: TGListTree.h:232
TGListTree::fgGrayPixel
static Pixel_t fgGrayPixel
Definition: TGListTree.h:244
TGCanvas
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition: TGCanvas.h:192
TGListTreeItemStd::fHasColor
Bool_t fHasColor
Definition: TGListTree.h:139
TGListTreeItem::fYtext
Int_t fYtext
Definition: TGListTree.h:49
TGListTreeItem
Definition: TGListTree.h:27
TGListTree::HandleDoubleClick
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click event in the list tree (only for kButton1).
Definition: TGListTree.cxx:663
TGListTreeItem::HandlesDragAndDrop
virtual Bool_t HandlesDragAndDrop() const
Definition: TGListTree.h:114
TGListTreeItem::TGListTreeItem
TGListTreeItem(const TGListTreeItem &)=delete
TGListTreeItemStd::IsChecked
virtual Bool_t IsChecked() const
Definition: TGListTree.h:174
TGListTreeItem::fFirstchild
TGListTreeItem * fFirstchild
Definition: TGListTree.h:37
TGListTree::RecursiveDeleteItem
Int_t RecursiveDeleteItem(TGListTreeItem *item, void *userData)
Delete item with fUserData == ptr.
Definition: TGListTree.cxx:2057
TGListTreeItem::SetPictures
virtual void SetPictures(const TGPicture *, const TGPicture *)
Definition: TGListTree.h:81
TGListTreeItemStd::fChecked
Bool_t fChecked
Definition: TGListTree.h:129
TGListTree::SetAutoCheckBoxPic
void SetAutoCheckBoxPic(Bool_t on)
Definition: TGListTree.h:350
TBufferFile
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
Definition: TBufferFile.h:47
TGClient
Window client.
Definition: TGClient.h:37
TGListTree::OpenItem
void OpenItem(TGListTreeItem *item)
Open item in list tree (i.e. show child items).
Definition: TGListTree.cxx:2032
TGListTree::DrawRegion
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Redraw list tree.
Definition: TGListTree.cxx:1365
TGListTreeItem::GetParent
TGListTreeItem * GetParent() const
Definition: TGListTree.h:56
TGListTreeItem::fDNDState
Int_t fDNDState
Definition: TGListTree.h:44
TGListTreeItem::Rename
void Rename(const char *new_name)
Definition: TGListTree.h:69
TGListTreeItemStd::~TGListTreeItemStd
virtual ~TGListTreeItemStd()
Delete list tree item.
Definition: TGListTree.cxx:155
TGListTree::GetOpenPic
static const TGPicture * GetOpenPic()
Returns the icon used by items in open state.
Definition: TGListTree.cxx:2556
TList
A doubly linked list.
Definition: TList.h:44
TGListTree::GetClosedPic
static const TGPicture * GetClosedPic()
Returns the icon used by items in closed state.
Definition: TGListTree.cxx:2567
TGListTreeItem::HasCheckedChild
virtual Bool_t HasCheckedChild(Bool_t=kFALSE)
Definition: TGListTree.h:95
int
TGListTree::fBuf
TBufferFile * fBuf
Definition: TGListTree.h:229
TGListTree::fExposeTop
Int_t fExposeTop
Definition: TGListTree.h:225
TGListTree::MouseOver
virtual void MouseOver(TGListTreeItem *entry)
Signal emitted when pointer is over entry.
Definition: TGListTree.cxx:1051