Logo ROOT  
Reference Guide
TGListView.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Fons Rademakers 17/01/98
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGListView
13 #define ROOT_TGListView
14 
15 
16 #include "TGCanvas.h"
17 #include "TGWidget.h"
18 #include "TGSplitter.h"
19 
20 
26 };
27 
28 
29 class TGSelectedPicture;
30 class TGTextButton;
31 class TGListView;
32 class TGLVContainer;
33 class TGHeaderFrame;
34 
35 
36 class TGLVEntry : public TGFrame {
37 
38 private:
39  TGLVEntry(const TGLVEntry&) = delete;
40  TGLVEntry& operator=(const TGLVEntry&) = delete;
41 
42 protected:
43  TGString *fItemName; ///< name of item
44  TGString **fSubnames; ///< sub names of item (details)
45  Int_t *fCpos; ///< position of sub names
46  Int_t *fJmode; ///< alignment for sub names
47  Int_t *fCtw; ///< width of sub names
48  UInt_t fTWidth; ///< width of name
49  UInt_t fTHeight; ///< height of name
50  Bool_t fActive; ///< true if item is active
51  Bool_t fChecked; ///< true if item is checked
52  EListViewMode fViewMode; ///< list view viewing mode
53  const TGPicture *fBigPic; ///< big icon
54  const TGPicture *fSmallPic; ///< small icon
55  const TGPicture *fCurrent; ///< current icon
56  const TGPicture *fCheckMark; ///< checkmark
57  TGSelectedPicture *fSelPic; ///< selected icon
58  GContext_t fNormGC; ///< drawing graphics context
59  FontStruct_t fFontStruct; ///< text font
60  void *fUserData; ///< pointer to user data structure
61 
62  static const TGFont *fgDefaultFont;
63  static TGGC *fgDefaultGC;
64 
65  virtual void DoRedraw();
66 
68  static const TGGC &GetDefaultGC();
69 
70 public:
71  TGLVEntry(const TGWindow *p = nullptr,
72  const TGPicture *bigpic = nullptr, const TGPicture *smallpic = nullptr,
73  TGString *name = nullptr, TGString **subnames = nullptr,
74  EListViewMode ViewMode = kLVDetails,
75  UInt_t options = kChildFrame,
76  Pixel_t back = GetWhitePixel());
77 
78  TGLVEntry(const TGLVContainer *p,
79  const TString& name, const TString& cname, TGString **subnames = nullptr,
80  UInt_t options = kChildFrame, Pixel_t back = GetWhitePixel());
81 
82  virtual ~TGLVEntry();
83 
84  virtual void SetViewMode(EListViewMode viewMode);
85 
86  virtual void Activate(Bool_t a);
87  Bool_t IsActive() const { return fActive; }
88  TGString *GetItemName() const { return fItemName; }
89  virtual const char *GetTitle() const { return fItemName->GetString(); }
90  virtual void SetTitle(const char *text) { *fItemName = text; }
91  void SetItemName(const char *name) { *fItemName = name; }
92  const TGPicture *GetPicture() const { return fCurrent; }
93  EListViewMode GetViewMode() const { return fViewMode; }
94  void SetUserData(void *userData) { fUserData = userData; }
95  void *GetUserData() const { return fUserData; }
96  virtual TGString **GetSubnames() const { return fSubnames; }
97  virtual TGString *GetSubname(Int_t idx) const { if (fSubnames) return fSubnames[idx]; else return 0; }
98  virtual void SetSubnames(const char* n1="",const char* n2="",const char* n3="",
99  const char* n4="",const char* n5="",const char* n6="",
100  const char* n7="",const char* n8="",const char* n9="",
101  const char* n10="",const char* n11="",const char* n12="");
102  virtual void SetPictures(const TGPicture *bigpic = 0, const TGPicture *smallpic = 0);
103  virtual void SetColumns(Int_t *cpos, Int_t *jmode) { fCpos = cpos; fJmode = jmode; }
104  virtual void SetCheckedEntry(Bool_t check = kTRUE) { fChecked = check; }
105 
106  virtual TGDimension GetDefaultSize() const;
107  virtual Int_t GetSubnameWidth(Int_t idx) const { return fCtw[idx]; }
108 
109  virtual void DrawCopy(Handle_t id, Int_t x, Int_t y);
110 
111  ClassDef(TGLVEntry,0) // Item that goes into a TGListView container
112 };
113 
114 
115 class TGListView : public TGCanvas {
116 
117 private:
118  TGListView(const TGListView&) = delete;
119  TGListView& operator=(const TGListView&) = delete;
120 
121 protected:
122  Int_t fNColumns; ///< number of columns
123  Int_t *fColumns; ///< column width
124  Int_t *fJmode; ///< column text alignment
125  EListViewMode fViewMode; ///< view mode if list view widget
126  TGDimension fMaxSize; ///< maximum item size
127  TGTextButton **fColHeader; ///< column headers for in detailed mode
128  TString *fColNames; ///< column titles for in detailed mode
129  TGVFileSplitter **fSplitHeader; ///< column splitters
130  GContext_t fNormGC; ///< drawing graphics context
131  FontStruct_t fFontStruct; ///< text font
132  TGHeaderFrame *fHeader; ///< frame used as container for column headers
133  Bool_t fJustChanged; ///< Indicate whether the view mode was just changed to Detail
134  UInt_t fMinColumnSize; ///< Minimun column size
135 
136  static const TGFont *fgDefaultFont;
137  static TGGC *fgDefaultGC;
138 
140  static const TGGC &GetDefaultGC();
141 
142 public:
143  TGListView(const TGWindow *p, UInt_t w, UInt_t h,
144  UInt_t options = kSunkenFrame | kDoubleBorder,
146  virtual ~TGListView();
147 
148  virtual void ResizeColumns();
149  virtual void Layout();
150  virtual void LayoutHeader(TGFrame *head);
151  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
152  virtual void ScrollHeader(Int_t pos);
153  virtual void SetContainer(TGFrame *f);
154  virtual void AdjustHeaders() { fJustChanged = kTRUE; LayoutHeader(0); }
155  virtual void SetHeaders(Int_t ncolumns);
156  virtual void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx);
157  virtual void SetDefaultHeaders();
158  virtual void SetViewMode(EListViewMode viewMode);
161  EListViewMode GetViewMode() const { return fViewMode; }
162  virtual const char *GetHeader(Int_t idx) const;
163  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
164  virtual void SetIncrements(Int_t hInc, Int_t vInc);
166  TGDimension GetMaxItemSize() const { return fMaxSize; }
167 
168  virtual void SelectionChanged() { Emit("SelectionChanged()"); } //*SIGNAL*
169  virtual void Clicked(TGLVEntry *entry, Int_t btn); //*SIGNAL*
170  virtual void Clicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y); //*SIGNAL*
171  virtual void DoubleClicked(TGLVEntry *entry, Int_t btn); //*SIGNAL*
172  virtual void DoubleClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y); //*SIGNAL*
173 
174  ClassDef(TGListView,0) // List view widget (iconbox, small icons or tabular view)
175 };
176 
177 
178 class TGLVContainer : public TGContainer {
179 
180 private:
181  TGLVContainer(const TGLVContainer&) = delete;
183 
184 protected:
185  TGLayoutHints *fItemLayout; ///< item layout hints
186  EListViewMode fViewMode; ///< list view viewing mode
187  Int_t *fCpos; ///< position of sub names
188  Int_t *fJmode; ///< alignment of sub names
189  Bool_t fMultiSelect; ///< true = multiple file selection
190  TGListView *fListView; ///< listview which contains this container
191  TGLVEntry *fLastActive; ///< last active item
192 
193  virtual void ActivateItem(TGFrameElement* el);
194  virtual void DeActivateItem(TGFrameElement* el);
195 
196 public:
197  TGLVContainer(const TGWindow *p, UInt_t w, UInt_t h,
198  UInt_t options = kSunkenFrame,
202 
203  virtual ~TGLVContainer();
204 
205  TGListView *GetListView() const { return fListView; }
206 
207  virtual void AddItem(TGLVEntry *item)
208  { AddFrame(item, fItemLayout); item->SetColumns(fCpos, fJmode); fTotal++; }
209  virtual void SelectEntry(TGLVEntry *item);
210 
211  virtual void SetListView(TGListView *lv) { fListView = lv; }
212  virtual void RemoveItemWithData(void *userData);
213  virtual void SetViewMode(EListViewMode viewMode);
214  EListViewMode GetViewMode() const { return fViewMode; }
215  virtual void SetColumns(Int_t *cpos, Int_t *jmode);
216 
217  virtual TGDimension GetPageDimension() const;
218  virtual TGDimension GetMaxItemSize() const;
219  virtual Int_t GetMaxSubnameWidth(Int_t idx) const;
220  virtual void SetColHeaders(const char* n1="",const char* n2="",const char* n3="",
221  const char* n4="",const char* n5="",const char* n6="",
222  const char* n7="",const char* n8="",const char* n9="",
223  const char* n10="",const char* n11="",const char* n12="");
224  virtual void LineUp(Bool_t select = kFALSE);
225  virtual void LineDown(Bool_t select = kFALSE);
226  virtual void LineLeft(Bool_t select = kFALSE);
227  virtual void LineRight(Bool_t select = kFALSE);
228 
229  virtual Bool_t HandleButton(Event_t* event);
233  void SetMultipleSelection(Bool_t multi = kTRUE) { fMultiSelect = multi; };
234  void SetHeaders(Int_t ncolumns) { fListView->SetHeaders(ncolumns); }
235  void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
236  { fListView->SetHeader(s,hmode,cmode,idx); }
238  const char *GetHeader(Int_t idx) const { return fListView->GetHeader(idx); }
239  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
240 
241  ClassDef(TGLVContainer,0) // Listview container
242 };
243 
244 #endif
TGLVEntry::~TGLVEntry
virtual ~TGLVEntry()
Delete a list view item.
Definition: TGListView.cxx:182
EListViewMode
EListViewMode
Definition: TGListView.h:21
TGLVContainer::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list view container as a C++ statement(s) on output stream out.
Definition: TGListView.cxx:1783
TGListView::GetHeaderButtons
TGTextButton ** GetHeaderButtons()
Definition: TGListView.h:159
TGLVEntry::GetSubnames
virtual TGString ** GetSubnames() const
Definition: TGListView.h:96
TGLVEntry::fTWidth
UInt_t fTWidth
width of name
Definition: TGListView.h:48
TGLVEntry::SetPictures
virtual void SetPictures(const TGPicture *bigpic=0, const TGPicture *smallpic=0)
change pictures
Definition: TGListView.cxx:298
TGLVEntry::fViewMode
EListViewMode fViewMode
list view viewing mode
Definition: TGListView.h:52
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:100
TGLVEntry::fActive
Bool_t fActive
true if item is active
Definition: TGListView.h:50
TGLVEntry::fFontStruct
FontStruct_t fFontStruct
text font
Definition: TGListView.h:59
TGListView::~TGListView
virtual ~TGListView()
Delete a list view widget.
Definition: TGListView.cxx:1200
TGPicture
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
TGLVEntry::GetPicture
const TGPicture * GetPicture() const
Definition: TGListView.h:92
f
#define f(i)
Definition: RSha256.hxx:104
TGLVContainer::GetMultipleSelection
Bool_t GetMultipleSelection() const
Definition: TGListView.h:232
TGDimension
Definition: TGDimension.h:18
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGLVEntry::GetTitle
virtual const char * GetTitle() const
Returns title of object.
Definition: TGListView.h:89
TGListView::fColNames
TString * fColNames
column titles for in detailed mode
Definition: TGListView.h:128
TGListView::fColHeader
TGTextButton ** fColHeader
column headers for in detailed mode
Definition: TGListView.h:127
TGLVEntry::fChecked
Bool_t fChecked
true if item is checked
Definition: TGListView.h:51
TGLVContainer::SelectEntry
virtual void SelectEntry(TGLVEntry *item)
Select the TGLVEntry given as argument and de-select the previous one if the container is not in mult...
Definition: TGListView.cxx:1158
kLVLargeIcons
@ kLVLargeIcons
Definition: TGListView.h:22
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TGLVContainer::GetSelectedItems
TList * GetSelectedItems()
Get list of selected items in container.
Definition: TGListView.cxx:944
TGLVEntry::SetItemName
void SetItemName(const char *name)
Definition: TGListView.h:91
TGLVContainer::fViewMode
EListViewMode fViewMode
list view viewing mode
Definition: TGListView.h:186
TGListView::GetNumColumns
UInt_t GetNumColumns()
Definition: TGListView.h:160
TGLVContainer::~TGLVContainer
virtual ~TGLVContainer()
Delete list view container.
Definition: TGListView.cxx:560
FontStruct_t
Handle_t FontStruct_t
Pointer to font structure.
Definition: GuiTypes.h:39
TGLVContainer::LineUp
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
Definition: TGListView.cxx:1084
TGListView::fMaxSize
TGDimension fMaxSize
maximum item size
Definition: TGListView.h:126
TGListView::fFontStruct
FontStruct_t fFontStruct
text font
Definition: TGListView.h:131
TGListView::GetDefaultFontStruct
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.
Definition: TGListView.cxx:1702
TGVFileSplitter
Definition: TGSplitter.h:126
TGLVEntry::GetDefaultFontStruct
static FontStruct_t GetDefaultFontStruct()
Return the default font structure in use.
Definition: TGListView.cxx:496
TGTextButton
Yield an action as soon as it is clicked.
Definition: TGButton.h:142
TGListView::fJustChanged
Bool_t fJustChanged
Indicate whether the view mode was just changed to Detail.
Definition: TGListView.h:133
TGLVEntry::GetSubnameWidth
virtual Int_t GetSubnameWidth(Int_t idx) const
Definition: TGListView.h:107
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
TGLVContainer::fJmode
Int_t * fJmode
alignment of sub names
Definition: TGListView.h:188
TGLVEntry
Definition: TGListView.h:36
Int_t
int Int_t
Definition: RtypesCore.h:45
TGLVEntry::SetUserData
void SetUserData(void *userData)
Definition: TGListView.h:94
TGLVContainer::LineRight
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
Definition: TGListView.cxx:1027
TGListView::SetHeaders
virtual void SetHeaders(Int_t ncolumns)
Set number of headers, i.e.
Definition: TGListView.cxx:1240
TGListView::ResizeColumns
virtual void ResizeColumns()
Resize column headers to show whole item names.
Definition: TGListView.cxx:1432
TGLVContainer::fCpos
Int_t * fCpos
position of sub names
Definition: TGListView.h:187
TGLVEntry::SetCheckedEntry
virtual void SetCheckedEntry(Bool_t check=kTRUE)
Definition: TGListView.h:104
TGListView::fgDefaultFont
static const TGFont * fgDefaultFont
Definition: TGListView.h:136
event
Definition: triangle.c:552
x
Double_t x[n]
Definition: legend1.C:17
TGLVContainer::GetHeader
const char * GetHeader(Int_t idx) const
Definition: TGListView.h:238
TGSelectedPicture
Definition: TGPicture.h:67
Handle_t
ULongptr_t Handle_t
Generic resource handle.
Definition: GuiTypes.h:26
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
TGListView::ProcessMessage
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle messages generated by the list view components.
Definition: TGListView.cxx:1608
TGLVContainer::SetHeaders
void SetHeaders(Int_t ncolumns)
Definition: TGListView.h:234
TGLVEntry::fBigPic
const TGPicture * fBigPic
big icon
Definition: TGListView.h:53
TGLVEntry::GetUserData
void * GetUserData() const
Definition: TGListView.h:95
TGListView::fJmode
Int_t * fJmode
column text alignment
Definition: TGListView.h:124
TString
Basic string class.
Definition: TString.h:136
TGLVEntry::IsActive
Bool_t IsActive() const
Definition: TGListView.h:87
TGLVContainer::SetListView
virtual void SetListView(TGListView *lv)
Definition: TGListView.h:211
TGFrame
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition: TGFrame.h:80
TGLVContainer::SetColumns
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
Set column information for list items.
Definition: TGListView.cxx:680
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
kDoubleBorder
@ kDoubleBorder
Definition: GuiTypes.h:385
TGListView
A list view is a widget that can contain a number of items arranged in a grid or list.
Definition: TGListView.h:115
text
TText * text
Definition: entrylist_figure1.C:10
TGListView::fgDefaultGC
static TGGC * fgDefaultGC
Definition: TGListView.h:137
TGLVContainer::fLastActive
TGLVEntry * fLastActive
last active item
Definition: TGListView.h:191
TGLVEntry::GetDefaultSize
virtual TGDimension GetDefaultSize() const
Get default size of list item.
Definition: TGListView.cxx:469
TGListView::GetMaxItemSize
TGDimension GetMaxItemSize() const
Definition: TGListView.h:166
bool
TGLVContainer::GetMaxSubnameWidth
virtual Int_t GetMaxSubnameWidth(Int_t idx) const
Get width of largest subname in container.
Definition: TGListView.cxx:720
lv
auto * lv
Definition: textalign.C:5
TGListView::TGListView
TGListView(const TGListView &)=delete
TGLVEntry::DrawCopy
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw list view item in other window.
Definition: TGListView.cxx:330
TGLVEntry::fTHeight
UInt_t fTHeight
height of name
Definition: TGListView.h:49
GContext_t
Handle_t GContext_t
Graphics context handle.
Definition: GuiTypes.h:38
TGLVContainer::SetHeader
void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
Definition: TGListView.h:235
TGLVContainer::GetMaxItemSize
virtual TGDimension GetMaxItemSize() const
Get size of largest item in container.
Definition: TGListView.cxx:696
TGLVEntry::Activate
virtual void Activate(Bool_t a)
Make list view item active.
Definition: TGListView.cxx:260
TGLVContainer::operator=
TGLVContainer & operator=(const TGLVContainer &)=delete
TGListView::fNColumns
Int_t fNColumns
number of columns
Definition: TGListView.h:122
TGListView::SetHeader
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...
Definition: TGListView.cxx:1300
TGLVContainer::GetPageDimension
virtual TGDimension GetPageDimension() const
Returns page dimension.
Definition: TGListView.cxx:1144
TGLVContainer::GetSelectedEntries
TList * GetSelectedEntries()
Get list of selected items in container.
Definition: TGListView.cxx:925
kSunkenFrame
@ kSunkenFrame
Definition: GuiTypes.h:383
TGLVEntry::fSelPic
TGSelectedPicture * fSelPic
selected icon
Definition: TGListView.h:57
h
#define h(i)
Definition: RSha256.hxx:106
TGLVContainer::fMultiSelect
Bool_t fMultiSelect
true = multiple file selection
Definition: TGListView.h:189
TGGC
Encapsulate a graphics context used in the low level graphics.
Definition: TGGC.h:22
kLVDetails
@ kLVDetails
Definition: TGListView.h:25
a
auto * a
Definition: textangle.C:12
TGLVContainer::ActivateItem
virtual void ActivateItem(TGFrameElement *el)
Select/activate item.
Definition: TGListView.cxx:757
TGLVContainer::SetDefaultHeaders
void SetDefaultHeaders()
Definition: TGListView.h:237
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TGListView::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list view widget as a C++ statement(s) on output stream out.
Definition: TGListView.cxx:1724
Long_t
long Long_t
Definition: RtypesCore.h:54
TGLVEntry::operator=
TGLVEntry & operator=(const TGLVEntry &)=delete
kLVSmallIcons
@ kLVSmallIcons
Definition: TGListView.h:23
TGHeaderFrame
Horizontal Frame used to contain header buttons and splitters in a list view.
Definition: TGFrame.h:580
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
TGLVContainer::fItemLayout
TGLayoutHints * fItemLayout
item layout hints
Definition: TGListView.h:185
TGLVEntry::GetSubname
virtual TGString * GetSubname(Int_t idx) const
Definition: TGListView.h:97
TGLVEntry::fSubnames
TGString ** fSubnames
sub names of item (details)
Definition: TGListView.h:44
TGListView::SetContainer
virtual void SetContainer(TGFrame *f)
Set list view container.
Definition: TGListView.cxx:1383
TGListView::LayoutHeader
virtual void LayoutHeader(TGFrame *head)
Layout list view components (container and contents of container).
Definition: TGListView.cxx:1539
TGListView::SetViewMode
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode.
Definition: TGListView.cxx:1366
y
Double_t y[n]
Definition: legend1.C:17
TGLVEntry::fJmode
Int_t * fJmode
alignment for sub names
Definition: TGListView.h:46
TGLVEntry::SetViewMode
virtual void SetViewMode(EListViewMode viewMode)
Set the view mode for this list item.
Definition: TGListView.cxx:277
TGListView::AdjustHeaders
virtual void AdjustHeaders()
Definition: TGListView.h:154
TGListView::operator=
TGListView & operator=(const TGListView &)=delete
TGLVEntry::TGLVEntry
TGLVEntry(const TGLVEntry &)=delete
TGListView::Clicked
virtual void Clicked(TGLVEntry *entry, Int_t btn)
Emit Clicked() signal.
Definition: TGListView.cxx:1646
TGListView::fHeader
TGHeaderFrame * fHeader
frame used as container for column headers
Definition: TGListView.h:132
TGListView::fSplitHeader
TGVFileSplitter ** fSplitHeader
column splitters
Definition: TGListView.h:129
TGLVEntry::SetTitle
virtual void SetTitle(const char *text)
Definition: TGListView.h:90
TGLVContainer::LineLeft
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
Definition: TGListView.cxx:961
TGLVContainer::RemoveItemWithData
virtual void RemoveItemWithData(void *userData)
Remove item with fUserData == userData from container.
Definition: TGListView.cxx:741
TGWidget.h
TGLVContainer::LineDown
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
Definition: TGListView.cxx:1115
unsigned int
TGListView::fViewMode
EListViewMode fViewMode
view mode if list view widget
Definition: TGListView.h:125
TGLVContainer::GetListView
TGListView * GetListView() const
Definition: TGListView.h:205
TGLVEntry::fgDefaultGC
static TGGC * fgDefaultGC
Definition: TGListView.h:63
TGLVContainer::SetMultipleSelection
void SetMultipleSelection(Bool_t multi=kTRUE)
Definition: TGListView.h:233
TGLVEntry::GetItemName
TGString * GetItemName() const
Definition: TGListView.h:88
TGLVEntry::SetColumns
virtual void SetColumns(Int_t *cpos, Int_t *jmode)
Definition: TGListView.h:103
TGLVContainer::DeActivateItem
virtual void DeActivateItem(TGFrameElement *el)
Unselect/deactivate item.
Definition: TGListView.cxx:766
TGListView::SetDefaultHeaders
virtual void SetDefaultHeaders()
Default headers are: Name, Attributes, Size, Owner, Group, Modified.
Definition: TGListView.cxx:1352
TGLVContainer::GetViewMode
EListViewMode GetViewMode() const
Definition: TGListView.h:214
TGListView::Layout
virtual void Layout()
Layout list view components (container and contents of container).
Definition: TGListView.cxx:1448
TGLVContainer::fListView
TGListView * fListView
listview which contains this container
Definition: TGListView.h:190
TGContainer
Manages a content area.
Definition: TGCanvas.h:31
TGLVContainer
Definition: TGListView.h:178
TGLVContainer::SetColHeaders
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
Definition: TGListView.cxx:571
TGListView::SetDefaultColumnWidth
virtual void SetDefaultColumnWidth(TGVFileSplitter *splitter)
Set default column width of the columns headers.
Definition: TGListView.cxx:1405
TGListView::fColumns
Int_t * fColumns
column width
Definition: TGListView.h:123
TGLVContainer::SetViewMode
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode for container.
Definition: TGListView.cxx:614
TGSplitter.h
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGLVEntry::SetSubnames
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.
Definition: TGListView.cxx:200
TGLVEntry::GetViewMode
EListViewMode GetViewMode() const
Definition: TGListView.h:93
Event_t
Event structure.
Definition: GuiTypes.h:174
TGListView::fNormGC
GContext_t fNormGC
drawing graphics context
Definition: TGListView.h:130
TGLVEntry::fCheckMark
const TGPicture * fCheckMark
checkmark
Definition: TGListView.h:56
TGLVContainer::TGLVContainer
TGLVContainer(const TGLVContainer &)=delete
name
char name[80]
Definition: TGX11.cxx:110
TGLVEntry::fUserData
void * fUserData
pointer to user data structure
Definition: TGListView.h:60
TGCanvas.h
TGFrame::GetWhitePixel
static Pixel_t GetWhitePixel()
Get white pixel value.
Definition: TGFrame.cxx:709
TGListView::GetHeader
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
Definition: TGListView.cxx:1341
TGFrameElement
Definition: TGLayout.h:105
TGString::GetString
const char * GetString() const
Definition: TGString.h:30
TGListView::GetDefaultGC
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
Definition: TGListView.cxx:1712
TGLVEntry::fCtw
Int_t * fCtw
width of sub names
Definition: TGListView.h:47
TGLVContainer::HandleButton
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
Definition: TGListView.cxx:775
TGListView::GetViewMode
EListViewMode GetViewMode() const
Definition: TGListView.h:161
TGListView::DoubleClicked
virtual void DoubleClicked(TGLVEntry *entry, Int_t btn)
Emit DoubleClicked() signal.
Definition: TGListView.cxx:1674
TGLVEntry::fCurrent
const TGPicture * fCurrent
current icon
Definition: TGListView.h:55
TGFont
Encapsulate fonts used in the GUI system.
Definition: TGFont.h:140
TGListView::SelectionChanged
virtual void SelectionChanged()
Definition: TGListView.h:168
kLVList
@ kLVList
Definition: TGListView.h:24
TGCanvas
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition: TGCanvas.h:192
TGContainer::fTotal
Int_t fTotal
total items
Definition: TGCanvas.h:48
TGListView::SetIncrements
virtual void SetIncrements(Int_t hInc, Int_t vInc)
Set horizontal and vertical scrollbar increments.
Definition: TGListView.cxx:1396
TGListView::ScrollHeader
virtual void ScrollHeader(Int_t pos)
Scroll header buttons with horizontal scrollbar.
Definition: TGListView.cxx:1219
TGLVEntry::fItemName
TGString * fItemName
name of item
Definition: TGListView.h:43
splitter
REAL splitter
Definition: triangle.c:616
TGCompositeFrame::AddFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1117
TGLVContainer::AddItem
virtual void AddItem(TGLVEntry *item)
Definition: TGListView.h:207
TGString
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
Definition: TGString.h:20
TGLVEntry::fNormGC
GContext_t fNormGC
drawing graphics context
Definition: TGListView.h:58
TGLVEntry::fgDefaultFont
static const TGFont * fgDefaultFont
Definition: TGListView.h:62
TGListView::fMinColumnSize
UInt_t fMinColumnSize
Minimun column size.
Definition: TGListView.h:134
TGLVEntry::DoRedraw
virtual void DoRedraw()
Redraw list view item.
Definition: TGListView.cxx:320
TList
A doubly linked list.
Definition: TList.h:44
TQObject::Emit
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition: TQObject.h:164
TGLVEntry::GetDefaultGC
static const TGGC & GetDefaultGC()
Return the default graphics context in use.
Definition: TGListView.cxx:506
TGLVEntry::fCpos
Int_t * fCpos
position of sub names
Definition: TGListView.h:45
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int
TGLVEntry::fSmallPic
const TGPicture * fSmallPic
small icon
Definition: TGListView.h:54