12 #ifndef ROOT_TGListView
13 #define ROOT_TGListView
40 #ifndef ROOT_TGSplitter
122 virtual void SetSubnames(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
123 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
124 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
125 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
245 virtual void SetColHeaders(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
246 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
247 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
248 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
EListViewMode GetViewMode() const
virtual void Activate(Bool_t a)
Make list view item active.
virtual void AdjustHeaders()
virtual void Clicked(TGLVEntry *entry, Int_t btn)
Emit Clicked() signal.
virtual void SetTitle(const char *text)
virtual TGDimension GetPageDimension() const
Returns page dimension.
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
virtual void RemoveItemWithData(void *userData)
Remove item with fUserData == userData from container.
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual Int_t GetSubnameWidth(Int_t idx) const
void SetHeaders(Int_t ncolumns)
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
TGLVContainer(const TGLVContainer &)
virtual TGString ** GetSubnames() const
TGVFileSplitter ** fSplitHeader
const char * GetHeader(Int_t idx) const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list view widget as a C++ statement(s) on output stream out.
const TGPicture * fCheckMark
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.
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
Set column information for list items.
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode.
virtual void LayoutHeader(TGFrame *head)
Layout list view components (container and contents of container).
virtual void SelectionChanged()
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 SetViewMode(EListViewMode viewMode)
Set list view mode for container.
const TGPicture * GetPicture() const
virtual void Layout()
Layout list view components (container and contents of container).
TGString * GetItemName() const
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
virtual ~TGLVContainer()
Delete list view container.
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list view container as a C++ statement(s) on output stream out.
TGListView * GetListView() const
TList * GetSelectedEntries()
Get list of selected items in container.
#define ClassDef(name, id)
virtual void SetDefaultHeaders()
Default headers are: Name, Attributes, Size, Owner, Group, Modified.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void SetIncrements(Int_t hInc, Int_t vInc)
Set horizontal and vertical scrollbar increments.
virtual void SetCheckedEntry(Bool_t check=kTRUE)
virtual void ScrollHeader(Int_t pos)
Scroll header buttons with horizontal scrollbar.
TGTextButton ** GetHeaderButtons()
TGFrameElement * GetFrameElement() const
virtual TGDimension GetDefaultSize() const
Get default size of list item.
virtual void SetDefaultColumnWidth(TGVFileSplitter *splitter)
Set default column width of the columns headers.
virtual void DoubleClicked(TGLVEntry *entry, Int_t btn)
Emit DoubleClicked() signal.
TGListView(const TGListView &)
void Emit(const char *signal)
Acitvate signal without args.
TGTextButton ** fColHeader
void SetUserData(void *userData)
const TGPicture * fSmallPic
static TGGC * fgDefaultGC
TGLVEntry(const TGLVEntry &)
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw list view item in other window.
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.
EListViewMode GetViewMode() const
TGDimension GetMaxItemSize() const
virtual void DeActivateItem(TGFrameElement *el)
Unselect/deactivate item.
EListViewMode GetViewMode() const
virtual void ActivateItem(TGFrameElement *el)
Select/activate item.
TGLVEntry & operator=(const TGLVEntry &)
virtual ~TGListView()
Delete a list view widget.
void SetMultipleSelection(Bool_t multi=kTRUE)
virtual void AddItem(TGLVEntry *item)
void SetItemName(const char *name)
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
TList * GetSelectedItems()
Get list of selected items in container.
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
TGLayoutHints * fItemLayout
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
void select(Int_t replica=1, Int_t color=kGreen)
static const TGFont * fgDefaultFont
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
virtual void SetPictures(const TGPicture *bigpic=0, const TGPicture *smallpic=0)
change pictures
static const TGFont * fgDefaultFont
void * GetUserData() const
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle messages generated by the list view components.
TGListView & operator=(const TGListView &)
virtual const char * GetTitle() const
Returns title of object.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetViewMode(EListViewMode viewMode)
Set the view mode for this list item.
virtual void SelectEntry(TGLVEntry *item)
TGSelectedPicture * fSelPic
const TGPicture * fCurrent
virtual void SetHeaders(Int_t ncolumns)
Set number of headers, i.e.
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
static TGGC * fgDefaultGC
Bool_t GetMultipleSelection() const
virtual void SetListView(TGListView *lv)
virtual TGString * GetSubname(Int_t idx) const
virtual Int_t GetMaxSubnameWidth(Int_t idx) const
Get width of largest subname in container.
virtual void DoRedraw()
Redraw list view item.
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...
const char * GetString() const
virtual TGDimension GetMaxItemSize() const
Get size of largest item in container.
virtual void ResizeColumns()
Resize column headers to show whole item names.
void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
virtual ~TGLVEntry()
Delete a list view item.
const TGPicture * fBigPic
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.
virtual void SetContainer(TGFrame *f)
Set list view container.
TGLVContainer & operator=(const TGLVContainer &)