TGLVEntry Class Reference

#include <TGListView.h>

Inheritance diagram for TGLVEntry:

TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TGFileItem TGFileItem TTVLVEntry TTVLVEntry TRootObjItem TRootObjItem List of all members.

Public Member Functions

 TGLVEntry (const TGWindow *p=0, const TGPicture *bigpic=0, const TGPicture *smallpic=0, TGString *name=0, TGString **subnames=0, EListViewMode ViewMode=kLVDetails, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel())
 TGLVEntry (const TGLVContainer *p, const TString &name, const TString &cname, TGString **subnames=0, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel())
virtual ~TGLVEntry ()
virtual void SetViewMode (EListViewMode viewMode)
virtual void Activate (Bool_t a)
Bool_t IsActive () const
TGStringGetItemName () const
virtual const char * GetTitle () const
virtual void SetTitle (const char *text)
void SetItemName (const char *name)
const TGPictureGetPicture () const
EListViewMode GetViewMode () const
void SetUserData (void *userData)
void * GetUserData () const
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 SetPictures (const TGPicture *bigpic=0, const TGPicture *smallpic=0)
virtual void SetColumns (Int_t *cpos, Int_t *jmode)
virtual void SetCheckedEntry (Bool_t check=kTRUE)
virtual TGDimension GetDefaultSize () const
virtual Int_t GetSubnameWidth (Int_t idx) const
virtual void DrawCopy (Handle_t id, Int_t x, Int_t y)
 TGLVEntry (const TGWindow *p=0, const TGPicture *bigpic=0, const TGPicture *smallpic=0, TGString *name=0, TGString **subnames=0, EListViewMode ViewMode=kLVDetails, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel())
 TGLVEntry (const TGLVContainer *p, const TString &name, const TString &cname, TGString **subnames=0, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel())
virtual ~TGLVEntry ()
virtual void SetViewMode (EListViewMode viewMode)
virtual void Activate (Bool_t a)
Bool_t IsActive () const
TGStringGetItemName () const
virtual const char * GetTitle () const
virtual void SetTitle (const char *text)
void SetItemName (const char *name)
const TGPictureGetPicture () const
EListViewMode GetViewMode () const
void SetUserData (void *userData)
void * GetUserData () const
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 SetPictures (const TGPicture *bigpic=0, const TGPicture *smallpic=0)
virtual void SetColumns (Int_t *cpos, Int_t *jmode)
virtual void SetCheckedEntry (Bool_t check=kTRUE)
virtual TGDimension GetDefaultSize () const
virtual Int_t GetSubnameWidth (Int_t idx) const
virtual void DrawCopy (Handle_t id, Int_t x, Int_t y)

Protected Member Functions

virtual void DoRedraw ()
virtual void DoRedraw ()

Static Protected Member Functions

static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()
static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()

Protected Attributes

TGStringfItemName
TGString ** fSubnames
Int_tfCpos
Int_tfJmode
Int_tfCtw
UInt_t fTWidth
UInt_t fTHeight
Bool_t fActive
Bool_t fChecked
EListViewMode fViewMode
const TGPicturefBigPic
const TGPicturefSmallPic
const TGPicturefCurrent
const TGPicturefCheckMark
TGSelectedPicturefSelPic
GContext_t fNormGC
FontStruct_t fFontStruct
void * fUserData
TGStringfItemName
TGString ** fSubnames
Int_tfCpos
Int_tfJmode
Int_tfCtw
const TGPicturefBigPic
const TGPicturefSmallPic
const TGPicturefCurrent
const TGPicturefCheckMark
TGSelectedPicturefSelPic
void * fUserData

Static Protected Attributes

static const TGFontfgDefaultFont
static TGGCfgDefaultGC
static const TGFontfgDefaultFont
static TGGCfgDefaultGC

Private Member Functions

 TGLVEntry (const TGLVEntry &)
TGLVEntryoperator= (const TGLVEntry &)
 TGLVEntry (const TGLVEntry &)
TGLVEntryoperator= (const TGLVEntry &)

Detailed Description

Definition at line 60 of file TGListView.h.


Constructor & Destructor Documentation

TGLVEntry::TGLVEntry ( const TGLVEntry  )  [private]

TGLVEntry::TGLVEntry ( const TGWindow p = 0,
const TGPicture bigpic = 0,
const TGPicture smallpic = 0,
TGString name = 0,
TGString **  subnames = 0,
EListViewMode  ViewMode = kLVDetails,
UInt_t  options = kChildFrame,
Pixel_t  back = GetWhitePixel() 
)

TGLVEntry::TGLVEntry ( const TGLVContainer p,
const TString name,
const TString cname,
TGString **  subnames = 0,
UInt_t  options = kChildFrame,
Pixel_t  back = GetWhitePixel() 
)

Definition at line 119 of file TGListView.cxx.

References fActive, fBigPic, fChecked, fCheckMark, TGObject::fClient, fCpos, fCtw, fCurrent, fFontStruct, fItemName, fJmode, fNormGC, fSelPic, fSmallPic, fSubnames, fTHeight, fTWidth, fUserData, fViewMode, GetDefaultFontStruct(), GetDefaultGC(), TGMimeTypes::GetIcon(), TGString::GetLength(), TGClient::GetMimeTypeList(), TGClient::GetPicture(), TGString::GetString(), gVirtualX, i, kFALSE, kTRUE, name, p, and SetViewMode().

TGLVEntry::~TGLVEntry (  )  [virtual]

Definition at line 181 of file TGListView.cxx.

References fCtw, fItemName, fSelPic, fSubnames, and i.

TGLVEntry::TGLVEntry ( const TGLVEntry  )  [private]

TGLVEntry::TGLVEntry ( const TGWindow p = 0,
const TGPicture bigpic = 0,
const TGPicture smallpic = 0,
TGString name = 0,
TGString **  subnames = 0,
EListViewMode  ViewMode = kLVDetails,
UInt_t  options = kChildFrame,
Pixel_t  back = GetWhitePixel() 
)

TGLVEntry::TGLVEntry ( const TGLVContainer p,
const TString name,
const TString cname,
TGString **  subnames = 0,
UInt_t  options = kChildFrame,
Pixel_t  back = GetWhitePixel() 
)

virtual TGLVEntry::~TGLVEntry (  )  [virtual]


Member Function Documentation

TGLVEntry& TGLVEntry::operator= ( const TGLVEntry  )  [private]

void TGLVEntry::DoRedraw (  )  [protected, virtual]

Reimplemented from TGFrame.

Definition at line 310 of file TGListView.cxx.

References DrawCopy(), and TGObject::fId.

Referenced by Activate(), TGFileItem::DoRedraw(), and TTVLVEntry::SetSmallPic().

FontStruct_t TGLVEntry::GetDefaultFontStruct (  )  [static, protected]

Definition at line 470 of file TGListView.cxx.

References fgDefaultFont, gClient, TGFont::GetFontStruct(), TGResourcePool::GetIconFont(), and TGClient::GetResourcePool().

Referenced by DrawCopy(), and TGLVEntry().

const TGGC & TGLVEntry::GetDefaultGC (  )  [static, protected]

Definition at line 480 of file TGListView.cxx.

References fgDefaultFont, fgDefaultGC, gClient, TGFont::GetFontHandle(), TGResourcePool::GetFrameGC(), TGClient::GetResourcePool(), and TGGC::SetFont().

Referenced by TGLVEntry().

void TGLVEntry::SetViewMode ( EListViewMode  viewMode  )  [virtual]

Definition at line 269 of file TGListView.cxx.

References fActive, fBigPic, TGObject::fClient, fCurrent, TGObject::fId, fSelPic, fSmallPic, fViewMode, gClient, GetDefaultSize(), gVirtualX, kLVLargeIcons, TGClient::NeedRedraw(), and TGFrame::Resize().

Referenced by TGFileItem::SetViewMode(), and TGLVEntry().

void TGLVEntry::Activate ( Bool_t  a  )  [virtual]

Reimplemented from TGFrame.

Definition at line 252 of file TGListView.cxx.

References DoRedraw(), fActive, fCurrent, fSelPic, and gClient.

Referenced by TTVLVContainer::HandleButton(), and TTVLVContainer::SelectItem().

Bool_t TGLVEntry::IsActive (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 111 of file TGListView.h.

References fActive.

TGString* TGLVEntry::GetItemName (  )  const [inline]

Definition at line 112 of file TGListView.h.

References fItemName.

Referenced by TGFSFrameElement::Compare(), and TGFileDialog::ProcessMessage().

virtual const char* TGLVEntry::GetTitle (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 113 of file TGListView.h.

References fItemName, and TGString::GetString().

virtual void TGLVEntry::SetTitle ( const char *  text  )  [inline, virtual]

Definition at line 114 of file TGListView.h.

References fItemName.

void TGLVEntry::SetItemName ( const char *  name  )  [inline]

Definition at line 115 of file TGListView.h.

References fItemName.

const TGPicture* TGLVEntry::GetPicture (  )  const [inline]

Definition at line 116 of file TGListView.h.

References fCurrent.

EListViewMode TGLVEntry::GetViewMode (  )  const [inline]

Definition at line 117 of file TGListView.h.

References fViewMode.

void TGLVEntry::SetUserData ( void *  userData  )  [inline]

Definition at line 118 of file TGListView.h.

References fUserData.

Referenced by TSessionOutputFrame::AddObject(), TSessionInputFrame::AddObject(), TRootIconBox::AddObjItem(), TRootIconList::Browse(), TRootBrowserLite::ProcessMessage(), and TNewChainDlg::UpdateList().

void* TGLVEntry::GetUserData (  )  const [inline]

Definition at line 119 of file TGListView.h.

References fUserData.

Referenced by TTreeViewer::EditExpression(), TTVLVEntry::Empty(), TTreeViewer::Empty(), TTVLVContainer::ExpressionList(), TRootIconBox::FindItem(), TTVLVContainer::HandleButton(), TTreeViewer::ProcessMessage(), TRootBrowserLite::ProcessMessage(), TTreeViewer::RemoveItem(), and TTVLVEntry::SetExpression().

void TGLVEntry::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]

Definition at line 195 of file TGListView.cxx.

References fCtw, fFontStruct, fSubnames, TGString::GetLength(), TGString::GetString(), gVirtualX, and i.

void TGLVEntry::SetPictures ( const TGPicture bigpic = 0,
const TGPicture smallpic = 0 
) [virtual]

Definition at line 290 of file TGListView.cxx.

References fBigPic, fCurrent, TGObject::fId, fSelPic, fSmallPic, fViewMode, gClient, gVirtualX, kLVLargeIcons, and TGFrame::Resize().

virtual void TGLVEntry::SetColumns ( Int_t cpos,
Int_t jmode 
) [inline, virtual]

Definition at line 125 of file TGListView.h.

References fCpos, and fJmode.

Referenced by TGLVContainer::AddItem(), and TTVLVContainer::AddThisItem().

virtual void TGLVEntry::SetCheckedEntry ( Bool_t  check = kTRUE  )  [inline, virtual]

Definition at line 126 of file TGListView.h.

References fChecked.

TGDimension TGLVEntry::GetDefaultSize (  )  const [virtual]

Reimplemented from TGFrame.

Definition at line 443 of file TGListView.cxx.

References fCurrent, fTHeight, fTWidth, fViewMode, TGPicture::GetHeight(), TGPicture::GetWidth(), kLVDetails, kLVLargeIcons, kLVList, kLVSmallIcons, TMath::Max(), and size.

Referenced by TTVLVEntry::SetItemName(), and SetViewMode().

virtual Int_t TGLVEntry::GetSubnameWidth ( Int_t  idx  )  const [inline, virtual]

Definition at line 129 of file TGListView.h.

References fCtw.

void TGLVEntry::DrawCopy ( Handle_t  id,
Int_t  x,
Int_t  y 
) [virtual]

Reimplemented from TGFrame.

Definition at line 320 of file TGListView.cxx.

References TGString::Draw(), TGPicture::Draw(), fActive, fChecked, fCheckMark, TGObject::fClient, fCpos, fCtw, fCurrent, fFontStruct, TGFrame::fgBlackPixel, TGFrame::fgDefaultSelectedBackground, TGFrame::fgWhitePixel, TGFrame::fHeight, fItemName, fJmode, fNormGC, fSelPic, fSubnames, fTHeight, fTWidth, fViewMode, TGFrame::fWidth, GetDefaultFontStruct(), TGPicture::GetHeight(), TGString::GetLength(), TGClient::GetResourcePool(), TGResourcePool::GetSelectedFgndColor(), TGString::GetString(), TGPicture::GetWidth(), gVirtualX, i, j, kLVDetails, kLVLargeIcons, kTextCenterX, kTextRight, and TString::Length().

Referenced by DoRedraw().

TGLVEntry& TGLVEntry::operator= ( const TGLVEntry  )  [private]

virtual void TGLVEntry::DoRedraw (  )  [protected, virtual]

Reimplemented from TGFrame.

static FontStruct_t TGLVEntry::GetDefaultFontStruct (  )  [static, protected]

static const TGGC& TGLVEntry::GetDefaultGC (  )  [static, protected]

virtual void TGLVEntry::SetViewMode ( EListViewMode  viewMode  )  [virtual]

virtual void TGLVEntry::Activate ( Bool_t  a  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGLVEntry::IsActive (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 111 of file TGListView.h.

References fActive.

TGString* TGLVEntry::GetItemName (  )  const [inline]

Definition at line 112 of file TGListView.h.

References fItemName.

virtual const char* TGLVEntry::GetTitle (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 113 of file TGListView.h.

References fItemName, and TGString::GetString().

virtual void TGLVEntry::SetTitle ( const char *  text  )  [inline, virtual]

Definition at line 114 of file TGListView.h.

References fItemName.

void TGLVEntry::SetItemName ( const char *  name  )  [inline]

Definition at line 115 of file TGListView.h.

References fItemName.

const TGPicture* TGLVEntry::GetPicture (  )  const [inline]

Definition at line 116 of file TGListView.h.

References fCurrent.

EListViewMode TGLVEntry::GetViewMode (  )  const [inline]

Definition at line 117 of file TGListView.h.

References fViewMode.

void TGLVEntry::SetUserData ( void *  userData  )  [inline]

Definition at line 118 of file TGListView.h.

References fUserData.

void* TGLVEntry::GetUserData (  )  const [inline]

Definition at line 119 of file TGListView.h.

References fUserData.

virtual void TGLVEntry::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]

virtual void TGLVEntry::SetPictures ( const TGPicture bigpic = 0,
const TGPicture smallpic = 0 
) [virtual]

virtual void TGLVEntry::SetColumns ( Int_t cpos,
Int_t jmode 
) [inline, virtual]

Definition at line 125 of file TGListView.h.

References fCpos, and fJmode.

virtual void TGLVEntry::SetCheckedEntry ( Bool_t  check = kTRUE  )  [inline, virtual]

Definition at line 126 of file TGListView.h.

References fChecked.

virtual TGDimension TGLVEntry::GetDefaultSize (  )  const [virtual]

Reimplemented from TGFrame.

virtual Int_t TGLVEntry::GetSubnameWidth ( Int_t  idx  )  const [inline, virtual]

Definition at line 129 of file TGListView.h.

References fCtw.

virtual void TGLVEntry::DrawCopy ( Handle_t  id,
Int_t  x,
Int_t  y 
) [virtual]

Reimplemented from TGFrame.


Member Data Documentation

TGString* TGLVEntry::fItemName [protected]

Definition at line 67 of file TGListView.h.

Referenced by DrawCopy(), GetItemName(), GetTitle(), SetItemName(), TTVLVEntry::SetItemName(), SetTitle(), TGLVEntry(), and ~TGLVEntry().

TGString** TGLVEntry::fSubnames [protected]

Definition at line 68 of file TGListView.h.

Referenced by DrawCopy(), TGFileItem::Init(), SetSubnames(), TGLVEntry(), TRootObjItem::TRootObjItem(), and ~TGLVEntry().

Int_t* TGLVEntry::fCpos [protected]

Definition at line 69 of file TGListView.h.

Referenced by DrawCopy(), SetColumns(), and TGLVEntry().

Int_t* TGLVEntry::fJmode [protected]

Definition at line 70 of file TGListView.h.

Referenced by DrawCopy(), SetColumns(), and TGLVEntry().

Int_t* TGLVEntry::fCtw [protected]

Definition at line 71 of file TGListView.h.

Referenced by DrawCopy(), GetSubnameWidth(), TGFileItem::Init(), SetSubnames(), TGLVEntry(), TRootObjItem::TRootObjItem(), and ~TGLVEntry().

UInt_t TGLVEntry::fTWidth [protected]

Definition at line 72 of file TGListView.h.

Referenced by DrawCopy(), GetDefaultSize(), TTVLVEntry::SetItemName(), and TGLVEntry().

UInt_t TGLVEntry::fTHeight [protected]

Definition at line 73 of file TGListView.h.

Referenced by DrawCopy(), GetDefaultSize(), TTVLVEntry::SetItemName(), and TGLVEntry().

Bool_t TGLVEntry::fActive [protected]

Definition at line 74 of file TGListView.h.

Referenced by Activate(), DrawCopy(), TGFileItem::IsActive(), IsActive(), TTVLVEntry::SetSmallPic(), SetViewMode(), and TGLVEntry().

Bool_t TGLVEntry::fChecked [protected]

Definition at line 75 of file TGListView.h.

Referenced by DrawCopy(), SetCheckedEntry(), and TGLVEntry().

EListViewMode TGLVEntry::fViewMode [protected]

Definition at line 76 of file TGListView.h.

Referenced by TGFileItem::DoRedraw(), DrawCopy(), GetDefaultSize(), GetViewMode(), TGFileItem::Init(), SetPictures(), SetViewMode(), and TGLVEntry().

const TGPicture* TGLVEntry::fBigPic [protected]

Definition at line 77 of file TGListView.h.

Referenced by SetPictures(), SetViewMode(), and TGLVEntry().

const TGPicture* TGLVEntry::fSmallPic [protected]

Definition at line 78 of file TGListView.h.

Referenced by SetPictures(), TTVLVEntry::SetSmallPic(), SetViewMode(), and TGLVEntry().

const TGPicture* TGLVEntry::fCurrent [protected]

Definition at line 79 of file TGListView.h.

Referenced by Activate(), DrawCopy(), GetDefaultSize(), GetPicture(), SetPictures(), TTVLVEntry::SetSmallPic(), SetViewMode(), and TGLVEntry().

const TGPicture* TGLVEntry::fCheckMark [protected]

Definition at line 80 of file TGListView.h.

Referenced by DrawCopy(), and TGLVEntry().

TGSelectedPicture* TGLVEntry::fSelPic [protected]

Definition at line 81 of file TGListView.h.

Referenced by Activate(), DrawCopy(), SetPictures(), TTVLVEntry::SetSmallPic(), SetViewMode(), TGLVEntry(), and ~TGLVEntry().

GContext_t TGLVEntry::fNormGC [protected]

Definition at line 82 of file TGListView.h.

Referenced by TGFileItem::DoRedraw(), DrawCopy(), and TGLVEntry().

FontStruct_t TGLVEntry::fFontStruct [protected]

Definition at line 83 of file TGListView.h.

Referenced by DrawCopy(), TGFileItem::Init(), TTVLVEntry::SetItemName(), SetSubnames(), TGLVEntry(), and TRootObjItem::TRootObjItem().

void* TGLVEntry::fUserData [protected]

Definition at line 84 of file TGListView.h.

Referenced by GetUserData(), SetUserData(), and TGLVEntry().

const TGFont * TGLVEntry::fgDefaultFont [static, protected]

Definition at line 86 of file TGListView.h.

Referenced by GetDefaultFontStruct(), and GetDefaultGC().

TGGC * TGLVEntry::fgDefaultGC [static, protected]

Definition at line 87 of file TGListView.h.

Referenced by GetDefaultGC().

TGString* TGLVEntry::fItemName [protected]

Definition at line 67 of file TGListView.h.

TGString** TGLVEntry::fSubnames [protected]

Definition at line 68 of file TGListView.h.

Int_t* TGLVEntry::fCpos [protected]

Definition at line 69 of file TGListView.h.

Int_t* TGLVEntry::fJmode [protected]

Definition at line 70 of file TGListView.h.

Int_t* TGLVEntry::fCtw [protected]

Definition at line 71 of file TGListView.h.

const TGPicture* TGLVEntry::fBigPic [protected]

Definition at line 77 of file TGListView.h.

const TGPicture* TGLVEntry::fSmallPic [protected]

Definition at line 78 of file TGListView.h.

const TGPicture* TGLVEntry::fCurrent [protected]

Definition at line 79 of file TGListView.h.

const TGPicture* TGLVEntry::fCheckMark [protected]

Definition at line 80 of file TGListView.h.

TGSelectedPicture* TGLVEntry::fSelPic [protected]

Definition at line 81 of file TGListView.h.

void* TGLVEntry::fUserData [protected]

Definition at line 84 of file TGListView.h.

const TGFont* TGLVEntry::fgDefaultFont [static, protected]

Definition at line 86 of file TGListView.h.

TGGC* TGLVEntry::fgDefaultGC [static, protected]

Definition at line 87 of file TGListView.h.


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