XSElementList.h

Go to the documentation of this file.
00001 /*
00002  * $Header$
00003  * $Log$
00004  *
00005  * Array of Elements with names and mnemonics
00006  */
00007 
00008 #ifndef __XSELEMENT_LIST_H
00009 #define __XSELEMENT_LIST_H
00010 
00011 #include <TGListBox.h>
00012 
00013 #define XSEL_SORTBY_NAME        0
00014 #define XSEL_SORTBY_MNEMONIC    1
00015 #define XSEL_SORTBY_Z           2
00016 
00017 /* =================== XSElementList ===================== */
00018 class XSElementList : public TGListBox
00019 {
00020 protected:
00021         Int_t                   sortBy;
00022 
00023 public:
00024         XSElementList(TGWindow *p, Int_t sortby = XSEL_SORTBY_NAME);
00025         ~XSElementList();
00026 
00027         void            SelectZ(UInt_t Z);
00028         UInt_t          CurrentZ();
00029 
00030 protected:
00031         Int_t           Compare(int i, int j) const;
00032         Int_t           Compare(const TObject *o) const { return TObject::Compare(o); }
00033         UInt_t          GetZ( TGTextLBEntry *entry );
00034         void            Sort(int *index);
00035         Int_t           ElementString(Int_t idx, char *buf);
00036 
00037         //ClassDef(XSElementList,1)
00038 }; // XSElementList
00039 
00040 #endif

Generated on Tue Jul 5 15:15:04 2011 for ROOT_528-00b_version by  doxygen 1.5.1