KaliVeda
Toolkit for HIC analysis
|
One item/line in a KVListView window.
Created by KVClassFactory on Wed Apr 9 13:55:03 2008 Author: franklan
KVListView takes a list of objects (TObject or derived class) and presents them as a list of items with different data for each object presented in separate columns. The user specifies the base-class of the objects to display, the number of columns, and the data to be presented in each column. The example in the figure shown above was generated by the following:
lvRuns = new KVListView(KVDBRunClass(), cfRuns, 500, 250); //create list view for KVDBRun objects. 'cfRuns' is pointer to GUI frame containing the list. lvRuns->SetDataColumns(4); //set number of columns to 4 lvRuns->SetDataColumn(0, "Run", "GetNumber"); //by default, the data presented in a column with title "Toto" will be retrieved lvRuns->SetDataColumn(1, "Events", "", kTextRight); //from each object by calling the "GetToto" method of the class given to the KVListView ctor. lvRuns->SetDataColumn(2, "Date", "GetDatime"); //in case the "getter" method has a non-standard name, it can be given explicitly. lvRuns->GetDataColumn(2)->SetIsDateTime();//some special treatment is afforded to date/time data. see method doc. lvRuns->SetDataColumn(3, "Comments", "", kTextLeft);// specify text alignment for data lvRuns->ActivateSortButtons();//when clicking a column header, the list is sorted according to that column's data. ... //clicking a second time the same column sorts objects in the opposite sense.
To display objects, put them in a TList and call
lvRuns->Display( pointer_to_TList );
Items in the list can be selected using either:
When the selection changes, the KVListView emits the
SelectionChanged()
signal.
The list of the currently selected objects can be retrieved with the method
GetSelectedItems()
, which returns a TList of the currently selected KVLVEntry objects, each one's name corresponds to the value displayed in the first column of the list view.
Double-left-clicking an object will execute the
Browse()
method of the object. This method is defined for all TObjects, it can be overridden in derived classes in order to do something interesting and/or useful.
Right-clicking an object opens the context menu of the object, allowing the usual interaction with objects as in TBrower, TCanvas, etc.
Definition at line 65 of file KVLVEntry.h.
#include <KVLVEntry.h>
Public Member Functions | |
KVLVEntry (TObject *obj, const Char_t *objclass, const KVLVContainer *cnt, UInt_t ncols, KVLVColumnData **coldata) | |
KVLVEntry (TObject *obj, const KVLVContainer *cnt, UInt_t ncols, KVLVColumnData **coldata) | |
Default constructor. | |
virtual | ~KVLVEntry () |
virtual void | DrawCopy (Handle_t id, Int_t x, Int_t y) |
virtual void | Refresh () |
Update the object characteristics and ask for redraw. | |
void | SetEditMode (Bool_t edit=kTRUE) |
Public Member Functions inherited from TGLVEntry | |
TGLVEntry (const TGLVContainer *p, const TString &name, const TString &cname, TGString **subnames=nullptr, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel()) | |
TGLVEntry (const TGWindow *p=nullptr, const TGPicture *bigpic=nullptr, const TGPicture *smallpic=nullptr, TGString *name=nullptr, TGString **subnames=nullptr, EListViewMode ViewMode=kLVDetails, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel()) | |
~TGLVEntry () override | |
void | Activate (Bool_t a) override |
void | DrawCopy (Handle_t id, Int_t x, Int_t y) override |
TGDimension | GetDefaultSize () const override |
TGString * | GetItemName () const |
const TGPicture * | GetPicture () const |
virtual TGString * | GetSubname (Int_t idx) const |
virtual TGString ** | GetSubnames () const |
virtual Int_t | GetSubnameWidth (Int_t idx) const |
const char * | GetTitle () const override |
void * | GetUserData () const |
EListViewMode | GetViewMode () const |
TClass * | IsA () const override |
Bool_t | IsActive () const override |
virtual void | SetCheckedEntry (Bool_t check=kTRUE) |
virtual void | SetColumns (Int_t *cpos, Int_t *jmode) |
void | SetItemName (const char *name) |
virtual void | SetPictures (const TGPicture *bigpic=nullptr, const TGPicture *smallpic=nullptr) |
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="") |
virtual void | SetTitle (const char *text) |
void | SetUserData (void *userData) |
virtual void | SetViewMode (EListViewMode viewMode) |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
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 | |
void | AddInput (UInt_t emask) |
virtual void | ChangeBackground (Pixel_t back) |
virtual void | ChangeOptions (UInt_t options) |
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 |
TObject * | DrawClone (Option_t *="") const override |
void | Dump () const override |
virtual Pixel_t | GetBackground () const |
Int_t | GetBorderWidth () const |
virtual UInt_t | GetDefaultHeight () const |
virtual UInt_t | GetDefaultWidth () const |
virtual TDNDData * | GetDNDData (Atom_t) |
virtual Int_t | GetDragType () const |
virtual Int_t | GetDropType () const |
UInt_t | GetEventMask () const |
virtual Pixel_t | GetForeground () const |
TGFrameElement * | GetFrameElement () const |
virtual TGFrame * | GetFrameFromPoint (Int_t x, Int_t y) |
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 | HandleButton (Event_t *) |
virtual Bool_t | HandleClientMessage (Event_t *event) |
virtual Bool_t | HandleColormapChange (Event_t *) |
virtual Bool_t | HandleConfigureNotify (Event_t *event) |
virtual Bool_t | HandleCrossing (Event_t *) |
virtual Bool_t | HandleDNDDrop (TDNDData *) |
virtual Atom_t | HandleDNDEnter (Atom_t *) |
virtual Bool_t | HandleDNDFinished () |
virtual Bool_t | HandleDNDLeave () |
virtual Atom_t | HandleDNDPosition (Int_t, Int_t, Atom_t, Int_t, Int_t) |
virtual Bool_t | HandleDoubleClick (Event_t *) |
virtual Bool_t | HandleDragDrop (TGFrame *, Int_t, Int_t, TGLayoutHints *) |
virtual Bool_t | HandleDragEnter (TGFrame *) |
virtual Bool_t | HandleDragLeave (TGFrame *) |
virtual Bool_t | HandleDragMotion (TGFrame *) |
Bool_t | HandleEvent (Event_t *event) override |
virtual Bool_t | HandleFocusChange (Event_t *) |
virtual Bool_t | HandleKey (Event_t *) |
virtual Bool_t | HandleMotion (Event_t *) |
virtual Bool_t | HandleSelection (Event_t *) |
virtual Bool_t | HandleSelectionClear (Event_t *) |
virtual Bool_t | HandleSelectionRequest (Event_t *) |
void | Inspect () const override |
virtual Bool_t | IsComposite () const |
Bool_t | IsDNDSource () const |
Bool_t | IsDNDTarget () const |
Bool_t | IsEditable () const override |
virtual Bool_t | IsLayoutBroken () const |
virtual void | Layout () |
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 Bool_t | ProcessMessage (Longptr_t, Longptr_t, Longptr_t) |
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 | SavePrimitive (std::ostream &out, Option_t *option="") 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 |
virtual void | SetCleanup (Int_t=kLocalCleanup) |
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 | SetLayoutBroken (Bool_t=kTRUE) |
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 TGWindow * | GetMainFrame () const |
const char * | GetName () const override |
const TGWindow * | GetParent () const |
virtual Bool_t | HandleExpose (Event_t *event) |
virtual Bool_t | HandleIdleEvent (TGIdleHandler *) |
Bool_t | HandleTimer (TTimer *) override |
virtual void | IconifyWindow () |
TClass * | IsA () const override |
virtual Bool_t | IsMapped () |
virtual Bool_t | IsMapSubwindows () const |
virtual void | LowerWindow () |
virtual Int_t | MustCleanup () const |
void | Print (Option_t *option="") const override |
virtual void | RaiseWindow () |
virtual void | RequestFocus () |
virtual void | SetBackgroundPixmap (Pixmap_t pixmap) |
virtual void | SetEditDisabled (UInt_t on=kEditDisable) |
virtual void | SetMapSubwindows (Bool_t) |
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 | |
TGClient * | GetClient () 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 TObject * | Clone (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 TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () 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) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (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) |
TList * | GetListOfClassSignals () const |
TList * | GetListOfConnections () const |
TList * | GetListOfSignals () 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 Attributes | |
Pixel_t | fBGColor |
background color of this item | |
Bool_t * | fBoolean |
'IsBoolean' attribute of each column | |
Bool_t | fColoured |
=kTRUE if object has an associated color | |
Bool_t | fDisconnectRefresh |
disconnect object's Modified method from this object's Refresh when deleted | |
Bool_t | fEditMode |
Static Private Attributes | |
static Pixel_t | fgBGColor = 0 |
current background color for items | |
static Pixel_t | fgGreyPixel = 0 |
light grey color used to distinguish adjacent list items | |
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 TGLVEntry | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TGFrame | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static const TGGC & | GetBckgndGC () |
static const TGGC & | GetBlackGC () |
static Pixel_t | GetBlackPixel () |
static Pixel_t | GetDefaultFrameBackground () |
static Pixel_t | GetDefaultSelectedBackground () |
static const TGGC & | GetHilightGC () |
static const TGGC & | GetShadowGC () |
static const TGGC & | GetWhiteGC () |
static Pixel_t | GetWhitePixel () |
Static Public Member Functions inherited from TGWindow | |
static TClass * | Class () |
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 TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
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 TClass * | Class () |
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 TGLVEntry | |
void | DoRedraw () override |
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 TGResourcePool * | GetResourcePool () const |
void * | GetSender () override |
virtual void | StartGuiBuilding (Bool_t on=kTRUE) |
Protected Member Functions inherited from TGWindow | |
TGWindow (const TGWindow &tgw) | |
TGWindow (Window_t id) | |
TGWindow & | operator= (const TGWindow &tgw) |
Protected Member Functions inherited from TGObject | |
TGObject & | operator= (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 TGLVEntry | |
static FontStruct_t | GetDefaultFontStruct () |
static const TGGC & | GetDefaultGC () |
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 TGLVEntry | |
Bool_t | fActive |
const TGPicture * | fBigPic |
Bool_t | fChecked |
const TGPicture * | fCheckMark |
Int_t * | fCpos |
Int_t * | fCtw |
const TGPicture * | fCurrent |
FontStruct_t | fFontStruct |
TGString * | fItemName |
Int_t * | fJmode |
GContext_t | fNormGC |
TGSelectedPicture * | fSelPic |
const TGPicture * | fSmallPic |
TGString ** | fSubnames |
UInt_t | fTHeight |
UInt_t | fTWidth |
void * | fUserData |
EListViewMode | fViewMode |
Protected Attributes inherited from TGFrame | |
Pixel_t | fBackground |
Int_t | fBorderWidth |
Int_t | fDNDState |
UInt_t | fEventMask |
TGFrameElement * | fFE |
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 TGWindow * | fParent |
Protected Attributes inherited from TGObject | |
TGClient * | fClient |
Handle_t | fId |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
Protected Attributes inherited from TQObject | |
TList * | fListOfConnections |
TList * | fListOfSignals |
Bool_t | fSignalsBlocked |
Static Protected Attributes inherited from TGLVEntry | |
static const TGFont * | fgDefaultFont |
static TGGC * | fgDefaultGC |
Static Protected Attributes inherited from TGFrame | |
static const TGGC * | fgBckgndGC |
static const TGGC * | fgBlackGC |
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 TGGC * | fgHilightGC |
static Bool_t | fgInit |
static UInt_t | fgLastButton |
static Time_t | fgLastClick |
static const TGGC * | fgShadowGC |
static UInt_t | fgUserColor |
static const TGGC * | fgWhiteGC |
static Pixel_t | fgWhitePixel |
Static Protected Attributes inherited from TGWindow | |
static Int_t | fgCounter |
Static Protected Attributes inherited from TQObject | |
static Bool_t | fgAllSignalsBlocked |
KVLVEntry::KVLVEntry | ( | TObject * | obj, |
const KVLVContainer * | cnt, | ||
UInt_t | ncols, | ||
KVLVColumnData ** | coldata | ||
) |
Default constructor.
Definition at line 28 of file KVLVEntry.cpp.
KVLVEntry::KVLVEntry | ( | TObject * | obj, |
const Char_t * | objclass, | ||
const KVLVContainer * | cnt, | ||
UInt_t | ncols, | ||
KVLVColumnData ** | coldata | ||
) |
Exactly same as default constructor, but class of object used by TGLVEntry is given separately, not neccessarily the same as obj->ClassName()
Definition at line 107 of file KVLVEntry.cpp.
|
virtual |
Dtor disconnect fUserData object's Modified signal from our Refresh method if connected
Definition at line 158 of file KVLVEntry.cpp.
Draw list view item in other window. List view item is placed and layout in the container frame, but is drawn in viewport.
This is a line for line copy of TGLVEntry::DrawCopy from ROOT v5.22/00, but we alternate the background colour between white and light grey, in order to make the list easier to read.
If fColoured=kTRUE (i.e. if entry has a valid GetLVEntryColor method which returns a recognised color), the requested background color is used
Reimplemented from TGFrame.
Definition at line 206 of file KVLVEntry.cpp.
|
virtual |
Update the object characteristics and ask for redraw.
Definition at line 175 of file KVLVEntry.cpp.
Definition at line 88 of file KVLVEntry.h.
|
private |
background color of this item
Definition at line 73 of file KVLVEntry.h.
|
private |
'IsBoolean' attribute of each column
Definition at line 75 of file KVLVEntry.h.
|
private |
=kTRUE if object has an associated color
Definition at line 69 of file KVLVEntry.h.
|
private |
disconnect object's Modified method from this object's Refresh when deleted
Definition at line 77 of file KVLVEntry.h.
|
private |
Definition at line 68 of file KVLVEntry.h.
|
staticprivate |
current background color for items
Definition at line 71 of file KVLVEntry.h.
|
staticprivate |
light grey color used to distinguish adjacent list items
Definition at line 72 of file KVLVEntry.h.