Revision 67b502021c47d95a161307bd8f930746f6be115f authored by Philippe Canal on 23 February 2016, 22:56:19 UTC, committed by Philippe Canal on 26 February 2016, 01:28:03 UTC
1 parent ab60d60
XSElementList.h
/*
* $Header$
* $Log$
*
* Array of Elements with names and mnemonics
*/
#ifndef __XSELEMENT_LIST_H
#define __XSELEMENT_LIST_H
#include <TGListBox.h>
#define XSEL_SORTBY_NAME 0
#define XSEL_SORTBY_MNEMONIC 1
#define XSEL_SORTBY_Z 2
/* =================== XSElementList ===================== */
class XSElementList : public TGListBox
{
protected:
Int_t sortBy;
public:
XSElementList(TGWindow *p, Int_t sortby = XSEL_SORTBY_NAME);
~XSElementList();
void SelectZ(UInt_t Z);
UInt_t CurrentZ();
protected:
Int_t Compare(int i, int j) const;
Int_t Compare(const TObject *o) const { return TObject::Compare(o); }
UInt_t GetZ( TGTextLBEntry *entry );
void Sort(int *index);
Int_t ElementString(Int_t idx, char *buf);
//ClassDef(XSElementList,1)
}; // XSElementList
#endif
Computing file changes ...