#include <YMacroRecorder.h>
Public Member Functions | |
YMacroRecorder (const string ¯oFileName) | |
virtual | ~YMacroRecorder () |
void | recordUserInput (const YCPValue &input) |
void | recordWidgetProperty (YWidget *widget, const char *propertyName) |
void | recordMakeScreenShot (bool enabled=false, const char *filename=0) |
void | beginBlock () |
void | endBlock () |
Protected Member Functions | |
void | openMacroFile (const string ¯oFileName) |
void | closeMacroFile () |
void | writeMacroFileHeader () |
void | writeMacroFileFooter () |
Protected Attributes | |
FILE * | _macroFile |
int | _screenShotCount |
|
Constructor |
|
Destructor |
|
Begin a macro block that will be executed as a whole. |
|
Close the internally used macro file. |
|
End a macro block that will be executed as a whole. |
|
Open the internally used macro file for writing. On error a message is issued to the log file. All write functions check the internally used macro file prior to using it, so it is perfectly safe to use them even if the initial open failed. |
|
Record a "UI::MakeScreenShot()" statement. If 'enabled' is 'false', this statement will be commented out. If no file name is given, a default file name (with auto-increment) will be used. |
|
Record one user input. |
|
Record one widget property. |
|
Write a standardized macro file footer. |
|
Write a standardized macro file header. |
|
The internally used macro file; valid if non-null. |
|
A counter for making screen shots. |