library: libGui #include "TGListView.h" |
TGLVContainer
class description - source file - inheritance tree (.pdf)
protected:
virtual void ActivateItem(TGFrameElement* el)
public:
TGLVContainer(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground())
TGLVContainer(TGCanvas* p, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground())
TGLVContainer(const TGLVContainer&)
virtual ~TGLVContainer()
virtual void AddItem(TGLVEntry* item)
static TClass* Class()
const char* GetHeader(Int_t idx) const
TGListView* GetListView() const
virtual TGDimension GetMaxItemSize() const
virtual Int_t GetMaxSubnameWidth(Int_t idx) const
EListViewMode GetViewMode() const
virtual TClass* IsA() const
virtual void RemoveItemWithData(void* userData)
virtual void SavePrimitive(ofstream& out, Option_t* option)
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 = "")
virtual void SetColumns(Int_t* cpos, Int_t* jmode)
void SetDefaultHeaders()
void SetHeader(const char* s, Int_t hmode, Int_t cmode, Int_t idx)
void SetHeaders(Int_t ncolumns)
virtual void SetListView(TGListView* lv)
virtual void SetViewMode(EListViewMode viewMode)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGLayoutHints* fItemLayout item layout hints
EListViewMode fViewMode list view viewing mode
Int_t* fCpos position of sub names
Int_t* fJmode alignment of sub names
TGListView* fListView listview which contains this container
TGLVEntry* fLastActive last active item
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).
TGLVContainer(const TGWindow *p, UInt_t w, UInt_t h,
UInt_t options, ULong_t back) :
TGContainer(p, w, h, options, back)
Create a list view container. This is the (large) frame that contains
all the list items. It will be shown through a TGViewPort (which is
created by the TGCanvas derived TGListView).
TGLVContainer(TGCanvas *p,UInt_t options, ULong_t back) :
TGContainer(p,options, back)
Create a list view container. This is the (large) frame that contains
all the list items. It will be shown through a TGViewPort (which is
created by the TGCanvas derived TGListView).
~TGLVContainer()
Delete list view container.
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
void SetViewMode(EListViewMode viewMode)
Set list view mode for container.
void SetColumns(Int_t *cpos, Int_t *jmode)
Set column information for list items.
TGDimension GetMaxItemSize() const
Get size of largest item in container.
Int_t GetMaxSubnameWidth(Int_t idx) const
Get width of largest subname in container.
void RemoveItemWithData(void *userData)
Remove item with fUserData == userData from container.
void ActivateItem(TGFrameElement* el)
Select/activate item.
void SavePrimitive(ofstream &out, Option_t *option)
Save a list view container as a C++ statement(s) on output stream out.
Inline Functions
TGListView* GetListView() const
void AddItem(TGLVEntry* item)
void SetListView(TGListView* lv)
EListViewMode GetViewMode() const
void SetHeaders(Int_t ncolumns)
void SetHeader(const char* s, Int_t hmode, Int_t cmode, Int_t idx)
void SetDefaultHeaders()
const char* GetHeader(Int_t idx) const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGLVContainer TGLVContainer(const TGLVContainer&)
Author: Fons Rademakers 17/01/98
Last update: root/gui:$Name: $:$Id: TGListView.cxx,v 1.33 2005/09/05 14:21:53 rdm 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.