61 #include "RConfigure.h" 90 fParent (0), fFirstchild(0), fLastchild (0), fPrevsibling(0),
91 fNextsibling(0),fOpen (
kFALSE), fDNDState (0),
92 fY (0), fXtext (0), fYtext(0), fHeight(0)
156 delete dynamic_cast<TObject *
>(obj);
226 gClient->GetPicture(
"unchecked_dis_t.xpm"));
230 gClient->GetPicture(
"unchecked_t.xpm"));
293 ::Warning(
"TGListTreeItem::SetCheckBoxPictures",
"checked picture not specified, defaulting to checked_t");
299 ::Warning(
"TGListTreeItem::SetCheckBoxPictures",
"unchecked picture not specified, defaulting to unchecked_t");
317 ::Warning(
"TGListTreeItem::SetPictures",
"opened picture not specified, defaulting to ofolder_t");
323 ::Warning(
"TGListTreeItem::SetPictures",
"closed picture not specified, defaulting to folder_t");
530 }
else if (state != item->
IsActive()) {
584 if (newpos < 0) newpos = 0;
599 Int_t minxchk = 0, maxxchk = 0;
602 maxxchk = (item->
fXtext - 4);
611 (
event->fX > minxchk))
621 if ((event->
fX < maxx) && (
event->fX > minx)) {
758 for (
int i = 0; typelist[i] !=
kNone; ++i) {
796 Emit(
"DataDropped(TGListTreeItem*,TDNDData*)", args);
811 }
else if ((item =
FindItem(event->
fY)) != 0) {
827 if ((event->
fX < (item->
fXtext - 4) &&
846 if (dynamic_cast<TObject *>(obj)) {
876 if (xmpname.
EndsWith(
"_t.xpm__16x16"))
877 xmpname.
ReplaceAll(
"_t.xpm__16x16",
"_s.xpm");
910 if (obj && obj->IsA()->IsTObject()) {
941 gVirtualX->LookupString(event, input,
sizeof(input), keysym);
1029 switch((
EKeySym)keysym & ~0x20) {
1050 Emit(
"MouseOver(TGListTreeItem*)", (
Long_t)entry);
1061 Emit(
"MouseOver(TGListTreeItem*,UInt_t)", args);
1086 args[1] = (
Long_t)keysym;
1088 Emit(
"KeyPressed(TGListTreeItem*,ULong_t,ULong_t)", args);
1097 Emit(
"ReturnPressed(TGListTreeItem*)", (
Long_t)entry);
1110 Emit(
"Checked(TObject*,Bool_t)", args);
1123 Emit(
"Clicked(TGListTreeItem*,Int_t)", args);
1138 Emit(
"Clicked(TGListTreeItem*,Int_t,Int_t,Int_t)", args);
1154 Emit(
"Clicked(TGListTreeItem*,Int_t,UInt_t,Int_t,Int_t)", args);
1167 Emit(
"DoubleClicked(TGListTreeItem*,Int_t)", args);
1182 Emit(
"DoubleClicked(TGListTreeItem*,Int_t,Int_t,Int_t)", args);
1211 if (newpos<0) newpos = 0;
1247 if (findy <= 2*height) {
1249 if (newpos<0) newpos = 0;
1276 if (newpos<0) newpos = 0;
1308 if (y==0) y = yparent;
1338 if (close || buf.
IsNull())
1340 else if (!buf.
IsNull()) ret = 1;
1345 snprintf(msg, 255,
"Couldn't find \"%s\"", srch->fBuffer);
1354 buf = srch->fBuffer;
1376 if (((
Int_t)w < 1) || (w > 32768) || ((
Int_t)h < 1)) {
1427 DrawItem(
id, item, x, y, &xbranch, &width, &height);
1443 if ((old_width !=
fDefw) || (old_height !=
fDefh)) {
1462 DrawItem(
id, item, x, y, &xbranch, &width, &height);
1483 Int_t xpic1, ypic1, xbranch, ybranch, xtext, ytext = 0, xline, yline, xc;
1502 if (pic1) xpic2 = xpic1 + pic1->
GetWidth() + 1;
1503 else xpic2 = xpic1 + 1;
1524 if (xline == 0) xline = xpic1;
1526 if (xline == 0) xline = xpic1;
1529 yline = ybranch = ypic1 + (
Int_t)(height >> 1);
1530 yline = ypic1 + (
Int_t)(height >> 1);
1546 Int_t ylinep = yline - pos.
fY;
1547 Int_t ybranchp = ybranch - pos.
fY;
1585 *retheight = height;
1666 item->
fXtext + width, y);
1715 if (text && strlen(text)) {
1905 if ((findy >= y) && (findy <= y + (
Int_t)height)) {
1913 if (*finditem)
return -1;
1936 while (item && !finditem) {
1945 if ((findy >= y) && (findy <= y + (
Int_t)height))
1968 if ((parent == 0) || (parent && parent->
IsOpen()))
1984 if ((parent == 0) || (parent && parent->
IsOpen()))
2000 item =
AddItem(parent,
string, open, closed, checkbox);
2168 if (count <= 1)
return 1;
2182 for (i = 0; i < count; i++) {
2195 fLast = list[count-1];
2289 }
else if (!item &&
fFirst) {
2312 }
else if (!item &&
fFirst) {
2333 if (!path || !*path)
return 0;
2335 const char *p = path, *
s;
2339 if (!
gVirtualX->InheritsFrom(
"TGX11")) {
2351 while (*p && *p ==
'/') p++;
2357 strlcpy(dirname, p, 1024);
2359 strlcpy(dirname, p, (s-p)+1);
2364 if (!diritem && dirname[0]) {
2369 if (!s || !s[0])
return diritem;
2376 if (!s || !s[0])
return item;
2411 strlcpy(path, tmppath, 1024);
2413 if (--depth == 0 && item) {
2414 snprintf(tmppath, 1023,
"...%s", path);
2415 strlcpy(path, tmppath, 1024);
2460 const TGGC *selgc =
gClient->GetResourcePool()->GetSelectedGC();
2610 out << std::endl <<
" // list tree" << std::endl;
2611 out <<
" TGListTree *";
2622 out <<
");" << std::endl;
2629 if (option && strstr(option,
"keep_names"))
2630 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
2639 out <<
" const TGPicture *popen; //used for list tree items" << std::endl;
2640 out <<
" const TGPicture *pclose; //used for list tree items" << std::endl;
2644 out <<
" TGListTreeItem *item" << n <<
" = " <<
GetName() <<
"->AddItem(";
2647 out <<
" " <<
GetName() <<
"->OpenItem(item" << n <<
");" << std::endl;
2649 out <<
" " <<
GetName() <<
"->CloseItem(item" << n <<
");" << std::endl;
2652 out <<
" " <<
GetName() <<
"->SetSelected(item" << n <<
");" << std::endl;
2671 out <<
" TGListTreeItem *item" << n <<
" = " <<
GetName() <<
"->AddItem(";
2700 out <<
"item" << option <<
",";
2704 out << quote << text << quote;
2705 out <<
");" << std::endl;
2707 if (oldopen != fOpenPic) {
2709 out <<
" popen = gClient->GetPicture(" << quote
2711 << quote <<
");" << std::endl;
2713 if (oldclose != fClosedPic) {
2714 oldclose = fClosedPic;
2715 out <<
" pclose = gClient->GetPicture(" << quote
2717 << quote <<
");" << std::endl;
2719 out <<
" item" << s.
Data() <<
"->SetPictures(popen, pclose);" << std::endl;
2720 if (HasCheckBox()) {
2721 if (fCheckedPic && makecheck) {
2722 out <<
" const TGPicture *pcheck; //used for checked items" << std::endl;
2725 if (fUncheckedPic && makeuncheck) {
2726 out <<
" const TGPicture *puncheck; //used for unchecked items" << std::endl;
2729 out <<
" item" << s.
Data() <<
"->CheckItem();" << std::endl;
2730 if (fCheckedPic && oldcheck != fCheckedPic) {
2731 oldcheck = fCheckedPic;
2732 out <<
" pcheck = gClient->GetPicture(" << quote
2734 << quote <<
");" << std::endl;
2736 if (fUncheckedPic && olduncheck != fUncheckedPic) {
2737 olduncheck = fUncheckedPic;
2738 out <<
" puncheck = gClient->GetPicture(" << quote
2740 << quote <<
");" << std::endl;
2742 out <<
" item" << s.
Data() <<
"->SetCheckBoxPictures(pcheck, puncheck);" << std::endl;
2743 out <<
" item" << s.
Data() <<
"->SetCheckBox(kTRUE);" << std::endl;
2746 if (oldcolor != fColor) {
2748 out <<
" item" << s.
Data() <<
"->SetColor(" << fColor <<
");" << std::endl;
2751 if (fTipText.Length() > 0) {
2752 TString tiptext = GetTipText();
2756 out <<
" item" << s.
Data() <<
"->SetTipText(" << quote
2757 << tiptext << quote <<
");" << std::endl;
2796 parent = current ? current : item;
2842 if (fitem)
return fitem;
2857 if (!checked || !
fFirst)
return;
2874 if (!checked || !item)
return;
virtual void SetPictures(const TGPicture *opened, const TGPicture *closed)
Change list tree item icons.
TGListTreeItem * fFirstchild
virtual const char * GetName() const
Returns name of object.
virtual ~TGListTreeItemStd()
Delete list tree item.
static const TGGC & GetHighlightGC()
Return graphics context for highlighted frame background.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list tree widget as a C++ statements on output stream out.
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket...
virtual UInt_t GetOptions() const
virtual void * GetUserData() const =0
TGListTreeItem * FindChildByData(TGListTreeItem *item, void *userData)
Find child of item by userData.
TGListTreeItem * FindItemByObj(TGListTreeItem *item, void *ptr)
Find item with fUserData == ptr.
const char * GetName() const
Returns name of object.
virtual const char * WorkingDirectory()
Return working directory.
Int_t DeleteItem(TGListTreeItem *item)
Delete item from list tree.
virtual void SetCheckBox(Bool_t=kTRUE)
void InsertChildren(TGListTreeItem *parent, TGListTreeItem *item)
Insert a list of ALREADY LINKED children into another list.
Collectable string class.
Bool_t IsDNDTarget() const
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
virtual Bool_t HasColor() const =0
const Mask_t kKeyShiftMask
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
virtual Bool_t HasUnCheckedChild(Bool_t=kFALSE)
static const TGPicture * GetOpenPic()
Returns the icon used by items in open state.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
TString & ReplaceAll(const TString &s1, const TString &s2)
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.
static Pixel_t GetWhitePixel()
Get white pixel value.
void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
void LineDown(Bool_t select=kFALSE)
Move content one item-size down.
const Mask_t kLeaveWindowMask
static const TGGC & GetLineGC()
Return graphics context in use for line drawing.
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Redraw list tree.
const TGPicture * fUncheckedPic
void Draw(Handle_t id, Int_t yevent, Int_t hevent)
Draw list tree widget.
Int_t TextWidth(const char *c)
Returns text width relative to currently used font.
static const TGPicture * GetUncheckedPic()
Returns the icon used for unchecked checkbox.
void DoubleClicked(TGFrame *, Int_t)
Emit DoubleClicked() signal.
virtual void SavePrimitive(std::ostream &, Option_t *, Int_t)
static Pixel_t fgWhitePixel
const Mask_t kGCLineStyle
Short_t Min(Short_t a, Short_t b)
Int_t DeleteChildren(TGListTreeItem *item)
Delete children of item from list.
static Pixel_t fgDefaultSelectedBackground
virtual Bool_t HasCheckedChild(Bool_t first=kFALSE)
Add all child items of 'item' into the list 'checked'.
static const TGPicture * fgCheckedPic
virtual void CheckAllChildren(Bool_t state=kTRUE)
Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE.
TGFrame * GetContainer() const
Bool_t HandleDNDLeave()
Handle drag leave events.
const TGWindow * fMsgWindow
virtual Bool_t HasUnCheckedChild(Bool_t first=kFALSE)
Add all child items of 'item' into the list 'checked'.
void RemoveReference(TGListTreeItem *item)
This function removes the specified item from the linked list.
void PDeleteChildren(TGListTreeItem *item)
Recursively delete all children of an item.
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.
Bool_t IsDragging() const
const TGPicture * fCheckedPic
virtual Int_t GetTipTextLength() const =0
static Atom_t GetDNDActionCopy()
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
virtual const TGPicture * GetPicture() const =0
R__EXTERN TGDNDManager * gDNDManager
virtual TGPosition GetPagePosition() const
Returns page position.
void Draw(Option_t *="")
Default Draw method for all objects.
virtual TGDimension GetPageDimension() const
Returns page dimension.
void SetDNDTarget(Bool_t onoff)
const Mask_t kPointerMotionMask
virtual void CheckItem(Bool_t=kTRUE)=0
TGListTreeItem * FindChildByName(TGListTreeItem *item, const char *name)
Find child of item by name.
virtual void Checked(TObject *obj, Bool_t check)
Emit Checked() signal.
static const TGPicture * GetClosedPic()
Returns the icon used by items in closed state.
void Clicked(TGFrame *, Int_t)
Emit Clicked() signal.
void SetToolTipText(const char *text, Int_t x, Int_t y, Long_t delayms)
Set tool tip text associated with this item.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
void HighlightChildren(TGListTreeItem *item, Bool_t state, Bool_t draw)
Higlight item children.
virtual void SetActive(Bool_t)
void DrawItemName(Handle_t id, TGListTreeItem *item)
Draw name of list tree item.
The TNamed class is the base class for all named ROOT classes.
virtual void SetUserData(void *, Bool_t=kFALSE)
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.
Bool_t EndDrag()
End dragging.
void SetToolTipItem(TGListTreeItem *item, const char *string)
Set tooltip text for this item.
virtual Bool_t HasCheckedChild(Bool_t=kFALSE)
void FreePicture(const TGPicture *pic)
Free picture resource.
Int_t SortSiblings(TGListTreeItem *item)
Sort siblings of item.
virtual Bool_t IsActive() const =0
Int_t TextWidth(const char *string, Int_t numChars=-1) const
A wrapper function for the more complicated interface of MeasureChars.
void AdjustPosition()
Move content to position of highlighted/activated frame.
static TGGC * fgHighlightGC
virtual TGVScrollBar * GetVScrollbar() const
returns pointer to vert. scroll bar
const Mask_t kGCLineWidth
static Pixel_t fgBlackPixel
TGListTreeItem * FindSiblingByData(TGListTreeItem *item, void *userData)
Find sibling of item by userData.
EColorMarkupMode fColorMode
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const Mask_t kGCGraphicsExposures
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
static const TGPicture * fgClosedPic
virtual Pixel_t GetActiveColor() const =0
TGListTreeItem * GetPrevSibling() const
TGListTreeItem * FindItem(Int_t findy)
Find item at postion findy.
static Pixel_t GetGrayPixel()
Return gray draw color in use.
TGViewPort * GetViewPort() const
void InsertChild(TGListTreeItem *parent, TGListTreeItem *item)
Insert child in list.
TGListTreeItem * fPrevsibling
virtual void SetCheckBox(Bool_t on=kTRUE)
Set a check box on the tree node.
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse crossing event.
TGListTreeItemStd(const TGListTreeItemStd &)
static const TGFont * fgDefaultFont
virtual Color_t GetColor() const =0
void GetCheckedChildren(TList *checked, TGListTreeItem *item)
Add all child items of 'item' into the list 'checked'.
void UnselectAll(Bool_t draw)
Unselect all items.
const Mask_t kButtonPressMask
void OpenItem(TGListTreeItem *item)
Open item in list tree (i.e. show child items).
virtual void SetTipText(const char *)
const Mask_t kKeyPressMask
static const TGGC & GetActiveGC()
Return default graphics context in use.
Bool_t fGraphicsExposures
static const TGPicture * GetCheckedPic()
Returns the icon used for checked checkbox.
virtual void SetCheckBoxPictures(const TGPicture *, const TGPicture *)
void PDeleteItem(TGListTreeItem *item)
Delete given item.
static const TGGC & GetDrawGC()
Return default graphics context in use.
TGListTreeItem * fSelected
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
Bool_t IsDNDSource() const
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...
R__EXTERN TSystem * gSystem
Pixel_t GetForeground() const
TGListTreeItem * GetNextSibling() const
TGListTreeItem * fLastchild
TGCanvas * GetCanvas() const
virtual Bool_t HasCheckBox() const =0
void GetPathnameFromItem(TGListTreeItem *item, char *path, Int_t depth=0)
Get pathname from item.
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void SetDragPixmap(const TGPicture *pic)
Set drag window pixmaps and hotpoint.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void SetOpen(Bool_t o)
void GetChecked(TList *checked)
Add all checked list tree items of this list tree into the list 'checked'.
virtual const char * GetText() const =0
void ClearHighlighted()
Un highlight items.
virtual void CheckItem(Bool_t checked=kTRUE)
Int_t DrawChildren(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y, Int_t xroot)
Draw children of item in list tree.
void PageDown(Bool_t select=kFALSE)
Move content one page down.
virtual void UpdateState()
Update the state of the node 'item' according to the children states.
virtual Pixel_t GetBackground() const
TGListTree(const TGListTree &)
virtual Int_t Compare(const TObject *obj) const
Compare abstract method.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual Bool_t HandleButton(Event_t *event)
Handle button events in the list tree.
virtual void SetCheckBoxPictures(const TGPicture *checked, const TGPicture *unchecked)
Change list tree check item icons.
virtual ~TGListTree()
Delete list tree widget.
TGListTreeItem(const TGListTreeItem &)
Int_t FontHeight()
Returns height of currently used font.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event.
virtual Pixel_t GetActiveColor() const
Return color for marking items that are active or selected.
void Warning(const char *location, const char *msgfmt,...)
Int_t SortChildren(TGListTreeItem *item)
Sort children of item.
TGListTreeItem * fDropItem
virtual void WriteObject(const TObject *obj, Bool_t cacheReuse=kTRUE)
Write object to I/O buffer.
void Rename(const char *new_name)
Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
virtual void ClearViewPort()
Clear view port and redraw full content.
char * StrDup(const char *str)
Duplicate the string str.
TGListTreeItem * fCurrent
virtual Int_t GetTextLength() const =0
virtual void Reset()
Reset buffer object. Resets map and buffer offset.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
const Mask_t kEnterWindowMask
TGListTreeItem * GetParent() const
virtual void Layout()
Layout container entries.
const Mask_t kGCFillStyle
virtual UInt_t GetPicWidth() const
Return width of item's icon.
const Mask_t kButtonReleaseMask
TGListTreeItem * GetFirstChild() const
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual void DrawActive(Handle_t id, TGListTreeItem *item)
Draw active item with its active color.
void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
virtual const TGPicture * GetCheckBoxPicture() const =0
TGListTreeItem * FindSiblingByName(TGListTreeItem *item, const char *name)
Find sibling of item by name.
FontStruct_t GetFontStruct() const
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
void PageUp(Bool_t select=kFALSE)
Move content one page up.
static constexpr double s
const Mask_t kGCForeground
Int_t ReparentChildren(TGListTreeItem *item, TGListTreeItem *newparent)
Make newparent the new parent of the children of item.
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click event in the list tree (only for kButton1).
Atom_t HandleDNDEnter(Atom_t *typelist)
Handle drag enter events.
static const TGPicture * fgOpenPic
const TGWindow * GetParent() const
TGListTreeItem * fBelowMouse
virtual void CheckAllChildren(Bool_t=kTRUE)
void SetCheckBox(TGListTreeItem *item, Bool_t on=kTRUE)
Set check button state for the node 'item'.
Bool_t Drag(Int_t x_root, Int_t y_root, Atom_t action, Time_t timestamp)
Process drag event.
virtual Bool_t IsOpen() const
Mother of all ROOT objects.
Int_t Sort(TGListTreeItem *item)
Sort items starting with item.
Int_t SearchChildren(TGListTreeItem *item, Int_t y, Int_t findy, TGListTreeItem **finditem)
Search child item.
void ToggleItem(TGListTreeItem *item)
Toggle check button state of the node 'item'.
virtual const char * GetTitle() const
Returns title of object.
Int_t Reparent(TGListTreeItem *item, TGListTreeItem *newparent)
Make newparent the new parent of item.
virtual void Layout()
Create layout for canvas.
void KeyPressed(TGFrame *, UInt_t, UInt_t)
Signal emitted when keyboard key pressed.
TGListTreeItem * FindItemByPathname(const char *path)
Find item by pathname.
virtual Bool_t IsChecked() const
virtual void Add(TObject *obj)
virtual Bool_t IsChecked() const =0
virtual void UpdateState()
static Pixel_t fgGrayPixel
const Mask_t kGCBackground
Short_t Max(Short_t a, Short_t b)
TGListTreeItem * fNextsibling
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
virtual TList * GetVolumes(Option_t *) const
void CloseItem(TGListTreeItem *item)
Close item in list tree (i.e. hide child items).
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
Atom_t HandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot)
Handle dragging position events.
Int_t FontAscent()
Returns ascent of currently used font.
static const TGGC & GetColorGC()
Return graphics context for highlighted frame background.
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
virtual void DoRedraw()
Redraw content of container in the viewport region.
void SetDashOffset(Int_t v)
Patterned/dashed line offset.
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void GetFontMetrics(FontMetrics_t *m) const
Get font metrics.
void SaveChildren(std::ostream &out, TGListTreeItem *item, Int_t &n)
Save child items as a C++ statements on output stream out.
TGListTreeItem * fTipItem
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
void CheckItem(TGListTreeItem *item, Bool_t check=kTRUE)
Set check button state for the node 'item'.
Bool_t StartDrag(TGFrame *src, Int_t x_root, Int_t y_root, Window_t grabWin=kNone)
Start dragging.
const Mask_t kKeyControlMask
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
static const TGPicture * fgUncheckedPic
const TGPicture * fOpenPic
void HighlightItem(TGListTreeItem *item)
Highlight item.
TGListTreeItem * GetFirstItem() const
const Mask_t kAnyModifier
virtual Int_t GetVsbPosition() const
Get position of vertical scrollbar.
TGVScrollBar * GetVScrollbar() const
virtual void UpdateChecked(TGListTreeItem *item, Bool_t redraw=kFALSE)
Update the state of the node 'item' according to the children states.
virtual void MouseOver(TGListTreeItem *entry)
Signal emitted when pointer is over entry.
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
void DrawNode(Handle_t id, TGListTreeItem *item, Int_t x, Int_t y)
Draw node (little + in box).
Int_t RecursiveDeleteItem(TGListTreeItem *item, void *userData)
Delete item with fUserData == ptr.
void RenameItem(TGListTreeItem *item, const char *string)
Rename item in list tree.
void Home(Bool_t select=kFALSE)
Move content to the top.
void SetDashList(const char v[], Int_t len)
Set dash pattern. First use SetDashOffset() if not 0.
virtual Bool_t HandleKey(Event_t *event)
The key press event handler converts a key press to some line editor action.
void LineUp(Bool_t select=kFALSE)
Move content one item-size up.
virtual void SetWindowName(const char *name=0)
Set window name.
virtual void CheckChildren(TGListTreeItem *item, Bool_t state)
Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE.
virtual const char * GetTipText() const =0
const TGPicture * fClosedPic
void End(Bool_t select=kFALSE)
Move content to the bottom.
virtual void DataDropped(TGListTreeItem *item, TDNDData *data)
Emit DataDropped() signal.
const char * Data() const
FontH_t GetFontHandle() const