library: libGui #include "TGListView.h" |
TGListView
class description - header file - source file - inheritance tree (.pdf)
protected:
static FontStruct_t GetDefaultFontStruct()
static const TGGC& GetDefaultGC()
public:
TGListView(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame|kDoubleBorder, Pixel_t back = GetDefaultFrameBackground())
TGListView(const TGListView&)
virtual ~TGListView()
static TClass* Class()
virtual void Clicked(TGLVEntry* entry, Int_t btn)
virtual void Clicked(TGLVEntry* entry, Int_t btn, Int_t x, Int_t y)
virtual void DoubleClicked(TGLVEntry* entry, Int_t btn)
virtual void DoubleClicked(TGLVEntry* entry, Int_t btn, Int_t x, Int_t y)
virtual const char* GetHeader(Int_t idx) const
EListViewMode GetViewMode() const
virtual TClass* IsA() const
virtual void Layout()
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void ScrollHeader(Int_t pos)
virtual void SelectionChanged()
virtual void SetContainer(TGFrame* f)
virtual void SetDefaultHeaders()
virtual void SetHeader(const char* s, Int_t hmode, Int_t cmode, Int_t idx)
virtual void SetHeaders(Int_t ncolumns)
virtual void SetViewMode(EListViewMode viewMode)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Int_t fNColumns number of columns
Int_t* fColumns column width
Int_t* fJmode column text alignment
EListViewMode fViewMode view mode if list view widget
TGDimension fMaxSize maximum item size
TGTextButton** fColHeader column headers for in detailed mode
GContext_t fNormGC drawing graphics context
FontStruct_t fFontStruct text font
TGFrame* fHeader frame used as container for column headers
static const TGFont* fgDefaultFont
static TGGC* fgDefaultGC
TGListView, TGLVContainer and TGLVEntry
A list view is a widget that can contain a number of items
arranged in a grid or list. The items can be represented either
by a string or by an icon.
The TGListView is user callable. The other classes are service
classes of the list view.
A list view can generate the following events:
kC_CONTAINER, kCT_SELCHANGED, total items, selected items.
kC_CONTAINER, kCT_ITEMCLICK, which button, location (y<<16|x).
kC_CONTAINER, kCT_ITEMDBLCLICK, which button, location (y<<16|x).
void SetHeaders(Int_t ncolumns)
Set number of headers, i.e. columns that will be shown in detailed view.
This method must be followed by exactly ncolumns SetHeader() calls,
making sure that every header (i.e. idx) is set (for and example see
SetDefaultHeaders()).
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 header text and cmode is the x text
alignmode for the item text.
const char * GetHeader(Int_t idx)
Returns name of header idx. If illegal idx or header not set for idx
0 is returned.
void SetDefaultHeaders()
Default headers are: Name, Attributes, Size, Owner, Group, Modified.
The default is good for file system items.
void SetViewMode(EListViewMode viewMode)
Set list view mode.
void Layout()
Layout list view components (container and contents of container).
Author: Fons Rademakers 17/01/98
Last update: root/gui:$Name: $:$Id: TGListView.cxx,v 1.38 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.