00001 #include "Fireworks/FWInterface/src/FWFFNavigator.h" 00002 #include "TSystem.h" 00003 00004 void 00005 FWFFNavigator::nextEvent() 00006 { 00007 m_currentTransition = kNextEvent; 00008 gSystem->ExitLoop(); 00009 } 00010 00011 void 00012 FWFFNavigator::previousEvent() 00013 { 00014 m_currentTransition = kPreviousEvent; 00015 gSystem->ExitLoop(); 00016 } 00017 00018 void 00019 FWFFNavigator::firstEvent() 00020 { 00021 m_currentTransition = kFirstEvent; 00022 gSystem->ExitLoop(); 00023 } 00024 00025 void 00026 FWFFNavigator::lastEvent() 00027 { 00028 m_currentTransition = kLastEvent; 00029 gSystem->ExitLoop(); 00030 } 00031 00036 void 00037 FWFFNavigator::setCurrentEvent(const edm::Event *event) 00038 { 00039 m_currentEvent = event; 00040 if (m_firstEventID == edm::EventID()) 00041 m_firstEventID = m_currentEvent->id(); 00042 newEvent_.emit(); 00043 } 00044 00045 const edm::EventID & 00046 FWFFNavigator::getFirstEventID() 00047 { 00048 return m_firstEventID; 00049 }