KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVLVContainer Class Reference

Detailed Description

Extension of TGLVContainer for KVListView widget.

Definition at line 119 of file KVLVContainer.h.

#include <KVLVContainer.h>

Inheritance diagram for KVLVContainer:

Public Member Functions

 KVLVContainer (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
 
 KVLVContainer (TGCanvas *p, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
 
virtual ~KVLVContainer ()
 Destructor.
 
void ActivateItemsWithColumnData (const Char_t *colname, KVNumberList data, Bool_t activate=kTRUE)
 
void ActivateItemWithColumnData (const Char_t *colname, const Char_t *data, Bool_t activate=kTRUE)
 
void ActivateItemWithColumnData (const Char_t *colname, Double_t data, Bool_t activate=kTRUE)
 
void ActivateItemWithColumnData (const Char_t *colname, Long_t data, Bool_t activate=kTRUE)
 
void ActivateItemWithData (void *userData, Bool_t activate=kTRUE)
 
void AddContextMenuClassException (TClass *)
 
void AddDataColumn (const char *columnName)
 
void AddFrame (TGFrame *f, TGLayoutHints *l=0)
 Add an item to the list.
 
void AllowBrowse (Bool_t on=kTRUE)
 
void AllowContextMenu (Bool_t on=kTRUE)
 
void AllowDoubleClick (Bool_t on=kTRUE)
 
virtual void Display (const TCollection *=0)
 
void DoDoubleClick (TGFrame *, Int_t, Int_t, Int_t)
 
void DoubleClickAction (TObject *)
 
TGLVEntryFindItemWithColumnData (const Char_t *colname, const Char_t *data)
 
TGLVEntryFindItemWithColumnData (const Char_t *colname, Double_t data)
 
TGLVEntryFindItemWithColumnData (const Char_t *colname, Long_t data)
 
TGLVEntryFindItemWithData (void *userData)
 Find item with fUserData == userData in container.
 
virtual KVLVColumnDataGetDataColumn (Int_t index) const
 
TObjectGetFirstInList ()
 Returns first object in currently displayed list.
 
TObjectGetLastInList ()
 Returns last object in currently displayed list.
 
TGLVEntryGetLastSelectedItem () const
 
TObjectGetLastSelectedObject () const
 
KVListGetPickOrderedSelectedObjects () const
 
TListGetSelectedItems ()
 
TListGetSelectedObjects ()
 
TCollectionGetUserItems ()
 
Bool_t HandleButton (Event_t *event)
 Override TGContainer method in order to set fControlClick flag.
 
Bool_t IsBeingSorted () const
 
void OpenContextMenu (TGFrame *, Int_t, Int_t, Int_t)
 
virtual void Refresh ()
 
virtual void RemoveAll ()
 
virtual void SelectAll ()
 void SetNewColumnName(const char* columnName);
 
virtual void SetDataColumn (Int_t index, TClass *cl, const Char_t *name, const Char_t *method="")
 
virtual void SetDataColumns (Int_t ncols)
 
void SetDoubleClickAction (const char *receiver_class, void *receiver, const char *slot)
 
void SetObjClass (TClass *cN)
 
void SetUseObjLabelAsRealClass (Bool_t on=kTRUE)
 
void Sort (int column)
 Sort objects in container according to contents of given column.
 
- Public Member Functions inherited from TGLVContainer
 TGLVContainer (const TGWindow *p, UInt_t w, UInt_t h, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
 
 TGLVContainer (TGCanvas *p, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
 
 ~TGLVContainer () override
 
virtual void AddItem (TGLVEntry *item)
 
const char * GetHeader (Int_t idx) const
 
TGListViewGetListView () const
 
virtual TGDimension GetMaxItemSize () const
 
virtual Int_t GetMaxSubnameWidth (Int_t idx) const
 
Bool_t GetMultipleSelection () const
 
TGDimension GetPageDimension () const override
 
TListGetSelectedEntries ()
 
TListGetSelectedItems ()
 
EListViewMode GetViewMode () const
 
Bool_t HandleButton (Event_t *event) override
 
TClassIsA () const override
 
void LineDown (Bool_t select=kFALSE) override
 
void LineLeft (Bool_t select=kFALSE) override
 
void LineRight (Bool_t select=kFALSE) override
 
void LineUp (Bool_t select=kFALSE) override
 
virtual void RemoveItemWithData (void *userData)
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 
virtual void SelectEntry (TGLVEntry *item)
 
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="")
 
virtual void SetColumns (Int_t *cpos, Int_t *jmode)
 
void SetDefaultHeaders ()
 
void SetHeader (const char *s, Int_t hmode, Int_t cmode, Int_t idx)
 
void SetHeaders (Int_t ncolumns)
 
virtual void SetListView (TGListView *lv)
 
void SetMultipleSelection (Bool_t multi=kTRUE)
 
virtual void SetViewMode (EListViewMode viewMode)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGContainer
 TGContainer (const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
 
 TGContainer (TGCanvas *p, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
 
 ~TGContainer () override
 
virtual void AdjustPosition ()
 
virtual void Associate (const TGWindow *w)
 
virtual void ClearViewPort ()
 
virtual void Clicked (TGFrame *f, Int_t btn)
 
virtual void Clicked (TGFrame *f, Int_t btn, Int_t x, Int_t y)
 
virtual void CurrentChanged (Int_t x, Int_t y)
 
virtual void CurrentChanged (TGFrame *f)
 
virtual void DoubleClicked (TGFrame *f, Int_t btn)
 
virtual void DoubleClicked (TGFrame *f, Int_t btn, Int_t x, Int_t y)
 
virtual void DrawRegion (Int_t x, Int_t y, UInt_t w, UInt_t h)
 
virtual void End (Bool_t select=kFALSE)
 
virtual TGFrameElementFindFrame (Int_t x, Int_t y, Bool_t exclude=kTRUE)
 
virtual TGFrameFindFrameByName (const char *name)
 
virtual voidFindItem (const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
 
TGCanvasGetCanvas () const
 
virtual TGHScrollBarGetHScrollbar () const
 
virtual TGFrameGetLastActive () const
 
const TGWindowGetMessageWindow () const
 
virtual const TGFrameGetNextSelected (void **current)
 
const TGPictureGetObjPicture (TGFrame *f)
 
virtual TGPosition GetPagePosition () const
 
virtual TGVScrollBarGetVScrollbar () const
 
Bool_t HandleDNDFinished () override
 
Bool_t HandleDoubleClick (Event_t *event) override
 
Bool_t HandleExpose (Event_t *event) override
 
Bool_t HandleKey (Event_t *event) override
 
Bool_t HandleMotion (Event_t *event) override
 
virtual void Home (Bool_t select=kFALSE)
 
virtual void InvertSelection ()
 
virtual void KeyPressed (TGFrame *, UInt_t keysym, UInt_t mask)
 
void Layout () override
 
virtual Int_t NumItems () const
 
virtual Int_t NumSelected () const
 
virtual void OnMouseOver (TGFrame *)
 
virtual void PageDown (Bool_t select=kFALSE)
 
virtual void PageUp (Bool_t select=kFALSE)
 
void RemoveAll () override
 
virtual void RemoveItem (TGFrame *item)
 
virtual void ReturnPressed (TGFrame *)
 
virtual void Search (Bool_t close=kTRUE)
 
virtual void SetDragPixmap (const TGPicture *pic)
 
virtual void SetHsbPosition (Int_t newPos)
 
virtual void SetPageDimension (const TGDimension &dim)
 
virtual void SetPageDimension (UInt_t w, UInt_t h)
 
virtual void SetPagePosition (const TGPosition &pos)
 
virtual void SetPagePosition (Int_t x, Int_t y)
 
virtual void SetVsbPosition (Int_t newPos)
 
virtual void SpacePressed (TGFrame *)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void UnSelectAll ()
 
- Public Member Functions inherited from TGCompositeFrame
 TGCompositeFrame (const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
 
 TGCompositeFrame (TGClient *c, Window_t id, const TGWindow *parent=nullptr)
 
 ~TGCompositeFrame () override
 
void ChangeOptions (UInt_t options) override
 
virtual void ChangeSubframesBackground (Pixel_t back)
 
virtual void Cleanup ()
 
virtual TGFrameElementFindFrameElement (TGFrame *f) const
 
UInt_t GetDefaultHeight () const override
 
TGDimension GetDefaultSize () const override
 
UInt_t GetDefaultWidth () const override
 
TGFrameGetFrameFromPoint (Int_t x, Int_t y) override
 
virtual TGLayoutManagerGetLayoutManager () const
 
virtual TListGetList () const
 
Int_t GetState (TGFrame *f) const
 
Bool_t HandleCrossing (Event_t *) override
 
Bool_t HandleDragDrop (TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo) override
 
Bool_t HandleDragEnter (TGFrame *) override
 
Bool_t HandleDragLeave (TGFrame *) override
 
Bool_t HandleDragMotion (TGFrame *) override
 
Bool_t HandleFocusChange (Event_t *) override
 
Bool_t HandleSelection (Event_t *) override
 
virtual void HideFrame (TGFrame *f)
 
Bool_t IsArranged (TGFrame *f) const
 
Bool_t IsArranged (TGFrameElement *ptr) const
 
Bool_t IsComposite () const override
 
Bool_t IsEditable () const override
 
Bool_t IsLayoutBroken () const override
 
Bool_t IsMapSubwindows () const override
 
Bool_t IsVisible (TGFrame *f) const
 
Bool_t IsVisible (TGFrameElement *ptr) const
 
void MapSubwindows () override
 
Int_t MustCleanup () const override
 
void Print (Option_t *option="") const override
 
Bool_t ProcessMessage (Longptr_t, Longptr_t, Longptr_t) override
 
virtual void RemoveFrame (TGFrame *f)
 
virtual void SavePrimitiveSubframes (std::ostream &out, Option_t *option="")
 
void SetCleanup (Int_t mode=kLocalCleanup) override
 
void SetEditable (Bool_t on=kTRUE) override
 
void SetEditDisabled (UInt_t on=1) override
 
void SetLayoutBroken (Bool_t on=kTRUE) override
 
virtual void SetLayoutManager (TGLayoutManager *l)
 
void SetMapSubwindows (Bool_t on) override
 
virtual void ShowFrame (TGFrame *f)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual Bool_t TranslateCoordinates (TGFrame *child, Int_t x, Int_t y, Int_t &fx, Int_t &fy)
 
- Public Member Functions inherited from TGFrame
 TGFrame (const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
 
 TGFrame (TGClient *c, Window_t id, const TGWindow *parent=nullptr)
 
 ~TGFrame () override
 
virtual void Activate (Bool_t)
 
void AddInput (UInt_t emask)
 
virtual void ChangeBackground (Pixel_t back)
 
Bool_t Contains (Int_t x, Int_t y) const
 
void Delete (Option_t *="") override
 
virtual void DeleteWindow ()
 
virtual void DrawBorder ()
 
void DrawClass () const override
 
TObjectDrawClone (Option_t *="") const override
 
virtual void DrawCopy (Handle_t, Int_t, Int_t)
 
void Dump () const override
 
virtual Pixel_t GetBackground () const
 
Int_t GetBorderWidth () const
 
virtual TDNDDataGetDNDData (Atom_t)
 
virtual Int_t GetDragType () const
 
virtual Int_t GetDropType () const
 
UInt_t GetEventMask () const
 
virtual Pixel_t GetForeground () const
 
TGFrameElementGetFrameElement () const
 
UInt_t GetHeight () const
 
UInt_t GetMaxHeight () const
 
UInt_t GetMaxWidth () const
 
UInt_t GetMinHeight () const
 
UInt_t GetMinWidth () const
 
virtual UInt_t GetOptions () const
 
TGDimension GetSize () const
 
UInt_t GetWidth () const
 
Int_t GetX () const
 
Int_t GetY () const
 
virtual Bool_t HandleClientMessage (Event_t *event)
 
virtual Bool_t HandleColormapChange (Event_t *)
 
virtual Bool_t HandleConfigureNotify (Event_t *event)
 
virtual Bool_t HandleDNDDrop (TDNDData *)
 
virtual Atom_t HandleDNDEnter (Atom_t *)
 
virtual Bool_t HandleDNDLeave ()
 
virtual Atom_t HandleDNDPosition (Int_t, Int_t, Atom_t, Int_t, Int_t)
 
Bool_t HandleEvent (Event_t *event) override
 
virtual Bool_t HandleSelectionClear (Event_t *)
 
virtual Bool_t HandleSelectionRequest (Event_t *)
 
void Inspect () const override
 
virtual Bool_t IsActive () const
 
Bool_t IsDNDSource () const
 
Bool_t IsDNDTarget () const
 
Bool_t IsEditable () const override
 
void MapRaised () override
 
void MapSubwindows () override
 
void MapWindow () override
 
void Move (Int_t x, Int_t y) override
 
void MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
 
void Print (Option_t *option="") const override
 
virtual void ProcessedConfigure (Event_t *event)
 
virtual void ProcessedEvent (Event_t *event)
 
virtual void ReallyDelete ()
 
void RemoveInput (UInt_t emask)
 
void ReparentWindow (const TGWindow *p, Int_t x=0, Int_t y=0) override
 
virtual void Resize (TGDimension size)
 
void Resize (UInt_t w=0, UInt_t h=0) override
 
void SaveUserColor (std::ostream &out, Option_t *)
 
virtual void SendMessage (const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
 
void SetBackgroundColor (Pixel_t back) override
 
void SetDNDSource (Bool_t onoff)
 
void SetDNDTarget (Bool_t onoff)
 
virtual void SetDragType (Int_t type)
 
void SetDrawOption (Option_t *="") override
 
virtual void SetDropType (Int_t type)
 
void SetEditable (Bool_t) override
 
virtual void SetForegroundColor (Pixel_t)
 
void SetFrameElement (TGFrameElement *fe)
 
virtual void SetHeight (UInt_t h)
 
virtual void SetMaxHeight (UInt_t h)
 
virtual void SetMaxWidth (UInt_t w)
 
virtual void SetMinHeight (UInt_t h)
 
virtual void SetMinWidth (UInt_t w)
 
virtual void SetSize (const TGDimension &s)
 
virtual void SetWidth (UInt_t w)
 
virtual void SetX (Int_t x)
 
virtual void SetY (Int_t y)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UnmapWindow () override
 
- Public Member Functions inherited from TGWindow
 TGWindow (const TGWindow *p=nullptr, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0, UInt_t border=0, Int_t depth=0, UInt_t clss=0, void *visual=nullptr, SetWindowAttributes_t *attr=nullptr, UInt_t wtype=0)
 
 TGWindow (TGClient *c, Window_t id, const TGWindow *parent=nullptr)
 
 ~TGWindow () override
 
virtual void DestroySubwindows ()
 
virtual void DestroyWindow ()
 
virtual UInt_t GetEditDisabled () const
 
virtual const TGWindowGetMainFrame () const
 
const char * GetName () const override
 
const TGWindowGetParent () const
 
virtual Bool_t HandleIdleEvent (TGIdleHandler *)
 
Bool_t HandleTimer (TTimer *) override
 
virtual void IconifyWindow ()
 
TClassIsA () const override
 
virtual Bool_t IsMapped ()
 
virtual void LowerWindow ()
 
void Print (Option_t *option="") const override
 
virtual void RaiseWindow ()
 
virtual void RequestFocus ()
 
virtual void SetBackgroundPixmap (Pixmap_t pixmap)
 
virtual void SetName (const char *name)
 
virtual void SetWindowName (const char *name=nullptr)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGObject
 TGObject ()
 
 TGObject (const TGObject &tgo)
 
 ~TGObject () override
 
TGClientGetClient () const
 
Handle_t GetId () const
 
ULong_t Hash () const override
 
Bool_t IsEqual (const TObject *obj) const override
 
void SaveAs (const char *filename="", Option_t *option="") const override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
virtual void Browse (TBrowser *b)
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void Copy (TObject &object) const
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 
virtual UInt_t GetUniqueID () const
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 
- Public Member Functions inherited from TQObject
 TQObject ()
 
virtual ~TQObject ()
 
Bool_t AreSignalsBlocked () const
 
Bool_t BlockSignals (Bool_t b)
 
virtual void ChangedBy (const char *method)
 
void CollectClassSignalLists (TList &list, TClass *cls)
 
Bool_t Connect (const char *signal, const char *receiver_class, void *receiver, const char *slot)
 
virtual void Connected (const char *)
 
virtual void Destroyed ()
 
Bool_t Disconnect (const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 
virtual void Disconnected (const char *)
 
void Emit (const char *signal)
 
void Emit (const char *signal, const T &arg)
 
void EmitVA (const char *signal_name, Int_t, const T &... params)
 
TListGetListOfClassSignals () const
 
TListGetListOfConnections () const
 
TListGetListOfSignals () const
 
virtual Bool_t HasConnection (const char *signal_name) const
 
virtual void HighPriority (const char *signal_name, const char *slot_name=nullptr)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=nullptr)
 
virtual void Message (const char *msg)
 
virtual Int_t NumberOfConnections () const
 
virtual Int_t NumberOfSignals () const
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Private Member Functions

virtual void ActivateItemFromSelectAll (TGFrameElement *el)
 Activate item.
 
void default_init ()
 
void DeleteColData ()
 
virtual void FillList (const TCollection *=0)
 

Private Attributes

Bool_t fAllowContextMenu
 can objects' context menu be opened with right-click ?
 
Bool_t fAllowDoubleClick
 do something when object double-clicked ?
 
KVLVColumnData ** fColData
 description of column data
 
TContextMenufContextMenu
 used to display popup context menu for items
 
TListfContextMenuClassExceptions
 list of classes for which we override value of fAllowContextMenu
 
Bool_t fControlClick
 set to kTRUE when user ctrl-clicks an item
 
Bool_t fIsResized
 used to resize columns exactly once
 
Bool_t fKeepUserItems
 internal use only, do not clear list of user items in RemoveAll()
 
Int_t fNcols
 number of data columns
 
TClassfObjClass
 
KVListfPickOrderedObjects
 list of currently selected objects, in order of selection
 
Bool_t fSort
 
KVLVColumnDatafSortData
 name of column (i.e. type of data) currently used to sort objects
 
Int_tfSortDir
 direction of sorting for each column
 
Int_t fSortType
 current sorting mode of contents (ascending or descending)
 
Bool_t fUseObjLabelAsRealClass
 if kTRUE, object's classname read from KVBase::GetLabel() (objects must be KVBase-derived!)
 
Bool_t fUserDoubleClickAction
 user-defined double-click action instead of Browse() method
 
KVListfUserItems
 list of currently displayed items, used by Refresh()
 

Friends

class KVLVEntry
 
class KVLVFrameElement
 

Additional Inherited Members

- Public Types inherited from TGWindow
enum  EEditMode
 
enum  EStatusBits
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TGLVContainer
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGContainer
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGCompositeFrame
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGFrame
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static const TGGCGetBckgndGC ()
 
static const TGGCGetBlackGC ()
 
static Pixel_t GetBlackPixel ()
 
static Pixel_t GetDefaultFrameBackground ()
 
static Pixel_t GetDefaultSelectedBackground ()
 
static const TGGCGetHilightGC ()
 
static const TGGCGetShadowGC ()
 
static const TGGCGetWhiteGC ()
 
static Pixel_t GetWhitePixel ()
 
- Static Public Member Functions inherited from TGWindow
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Int_t GetCounter ()
 
- Static Public Member Functions inherited from TGObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Static Public Member Functions inherited from TQObject
static Bool_t AreAllSignalsBlocked ()
 
static Bool_t BlockAllSignals (Bool_t b)
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static Bool_t Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 
static const char * DeclFileName ()
 
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=nullptr, const char *slot=nullptr)
 
static Bool_t Disconnect (TQObject *sender, const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 
- Public Attributes inherited from TGWindow
 kEditDisable
 
 kEditDisableBtnEnable
 
 kEditDisableEvents
 
 kEditDisableGrab
 
 kEditDisableHeight
 
 kEditDisableKeyEnable
 
 kEditDisableLayout
 
 kEditDisableResize
 
 kEditDisableWidth
 
 kEditEnable
 
 kIsHtmlView
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TGLVContainer
void ActivateItem (TGFrameElement *el) override
 
void DeActivateItem (TGFrameElement *el) override
 
- Protected Member Functions inherited from TGContainer
void DoRedraw () override
 
virtual void OnAutoScroll ()
 
virtual void RepeatSearch ()
 
virtual void SearchPattern ()
 
- Protected Member Functions inherited from TGFrame
void DoRedraw () override
 
virtual void Draw3dRectangle (UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
 
TString GetOptionString () const
 
const TGResourcePoolGetResourcePool () const
 
voidGetSender () override
 
virtual void StartGuiBuilding (Bool_t on=kTRUE)
 
- Protected Member Functions inherited from TGWindow
 TGWindow (const TGWindow &tgw)
 
 TGWindow (Window_t id)
 
TGWindowoperator= (const TGWindow &tgw)
 
- Protected Member Functions inherited from TGObject
TGObjectoperator= (const TGObject &tgo)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Protected Member Functions inherited from TQObject
virtual const char * GetSenderClassName () const
 
- Static Protected Member Functions inherited from TGContainer
static const TGGCGetLineGC ()
 
- Static Protected Member Functions inherited from TGFrame
static Time_t GetLastClick ()
 
- Static Protected Member Functions inherited from TQObject
static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 
static TString CompressName (const char *method_name)
 
static Bool_t ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 
- Protected Attributes inherited from TGLVContainer
Int_tfCpos
 
TGLayoutHintsfItemLayout
 
Int_tfJmode
 
TGLVEntryfLastActive
 
TGListViewfListView
 
Bool_t fMultiSelect
 
EListViewMode fViewMode
 
- Protected Attributes inherited from TGContainer
Bool_t fBdown
 
TGCanvasfCanvas
 
Bool_t fDragging
 
TGRectangle fExposedRegion
 
TString fKeyInput
 
TTimerfKeyTimer
 
Bool_t fKeyTimerActive
 
TGFrameElementfLastActiveEl
 
Bool_t fLastCase
 
Bool_t fLastDir
 
TString fLastName
 
Bool_t fLastSubstring
 
const TGWindowfMsgWindow
 
Bool_t fOnMouseOver
 
Bool_t fScrolling
 
TTimerfScrollTimer
 
Int_t fSelected
 
Int_t fTotal
 
TGViewPortfViewPort
 
Int_t fX0
 
Int_t fXDND
 
Int_t fXf
 
Int_t fXp
 
Int_t fY0
 
Int_t fYDND
 
Int_t fYf
 
Int_t fYp
 
- Protected Attributes inherited from TGCompositeFrame
Bool_t fLayoutBroken
 
TGLayoutManagerfLayoutManager
 
TListfList
 
Bool_t fMapSubwindows
 
Int_t fMustCleanup
 
- Protected Attributes inherited from TGFrame
Pixel_t fBackground
 
Int_t fBorderWidth
 
Int_t fDNDState
 
UInt_t fEventMask
 
TGFrameElementfFE
 
UInt_t fHeight
 
UInt_t fMaxHeight
 
UInt_t fMaxWidth
 
UInt_t fMinHeight
 
UInt_t fMinWidth
 
UInt_t fOptions
 
UInt_t fWidth
 
Int_t fX
 
Int_t fY
 
 kDeleteWindowCalled
 
- Protected Attributes inherited from TGWindow
UInt_t fEditDisabled
 
TString fName
 
Bool_t fNeedRedraw
 
const TGWindowfParent
 
- Protected Attributes inherited from TGObject
TGClientfClient
 
Handle_t fId
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from TQObject
TListfListOfConnections
 
TListfListOfSignals
 
Bool_t fSignalsBlocked
 
- Static Protected Attributes inherited from TGContainer
static TGGCfgLineGC
 
- Static Protected Attributes inherited from TGCompositeFrame
static TGLayoutHintsfgDefaultHints
 
- Static Protected Attributes inherited from TGFrame
static const TGGCfgBckgndGC
 
static const TGGCfgBlackGC
 
static Pixel_t fgBlackPixel
 
static Window_t fgDbw
 
static Int_t fgDbx
 
static Int_t fgDby
 
static Pixel_t fgDefaultFrameBackground
 
static Pixel_t fgDefaultSelectedBackground
 
static const TGGCfgHilightGC
 
static Bool_t fgInit
 
static UInt_t fgLastButton
 
static Time_t fgLastClick
 
static const TGGCfgShadowGC
 
static UInt_t fgUserColor
 
static const TGGCfgWhiteGC
 
static Pixel_t fgWhitePixel
 
- Static Protected Attributes inherited from TGWindow
static Int_t fgCounter
 
- Static Protected Attributes inherited from TQObject
static Bool_t fgAllSignalsBlocked
 

Constructor & Destructor Documentation

◆ KVLVContainer() [1/2]

KVLVContainer::KVLVContainer ( const TGWindow p = 0,
UInt_t  w = 1,
UInt_t  h = 1,
UInt_t  options = kSunkenFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

Definition at line 306 of file KVLVContainer.cpp.

◆ KVLVContainer() [2/2]

KVLVContainer::KVLVContainer ( TGCanvas p,
UInt_t  options = kSunkenFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

Definition at line 316 of file KVLVContainer.cpp.

◆ ~KVLVContainer()

KVLVContainer::~KVLVContainer ( )
virtual

Destructor.

Definition at line 375 of file KVLVContainer.cpp.

Member Function Documentation

◆ ActivateItemFromSelectAll()

void KVLVContainer::ActivateItemFromSelectAll ( TGFrameElement el)
privatevirtual

Activate item.

Definition at line 1130 of file KVLVContainer.cpp.

◆ ActivateItemsWithColumnData()

void KVLVContainer::ActivateItemsWithColumnData ( const Char_t colname,
KVNumberList  data,
Bool_t  activate = kTRUE 
)

Definition at line 752 of file KVLVContainer.cpp.

◆ ActivateItemWithColumnData() [1/3]

void KVLVContainer::ActivateItemWithColumnData ( const Char_t colname,
const Char_t data,
Bool_t  activate = kTRUE 
)

Definition at line 704 of file KVLVContainer.cpp.

◆ ActivateItemWithColumnData() [2/3]

void KVLVContainer::ActivateItemWithColumnData ( const Char_t colname,
Double_t  data,
Bool_t  activate = kTRUE 
)

Definition at line 783 of file KVLVContainer.cpp.

◆ ActivateItemWithColumnData() [3/3]

void KVLVContainer::ActivateItemWithColumnData ( const Char_t colname,
Long_t  data,
Bool_t  activate = kTRUE 
)

Definition at line 728 of file KVLVContainer.cpp.

◆ ActivateItemWithData()

void KVLVContainer::ActivateItemWithData ( void userData,
Bool_t  activate = kTRUE 
)

Find item with fUserData == userData in container and make it active (inactive if activate=kFALSE).

Definition at line 621 of file KVLVContainer.cpp.

◆ AddContextMenuClassException()

void KVLVContainer::AddContextMenuClassException ( TClass cl)

The global context menu status (allowed or not allowed) is set by AllowContextMenu(). If required, this can be overridden for specific classes by calling this method for each required class. In this case, any objects in the list of precisely this class (not derived classes) will have the opposite behaviour to that defined by AllowContextMenu(), i.e. if context menus are globally disabled, this method defines the classes for which a context menu is authorised, and vice-versa.

Definition at line 1003 of file KVLVContainer.cpp.

◆ AddDataColumn()

void KVLVContainer::AddDataColumn ( const char *  columnName)

Definition at line 1084 of file KVLVContainer.cpp.

◆ AddFrame()

void KVLVContainer::AddFrame ( TGFrame f,
TGLayoutHints l = 0 
)
virtual

Add an item to the list.

Reimplemented from TGCompositeFrame.

Definition at line 435 of file KVLVContainer.cpp.

◆ AllowBrowse()

void KVLVContainer::AllowBrowse ( Bool_t  on = kTRUE)
inline

Deprecated: use AllowDoubleClick

Definition at line 222 of file KVLVContainer.h.

◆ AllowContextMenu()

void KVLVContainer::AllowContextMenu ( Bool_t  on = kTRUE)
inline

Call with on=kFALSE to disable objects' context menus opening with mouse right-click

Definition at line 216 of file KVLVContainer.h.

◆ AllowDoubleClick()

void KVLVContainer::AllowDoubleClick ( Bool_t  on = kTRUE)
inline

Call with on=kFALSE to disable reactivity of objects to mouse double-click

Definition at line 227 of file KVLVContainer.h.

◆ default_init()

void KVLVContainer::default_init ( )
private

Default initialisation of list view container Multiple selection is enabled The parent list view widget handles messages generated by container. By default, we allow objects' context menu to be opened with right-click, and objects' Browse() method to be executed by double-clicking. This can be modified using AllowContextMenu(kFALSE) and AllowDoubleClick(kFALSE).

Definition at line 332 of file KVLVContainer.cpp.

◆ DeleteColData()

void KVLVContainer::DeleteColData ( )
private

Definition at line 394 of file KVLVContainer.cpp.

◆ Display()

void KVLVContainer::Display ( const TCollection list_of_objects = 0)
virtual

Display the list of objects in the container. If the list is very long (> KVListView.MaxListLength) we pop up a dialog box to ask if all items should be displayed which can take quite a long time

Definition at line 458 of file KVLVContainer.cpp.

◆ DoDoubleClick()

void KVLVContainer::DoDoubleClick ( TGFrame f,
Int_t  but,
Int_t  ,
Int_t   
)

Perform 'default' action when user double-left-clicks an object in the list. By default, this calls the Browse(TBrowser*) method of the object (defined for TObject, overridden in child classes). If SetDoubleClickAction() was called, the DoubleClickAction(TObject*) signal will be emitted with the address of the selected object. Calling AllowDoubleClick(kFALSE) will disable this.

Definition at line 882 of file KVLVContainer.cpp.

◆ DoubleClickAction()

void KVLVContainer::DoubleClickAction ( TObject obj)

Definition at line 1049 of file KVLVContainer.cpp.

◆ FillList()

void KVLVContainer::FillList ( const TCollection l = 0)
privatevirtual

Fill list from list Pointers to objects are stored in internal list fUserItems for Refresh()

Definition at line 539 of file KVLVContainer.cpp.

◆ FindItemWithColumnData() [1/3]

TGLVEntry * KVLVContainer::FindItemWithColumnData ( const Char_t colname,
const Char_t data 
)

Definition at line 644 of file KVLVContainer.cpp.

◆ FindItemWithColumnData() [2/3]

TGLVEntry * KVLVContainer::FindItemWithColumnData ( const Char_t colname,
Double_t  data 
)

Definition at line 684 of file KVLVContainer.cpp.

◆ FindItemWithColumnData() [3/3]

TGLVEntry * KVLVContainer::FindItemWithColumnData ( const Char_t colname,
Long_t  data 
)

Definition at line 664 of file KVLVContainer.cpp.

◆ FindItemWithData()

TGLVEntry * KVLVContainer::FindItemWithData ( void userData)

Find item with fUserData == userData in container.

Definition at line 598 of file KVLVContainer.cpp.

◆ GetDataColumn()

virtual KVLVColumnData * KVLVContainer::GetDataColumn ( Int_t  index) const
inlinevirtual

Definition at line 169 of file KVLVContainer.h.

◆ GetFirstInList()

TObject * KVLVContainer::GetFirstInList ( )

Returns first object in currently displayed list.

Definition at line 909 of file KVLVContainer.cpp.

◆ GetLastInList()

TObject * KVLVContainer::GetLastInList ( )

Returns last object in currently displayed list.

Definition at line 929 of file KVLVContainer.cpp.

◆ GetLastSelectedItem()

TGLVEntry * KVLVContainer::GetLastSelectedItem ( ) const
inline

Returns last clicked item in list

Definition at line 192 of file KVLVContainer.h.

◆ GetLastSelectedObject()

TObject * KVLVContainer::GetLastSelectedObject ( ) const
inline

Returns object corresponding to last clicked item in list

Definition at line 187 of file KVLVContainer.h.

◆ GetPickOrderedSelectedObjects()

KVList * KVLVContainer::GetPickOrderedSelectedObjects ( ) const
inline

Returns list of currently selected objects, in the order they were picked. Do NOT delete this list - it belongs to KVLVContainer.

Definition at line 201 of file KVLVContainer.h.

◆ GetSelectedItems()

TList * KVLVContainer::GetSelectedItems ( )

Create and fill list with all currently selected items (KVLVEntry objects) USER MUST DELETE TLIST AFTER USE!!!

Definition at line 950 of file KVLVContainer.cpp.

◆ GetSelectedObjects()

TList * KVLVContainer::GetSelectedObjects ( )

Create and fill list with all currently selected objects (derived from TObject) USER MUST DELETE TLIST AFTER USE!!!

Definition at line 975 of file KVLVContainer.cpp.

◆ GetUserItems()

TCollection * KVLVContainer::GetUserItems ( )
inline

return list of all objects in list (regardless of selection)

Definition at line 207 of file KVLVContainer.h.

◆ HandleButton()

Bool_t KVLVContainer::HandleButton ( Event_t event)
virtual

Override TGContainer method in order to set fControlClick flag.

Reimplemented from TGFrame.

Definition at line 1059 of file KVLVContainer.cpp.

◆ IsBeingSorted()

Bool_t KVLVContainer::IsBeingSorted ( ) const
inline

Definition at line 212 of file KVLVContainer.h.

◆ OpenContextMenu()

void KVLVContainer::OpenContextMenu ( TGFrame f,
Int_t  but,
Int_t  x,
Int_t  y 
)

Open context menu when user right-clicks an object in the list. Calling AllowContextMenu(kFALSE) will disable this. We also fill the list fPickOrderedObjects with the selected objects in the order of clicking

if fUseObjLabelAsRealClass=kTRUE (and if objects inherit from KVBase) then the context menu opened will be that of the class given by KVBase::GetLabel. The object's KVBase::GetObject() method must return the real object to use.

Definition at line 816 of file KVLVContainer.cpp.

◆ Refresh()

void KVLVContainer::Refresh ( )
virtual

Redisplay the list of objects in the container. This can be used to refresh the contents of the window.

Definition at line 508 of file KVLVContainer.cpp.

◆ RemoveAll()

void KVLVContainer::RemoveAll ( )
virtual

When the graphical list is emptied we need to empty the list of user objects also.

Reimplemented from TGCompositeFrame.

Definition at line 523 of file KVLVContainer.cpp.

◆ SelectAll()

void KVLVContainer::SelectAll ( )
virtual

void SetNewColumnName(const char* columnName);

Override method in TGContainer If multiple selection is not enabled, do nothing

Reimplemented from TGContainer.

Definition at line 1097 of file KVLVContainer.cpp.

◆ SetDataColumn()

void KVLVContainer::SetDataColumn ( Int_t  index,
TClass cl,
const Char_t name,
const Char_t method = "" 
)
virtual

Definition at line 587 of file KVLVContainer.cpp.

◆ SetDataColumns()

void KVLVContainer::SetDataColumns ( Int_t  ncols)
virtual

Definition at line 569 of file KVLVContainer.cpp.

◆ SetDoubleClickAction()

void KVLVContainer::SetDoubleClickAction ( const char *  receiver_class,
void receiver,
const char *  slot 
)

Overrides the default 'double-click' action. By default, double-clicking on an object in the list will call the Browse(TBrowser*) method of the selected object. Use this method to override this behaviour. When an object is double-clicked the method 'slot' of the object 'receiver' of class 'receiver_class' will be called. The method in question must have the signature receiver_class::slot(TObject*) The address of the selected (T)object is passed as argument.

Definition at line 1030 of file KVLVContainer.cpp.

◆ SetObjClass()

void KVLVContainer::SetObjClass ( TClass cN)
inline

Definition at line 237 of file KVLVContainer.h.

◆ SetUseObjLabelAsRealClass()

void KVLVContainer::SetUseObjLabelAsRealClass ( Bool_t  on = kTRUE)
inline

Definition at line 245 of file KVLVContainer.h.

◆ Sort()

void KVLVContainer::Sort ( int  column)

Sort objects in container according to contents of given column.

Definition at line 411 of file KVLVContainer.cpp.

Friends And Related Symbol Documentation

◆ KVLVEntry

friend class KVLVEntry
friend

Definition at line 122 of file KVLVContainer.h.

◆ KVLVFrameElement

friend class KVLVFrameElement
friend

Definition at line 121 of file KVLVContainer.h.

Member Data Documentation

◆ fAllowContextMenu

Bool_t KVLVContainer::fAllowContextMenu
private

can objects' context menu be opened with right-click ?

Definition at line 127 of file KVLVContainer.h.

◆ fAllowDoubleClick

Bool_t KVLVContainer::fAllowDoubleClick
private

do something when object double-clicked ?

Definition at line 129 of file KVLVContainer.h.

◆ fColData

KVLVColumnData** KVLVContainer::fColData
private

description of column data

Definition at line 136 of file KVLVContainer.h.

◆ fContextMenu

TContextMenu* KVLVContainer::fContextMenu
private

used to display popup context menu for items

Definition at line 141 of file KVLVContainer.h.

◆ fContextMenuClassExceptions

TList* KVLVContainer::fContextMenuClassExceptions
private

list of classes for which we override value of fAllowContextMenu

Definition at line 128 of file KVLVContainer.h.

◆ fControlClick

Bool_t KVLVContainer::fControlClick
private

set to kTRUE when user ctrl-clicks an item

Definition at line 131 of file KVLVContainer.h.

◆ fIsResized

Bool_t KVLVContainer::fIsResized
private

used to resize columns exactly once

Definition at line 124 of file KVLVContainer.h.

◆ fKeepUserItems

Bool_t KVLVContainer::fKeepUserItems
private

internal use only, do not clear list of user items in RemoveAll()

Definition at line 133 of file KVLVContainer.h.

◆ fNcols

Int_t KVLVContainer::fNcols
private

number of data columns

Definition at line 140 of file KVLVContainer.h.

◆ fObjClass

TClass* KVLVContainer::fObjClass
private

Definition at line 145 of file KVLVContainer.h.

◆ fPickOrderedObjects

KVList* KVLVContainer::fPickOrderedObjects
private

list of currently selected objects, in order of selection

Definition at line 143 of file KVLVContainer.h.

◆ fSort

Bool_t KVLVContainer::fSort
private

Definition at line 125 of file KVLVContainer.h.

◆ fSortData

KVLVColumnData* KVLVContainer::fSortData
private

name of column (i.e. type of data) currently used to sort objects

Definition at line 138 of file KVLVContainer.h.

◆ fSortDir

Int_t* KVLVContainer::fSortDir
private

direction of sorting for each column

Definition at line 139 of file KVLVContainer.h.

◆ fSortType

Int_t KVLVContainer::fSortType
private

current sorting mode of contents (ascending or descending)

Definition at line 137 of file KVLVContainer.h.

◆ fUseObjLabelAsRealClass

Bool_t KVLVContainer::fUseObjLabelAsRealClass
private

if kTRUE, object's classname read from KVBase::GetLabel() (objects must be KVBase-derived!)

Definition at line 147 of file KVLVContainer.h.

◆ fUserDoubleClickAction

Bool_t KVLVContainer::fUserDoubleClickAction
private

user-defined double-click action instead of Browse() method

Definition at line 130 of file KVLVContainer.h.

◆ fUserItems

KVList* KVLVContainer::fUserItems
private

list of currently displayed items, used by Refresh()

Definition at line 142 of file KVLVContainer.h.