TGLBContainer Class Reference

#include <TGListBox.h>

Inheritance diagram for TGLBContainer:

TGContainer TGContainer TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame List of all members.

Public Member Functions

 TGLBContainer (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGLBContainer ()
virtual void AddEntry (TGLBEntry *lbe, TGLayoutHints *lhints)
virtual void AddEntrySort (TGLBEntry *lbe, TGLayoutHints *lhints)
virtual void InsertEntry (TGLBEntry *lbe, TGLayoutHints *lhints, Int_t afterID)
virtual void RemoveEntry (Int_t id)
virtual void RemoveEntries (Int_t from_ID, Int_t to_ID)
virtual void RemoveAll ()
virtual void ActivateItem (TGFrameElement *el)
virtual void Associate (const TGWindow *w)
virtual void SetListBox (TGListBox *lb)
TGListBoxGetListBox () const
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleDoubleClick (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual Int_t GetSelected () const
virtual Bool_t GetSelection (Int_t id)
virtual Int_t GetPos (Int_t id)
TGLBEntryGetSelectedEntry () const
virtual void GetSelectedEntries (TList *selected)
virtual TGLBEntrySelect (Int_t id, Bool_t sel)
virtual TGLBEntrySelect (Int_t id)
virtual TGVScrollBarGetVScrollbar () const
virtual void SetVsbPosition (Int_t newPos)
virtual void Layout ()
virtual UInt_t GetDefaultWidth () const
virtual void SetMultipleSelections (Bool_t multi)
virtual Bool_t GetMultipleSelections () const
 TGLBContainer (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGLBContainer ()
virtual void AddEntry (TGLBEntry *lbe, TGLayoutHints *lhints)
virtual void AddEntrySort (TGLBEntry *lbe, TGLayoutHints *lhints)
virtual void InsertEntry (TGLBEntry *lbe, TGLayoutHints *lhints, Int_t afterID)
virtual void RemoveEntry (Int_t id)
virtual void RemoveEntries (Int_t from_ID, Int_t to_ID)
virtual void RemoveAll ()
virtual void ActivateItem (TGFrameElement *el)
virtual void Associate (const TGWindow *w)
virtual void SetListBox (TGListBox *lb)
TGListBoxGetListBox () const
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleDoubleClick (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual Int_t GetSelected () const
virtual Bool_t GetSelection (Int_t id)
virtual Int_t GetPos (Int_t id)
TGLBEntryGetSelectedEntry () const
virtual void GetSelectedEntries (TList *selected)
virtual TGLBEntrySelect (Int_t id, Bool_t sel)
virtual TGLBEntrySelect (Int_t id)
virtual TGVScrollBarGetVScrollbar () const
virtual void SetVsbPosition (Int_t newPos)
virtual void Layout ()
virtual UInt_t GetDefaultWidth () const
virtual void SetMultipleSelections (Bool_t multi)
virtual Bool_t GetMultipleSelections () const

Protected Member Functions

virtual void OnAutoScroll ()
virtual void DoRedraw ()
virtual void OnAutoScroll ()
virtual void DoRedraw ()

Protected Attributes

TGLBEntryfLastActive
TGListBoxfListBox
Bool_t fMultiSelect
Int_t fChangeStatus
TGLBEntryfLastActive
TGListBoxfListBox

Private Member Functions

 TGLBContainer (const TGLBContainer &)
TGLBContainer operator= (const TGLBContainer &)
 TGLBContainer (const TGLBContainer &)
TGLBContainer operator= (const TGLBContainer &)

Friends

class TGListBox

Detailed Description

Definition at line 231 of file TGListBox.h.


Constructor & Destructor Documentation

TGLBContainer::TGLBContainer ( const TGLBContainer  )  [private]

TGLBContainer::TGLBContainer ( const TGWindow p = 0,
UInt_t  w = 1,
UInt_t  h = 1,
UInt_t  options = kSunkenFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

TGLBContainer::~TGLBContainer (  )  [virtual]

Definition at line 493 of file TGListBox.cxx.

References TGCompositeFrame::Cleanup().

TGLBContainer::TGLBContainer ( const TGLBContainer  )  [private]

TGLBContainer::TGLBContainer ( const TGWindow p = 0,
UInt_t  w = 1,
UInt_t  h = 1,
UInt_t  options = kSunkenFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

virtual TGLBContainer::~TGLBContainer (  )  [virtual]


Member Function Documentation

TGLBContainer TGLBContainer::operator= ( const TGLBContainer  )  [private]

void TGLBContainer::OnAutoScroll (  )  [protected, virtual]

Reimplemented from TGContainer.

Definition at line 1014 of file TGListBox.cxx.

References TGContainer::ClearViewPort(), fChangeStatus, TGFrameElement::fFrame, TGDimension::fHeight, TGObject::fId, TGCompositeFrame::fList, TGContainer::fMsgWindow, Event_t::fState, Event_t::fType, Event_t::fXRoot, TGPosition::fY, Event_t::fYRoot, TGContainer::GetPageDimension(), TGContainer::GetPagePosition(), TGScrollBar::GetPosition(), GetVScrollbar(), gVirtualX, kButtonPress, kC_CONTAINER, kCT_ITEMCLICK, kFALSE, kTRUE, MK_MSG(), TGFrame::SendMessage(), TGVScrollBar::SetPosition(), x, and y.

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

Reimplemented from TGContainer.

Definition at line 510 of file TGListBox.cxx.

References TGContainer::DoRedraw().

void TGLBContainer::AddEntry ( TGLBEntry lbe,
TGLayoutHints lhints 
) [virtual]

Definition at line 518 of file TGListBox.cxx.

References TList::Add(), TGContainer::ClearViewPort(), TGCompositeFrame::fgDefaultHints, and TGCompositeFrame::fList.

Referenced by TGListBox::AddEntry().

void TGLBContainer::AddEntrySort ( TGLBEntry lbe,
TGLayoutHints lhints 
) [virtual]

Definition at line 569 of file TGListBox.cxx.

References TList::Add(), TList::AddBefore(), TGContainer::ClearViewPort(), TGLBEntry::EntryId(), TGFrameElement::fFrame, TGCompositeFrame::fgDefaultHints, TGFrameElement::fLayout, TGCompositeFrame::fList, TGFrameElement::fState, and if().

Referenced by TGListBox::AddEntrySort().

void TGLBContainer::InsertEntry ( TGLBEntry lbe,
TGLayoutHints lhints,
Int_t  afterID 
) [virtual]

Definition at line 532 of file TGListBox.cxx.

References TList::Add(), TList::AddAfter(), TList::AddFirst(), TGContainer::ClearViewPort(), TGLBEntry::EntryId(), TGFrameElement::fFrame, TGCompositeFrame::fgDefaultHints, TGFrameElement::fLayout, TGCompositeFrame::fList, TGFrameElement::fState, and if().

Referenced by TGListBox::InsertEntry().

void TGLBContainer::RemoveEntry ( Int_t  id  )  [virtual]

Definition at line 602 of file TGListBox.cxx.

References TGContainer::ClearViewPort(), TGWindow::DestroyWindow(), TGLBEntry::EntryId(), TGFrameElement::fFrame, fLastActive, TGFrameElement::fLayout, TGCompositeFrame::fList, if(), l, and TList::Remove().

Referenced by TGListBox::RemoveEntry().

void TGLBContainer::RemoveEntries ( Int_t  from_ID,
Int_t  to_ID 
) [virtual]

Definition at line 630 of file TGListBox.cxx.

References TGContainer::ClearViewPort(), TGWindow::DestroyWindow(), TGLBEntry::EntryId(), TGFrameElement::fFrame, fLastActive, TGFrameElement::fLayout, TGCompositeFrame::fList, if(), l, and TList::Remove().

Referenced by TGListBox::RemoveEntries().

void TGLBContainer::RemoveAll (  )  [virtual]

Reimplemented from TGContainer.

Definition at line 657 of file TGListBox.cxx.

References TGContainer::ClearViewPort(), TGWindow::DestroyWindow(), TGFrameElement::fFrame, fLastActive, TGFrameElement::fLayout, TGCompositeFrame::fList, if(), l, and TList::Remove().

Referenced by TGListBox::RemoveAll().

void TGLBContainer::ActivateItem ( TGFrameElement el  )  [virtual]

Reimplemented from TGContainer.

Definition at line 1068 of file TGListBox.cxx.

References TGContainer::ActivateItem(), TGFrameElement::fFrame, and fLastActive.

virtual void TGLBContainer::Associate ( const TGWindow w  )  [inline, virtual]

Reimplemented from TGContainer.

Definition at line 263 of file TGListBox.h.

References TGContainer::fMsgWindow, and w.

Referenced by TGListBox::InitListBox().

virtual void TGLBContainer::SetListBox ( TGListBox lb  )  [inline, virtual]

Definition at line 264 of file TGListBox.h.

References fListBox.

Referenced by TGListBox::InitListBox().

TGListBox* TGLBContainer::GetListBox (  )  const [inline]

Definition at line 265 of file TGListBox.h.

References fListBox.

Bool_t TGLBContainer::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGContainer.

Definition at line 807 of file TGListBox.cxx.

References TGContainer::ClearViewPort(), fChangeStatus, TGObject::fClient, Event_t::fCode, TGFrameElement::fFrame, TGObject::fId, fLastActive, TGContainer::fLastActiveEl, TGCompositeFrame::fList, fListBox, TGCompositeFrame::fMapSubwindows, TGContainer::fMsgWindow, fMultiSelect, TGContainer::fScrolling, TGContainer::fScrollTimer, Event_t::fType, Event_t::fUser, Event_t::fX, TGPosition::fX, Event_t::fY, TGPosition::fY, TGListBox::GetContainer(), TGContainer::GetPagePosition(), TGWindow::GetParent(), TGScrollBar::GetPosition(), GetVScrollbar(), gSystem, gVirtualX, TObject::InheritsFrom(), TGClient::IsEditable(), kButton3, kButton4, kButton5, kButtonPress, kButtonRelease, kC_CONTAINER, kCT_ITEMCLICK, kFALSE, kPointerMotionMask, kTRUE, MK_MSG(), TGFrame::RemoveInput(), TSystem::RemoveTimer(), TGFrame::SendMessage(), TGVScrollBar::SetPosition(), x, and y.

Bool_t TGLBContainer::HandleDoubleClick ( Event_t event  )  [virtual]

Reimplemented from TGContainer.

Definition at line 920 of file TGListBox.cxx.

References fLastActive, TGContainer::fMsgWindow, fMultiSelect, kC_CONTAINER, kCT_ITEMDBLCLICK, kTRUE, MK_MSG(), and TGFrame::SendMessage().

Bool_t TGLBContainer::HandleMotion ( Event_t event  )  [virtual]

Reimplemented from TGContainer.

Definition at line 935 of file TGListBox.cxx.

References TSystem::AddTimer(), TGContainer::ClearViewPort(), fChangeStatus, TGFrameElement::fFrame, TGDimension::fHeight, fLastActive, TGCompositeFrame::fList, fListBox, TGCompositeFrame::fMapSubwindows, TGContainer::fMsgWindow, fMultiSelect, TGContainer::fScrolling, TGContainer::fScrollTimer, Event_t::fUser, Event_t::fX, TGPosition::fX, Event_t::fY, TGPosition::fY, TGContainer::GetPageDimension(), TGContainer::GetPagePosition(), TGWindow::GetParent(), gSystem, TObject::InheritsFrom(), kC_CONTAINER, kCT_ITEMCLICK, kFALSE, kTRUE, Long64_t, MK_MSG(), TSystem::Now(), TTimer::Reset(), TGFrame::SendMessage(), x, and y.

Int_t TGLBContainer::GetSelected (  )  const [virtual]

Definition at line 721 of file TGListBox.cxx.

References TGLBEntry::EntryId(), and fLastActive.

Referenced by TGListBox::GetSelected(), TGListBox::NewEntry(), and TGListBox::RemoveEntry().

Bool_t TGLBContainer::GetSelection ( Int_t  id  )  [virtual]

Definition at line 731 of file TGListBox.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, if(), and kFALSE.

Referenced by TGListBox::GetSelection().

Int_t TGLBContainer::GetPos ( Int_t  id  )  [virtual]

Definition at line 1077 of file TGListBox.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, and if().

Referenced by TGListBox::SetTopEntry().

TGLBEntry* TGLBContainer::GetSelectedEntry (  )  const [inline]

Definition at line 272 of file TGListBox.h.

References fLastActive.

Referenced by TGListBox::GetSelectedEntry().

void TGLBContainer::GetSelectedEntries ( TList selected  )  [virtual]

Definition at line 749 of file TGListBox.cxx.

References TList::Add(), TGFrameElement::fFrame, TGCompositeFrame::fList, and if().

Referenced by TGListBox::GetSelectedEntries(), and TGListBox::RemoveEntry().

TGLBEntry * TGLBContainer::Select ( Int_t  id,
Bool_t  sel 
) [virtual]

Definition at line 690 of file TGListBox.cxx.

References TGLBEntry::Activate(), TGContainer::ClearViewPort(), TGFrameElement::fFrame, fLastActive, TGContainer::fLastActiveEl, TGCompositeFrame::fList, fMultiSelect, if(), kFALSE, and kTRUE.

Referenced by TGListBox::Select(), and Select().

TGLBEntry * TGLBContainer::Select ( Int_t  id  )  [virtual]

Definition at line 681 of file TGListBox.cxx.

References kTRUE, and Select().

TGVScrollBar * TGLBContainer::GetVScrollbar (  )  const [virtual]

Reimplemented from TGContainer.

Definition at line 787 of file TGListBox.cxx.

References fListBox, and TGListBox::GetVScrollbar().

Referenced by HandleButton(), OnAutoScroll(), and SetVsbPosition().

void TGLBContainer::SetVsbPosition ( Int_t  newPos  )  [virtual]

Reimplemented from TGContainer.

Definition at line 795 of file TGListBox.cxx.

References GetVScrollbar(), TGWindow::IsMapped(), and TGVScrollBar::SetPosition().

void TGLBContainer::Layout (  )  [virtual]

Reimplemented from TGContainer.

Definition at line 501 of file TGListBox.cxx.

References TGFrame::fHeight, fListBox, TGListBox::GetViewPort(), TGFrame::GetWidth(), TGContainer::Layout(), and TGFrame::Resize().

virtual UInt_t TGLBContainer::GetDefaultWidth (  )  const [inline, virtual]

Reimplemented from TGCompositeFrame.

Definition at line 280 of file TGListBox.h.

References TGFrame::fWidth.

void TGLBContainer::SetMultipleSelections ( Bool_t  multi  )  [virtual]

Definition at line 767 of file TGListBox.cxx.

References TGFrame::Activate(), TGContainer::ClearViewPort(), TGFrameElement::fFrame, fLastActive, TGContainer::fLastActiveEl, TGCompositeFrame::fList, fMultiSelect, and kFALSE.

Referenced by TGListBox::SetMultipleSelections().

virtual Bool_t TGLBContainer::GetMultipleSelections (  )  const [inline, virtual]

Definition at line 283 of file TGListBox.h.

References fMultiSelect.

Referenced by TGListBox::GetMultipleSelections(), and TGListBox::RemoveEntry().

TGLBContainer TGLBContainer::operator= ( const TGLBContainer  )  [private]

virtual void TGLBContainer::OnAutoScroll (  )  [protected, virtual]

Reimplemented from TGContainer.

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

Reimplemented from TGContainer.

virtual void TGLBContainer::AddEntry ( TGLBEntry lbe,
TGLayoutHints lhints 
) [virtual]

virtual void TGLBContainer::AddEntrySort ( TGLBEntry lbe,
TGLayoutHints lhints 
) [virtual]

virtual void TGLBContainer::InsertEntry ( TGLBEntry lbe,
TGLayoutHints lhints,
Int_t  afterID 
) [virtual]

virtual void TGLBContainer::RemoveEntry ( Int_t  id  )  [virtual]

virtual void TGLBContainer::RemoveEntries ( Int_t  from_ID,
Int_t  to_ID 
) [virtual]

virtual void TGLBContainer::RemoveAll (  )  [virtual]

Reimplemented from TGContainer.

virtual void TGLBContainer::ActivateItem ( TGFrameElement el  )  [virtual]

Reimplemented from TGContainer.

virtual void TGLBContainer::Associate ( const TGWindow w  )  [inline, virtual]

Reimplemented from TGContainer.

Definition at line 263 of file TGListBox.h.

References TGContainer::fMsgWindow, and w.

virtual void TGLBContainer::SetListBox ( TGListBox lb  )  [inline, virtual]

Definition at line 264 of file TGListBox.h.

References fListBox.

TGListBox* TGLBContainer::GetListBox (  )  const [inline]

Definition at line 265 of file TGListBox.h.

References fListBox.

virtual Bool_t TGLBContainer::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGContainer.

virtual Bool_t TGLBContainer::HandleDoubleClick ( Event_t event  )  [virtual]

Reimplemented from TGContainer.

virtual Bool_t TGLBContainer::HandleMotion ( Event_t event  )  [virtual]

Reimplemented from TGContainer.

virtual Int_t TGLBContainer::GetSelected (  )  const [virtual]

virtual Bool_t TGLBContainer::GetSelection ( Int_t  id  )  [virtual]

virtual Int_t TGLBContainer::GetPos ( Int_t  id  )  [virtual]

TGLBEntry* TGLBContainer::GetSelectedEntry (  )  const [inline]

Definition at line 272 of file TGListBox.h.

References fLastActive.

virtual void TGLBContainer::GetSelectedEntries ( TList selected  )  [virtual]

virtual TGLBEntry* TGLBContainer::Select ( Int_t  id,
Bool_t  sel 
) [virtual]

virtual TGLBEntry* TGLBContainer::Select ( Int_t  id  )  [virtual]

virtual TGVScrollBar* TGLBContainer::GetVScrollbar (  )  const [virtual]

Reimplemented from TGContainer.

virtual void TGLBContainer::SetVsbPosition ( Int_t  newPos  )  [virtual]

Reimplemented from TGContainer.

virtual void TGLBContainer::Layout (  )  [virtual]

Reimplemented from TGContainer.

virtual UInt_t TGLBContainer::GetDefaultWidth (  )  const [inline, virtual]

Reimplemented from TGCompositeFrame.

Definition at line 280 of file TGListBox.h.

References TGFrame::fWidth.

virtual void TGLBContainer::SetMultipleSelections ( Bool_t  multi  )  [virtual]

virtual Bool_t TGLBContainer::GetMultipleSelections (  )  const [inline, virtual]

Definition at line 283 of file TGListBox.h.

References fMultiSelect.


Friends And Related Function Documentation

TGListBox [friend]

Definition at line 233 of file TGListBox.h.


Member Data Documentation

TGLBEntry* TGLBContainer::fLastActive [protected]

Definition at line 240 of file TGListBox.h.

Referenced by ActivateItem(), GetSelected(), GetSelectedEntry(), HandleButton(), HandleDoubleClick(), HandleMotion(), RemoveAll(), RemoveEntries(), RemoveEntry(), Select(), and SetMultipleSelections().

TGListBox* TGLBContainer::fListBox [protected]

Definition at line 241 of file TGListBox.h.

Referenced by GetListBox(), GetVScrollbar(), HandleButton(), HandleMotion(), Layout(), and SetListBox().

Bool_t TGLBContainer::fMultiSelect [protected]

Definition at line 242 of file TGListBox.h.

Referenced by GetMultipleSelections(), HandleButton(), HandleDoubleClick(), HandleMotion(), Select(), and SetMultipleSelections().

Int_t TGLBContainer::fChangeStatus [protected]

Definition at line 243 of file TGListBox.h.

Referenced by HandleButton(), HandleMotion(), and OnAutoScroll().

TGLBEntry* TGLBContainer::fLastActive [protected]

Definition at line 240 of file TGListBox.h.

TGListBox* TGLBContainer::fListBox [protected]

Definition at line 241 of file TGListBox.h.


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