XSElementList Class Reference

#include <XSElementList.h>

Inheritance diagram for XSElementList:

TGListBox TGCompositeFrame TGWidget TGCompositeFrame TGWidget TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 XSElementList (TGWindow *p, Int_t sortby=XSEL_SORTBY_NAME)
 ~XSElementList ()
void SelectZ (UInt_t Z)
UInt_t CurrentZ ()

Protected Member Functions

Int_t Compare (int i, int j) const
Int_t Compare (const TObject *o) const
UInt_t GetZ (TGTextLBEntry *entry)
void Sort (int *index)
Int_t ElementString (Int_t idx, char *buf)

Protected Attributes

Int_t sortBy

Detailed Description

Definition at line 18 of file XSElementList.h.


Constructor & Destructor Documentation

XSElementList::XSElementList ( TGWindow p,
Int_t  sortby = XSEL_SORTBY_NAME 
)

Definition at line 24 of file XSElementList.cxx.

References TGListBox::AddEntry(), ElementString(), TGListBox::fItemVsize, fixedFontStruct, fixedGC, TGListBox::fLbc, TGFrame::GetDefaultHeight(), XSElements::GetSize(), i, kLHintsExpandX, kLHintsTop, TMath::Max(), Sort(), sortBy, str, XSelements, and Z.

XSElementList::~XSElementList (  ) 

Definition at line 56 of file XSElementList.cxx.


Member Function Documentation

void XSElementList::SelectZ ( UInt_t  Z  ) 

Definition at line 150 of file XSElementList.cxx.

References TGFrameElement::fFrame, TGListBox::fVport, TGViewPort::GetContainer(), TGCompositeFrame::GetList(), XSElements::GetSize(), GetZ(), if(), kTRUE, and XSelements.

Referenced by XSElementDlg::XSElementDlg().

UInt_t XSElementList::CurrentZ (  ) 

Definition at line 172 of file XSElementList.cxx.

References entry, TGListBox::GetSelectedEntry(), and GetZ().

Referenced by XSElementDlg::ProcessButton().

Int_t XSElementList::Compare ( int  i,
int  j 
) const [protected]

Definition at line 62 of file XSElementList.cxx.

References XSElements::Mnemonic(), XSElements::Name(), sortBy, XSEL_SORTBY_MNEMONIC, XSEL_SORTBY_NAME, XSEL_SORTBY_Z, and XSelements.

Referenced by Sort().

Int_t XSElementList::Compare ( const TObject o  )  const [inline, protected, virtual]

Reimplemented from TObject.

Definition at line 32 of file XSElementList.h.

References TObject::Compare(), and o.

UInt_t XSElementList::GetZ ( TGTextLBEntry entry  )  [protected]

Definition at line 132 of file XSElementList.cxx.

References entry, TGString::GetString(), NULL, and str.

Referenced by CurrentZ(), and SelectZ().

void XSElementList::Sort ( int *  index  )  [protected]

Definition at line 83 of file XSElementList.cxx.

References Compare(), XSElements::GetSize(), i, j, t, and XSelements.

Referenced by XSElementList().

Int_t XSElementList::ElementString ( Int_t  idx,
char *  buf 
) [protected]

Definition at line 103 of file XSElementList.cxx.

References XSElements::Mnemonic(), XSElements::Name(), sortBy, sprintf(), XSEL_SORTBY_MNEMONIC, XSEL_SORTBY_NAME, XSEL_SORTBY_Z, and XSelements.

Referenced by XSElementList().


Member Data Documentation

Int_t XSElementList::sortBy [protected]

Definition at line 21 of file XSElementList.h.

Referenced by Compare(), ElementString(), and XSElementList().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:53 2011 for ROOT_528-00b_version by  doxygen 1.5.1