Represents state of TRecorder when replaying previously recorded events.
Not intended to be used by a user directly.
Definition at line 395 of file TRecorder.h.
Public Member Functions | |
virtual void | Continue () |
Continues previously paused replaying. | |
TRecorder::ERecorderState | GetState () const override |
TClass * | IsA () const override |
void | Pause (TRecorder *r) override |
Pauses replaying. | |
void | RegisterWindow (Window_t w) |
Creates mapping for the newly registered window w and adds this mapping to fWindowList. | |
void | ReplayRealtime () |
Replays the next event. | |
void | ReplayStop (TRecorder *r) override |
Cancels replaying. | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TRecorderState | |
virtual | ~TRecorderState () |
virtual void | ListCmd (const char *) |
virtual void | ListGui (const char *) |
virtual void | PrevCanvases (const char *, Option_t *) |
virtual Bool_t | Replay (TRecorder *, const char *, Bool_t, TRecorder::EReplayModes) |
virtual void | Resume (TRecorder *) |
virtual void | Start (TRecorder *, const char *, Option_t *, Window_t *, Int_t) |
virtual void | Stop (TRecorder *, Bool_t) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TRecorderState | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Member Functions | |
TRecorderReplaying (const char *filename) | |
Allocates all necessary data structures used for replaying What is allocated here is deleted in destructor. | |
Bool_t | Initialize (TRecorder *r, Bool_t showMouseCursor, TRecorder::EReplayModes mode) |
Initialization of data structures for replaying. | |
Protected Member Functions inherited from TRecorderState | |
void | ChangeState (TRecorder *r, TRecorderState *s, Bool_t deletePreviousState) |
Private Member Functions | |
~TRecorderReplaying () override | |
Closes all signal-slot connections Frees all memory allocated in constructor. | |
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. | |
Bool_t | FilterEvent (TRecGuiEvent *e) |
Bool_t | PrepareNextEvent () |
Finds the next event in log file to replay and sets it to fNextEvent. | |
Bool_t | RemapWindowReferences () |
All references to the old windows (IDs) in fNextEvent are replaced by new ones according to the mappings in fWindowList. | |
Friends | |
class | TRecorderInactive |
class | TRecorderPaused |
#include <TRecorder.h>
|
overrideprivate |
Closes all signal-slot connections Frees all memory allocated in constructor.
Definition at line 356 of file TRecorder.cxx.
|
protected |
Allocates all necessary data structures used for replaying What is allocated here is deleted in destructor.
Definition at line 322 of file TRecorder.cxx.
|
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 781 of file TRecorder.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 475 of file TRecorder.h.
|
virtual |
Continues previously paused replaying.
Definition at line 921 of file TRecorder.cxx.
|
inlinestatic |
Definition at line 475 of file TRecorder.h.
|
private |
Definition at line 621 of file TRecorder.cxx.
|
inlineoverridevirtual |
Implements TRecorderState.
Definition at line 466 of file TRecorder.h.
|
protected |
Initialization of data structures for replaying.
Start of replaying.
Return value:
Definition at line 388 of file TRecorder.cxx.
|
inlineoverridevirtual |
Reimplemented from TRecorderState.
Definition at line 475 of file TRecorder.h.
|
overridevirtual |
|
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 676 of file TRecorder.cxx.
void TRecorderReplaying::RegisterWindow | ( | Window_t | w | ) |
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 493 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 561 of file TRecorder.cxx.
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 exceptions are determined by TRecorderReplaying::CanOverlap()
Definition at line 825 of file TRecorder.cxx.
|
overridevirtual |
|
overridevirtual |
Reimplemented from TRecorderState.
|
inline |
Definition at line 475 of file TRecorder.h.
|
friend |
Definition at line 459 of file TRecorder.h.
|
friend |
Definition at line 460 of file TRecorder.h.
|
private |
Definition at line 411 of file TRecorder.h.
|
private |
Definition at line 423 of file TRecorder.h.
|
private |
Definition at line 418 of file TRecorder.h.
|
private |
Definition at line 428 of file TRecorder.h.
|
private |
Definition at line 448 of file TRecorder.h.
|
private |
Definition at line 424 of file TRecorder.h.
|
private |
Definition at line 419 of file TRecorder.h.
|
private |
Definition at line 429 of file TRecorder.h.
|
private |
Definition at line 408 of file TRecorder.h.
|
private |
Definition at line 456 of file TRecorder.h.
|
private |
Definition at line 422 of file TRecorder.h.
|
private |
Definition at line 417 of file TRecorder.h.
|
private |
Definition at line 427 of file TRecorder.h.
|
private |
Definition at line 433 of file TRecorder.h.
|
private |
Definition at line 437 of file TRecorder.h.
|
private |
Definition at line 439 of file TRecorder.h.
|
private |
Definition at line 405 of file TRecorder.h.
|
private |
Definition at line 426 of file TRecorder.h.
|
private |
Definition at line 454 of file TRecorder.h.
|
private |
Definition at line 414 of file TRecorder.h.
|
private |
Definition at line 442 of file TRecorder.h.
|
private |
Definition at line 421 of file TRecorder.h.
|
private |
Definition at line 435 of file TRecorder.h.
|
private |
Definition at line 416 of file TRecorder.h.
|
private |
Definition at line 431 of file TRecorder.h.