KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
KVLVContainer Class Reference

Extension of TGLVContainer for KVListView widget.

Definition at line 117 of file KVLVContainer.h.

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. More...
 
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. More...
 
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. More...
 
virtual KVLVColumnDataGetDataColumn (Int_t index) const
 
TObjectGetFirstInList ()
 Returns first object in currently displayed list. More...
 
TObjectGetLastInList ()
 Returns last object in currently displayed list. More...
 
TGLVEntryGetLastSelectedItem () const
 
TObjectGetLastSelectedObject () const
 
KVListGetPickOrderedSelectedObjects () const
 
TListGetSelectedItems ()
 
TListGetSelectedObjects ()
 
TCollectionGetUserItems ()
 
Bool_t HandleButton (Event_t *event)
 Override TGContainer method in order to set fControlClick flag. More...
 
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); More...
 
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. More...
 
- 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())
 
virtual ~TGLVContainer ()
 
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
 
virtual TGDimension GetPageDimension () const
 
TListGetSelectedEntries ()
 
TListGetSelectedItems ()
 
EListViewMode GetViewMode () const
 
virtual void LineDown (Bool_t select=kFALSE)
 
virtual void LineLeft (Bool_t select=kFALSE)
 
virtual void LineRight (Bool_t select=kFALSE)
 
virtual void LineUp (Bool_t select=kFALSE)
 
virtual void RemoveItemWithData (void *userData)
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
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)
 
- 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())
 
virtual ~TGContainer ()
 
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
 
virtual Bool_t HandleDNDFinished ()
 
virtual Bool_t HandleDoubleClick (Event_t *event)
 
virtual Bool_t HandleExpose (Event_t *event)
 
virtual Bool_t HandleKey (Event_t *event)
 
virtual Bool_t HandleMotion (Event_t *event)
 
virtual void Home (Bool_t select=kFALSE)
 
virtual void InvertSelection ()
 
virtual void KeyPressed (TGFrame *, UInt_t keysym, UInt_t mask)
 
virtual void Layout ()
 
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)
 
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 *)
 
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)
 
virtual ~TGCompositeFrame ()
 
virtual void ChangeOptions (UInt_t options)
 
virtual void ChangeSubframesBackground (Pixel_t back)
 
virtual void Cleanup ()
 
virtual TGFrameElementFindFrameElement (TGFrame *f) const
 
virtual UInt_t GetDefaultHeight () const
 
virtual TGDimension GetDefaultSize () const
 
virtual UInt_t GetDefaultWidth () const
 
virtual TGFrameGetFrameFromPoint (Int_t x, Int_t y)
 
virtual TGLayoutManagerGetLayoutManager () const
 
virtual TListGetList () const
 
Int_t GetState (TGFrame *f) const
 
virtual Bool_t HandleCrossing (Event_t *)
 
virtual Bool_t HandleDragDrop (TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo)
 
virtual Bool_t HandleDragEnter (TGFrame *)
 
virtual Bool_t HandleDragLeave (TGFrame *)
 
virtual Bool_t HandleDragMotion (TGFrame *)
 
virtual Bool_t HandleFocusChange (Event_t *)
 
virtual Bool_t HandleSelection (Event_t *)
 
virtual void HideFrame (TGFrame *f)
 
Bool_t IsArranged (TGFrame *f) const
 
Bool_t IsArranged (TGFrameElement *ptr) const
 
Bool_t IsComposite () const
 
virtual Bool_t IsEditable () const
 
virtual Bool_t IsLayoutBroken () const
 
virtual Bool_t IsMapSubwindows () const
 
Bool_t IsVisible (TGFrame *f) const
 
Bool_t IsVisible (TGFrameElement *ptr) const
 
virtual void MapSubwindows ()
 
virtual Int_t MustCleanup () const
 
virtual void Print (Option_t *option="") const
 
virtual Bool_t ProcessMessage (Long_t, Long_t, Long_t)
 
virtual void RemoveFrame (TGFrame *f)
 
virtual void SavePrimitiveSubframes (std::ostream &out, Option_t *option="")
 
virtual void SetCleanup (Int_t mode=kLocalCleanup)
 
virtual void SetEditable (Bool_t on=kTRUE)
 
virtual void SetEditDisabled (UInt_t on=1)
 
virtual void SetLayoutBroken (Bool_t on=kTRUE)
 
virtual void SetLayoutManager (TGLayoutManager *l)
 
virtual void SetMapSubwindows (Bool_t on)
 
virtual void ShowFrame (TGFrame *f)
 
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)
 
virtual ~TGFrame ()
 
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
 
virtual void Delete (Option_t *="")
 
virtual void DeleteWindow ()
 
virtual void DrawBorder ()
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *="") const
 
virtual void DrawCopy (Handle_t, Int_t, Int_t)
 
virtual void Dump () const
 
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)
 
virtual Bool_t HandleEvent (Event_t *event)
 
virtual Bool_t HandleSelectionClear (Event_t *)
 
virtual Bool_t HandleSelectionRequest (Event_t *)
 
virtual void Inspect () const
 
virtual Bool_t IsActive () const
 
Bool_t IsDNDSource () const
 
Bool_t IsDNDTarget () const
 
virtual void MapRaised ()
 
virtual void MapWindow ()
 
virtual void Move (Int_t x, Int_t y)
 
virtual void MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
 
virtual void ProcessedConfigure (Event_t *event)
 
virtual void ProcessedEvent (Event_t *event)
 
virtual void ReallyDelete ()
 
void RemoveInput (UInt_t emask)
 
virtual void ReparentWindow (const TGWindow *p, Int_t x=0, Int_t y=0)
 
virtual void Resize (TGDimension size)
 
virtual void Resize (UInt_t w=0, UInt_t h=0)
 
void SaveUserColor (std::ostream &out, Option_t *)
 
virtual void SendMessage (const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
 
virtual void SetBackgroundColor (Pixel_t back)
 
void SetDNDSource (Bool_t onoff)
 
void SetDNDTarget (Bool_t onoff)
 
virtual void SetDragType (Int_t type)
 
virtual void SetDrawOption (Option_t *="")
 
virtual void SetDropType (Int_t type)
 
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)
 
virtual void UnmapWindow ()
 
- Public Member Functions inherited from TGWindow
 TGWindow (const TGWindow *p=0, 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=0, SetWindowAttributes_t *attr=0, UInt_t wtype=0)
 
 TGWindow (TGClient *c, Window_t id, const TGWindow *parent=0)
 
virtual ~TGWindow ()
 
virtual void DestroySubwindows ()
 
virtual void DestroyWindow ()
 
virtual UInt_t GetEditDisabled () const
 
virtual const TGWindowGetMainFrame () const
 
virtual const char * GetName () const
 
const TGWindowGetParent () const
 
virtual Bool_t HandleIdleEvent (TGIdleHandler *)
 
virtual Bool_t HandleTimer (TTimer *)
 
virtual void IconifyWindow ()
 
virtual Bool_t IsMapped ()
 
virtual void LowerWindow ()
 
virtual void RaiseWindow ()
 
virtual void RequestFocus ()
 
virtual void SetBackgroundPixmap (Pixmap_t pixmap)
 
virtual void SetName (const char *name)
 
virtual void SetWindowName (const char *name=0)
 
- Public Member Functions inherited from TGObject
 TGObject ()
 
 TGObject (const TGObject &tgo)
 
virtual ~TGObject ()
 
TGClientGetClient () const
 
Handle_t GetId () const
 
ULong_t Hash () const
 
Bool_t IsEqual (const TObject *obj) const
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
- 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=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
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)
 
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)
 
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)
 
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=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, 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=0, void *receiver=0, const char *slot=0)
 
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=0)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=0)
 
virtual void Message (const char *msg)
 
virtual Int_t NumberOfConnections () const
 
virtual Int_t NumberOfSignals () const
 

Protected Member Functions

virtual void ActivateItemFromSelectAll (TGFrameElement *el)
 Activate item. More...
 
void default_init ()
 
void DeleteColData ()
 
virtual void FillList (const TCollection *=0)
 
- Protected Member Functions inherited from TGLVContainer
virtual void ActivateItem (TGFrameElement *el)
 
virtual void DeActivateItem (TGFrameElement *el)
 
- Protected Member Functions inherited from TGContainer
virtual void DoRedraw ()
 
virtual void OnAutoScroll ()
 
virtual void RepeatSearch ()
 
virtual void SearchPattern ()
 
- Protected Member Functions inherited from TGFrame
virtual void Draw3dRectangle (UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
 
TString GetOptionString () const
 
const TGResourcePoolGetResourcePool () const
 
virtual voidGetSender ()
 
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
 

Protected Attributes

KVLVColumnData ** fColData
 description of column data More...
 
TContextMenufContextMenu
 used to display popup context menu for items More...
 
Int_t fNcols
 number of data columns More...
 
TClassfObjClass
 
KVListfPickOrderedObjects
 list of currently selected objects, in order of selection More...
 
KVLVColumnDatafSortData
 name of column (i.e. type of data) currently used to sort objects More...
 
Int_tfSortDir
 direction of sorting for each column More...
 
Int_t fSortType
 current sorting mode of contents (ascending or descending) More...
 
Bool_t fUseObjLabelAsRealClass
 if kTRUE, object's classname read from KVBase::GetLabel() (objects must be KVBase-derived!) More...
 
KVListfUserItems
 list of currently displayed items, used by Refresh() More...
 
- 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
 

Private Attributes

Bool_t fAllowContextMenu
 can objects' context menu be opened with right-click ? More...
 
Bool_t fAllowDoubleClick
 do something when object double-clicked ? More...
 
TListfContextMenuClassExceptions
 list of classes for which we override value of fAllowContextMenu More...
 
Bool_t fControlClick
 set to kTRUE when user ctrl-clicks an item More...
 
Bool_t fIsResized
 used to resize columns exactly once More...
 
Bool_t fKeepUserItems
 internal use only, do not clear list of user items in RemoveAll() More...
 
Bool_t fSort
 
Bool_t fUserDoubleClickAction
 user-defined double-click action instead of Browse() method More...
 

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 TGFrame
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 Int_t GetCounter ()
 
- Static Public Member Functions inherited from TObject
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 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 Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=0, const char *slot=0)
 
static Bool_t Disconnect (TQObject *sender, const char *signal=0, void *receiver=0, const char *slot=0)
 
- 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
 
- 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)
 
- 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
 

#include <KVLVContainer.h>

Inheritance diagram for KVLVContainer:
Inheritance graph
[legend]

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)
protectedvirtual

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 220 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 214 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 225 of file KVLVContainer.h.

◆ default_init()

void KVLVContainer::default_init ( )
protected

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 ( )
protected

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)
protectedvirtual

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 167 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 190 of file KVLVContainer.h.

◆ GetLastSelectedObject()

TObject* KVLVContainer::GetLastSelectedObject ( ) const
inline

Returns object corresponding to last clicked item in list

Definition at line 185 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 199 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 205 of file KVLVContainer.h.

◆ HandleButton()

Bool_t KVLVContainer::HandleButton ( Event_t event)
virtual

Override TGContainer method in order to set fControlClick flag.

Reimplemented from TGLVContainer.

Definition at line 1059 of file KVLVContainer.cpp.

◆ IsBeingSorted()

Bool_t KVLVContainer::IsBeingSorted ( ) const
inline

Definition at line 210 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 TGContainer.

Definition at line 523 of file KVLVContainer.cpp.

◆ SelectAll()

void KVLVContainer::SelectAll ( void  )
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 235 of file KVLVContainer.h.

◆ SetUseObjLabelAsRealClass()

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

Definition at line 243 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 Function Documentation

◆ KVLVEntry

friend class KVLVEntry
friend

Definition at line 120 of file KVLVContainer.h.

◆ KVLVFrameElement

friend class KVLVFrameElement
friend

Definition at line 119 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 125 of file KVLVContainer.h.

◆ fAllowDoubleClick

Bool_t KVLVContainer::fAllowDoubleClick
private

do something when object double-clicked ?

Definition at line 127 of file KVLVContainer.h.

◆ fColData

KVLVColumnData** KVLVContainer::fColData
protected

description of column data

Definition at line 134 of file KVLVContainer.h.

◆ fContextMenu

TContextMenu* KVLVContainer::fContextMenu
protected

used to display popup context menu for items

Definition at line 139 of file KVLVContainer.h.

◆ fContextMenuClassExceptions

TList* KVLVContainer::fContextMenuClassExceptions
private

list of classes for which we override value of fAllowContextMenu

Definition at line 126 of file KVLVContainer.h.

◆ fControlClick

Bool_t KVLVContainer::fControlClick
private

set to kTRUE when user ctrl-clicks an item

Definition at line 129 of file KVLVContainer.h.

◆ fIsResized

Bool_t KVLVContainer::fIsResized
private

used to resize columns exactly once

Definition at line 122 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 131 of file KVLVContainer.h.

◆ fNcols

Int_t KVLVContainer::fNcols
protected

number of data columns

Definition at line 138 of file KVLVContainer.h.

◆ fObjClass

TClass* KVLVContainer::fObjClass
protected

Definition at line 143 of file KVLVContainer.h.

◆ fPickOrderedObjects

KVList* KVLVContainer::fPickOrderedObjects
protected

list of currently selected objects, in order of selection

Definition at line 141 of file KVLVContainer.h.

◆ fSort

Bool_t KVLVContainer::fSort
private

Definition at line 123 of file KVLVContainer.h.

◆ fSortData

KVLVColumnData* KVLVContainer::fSortData
protected

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

Definition at line 136 of file KVLVContainer.h.

◆ fSortDir

Int_t* KVLVContainer::fSortDir
protected

direction of sorting for each column

Definition at line 137 of file KVLVContainer.h.

◆ fSortType

Int_t KVLVContainer::fSortType
protected

current sorting mode of contents (ascending or descending)

Definition at line 135 of file KVLVContainer.h.

◆ fUseObjLabelAsRealClass

Bool_t KVLVContainer::fUseObjLabelAsRealClass
protected

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

Definition at line 145 of file KVLVContainer.h.

◆ fUserDoubleClickAction

Bool_t KVLVContainer::fUserDoubleClickAction
private

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

Definition at line 128 of file KVLVContainer.h.

◆ fUserItems

KVList* KVLVContainer::fUserItems
protected

list of currently displayed items, used by Refresh()

Definition at line 140 of file KVLVContainer.h.


The documentation for this class was generated from the following files: