libyui
 
Loading...
Searching...
No Matches
YMacroRecorder Class Referenceabstract

#include <YMacroRecorder.h>

Public Member Functions

virtual ~YMacroRecorder ()
 
virtual void record (const std::string &macroFileName)=0
 
virtual void endRecording ()=0
 
virtual bool recording () const =0
 
virtual void recordWidgetProperty (YWidget *widget, const char *propertyName)=0
 
virtual void recordMakeScreenShot (bool enabled=false, const std::string &filename=std::string())=0
 

Protected Member Functions

 YMacroRecorder ()
 

Friends

class YMacro
 

Detailed Description

Abstract base class for macro recorders.

Applications should not use this directly, but the static methods in YMacro.

Constructor & Destructor Documentation

◆ YMacroRecorder()

YMacroRecorder::YMacroRecorder ( )
inlineprotected

Constructor

◆ ~YMacroRecorder()

virtual YMacroRecorder::~YMacroRecorder ( )
inlinevirtual

Destructor

Member Function Documentation

◆ endRecording()

virtual void YMacroRecorder::endRecording ( )
pure virtual

End recording and close the current macro file (if there is any).

◆ record()

virtual void YMacroRecorder::record ( const std::string & macroFileName)
pure virtual

Start recording a macro to the specified file.

◆ recording()

virtual bool YMacroRecorder::recording ( ) const
pure virtual

Return 'true' if a macro is currently being recorded.

◆ recordMakeScreenShot()

virtual void YMacroRecorder::recordMakeScreenShot ( bool enabled = false,
const std::string & filename = std::string() )
pure virtual

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.

◆ recordWidgetProperty()

virtual void YMacroRecorder::recordWidgetProperty ( YWidget * widget,
const char * propertyName )
pure virtual

Record one widget property.


The documentation for this class was generated from the following file: