ROOT
6.07/01
Reference Guide
|
Definition at line 568 of file TRecorder.h.
Public Member Functions | |
virtual TRecorder::ERecorderState | GetState () const |
virtual void | Pause (TRecorder *r) |
Pauses replaying. More... | |
virtual void | Continue () |
Continues previously paused replaying. More... | |
virtual void | ReplayStop (TRecorder *r) |
Cancels replaying. More... | |
void | RegisterWindow (Window_t w) |
Creates mapping for the newly registered window w and adds this mapping to fWindowList. More... | |
void | ReplayRealtime () |
Replays the next event. More... | |
Public Member Functions inherited from TRecorderState | |
virtual | ~TRecorderState () |
virtual void | Start (TRecorder *, const char *, Option_t *, Window_t *, Int_t) |
virtual void | Stop (TRecorder *, Bool_t) |
virtual Bool_t | Replay (TRecorder *, const char *, Bool_t, TRecorder::EReplayModes) |
virtual void | Resume (TRecorder *) |
virtual void | ListCmd (const char *) |
virtual void | ListGui (const char *) |
virtual void | PrevCanvases (const char *, Option_t *) |
Protected Member Functions | |
TRecorderReplaying (const char *filename) | |
Bool_t | Initialize (TRecorder *r, Bool_t showMouseCursor, TRecorder::EReplayModes mode) |
Initialization of data structures for replaying. More... | |
Protected Member Functions inherited from TRecorderState | |
void | ChangeState (TRecorder *r, TRecorderState *s, Bool_t deletePreviousState) |
Private Member Functions | |
virtual | ~TRecorderReplaying () |
Closes all signal-slot connections Frees all memory allocated in contructor. More... | |
Bool_t | PrepareNextEvent () |
Finds the next event in log file to replay and sets it to fNextEvent. More... | |
Bool_t | RemapWindowReferences () |
All references to the old windows (IDs) in fNextEvent are replaced by new ones according to the mappings in fWindowList. More... | |
Bool_t | CanOverlap () |
ButtonPress and ButtonRelease must be sometimes replayed more times Example: pressing of a button opens small window and user chooses something from that window (color) Window must be opened while user is choosing. More... | |
Bool_t | FilterEvent (TRecGuiEvent *e) |
Friends | |
class | TRecorderInactive |
class | TRecorderPaused |
#include <TRecorder.h>
|
privatevirtual |
Closes all signal-slot connections Frees all memory allocated in contructor.
Definition at line 402 of file TRecorder.cxx.
|
protected |
|
private |
ButtonPress and ButtonRelease must be sometimes replayed more times Example: pressing of a button opens small window and user chooses something from that window (color) Window must be opened while user is choosing.
Definition at line 827 of file TRecorder.cxx.
Referenced by ReplayRealtime().
|
virtual |
Continues previously paused replaying.
Definition at line 967 of file TRecorder.cxx.
Referenced by TRecorderPaused::Resume().
|
private |
Definition at line 667 of file TRecorder.cxx.
Referenced by PrepareNextEvent().
|
inlinevirtual |
Implements TRecorderState.
Definition at line 639 of file TRecorder.h.
|
protected |
Initialization of data structures for replaying.
Start of replaying.
Return value:
Definition at line 434 of file TRecorder.cxx.
Referenced by TRecorderInactive::Replay().
|
private |
Finds the next event in log file to replay and sets it to fNextEvent.
Reads both from CmdTree and GuiTree and chooses that event that becomes earlier
If GUI event should be replayed, we must first make sure that there is appropriate mapping for this event
RETURN VALUE: kFALSE = there is no event to be replayed kTRUE = there is still at least one event to be replayed. Cases:
Definition at line 722 of file TRecorder.cxx.
Referenced by Initialize(), and ReplayRealtime().
Creates mapping for the newly registered window w and adds this mapping to fWindowList.
Called by signal whenever a new window is registered during replaying.
The new window ID is mapped to the old one with the same number in the list of registered windows. It means that 1st new window is mapped to the 1st original, 2nd to the 2nd, Nth new to the Nth original.
Definition at line 539 of file TRecorder.cxx.
|
private |
All references to the old windows (IDs) in fNextEvent are replaced by new ones according to the mappings in fWindowList.
Definition at line 607 of file TRecorder.cxx.
Referenced by PrepareNextEvent().
void TRecorderReplaying::ReplayRealtime | ( | ) |
Replays the next event.
It is called when fTimer times out. Every time fTimer is set again to time equal to time difference between current two events being replayed.
It can happen that execution of an event lasts different time during the recording and during the replaying. If fTimer times out too early and the previous event has not been yet replayed, it is usually postponed in order to keep events execution in the right order. The excpetions are determined by TRecorderReplaying::CanOverlap()
Definition at line 871 of file TRecorder.cxx.
|
friend |
Definition at line 632 of file TRecorder.h.
Referenced by ReplayRealtime(), and ReplayStop().
|
friend |
Definition at line 633 of file TRecorder.h.
Referenced by Pause().
|
private |
Definition at line 584 of file TRecorder.h.
Referenced by Initialize().
|
private |
Definition at line 596 of file TRecorder.h.
Referenced by Initialize(), PrepareNextEvent(), and ~TRecorderReplaying().
|
private |
Definition at line 591 of file TRecorder.h.
Referenced by Initialize(), and PrepareNextEvent().
|
private |
Definition at line 601 of file TRecorder.h.
Referenced by Initialize(), and PrepareNextEvent().
|
private |
Definition at line 621 of file TRecorder.h.
Referenced by Initialize(), and ReplayRealtime().
|
private |
Definition at line 597 of file TRecorder.h.
Referenced by Initialize(), PrepareNextEvent(), and ~TRecorderReplaying().
|
private |
Definition at line 592 of file TRecorder.h.
Referenced by Initialize(), and PrepareNextEvent().
|
private |
Definition at line 602 of file TRecorder.h.
Referenced by Initialize(), and PrepareNextEvent().
|
private |
Definition at line 581 of file TRecorder.h.
Referenced by Initialize(), and ~TRecorderReplaying().
|
private |
Definition at line 629 of file TRecorder.h.
Referenced by Initialize(), and RegisterWindow().
|
private |
Definition at line 595 of file TRecorder.h.
Referenced by CanOverlap(), Initialize(), PrepareNextEvent(), RegisterWindow(), RemapWindowReferences(), and ~TRecorderReplaying().
|
private |
Definition at line 590 of file TRecorder.h.
Referenced by Initialize(), and PrepareNextEvent().
|
private |
Definition at line 600 of file TRecorder.h.
Referenced by Initialize(), PrepareNextEvent(), and RemapWindowReferences().
|
private |
Definition at line 606 of file TRecorder.h.
Referenced by RegisterWindow(), RemapWindowReferences(), and ~TRecorderReplaying().
|
private |
Definition at line 610 of file TRecorder.h.
Referenced by CanOverlap(), Continue(), PrepareNextEvent(), RegisterWindow(), and ReplayRealtime().
|
private |
Definition at line 612 of file TRecorder.h.
Referenced by Continue(), and ReplayRealtime().
|
private |
Definition at line 578 of file TRecorder.h.
Referenced by Initialize(), and ReplayRealtime().
|
private |
Definition at line 599 of file TRecorder.h.
Referenced by Initialize(), and RegisterWindow().
|
private |
Definition at line 627 of file TRecorder.h.
Referenced by Initialize(), and ReplayRealtime().
|
private |
Definition at line 587 of file TRecorder.h.
Referenced by Continue(), Initialize(), Pause(), RegisterWindow(), RemapWindowReferences(), ReplayRealtime(), and ~TRecorderReplaying().
|
private |
Definition at line 615 of file TRecorder.h.
Referenced by Initialize(), RegisterWindow(), and RemapWindowReferences().
|
private |
Definition at line 594 of file TRecorder.h.
Referenced by Initialize(), and RegisterWindow().
|
private |
Definition at line 608 of file TRecorder.h.
Referenced by RegisterWindow(), RemapWindowReferences(), and ~TRecorderReplaying().
|
private |
Definition at line 589 of file TRecorder.h.
Referenced by Initialize(), and RegisterWindow().
|
private |
Definition at line 604 of file TRecorder.h.
Referenced by Initialize(), and RegisterWindow().