TGLVContainer


class description - source file - inheritance tree

class TGLVContainer : public TGCompositeFrame


    public:
TGLVContainer TGLVContainer(TGLVContainer&) TGLVContainer TGLVContainer(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = fgDefaultFrameBackground) virtual void ~TGLVContainer() virtual void AddItem(TGLVEntry* item) virtual void Associate(const TGWindow* w) TClass* Class() virtual TGDimension GetMaxItemSize() const virtual const TGLVEntry* GetNextSelected(void** current) const virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleDoubleClick(Event_t* event) virtual Bool_t HandleMotion(Event_t* event) virtual void InvertSelection() virtual TClass* IsA() const virtual Int_t NumItems() const virtual Int_t NumSelected() const virtual void RemoveAll() virtual void RemoveItem(TGLVEntry* item) virtual void RemoveItemWithData(void* userData) virtual void SelectAll() virtual void SetColumns(Int_t* cpos, Int_t* jmode) virtual void SetViewMode(EListViewMode ViewMode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) virtual void UnSelectAll()

Data Members

protected:
TGLVEntry* fLastActive last active list view item 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 Int_t fXp Int_t fYp previous pointer position Int_t fX0 Int_t fY0 corner of rubber band box Int_t fXf Int_t fYf other corner of rubber band box Int_t fTotal total items Int_t fSelected number of selected items Bool_t fDragging true if in dragging mode const TGWindow* fMsgWindow window handling container messages static GContext_t fgLineGC


See also

TGFileContainer

Class Description

                                                                      
 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) : TGCompositeFrame(p, w, h, options, back)
 Create a list view container. This is the (large) frame that contains
 all the list items. It will be show through a TGViewPort (which is
 created by the TGCanvas derived TGListView).

~TGLVContainer()
 Delete list view container.

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 maximum item size of all list view items in the container.

Bool_t HandleButton(Event_t *event)
 Handle mouse button event in container.

Bool_t HandleDoubleClick(Event_t *event)
 Handle double click mouse event.

Bool_t HandleMotion(Event_t *event)
 Handle mouse motion events.

void UnSelectAll()
 Unselect all items in the container.

void SelectAll()
 Select all items in the container.

void InvertSelection()
 Incert the selection, all selected items become unselected and
 vice versa.

void RemoveAll()
 Remove all items from the container.

void RemoveItem(TGLVEntry *item)
 Remove item from container.

void RemoveItemWithData(void *userData)
 Remove item with fUserData == userData from container.

const TGLVEntry* GetNextSelected(void **current)
 Return next selected item.



Inline Functions


                 void AddItem(TGLVEntry* item)
                 void Associate(const TGWindow* w)
                Int_t NumItems() const
                Int_t NumSelected() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
        TGLVContainer TGLVContainer(TGLVContainer&)


Author: Fons Rademakers 17/01/98
Last update: 2.23/02 02/09/99 15.54.27 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.