Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HistoDisplaySlideTimer Class Reference

#include <HistoDisplay.h>

List of all members.

Public Member Functions

 HistoDisplaySlideTimer (HistoDisplay *histodisplay, Long_t msec=2000, Bool_t mode=kTRUE)
Bool_t Notify ()
void SetCurrentItem (TGListTreeItem *item)
TGListTreeItem * GetCurrentItem () const
void SetCurrentPad (TVirtualPad *pad)
TVirtualPad * GetCurrentPad () const

Private Attributes

HistoDisplayfHistoDisplay
TGListTreeItem * fCurrentItem
TVirtualPad * fCurrentPad


Constructor & Destructor Documentation

HistoDisplaySlideTimer::HistoDisplaySlideTimer HistoDisplay histodisplay,
Long_t  msec = 2000,
Bool_t  mode = kTRUE
[inline]
 

Definition at line 509 of file HistoDisplay.h.

References fHistoDisplay.

00511     : TTimer( msec, mode ) { fHistoDisplay = histodisplay; }


Member Function Documentation

TGListTreeItem* HistoDisplaySlideTimer::GetCurrentItem  )  const [inline]
 

Definition at line 518 of file HistoDisplay.h.

00519   { return fCurrentItem; }

TVirtualPad* HistoDisplaySlideTimer::GetCurrentPad  )  const [inline]
 

Definition at line 524 of file HistoDisplay.h.

Referenced by HistoDisplay::ProcessMessage().

00525   { return fCurrentPad; } 

Bool_t HistoDisplaySlideTimer::Notify  ) 
 

Definition at line 3397 of file HistoDisplay.cxx.

References HistoDisplay::CycleSlides(), fCurrentItem, fCurrentPad, fHistoDisplay, HistoDisplay::fHistoListTree, HistoDisplay::fPauseHistoButton, HistoDisplay::fReadFileButton, HistoDisplay::fRestartHistoButton, HistoDisplay::fSelectedItem, HistoDisplay::Green, and HistoDisplay::Running.

03398 {
03399   //cout << " In Notify (Slide Timer ) " << endl;
03400 
03401   if ( this &&
03402        !fHistoDisplay->Running  ) {
03403 
03404     fHistoDisplay->Running = kFALSE;
03405 
03406 
03407   
03408     TurnOff();   // same as Remove();
03409 
03410     fHistoDisplay->fPauseHistoButton->SetState( kButtonDisabled );
03411     fHistoDisplay->fRestartHistoButton->SetState( kButtonUp );
03412 
03413     fHistoDisplay->fHistoListTree
03414       ->HighlightItem( fHistoDisplay->fSelectedItem );
03415     fHistoDisplay->fClient->NeedRedraw( fHistoDisplay->fHistoListTree );
03416 
03417     //cout << "Update done" << endl << endl;
03418     cout << "Slide show stopped" << endl << endl;
03419  
03420 
03421   } //if ( this &&
03422 
03423   //fHistoDisplay->CycleSlides( fCurrentItem );
03424   fHistoDisplay->CycleSlides( fCurrentItem, fCurrentPad );
03425   fHistoDisplay->fReadFileButton->ChangeBackground(fHistoDisplay->Green);
03426   // cout << "Button changed to green\n";
03427    gClient->NeedRedraw(fHistoDisplay->fReadFileButton);
03428   Reset();
03429   return kFALSE;
03430 
03431 }

void HistoDisplaySlideTimer::SetCurrentItem TGListTreeItem *  item  )  [inline]
 

Definition at line 515 of file HistoDisplay.h.

References fCurrentItem.

00516   { fCurrentItem = item; }

void HistoDisplaySlideTimer::SetCurrentPad TVirtualPad *  pad  )  [inline]
 

Definition at line 521 of file HistoDisplay.h.

References fCurrentPad.

00522   { fCurrentPad = pad; } 


Member Data Documentation

TGListTreeItem* HistoDisplaySlideTimer::fCurrentItem [private]
 

Definition at line 506 of file HistoDisplay.h.

Referenced by Notify(), and SetCurrentItem().

TVirtualPad* HistoDisplaySlideTimer::fCurrentPad [private]
 

Definition at line 507 of file HistoDisplay.h.

Referenced by Notify(), and SetCurrentPad().

HistoDisplay* HistoDisplaySlideTimer::fHistoDisplay [private]
 

Definition at line 505 of file HistoDisplay.h.

Referenced by HistoDisplaySlideTimer(), and Notify().


The documentation for this class was generated from the following files:
Generated on Fri Mar 28 16:02:09 2008 for loon by  doxygen 1.3.9.1