10 #ifndef __KVLVCONTAINER_H
11 #define __KVLVCONTAINER_H
23 #include "KVNumberList.h"
24 #include "run_index_list.h"
26 #include <KVUnownedList.h>
62 if (fMethod ==
"") fMethod.
Form(
"Get%s",
name);
63 fMethCall.
Init(cl, fMethod.
Data(),
"");
65 std::cout <<
"Error in <KVLVColumnData::KVLVColumnData> : method " << fMethod.
Data()
66 <<
" is not valid for class " << cl->GetName() << std::endl;
83 if (rtn ==
"bool" || rtn ==
"Bool_t") fIsBoolean =
kTRUE;
85 if (rtn ==
"TString" || rtn ==
"KVString")
fRetType = kTString;
131 TList* fContextMenuClassExceptions;
133 Bool_t fUserDoubleClickAction;
150 Bool_t fUseObjLabelAsRealClass;
153 void DeleteColData();
160 UInt_t options = kSunkenFrame,
167 void Sort(
int column);
174 return (fColData ? (
index < fNcols ? fColData[
index] : 0) : 0);
210 return fPickOrderedObjects;
224 fAllowContextMenu =
on;
235 fAllowDoubleClick =
on;
252 fUseObjLabelAsRealClass =
on;
#define ClassDef(name, id)
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Extension of TDatime to handle various useful date formats.
Utility class describing the data used to fill each column of the list view container.
virtual Bool_t IsBoolean() const
const Char_t * GetDataString(TObject *)
Format string with column data for object.
virtual void SetDataFormat(const Char_t *fmt)
Int_t Compare(TObject *ob1, TObject *ob2)
KVLVColumnData(TClass *cl, const Char_t *name, const Char_t *method="")
virtual void SetIsDateTime(KVDatime::EKVDateFormat fmt=KVDatime::kCTIME, Bool_t with_reference=kTRUE)
void GetData(TObject *, Long_t &)
virtual ~KVLVColumnData()
virtual void SetIsBoolean(Bool_t isit=kTRUE)
Extension of TGLVContainer for KVListView widget.
void ActivateItemWithData(void *userData, Bool_t activate=kTRUE)
void AllowDoubleClick(Bool_t on=kTRUE)
void AddDataColumn(const char *columnName)
virtual void Display(const TCollection *=0)
void DoubleClickAction(TObject *)
void SelectAll() override
void SetNewColumnName(const char* columnName);
TObject * GetFirstInList()
Returns first object in currently displayed list.
Bool_t HandleButton(Event_t *event) override
Override TGContainer method in order to set fControlClick flag.
KVSeqCollection * GetPickOrderedSelectedObjects() const
virtual ~KVLVContainer()
Destructor.
void OpenContextMenu(TGFrame *, Int_t, Int_t, Int_t)
void ActivateItemWithColumnData(const Char_t *colname, const Char_t *data, Bool_t activate=kTRUE)
void AllowBrowse(Bool_t on=kTRUE)
void DoDoubleClick(TGFrame *, Int_t, Int_t, Int_t)
void RemoveAll() override
TGLVEntry * FindItemWithColumnData(const Char_t *colname, const Char_t *data)
TCollection * GetUserItems()
TObject * GetLastSelectedObject() const
friend class KVLVFrameElement
void ActivateItemsWithColumnData(const Char_t *colname, const KVNumberList &data, Bool_t activate=kTRUE)
void SetUseObjLabelAsRealClass(Bool_t on=kTRUE)
KVLVContainer(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
TObject * GetLastInList()
Returns last object in currently displayed list.
KVUnownedList GetSelectedObjects()
virtual void SetDataColumns(Int_t ncols)
void AddContextMenuClassException(TClass *)
KVUnownedList GetSelectedItems()
virtual KVLVColumnData * GetDataColumn(Int_t index) const
void AllowContextMenu(Bool_t on=kTRUE)
virtual void SetDataColumn(Int_t index, TClass *cl, const Char_t *name, const Char_t *method="")
void SetObjClass(TClass *cN)
void AddFrame(TGFrame *f, TGLayoutHints *l=0) override
Add an item to the list.
void Sort(int column)
Sort objects in container according to contents of given column.
void SetDoubleClickAction(const char *receiver_class, void *receiver, const char *slot)
TGLVEntry * FindItemWithData(void *userData)
Find item with fUserData == userData in container.
TGLVEntry * GetLastSelectedItem() const
Bool_t IsBeingSorted() const
One item/line in a KVListView window.
Strings used to represent a set of ranges of values.
KaliVeda extensions to ROOT collection classes.
Extended TList class which does not own its objects by default.
const char * GetReturnTypeName() const
virtual TGFrame * GetLastActive() const
static Pixel_t GetDefaultFrameBackground()
void * GetUserData() const
static const EReturnType kLong
static const EReturnType kNone
void Init(const char *function, const char *params)
static const EReturnType kDouble
const char * Data() const
void Form(const char *fmt,...)
List of runfiles specified by run number and file index ,.