221 std::cout <<
GetText() << std::endl;
487 void ListCmd(
const char *filename);
490 void ListGui(
const char *filename);
729 virtual void ListCmd(
const char *filename);
730 virtual void ListGui(
const char *filename);
unsigned long long ULong64_t
#define ClassDef(name, id)
R__EXTERN TApplication * gApplication
virtual Long_t ProcessLine(const char *line, Bool_t sync=kFALSE, Int_t *error=0)
Process a single command line, either a C++ statement or an interpreter command starting with a "....
Using a TBrowser one can browse all ROOT objects.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Window_t fFilteredIds[fgWidgetsCount]
TGPictureButton * fStartStop
virtual ~TGRecorder()
Destructor. Cleanup the GUI.
TGCheckButton * fCursorCheckBox
void StartStop()
Handles push of the fStartStop button according to the current recorder state.
TGPictureButton * fReplay
TGRecorder(const TGWindow *p=0, UInt_t w=230, UInt_t h=150)
The GUI for the recorder.
void Update()
Called when fTimer timeouts (every 0.025 second) Updates GUI of recorder.
static const Int_t fgWidgetsCount
void SetDefault()
Sets GUI to the default inactive state.
void Replay()
Handles push of fReplay button according to the current recorder state.
Mother of all ROOT objects.
virtual ERecEventType GetType() const
const char * GetText() const
virtual void ReplayEvent(Bool_t)
void SetText(const char *text)
virtual void ReplayEvent(Bool_t showMouseCursor=kTRUE)=0
virtual void SetTime(TTime t)
virtual TTime GetTime() const
virtual ERecEventType GetType() const =0
virtual void ReplayEvent(Bool_t showMouseCursor=kTRUE)
Replays stored GUI event.
static Event_t * CreateEvent(TRecGuiEvent *ge)
Converts TRecGuiEvent type to Event_t type.
virtual ERecEventType GetType() const
TRecWinPair(Window_t key, Window_t value)
virtual ~TRecorderInactive()
virtual void ListCmd(const char *filename)
Prints out commandline events recorded in given file.
virtual void Start(TRecorder *r, const char *filename, Option_t *option, Window_t *w=0, Int_t winCount=0)
Switches from INACTIVE state to RECORDING and starts recording.
void PrevCanvases(const char *filename, Option_t *option)
Save previous canvases in a .root file.
virtual TRecorder::ERecorderState GetState() const
TSeqCollection * fCollect
virtual Bool_t Replay(TRecorder *r, const char *filename, Bool_t showMouseCursor, TRecorder::EReplayModes mode)
Switches from INACTIVE state of recorder to REPLAYING Return kTRUE if replaying has started or kFALSE...
static void DumpRootEvent(TRecGuiEvent *e, Int_t n)
Prints out attributes of one GUI event TRecGuiEvent *e Int_n n is number of event if called in cycle.
static long DisplayValid(Long_t n)
virtual void ListGui(const char *filename)
Prints out GUI events recorded in given file.
virtual TRecorder::ERecorderState GetState() const
TRecorderReplaying * fReplayingState
virtual void Resume(TRecorder *r)
Continues replaying.
virtual ~TRecorderPaused()
TRecorderPaused(TRecorderReplaying *state)
Rememeber the recorder state that is paused.
virtual void ReplayStop(TRecorder *r)
Replaying is cancelled.
TRecExtraEvent * fExtraEvent
void FilterEventPave()
Change the state of the flag to kTRUE when you are recording a pavelabel.
void RecordMousePosition()
Try to record all mouse moves...
virtual TRecorder::ERecorderState GetState() const
TRecorderRecording(TRecorder *r, const char *filename, Option_t *option, Window_t *w, Int_t winCount)
Initializes TRecorderRecording for recording What is allocated here is deleted in destructor.
void RegisterWindow(Window_t w)
This method is called when RegisteredWindow(Window_t) is emitted from TGClient.
virtual void Stop(TRecorder *r, Bool_t guiCommand)
Disconnects all slots and stopps recording.
Bool_t StartRecording()
Connects appropriate signals and slots in order to gain all registered windows and processed events i...
void StartEditing()
Memorize the starting time of editinga TLatex or a TPaveLabel.
void RecordGuiBldEvent(Event_t *e)
Special case for the gui builder, having a timer handling some of the events.
void RecordPave(const TObject *obj)
Records TPaveLabel object created in TCreatePrimitives::Pave()
virtual ~TRecorderRecording()
Freeing of allocated memory.
Bool_t IsFiltered(Window_t id)
Returns kTRUE if passed id belongs to window IDs of recorder GUI itself.
void SetTypeOfConfigureNotify(Event_t *e)
Sets type of kConfigureNotify event to one of EConfigureNotify.
void RecordGuiCNEvent(Event_t *e)
Records GUI Event_t *e of type kConfigureNotify.
void RecordExtraEvent(TString line, TTime extTime)
Records TLatex or TPaveLabel object created in TCreatePrimitives, ExtTime is needed for the correct r...
void RecordGuiEvent(Event_t *e, Window_t wid)
Records GUI Event_t *e different from kConfigureNotify (they are recorded in TRecorderRecording::Reco...
void RecordText(const TObject *obj)
Records TLatex object created in TCreatePrimitives::Text()
void CopyEvent(Event_t *e, Window_t wid)
Copies all items of given event to fGuiEvent.
void RecordCmdEvent(const char *line)
Records commandline event (text and time) ans saves the previous commandline event This 1 event delay...
Bool_t FilterEvent(TRecGuiEvent *e)
virtual void ReplayStop(TRecorder *r)
Cancels replaying.
virtual ~TRecorderReplaying()
Closes all signal-slot connections Frees all memory allocated in contructor.
virtual TRecorder::ERecorderState GetState() const
Bool_t RemapWindowReferences()
All references to the old windows (IDs) in fNextEvent are replaced by new ones according to the mappi...
TRecExtraEvent * fExtraEvent
virtual void Continue()
Continues previously paused replaying.
Bool_t CanOverlap()
ButtonPress and ButtonRelease must be sometimes replayed more times Example: pressing of a button ope...
virtual void Pause(TRecorder *r)
Pauses replaying.
TRecorderReplaying(const char *filename)
Allocates all necessary data structures used for replaying What is allocated here is deleted in destr...
Bool_t PrepareNextEvent()
Finds the next event in log file to replay and sets it to fNextEvent.
Bool_t Initialize(TRecorder *r, Bool_t showMouseCursor, TRecorder::EReplayModes mode)
Initialization of data structures for 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.
virtual void PrevCanvases(const char *, Option_t *)
virtual void Resume(TRecorder *)
virtual ~TRecorderState()
virtual void Start(TRecorder *, const char *, Option_t *, Window_t *, Int_t)
virtual void ListCmd(const char *)
virtual void ReplayStop(TRecorder *)
void ChangeState(TRecorder *r, TRecorderState *s, Bool_t deletePreviousState)
virtual void Pause(TRecorder *)
virtual void ListGui(const char *)
virtual TRecorder::ERecorderState GetState() const =0
virtual Bool_t Replay(TRecorder *, const char *, Bool_t, TRecorder::EReplayModes)
virtual void Stop(TRecorder *, Bool_t)
void Stop(Bool_t guiCommand=kFALSE)
Stopps recording events.
void ReplayStop()
Cancells replaying.
void Resume()
Resumes replaying.
TRecorderState * fRecorderState
virtual TRecorder::ERecorderState GetState() const
Get current state of recorder.
void Start(const char *filename, Option_t *option="RECREATE", Window_t *w=0, Int_t winCount=0)
Starts recording events.
void ListGui(const char *filename)
Prints out recorded GUI events.
void Pause()
Pauses replaying.
TRecorder & operator=(const TRecorder &)
void Browse(TBrowser *)
Browse the recorder from a ROOT file.
TRecorder(const TRecorder &)
Current state of recorder.
void ListCmd(const char *filename)
Prints out recorded commandline events.
virtual ~TRecorder()
Destructor.
TRecorder()
Creates initial INACTIVE state for the recorder.
void PrevCanvases(const char *filename, Option_t *option)
Save previous canvases in a .root file.
void ChangeState(TRecorderState *newstate, Bool_t deletePreviousState=kTRUE)
Changes state from the current to the passed one (newstate) Deletes the old state if delPreviousState...
Sequenceable collection abstract base class.
const char * Data() const
Basic time type with millisecond precision.
Handles synchronous and a-synchronous timer events.
A TTree represents a columnar dataset.
static constexpr double s