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=
"");
172 virtual void ResizeColumns();
174 virtual void LayoutHeader(
TGFrame *head);
176 virtual void ScrollHeader(
Int_t pos);
177 virtual void SetContainer(
TGFrame *
f);
179 virtual void SetHeaders(
Int_t ncolumns);
181 virtual void SetDefaultHeaders();
186 virtual const char *GetHeader(
Int_t idx)
const;
188 virtual void SetIncrements(
Int_t hInc,
Int_t vInc);
232 { AddFrame(item, fItemLayout); item->
SetColumns(fCpos, fJmode); fTotal++; }
237 virtual void RemoveItemWithData(
void *userData);
244 virtual Int_t GetMaxSubnameWidth(
Int_t idx)
const;
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=
"");
255 TList *GetSelectedItems();
256 TList *GetSelectedEntries();
261 { 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
void Emit(const char *signal)
Acitvate signal without args.
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 *)
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 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.