12#ifndef ROOT_TGListView
13#define ROOT_TGListView
98 virtual void SetSubnames(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
99 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
100 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
101 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
220 virtual void SetColHeaders(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
221 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
222 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
223 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
ULongptr_t Handle_t
Generic resource handle.
#define ClassDef(name, id)
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Encapsulate fonts used in the GUI system.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetWhitePixel()
Get white pixel value.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Encapsulate a graphics context used in the low level graphics.
const char * GetHeader(Int_t idx) const
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
TGListView * fListView
listview which contains this 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)
Bool_t fMultiSelect
true = multiple file selection
virtual void AddItem(TGLVEntry *item)
TGLayoutHints * fItemLayout
item layout hints
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.
TGLVEntry * fLastActive
last active item
virtual void RemoveItemWithData(void *userData)
Remove item with fUserData == userData from container.
TGListView * GetListView() const
Int_t * fCpos
position of sub names
virtual ~TGLVContainer()
Delete list view container.
virtual void SetListView(TGListView *lv)
TGLVContainer(const TGLVContainer &)=delete
TList * GetSelectedEntries()
Get list of selected items in container.
Int_t * fJmode
alignment of sub names
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
EListViewMode fViewMode
list view viewing mode
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
current icon
void * fUserData
pointer to user data structure
UInt_t fTHeight
height of name
void SetItemName(const char *name)
virtual void SetTitle(const char *text)
TGString ** fSubnames
sub names of item (details)
Int_t * fCpos
position of sub names
UInt_t fTWidth
width of name
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)
Bool_t fActive
true if item is active
FontStruct_t fFontStruct
text font
EListViewMode fViewMode
list view viewing mode
GContext_t fNormGC
drawing graphics context
TGString * fItemName
name of item
EListViewMode GetViewMode() const
virtual TGString ** GetSubnames() const
void * GetUserData() const
const TGPicture * fBigPic
big icon
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.
Bool_t fChecked
true if item is checked
TGLVEntry(const TGLVEntry &)=delete
virtual void SetCheckedEntry(Bool_t check=kTRUE)
Int_t * fCtw
width of sub names
virtual const char * GetTitle() const
Returns title of object.
TGSelectedPicture * fSelPic
selected icon
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw list view item in other window.
const TGPicture * fSmallPic
small icon
virtual Int_t GetSubnameWidth(Int_t idx) const
Int_t * fJmode
alignment for sub names
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
checkmark
static TGGC * fgDefaultGC
void SetUserData(void *userData)
static const TGFont * fgDefaultFont
This class describes layout hints used by the layout classes.
A list view is a widget that can contain a number of items arranged in a grid or list.
Int_t * fJmode
column text alignment
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 void ResizeColumns()
Resize column headers to show whole item names.
EListViewMode fViewMode
view mode if list view widget
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
Int_t * fColumns
column width
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...
FontStruct_t fFontStruct
text font
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.
GContext_t fNormGC
drawing graphics context
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
Int_t fNColumns
number of columns
TGDimension fMaxSize
maximum item size
TGHeaderFrame * fHeader
frame used as container for column headers
virtual void SetHeaders(Int_t ncolumns)
Set number of headers, i.e.
TString * fColNames
column titles for in detailed mode
virtual void SelectionChanged()
UInt_t fMinColumnSize
Minimun column size.
TGTextButton ** fColHeader
column headers for in detailed mode
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).
Bool_t fJustChanged
Indicate whether the view mode was just changed to Detail.
virtual ~TGListView()
Delete a list view widget.
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Handle messages generated by the list view components.
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
column splitters
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
TGDimension GetMaxItemSize() const
static TGGC * fgDefaultGC
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
const char * GetString() const
Yield an action as soon as it is clicked.
ROOT GUI Window base class.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.