12#ifndef ROOT_TGListView
13#define ROOT_TGListView
116 virtual void SetSubnames(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
117 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
118 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
119 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
238 virtual void SetColHeaders(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
239 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
240 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
241 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
ULong_t Handle_t
Generic resource handle.
Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
#define ClassDef(name, id)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
static Pixel_t GetWhitePixel()
Get white pixel value.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
const char * GetHeader(Int_t idx) const
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
TList * GetSelectedItems()
Get list of selected items in container.
void SetMultipleSelection(Bool_t multi=kTRUE)
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
Set column information for list items.
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
virtual void ActivateItem(TGFrameElement *el)
Select/activate item.
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
virtual void SetColHeaders(const char *n1="", const char *n2="", const char *n3="", const char *n4="", const char *n5="", const char *n6="", const char *n7="", const char *n8="", const char *n9="", const char *n10="", const char *n11="", const char *n12="")
set columns headers
virtual void SelectEntry(TGLVEntry *item)
Select the TGLVEntry given as argument and de-select the previous one if the container is not in mult...
void SetHeaders(Int_t ncolumns)
virtual void AddItem(TGLVEntry *item)
TGLayoutHints * fItemLayout
virtual Int_t GetMaxSubnameWidth(Int_t idx) const
Get width of largest subname in container.
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode for container.
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list view container as a C++ statement(s) on output stream out.
virtual void RemoveItemWithData(void *userData)
Remove item with fUserData == userData from container.
TGListView * GetListView() const
virtual ~TGLVContainer()
Delete list view container.
virtual void SetListView(TGListView *lv)
TGLVContainer(const TGLVContainer &)=delete
TList * GetSelectedEntries()
Get list of selected items in container.
virtual void DeActivateItem(TGFrameElement *el)
Unselect/deactivate item.
EListViewMode GetViewMode() const
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
Bool_t GetMultipleSelection() const
TGLVContainer & operator=(const TGLVContainer &)=delete
virtual TGDimension GetPageDimension() const
Returns page dimension.
virtual TGDimension GetMaxItemSize() const
Get size of largest item in container.
TGLVEntry & operator=(const TGLVEntry &)=delete
const TGPicture * fCurrent
void SetItemName(const char *name)
virtual void SetTitle(const char *text)
virtual void DoRedraw()
Redraw list view item.
virtual void SetPictures(const TGPicture *bigpic=0, const TGPicture *smallpic=0)
change pictures
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
EListViewMode GetViewMode() const
virtual TGString ** GetSubnames() const
void * GetUserData() const
const TGPicture * fBigPic
const TGPicture * GetPicture() const
virtual TGDimension GetDefaultSize() const
Get default size of list item.
virtual void SetViewMode(EListViewMode viewMode)
Set the view mode for this list item.
virtual TGString * GetSubname(Int_t idx) const
virtual void Activate(Bool_t a)
Make list view item active.
TGString * GetItemName() const
virtual ~TGLVEntry()
Delete a list view item.
TGLVEntry(const TGLVEntry &)=delete
virtual void SetCheckedEntry(Bool_t check=kTRUE)
virtual const char * GetTitle() const
Returns title of object.
TGSelectedPicture * fSelPic
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw list view item in other window.
const TGPicture * fSmallPic
virtual Int_t GetSubnameWidth(Int_t idx) const
virtual void SetSubnames(const char *n1="", const char *n2="", const char *n3="", const char *n4="", const char *n5="", const char *n6="", const char *n7="", const char *n8="", const char *n9="", const char *n10="", const char *n11="", const char *n12="")
Sets new subnames.
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.
const TGPicture * fCheckMark
static TGGC * fgDefaultGC
void SetUserData(void *userData)
static const TGFont * fgDefaultFont
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.
virtual void DoubleClicked(TGLVEntry *entry, Int_t btn)
Emit DoubleClicked() signal.
virtual void AdjustHeaders()
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle messages generated by the list view components.
virtual void ResizeColumns()
Resize column headers to show whole item names.
virtual void Layout()
Layout list view components (container and contents of container).
virtual void ScrollHeader(Int_t pos)
Scroll header buttons with horizontal scrollbar.
TGListView(const TGListView &)=delete
virtual void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
Set header button idx [0-fNColumns>, hmode is the x text alignmode (ETextJustification) for the heade...
virtual void SetIncrements(Int_t hInc, Int_t vInc)
Set horizontal and vertical scrollbar increments.
EListViewMode GetViewMode() const
TGTextButton ** GetHeaderButtons()
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode.
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
virtual void SetHeaders(Int_t ncolumns)
Set number of headers, i.e.
virtual void SelectionChanged()
TGTextButton ** fColHeader
virtual void SetDefaultHeaders()
Default headers are: Name, Attributes, Size, Owner, Group, Modified.
virtual void Clicked(TGLVEntry *entry, Int_t btn)
Emit Clicked() signal.
virtual void LayoutHeader(TGFrame *head)
Layout list view components (container and contents of container).
virtual ~TGListView()
Delete a list view widget.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list view widget as a C++ statement(s) on output stream out.
TGListView & operator=(const TGListView &)=delete
virtual void SetDefaultColumnWidth(TGVFileSplitter *splitter)
Set default column width of the columns headers.
static const TGFont * fgDefaultFont
virtual void SetContainer(TGFrame *f)
Set list view container.
TGVFileSplitter ** fSplitHeader
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
TGDimension GetMaxItemSize() const
static TGGC * fgDefaultGC
const char * GetString() const
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.