44 for (
int i = 0; i < (int)ncols - 1; i++) {
53 fCtw =
new int[j + 1];
67 Form(
"\"Modified()\",\"KVLVEntry\",(KVLVEntry*)%ld,\"Refresh()\"", (
ULong_t)
this));
87 Warning(
"KVLVEntry",
"Unknown color %s requested for entry", ret);
91 Warning(
"KVLVEntry",
"Object of class %s has GetLVEntryColour() method with wrong return type",
96 Warning(
"KVLVEntry",
"GetLVEntryColour() method not valid for class %s", obj->
ClassName());
124 for (
int i = 0; i < (int)ncols - 1; i++) {
133 fCtw =
new int[j + 1];
147 Form(
"\"Modified()\",\"KVLVEntry\",(KVLVEntry*)%ld,\"Refresh()\"", (
ULong_t)
this));
166 Form(
"\"Modified()\",(KVLVEntry*)%ld,\"Refresh()\"", (
ULong_t)
this));
182 for (
int i = 0;
fSubnames[i] != 0; i++)
fSubnames[i]->SetString(
cnt->fColData[i + 1]->GetDataString(obj));
229 Int_t ix, iy, lx, ly;
230 Int_t max_ascent, max_descent;
234 fTHeight = max_ascent + max_descent;
269 if (ftmpWidth > (
fCpos[0] - lx)) {
271 tmpString = (*fItemName)(0, j) +
"...";
274 if (ftmpWidth <= (
fCpos[0] - lx)) {
323 for (
int j =
fSubnames[i]->Length() - 1 ; j > 0; j--) {
324 tmpString = (*
fSubnames[i])(0, j) +
"...";
336 lx =
fCpos[i + 1] - ftmpWidth - 2;
338 lx = (
fCpos[i] +
fCpos[i + 1] - ftmpWidth) >> 1;
char * Form(const char *fmt,...)
Utility class describing the data used to fill each column of the list view container.
virtual Bool_t IsBoolean() const
Extension of TGLVContainer for KVListView widget.
One item/line in a KVListView window.
Bool_t * fBoolean
'IsBoolean' attribute of each column
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
KVLVEntry(TObject *obj, const KVLVContainer *cnt, UInt_t ncols, KVLVColumnData **coldata)
Default constructor.
virtual void Refresh()
Update the object characteristics and ask for redraw.
Pixel_t fBGColor
background color of this item
static Pixel_t fgBGColor
current background color for items
static Pixel_t fgGreyPixel
light grey color used to distinguish adjacent list items
Bool_t fDisconnectRefresh
disconnect object's Modified method from this object's Refresh when deleted
Bool_t fColoured
=kTRUE if object has an associated color
TMethod * GetMethodAllAny(const char *method)
const TGResourcePool * GetResourcePool() const
Bool_t GetColorByName(const char *name, Pixel_t &pixel) const
static Pixel_t fgDefaultSelectedBackground
static Pixel_t fgWhitePixel
static Pixel_t fgBlackPixel
const TGPicture * fCurrent
void SetItemName(const char *name)
TGSelectedPicture * fSelPic
static FontStruct_t GetDefaultFontStruct()
const TGPicture * fCheckMark
virtual void Draw(Handle_t id, GContext_t gc, Int_t x, Int_t y) const
Pixel_t GetSelectedFgndColor() const
const char * GetString() const
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
virtual void SetWindowName(const char *name=nullptr)
const TGWindow * GetParent() const
void InitWithPrototype(const char *function, const char *proto, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
static const EReturnType kString
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * ClassName() const
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual TClass * IsA() const
RooCmdArg ClassName(const char *name)