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

Detailed Description

Definition at line 503 of file HistoDisplay.h.


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.

References fCurrentItem.

00519   { return fCurrentItem; }

TVirtualPad* HistoDisplaySlideTimer::GetCurrentPad (  )  const [inline]

Definition at line 524 of file HistoDisplay.h.

References fCurrentPad.

Referenced by HistoDisplay::ProcessMessage().

00525   { return fCurrentPad; } 

Bool_t HistoDisplaySlideTimer::Notify (  ) 

Definition at line 3399 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.

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

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 GetCurrentItem(), Notify(), and SetCurrentItem().

TVirtualPad* HistoDisplaySlideTimer::fCurrentPad [private]

Definition at line 507 of file HistoDisplay.h.

Referenced by GetCurrentPad(), Notify(), and SetCurrentPad().

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 15 Jul 2018 for loon by  doxygen 1.6.1