#include <XSElementList.h>
Inheritance diagram for XSElementList:
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 |
Definition at line 18 of file XSElementList.h.
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.
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().
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().
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().
Int_t XSElementList::sortBy [protected] |
Definition at line 21 of file XSElementList.h.
Referenced by Compare(), ElementString(), and XSElementList().