Audacity  2.2.0
AudacityLogger Class Referencefinal

AudacityLogger is a thread-safe logger class. More...

#include <AudacityLogger.h>

Inheritance diagram for AudacityLogger:

Public Member Functions

 AudacityLogger ()
 
virtual ~AudacityLogger ()
 
void Show (bool show=true)
 
void Destroy ()
 

Protected Member Functions

void Flush () override
 
void DoLogText (const wxString &msg) override
 

Private Member Functions

void OnCloseWindow (wxCloseEvent &e)
 
void OnClose (wxCommandEvent &e)
 
void OnClear (wxCommandEvent &e)
 
void OnSave (wxCommandEvent &e)
 

Private Attributes

Destroy_ptr< wxFrame > mFrame
 
wxTextCtrl * mText
 
wxString mBuffer
 
bool mUpdated
 

Detailed Description

AudacityLogger is a thread-safe logger class.

Provides thread-safe logging based on the wxWidgets log facility.

Constructor & Destructor Documentation

AudacityLogger::AudacityLogger ( )

References mText, and mUpdated.

AudacityLogger::~AudacityLogger ( )
virtual

References Destroy().

Member Function Documentation

void AudacityLogger::Destroy ( )
void AudacityLogger::DoLogText ( const wxString &  msg)
overrideprotected

References _TS, AUDACITY_VERSION_STRING, Flush(), mBuffer, and mUpdated.

Referenced by OnClear().

void AudacityLogger::Flush ( )
overrideprotected

References mBuffer, mFrame, mText, and mUpdated.

Referenced by DoLogText(), and Show().

void AudacityLogger::OnClear ( wxCommandEvent &  e)
private

References DoLogText(), and mBuffer.

Referenced by Destroy(), and Show().

void AudacityLogger::OnClose ( wxCommandEvent &  e)
private

References OnCloseWindow().

Referenced by Destroy(), and Show().

void AudacityLogger::OnCloseWindow ( wxCloseEvent &  e)
private

References Destroy(), and Show().

Referenced by Destroy(), OnClose(), and Show().

void AudacityLogger::OnSave ( wxCommandEvent &  e)
private

References _(), FileNames::Export, mFrame, mText, and FileNames::SelectFile().

Referenced by Destroy(), and Show().

Member Data Documentation

wxString AudacityLogger::mBuffer
private

Referenced by DoLogText(), Flush(), OnClear(), and Show().

Destroy_ptr<wxFrame> AudacityLogger::mFrame
private

Referenced by Destroy(), Flush(), OnSave(), and Show().

wxTextCtrl* AudacityLogger::mText
private

Referenced by AudacityLogger(), Flush(), OnSave(), and Show().

bool AudacityLogger::mUpdated
private

Referenced by AudacityLogger(), DoLogText(), and Flush().


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