12 #ifndef ROOT_TGListTree 13 #define ROOT_TGListTree 39 #ifndef ROOT_TDNDManager 93 virtual const char *
GetText()
const = 0;
196 virtual void Toggle() { fChecked = !fChecked; }
281 static const TGGC &GetActiveGC();
282 static const TGGC &GetDrawGC();
283 static const TGGC &GetLineGC();
284 static const TGGC &GetHighlightGC();
285 static const TGGC &GetColorGC();
391 void ClearHighlighted();
393 void UnselectAll(
Bool_t draw);
398 void GetChecked(
TList *checked);
414 void AddRoot(
const char *
string) { AddItem(0,
string); }
416 void RenameSelected(
const char *
string) {
if (fSelected) RenameItem(fSelected,
string); }
433 Int_t TextWidth(
const char *
c);
438 static const TGPicture *GetUncheckedPic();
TGListTreeItem * fFirstchild
void AddRoot(const char *string)
virtual void SetCanvas(TGCanvas *canvas)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t beginWith=kFALSE)
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket...
virtual void * GetUserData() const =0
virtual void SetCheckBox(Bool_t=kTRUE)
Bool_t IsDNDTarget() const
virtual Bool_t HasColor() const =0
virtual Bool_t HasUnCheckedChild(Bool_t=kFALSE)
void OnMouseOver(TGFrame *)
Signal emitted when pointer is over entry.
void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
void RenameSelected(const char *string)
virtual void ClearColor()
const TGPicture * fUncheckedPic
TGListTreeItem * GetBelowMouse() const
void DoubleClicked(TGFrame *, Int_t)
Emit DoubleClicked() signal.
virtual Int_t GetTextLength() const
void AddItem(const char *string)
virtual void SavePrimitive(std::ostream &, Option_t *, Int_t)
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
static const TGPicture * fgCheckedPic
virtual const TGPicture * GetPicture() const
const TGPicture * fCheckedPic
virtual Bool_t HasCheckBox() const
TGListTreeItem * GetSelected() const
virtual Int_t GetTipTextLength() const =0
void SetAutoCheckBoxPic(Bool_t on)
virtual const TGPicture * GetPicture() const =0
void DoubleClicked(TGFrame *, Int_t, Int_t, Int_t)
Emit DoubleClicked() signal.
void SetCheckMode(ECheckMode mode)
virtual void CheckItem(Bool_t=kTRUE)=0
void SetDNDTarget(Bool_t onoff)
void Clicked(TGFrame *, Int_t)
Emit Clicked() signal.
virtual TDNDData * GetDNDData(Atom_t)
#define ClassDef(name, id)
virtual void SetActive(Bool_t)
virtual void SetUserData(void *, Bool_t=kFALSE)
virtual Bool_t HasCheckedChild(Bool_t=kFALSE)
virtual Bool_t IsActive() const =0
virtual void SetUserData(void *userData, Bool_t own=kFALSE)
void AdjustPosition()
Move content to position of highlighted/activated frame.
virtual void HandleDrop()
static TGGC * fgHighlightGC
EColorMarkupMode fColorMode
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
void SetEventHandled(Bool_t eh=kTRUE)
static const TGPicture * fgClosedPic
virtual Pixel_t GetActiveColor() const =0
TGListTreeItem * GetPrevSibling() const
virtual const char * GetText() const
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
TGListTreeItem * fPrevsibling
virtual void SetText(const char *)
void MayNotUse(const char *method)
This function can be used in classes that should override a certain function, but in the inherited cl...
Bool_t IsEventHandled() const
static const TGFont * fgDefaultFont
Bool_t HasUserControl() const
virtual Color_t GetColor() const =0
void CurrentChanged(TGFrame *)
Emit signal when current selected frame changed.
virtual void SetTipText(const char *)
virtual Bool_t HasColor() const
virtual Bool_t IsActive() const
virtual void SetCheckBoxPictures(const TGPicture *, const TGPicture *)
TGListTreeItem * GetCurrent() const
TGListTreeItem * fSelected
Bool_t IsDNDSource() const
virtual ~TGListTreeItem()
TGListTreeItem * GetNextSibling() const
void SetUserControl(Bool_t ctrl=kTRUE)
TGListTreeItem * fLastchild
TGListTreeItem & operator=(const TGListTreeItem &)
virtual const TGPicture * GetCheckBoxPicture() const
virtual Bool_t HasCheckBox() const =0
virtual void * GetUserData() const
virtual void SetOpen(Bool_t o)
virtual const char * GetText() const =0
virtual Color_t GetColor() const
void Draw(Option_t *="")
Default Draw method for all objects.
virtual void CheckItem(Bool_t checked=kTRUE)
void SetColorMode(EColorMarkupMode colorMode)
virtual void SetColor(Color_t color)
TGListTreeItem(const TGListTreeItem &)
TGListTreeItem * fDropItem
void Rename(const char *new_name)
void CurrentChanged(Int_t, Int_t)
Emit signal when current position changed.
EColorMarkupMode GetColorMode() const
TGListTreeItem * fCurrent
virtual Bool_t HandlesDragAndDrop() const
virtual Int_t GetTextLength() const =0
TGListTreeItem * GetParent() const
virtual void CheckChildren(TGListTreeItem *, Bool_t)
virtual void Layout()
Layout container entries.
TGListTreeItem * GetLastChild() const
void DisableOpen(Bool_t disable=kTRUE)
virtual UInt_t GetPicWidth() const
Return width of item's icon.
TGListTreeItem * GetFirstChild() const
void Clicked(TGFrame *, Int_t, Int_t, Int_t)
Emit Clicked() signal.
virtual void SetActive(Bool_t a)
virtual const TGPicture * GetCheckBoxPicture() const =0
virtual const char * GetTipText() const
static const TGPicture * fgOpenPic
TGListTreeItem * fBelowMouse
virtual void SetText(const char *text)
virtual void SetPictures(const TGPicture *, const TGPicture *)
virtual void CheckAllChildren(Bool_t=kTRUE)
virtual Bool_t IsOpen() const
Mother of all ROOT objects.
virtual Int_t GetTipTextLength() const
ECheckMode GetCheckMode() const
void KeyPressed(TGFrame *, UInt_t, UInt_t)
Signal emitted when keyboard key pressed.
virtual Bool_t IsChecked() const
virtual Bool_t IsChecked() const =0
virtual void UpdateState()
static Pixel_t fgGrayPixel
void SetAutoTips(Bool_t on=kTRUE)
TGListTreeItem * fNextsibling
void SetDNDSource(Bool_t onoff)
virtual void SetColor(Color_t)
virtual void HandleDrag()
TGListTreeItem * fTipItem
static const TGPicture * fgUncheckedPic
const TGPicture * fOpenPic
TGListTreeItem * GetFirstItem() const
virtual void ClearColor()
void SetSelected(TGListTreeItem *item)
virtual const char * GetTipText() const =0
const TGPicture * fClosedPic
const char * Data() const
virtual void SetTipText(const char *tip)