12 #ifndef ROOT_TGListView 13 #define ROOT_TGListView 116 virtual void SetSubnames(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
117 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
118 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
119 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
166 virtual void ResizeColumns();
168 virtual void LayoutHeader(
TGFrame *head);
170 virtual void ScrollHeader(
Int_t pos);
171 virtual void SetContainer(
TGFrame *
f);
173 virtual void SetHeaders(
Int_t ncolumns);
175 virtual void SetDefaultHeaders();
180 virtual const char *GetHeader(
Int_t idx)
const;
182 virtual void SetIncrements(
Int_t hInc,
Int_t vInc);
226 { AddFrame(item, fItemLayout); item->
SetColumns(fCpos, fJmode); fTotal++; }
231 virtual void RemoveItemWithData(
void *userData);
238 virtual Int_t GetMaxSubnameWidth(
Int_t idx)
const;
239 virtual void SetColHeaders(
const char* n1=
"",
const char* n2=
"",
const char* n3=
"",
240 const char* n4=
"",
const char* n5=
"",
const char* n6=
"",
241 const char* n7=
"",
const char* n8=
"",
const char* n9=
"",
242 const char* n10=
"",
const char* n11=
"",
const char* n12=
"");
249 TList *GetSelectedItems();
250 TList *GetSelectedEntries();
255 { fListView->
SetHeader(s,hmode,cmode,idx); }
EListViewMode GetViewMode() const
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual void Activate(Bool_t a)
Make list view item active.
virtual Int_t GetSubnameWidth(Int_t idx) const
virtual void AdjustHeaders()
virtual void SetTitle(const char *text)
static Pixel_t GetWhitePixel()
Get white pixel value.
void SetHeaders(Int_t ncolumns)
TGListView * GetListView() const
leg SetHeader("The Legend Title")
TGVFileSplitter ** fSplitHeader
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.
EListViewMode GetViewMode() const
virtual void SelectionChanged()
#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 SetCheckedEntry(Bool_t check=kTRUE)
TGTextButton ** GetHeaderButtons()
EListViewMode GetViewMode() const
TGTextButton ** fColHeader
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
virtual TGString * GetSubname(Int_t idx) const
void SetUserData(void *userData)
virtual TGString ** GetSubnames() const
const TGPicture * fSmallPic
static TGGC * fgDefaultGC
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
TGLVEntry(const TGLVEntry &)
void * GetUserData() const
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw list view item in other window.
Bool_t GetMultipleSelection() const
TGLVEntry & operator=(const TGLVEntry &)
void SetMultipleSelection(Bool_t multi=kTRUE)
const TGPicture * GetPicture() const
virtual void AddItem(TGLVEntry *item)
virtual const char * GetTitle() const
Returns title of object.
void SetItemName(const char *name)
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
virtual TGDimension GetDefaultSize() const
Get default size of list item.
const char * GetString() const
TGLayoutHints * fItemLayout
TGDimension GetMaxItemSize() const
static const TGFont * fgDefaultFont
virtual void SetPictures(const TGPicture *bigpic=0, const TGPicture *smallpic=0)
change pictures
static const TGFont * fgDefaultFont
virtual Bool_t HandleButton(Event_t *)
static constexpr double s
virtual void SetViewMode(EListViewMode viewMode)
Set the view mode for this list item.
const char * GetHeader(Int_t idx) const
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
virtual void SetListView(TGListView *lv)
TGFrameElement * GetFrameElement() const
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...
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
TGString * GetItemName() const
virtual ~TGLVEntry()
Delete a list view item.
const TGPicture * fBigPic
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.