Audacity  3.0.3
Public Member Functions | List of all members
MessageBoxTarget Class Referencefinal

Displays messages from a command in an AudacityMessageBox. More...

#include <CommandTargets.h>

Inheritance diagram for MessageBoxTarget:
Collaboration diagram for MessageBoxTarget:

Public Member Functions

virtual ~MessageBoxTarget ()
void Update (const wxString &message) override
- Public Member Functions inherited from CommandMessageTarget
 CommandMessageTarget ()
virtual ~CommandMessageTarget ()
virtual void StartArray ()
virtual void EndArray ()
virtual void StartStruct ()
virtual void EndStruct ()
virtual void AddItem (const wxString &value, const wxString &name={})
virtual void AddBool (const bool value, const wxString &name={})
virtual void AddItem (const double value, const wxString &name={})
virtual void StartField (const wxString &name={})
virtual void EndField ()
virtual void Flush ()
wxString Escaped (const wxString &str)

Additional Inherited Members

- Public Attributes inherited from CommandMessageTarget
std::vector< int > mCounts

Detailed Description

Displays messages from a command in an AudacityMessageBox.

Definition at line 206 of file CommandTargets.h.

Constructor & Destructor Documentation

◆ ~MessageBoxTarget()

virtual MessageBoxTarget::~MessageBoxTarget ( )

Definition at line 209 of file CommandTargets.h.

209 {}

Member Function Documentation

◆ Update()

void MessageBoxTarget::Update ( const wxString &  message)

Implements CommandMessageTarget.

Definition at line 254 of file CommandTargets.cpp.

255 {
256  // Should these messages be localized?
257  AudacityMessageBox( Verbatim( message ) );
258 }

References AudacityMessageBox(), and Verbatim().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
Definition: AudacityMessageBox.cpp:17
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
Definition: TranslatableString.h:321