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.
ULong_t Pixel_t
Pixel value.
ULongptr_t Handle_t
Generic resource handle.
Handle_t FontStruct_t
Pointer to font structure.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char cname
Option_t Option_t TPoint TPoint const char text
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
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
void LineRight(Bool_t select=kFALSE) override
Move current position one column right.
TGListView * fListView
listview which contains this container
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in container.
void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
void LineDown(Bool_t select=kFALSE) override
Move one line down.
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.
void LineLeft(Bool_t select=kFALSE) override
Move current position one column left.
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)
void DeActivateItem(TGFrameElement *el) override
Unselect/deactivate 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.
TGLVEntry * fLastActive
last active item
virtual void RemoveItemWithData(void *userData)
Remove item with fUserData == userData from container.
void ActivateItem(TGFrameElement *el) override
Select/activate item.
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
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a list view container as a C++ statement(s) on output stream out.
TGDimension GetPageDimension() const override
Returns page dimension.
EListViewMode GetViewMode() const
Bool_t GetMultipleSelection() const
void LineUp(Bool_t select=kFALSE) override
Make current position first line in window by scrolling up.
TGLVContainer & operator=(const TGLVContainer &)=delete
EListViewMode fViewMode
list view viewing mode
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)
virtual void SetPictures(const TGPicture *bigpic=nullptr, const TGPicture *smallpic=nullptr)
change pictures
TGString ** fSubnames
sub names of item (details)
void DoRedraw() override
Redraw list view item.
Int_t * fCpos
position of sub names
UInt_t fTWidth
width of name
TGDimension GetDefaultSize() const override
Get default size of list item.
const char * GetTitle() const override
Returns title of object.
void Activate(Bool_t a) override
Make list view item active.
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
Bool_t fActive
true if item is active
void DrawCopy(Handle_t id, Int_t x, Int_t y) override
Draw list view item in other window.
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 void SetViewMode(EListViewMode viewMode)
Set the view mode for this list item.
virtual TGString * GetSubname(Int_t idx) const
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
TGSelectedPicture * fSelPic
selected icon
Bool_t IsActive() const override
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 ScrollHeader(Int_t pos)
Scroll header buttons with horizontal scrollbar.
TGListView(const TGListView &)=delete
Int_t * fColumns
column width
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a list view widget as a C++ statement(s) on output stream out.
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...
void Layout() override
Layout list view components (container and contents of container).
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()
void SetContainer(TGFrame *f) override
Set list view container.
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.
TGListView & operator=(const TGListView &)=delete
virtual void SetDefaultColumnWidth(TGVFileSplitter *splitter)
Set default column width of the columns headers.
static const TGFont * fgDefaultFont
TGVFileSplitter ** fSplitHeader
column splitters
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
TGDimension GetMaxItemSize() const
static TGGC * fgDefaultGC
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Handle messages generated by the list view components.
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.