27 #include "YMacroRecorder.h" 28 #include "YMacroPlayer.h" 55 _recorder->
record( macroFile );
78 _player->
play( macroFile );
84 if ( _player && _player->
playing() )
static void setPlayer(YMacroPlayer *player)
Set a macro player.
Abstract base class for macro recorders.
virtual void playNextBlock()=0
Play the next block from the current macro, if there is one playing.
virtual void record(const std::string ¯oFileName)=0
Start recording a macro to the specified file.
Abstract base class for macro player.
virtual void play(const std::string ¯oFile)=0
Play a macro from the specified macro file.
static void deletePlayer()
Delete the current macro player if there is one.
static YMacroRecorder * recorder()
Return the current macro recorder or 0 if there is none.
virtual void endRecording()=0
End recording and close the current macro file (if there is any).
static YMacroPlayer * player()
Return the current macro player or 0 if there is none.
static void endRecording()
End macro recording.
static bool recording()
Return 'true' if a macro is currently being recorded.
static void setRecorder(YMacroRecorder *recorder)
Set a macro recorder.
virtual bool recording() const =0
Return 'true' if a macro is currently being recorded.
static void play(const std::string ¯oFile)
Play a macro from the specified macro file.
static void playNextBlock()
Play the next block from the current macro, if there is one playing.
static void record(const std::string ¯oFile)
Record a macro to the specified macro file.
virtual bool playing() const =0
Return 'true' if a macro is currently being played.
static bool playing()
Return 'true' if a macro is currently being played.
static void deleteRecorder()
Delete the current macro recorder if there is one.