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

Displays messages from a command in a BasicUI::MessageBox. More...

#include <CommandTargets.h>

Inheritance diagram for MessageBoxTarget:
[legend]
Collaboration diagram for MessageBoxTarget:
[legend]

Public Member Functions

 ~MessageBoxTarget () override
 
void Update (const wxString &message) override
 
- Public Member Functions inherited from CommandMessageTarget
 CommandMessageTarget ()
 
virtual ~CommandMessageTarget ()
 
virtual void Update (const wxString &message)=0
 
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 a BasicUI::MessageBox.

Definition at line 191 of file CommandTargets.h.

Constructor & Destructor Documentation

◆ ~MessageBoxTarget()

MessageBoxTarget::~MessageBoxTarget ( )
overridedefault

Member Function Documentation

◆ Update()

void MessageBoxTarget::Update ( const wxString &  message)
overridevirtual

Implements CommandMessageTarget.

Definition at line 249 of file CommandTargets.cpp.

250{
251 // Should these messages be localized?
253}
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
MessageBoxResult ShowMessageBox(const TranslatableString &message, MessageBoxOptions options={})
Show a modal message box with either Ok or Yes and No, and optionally Cancel.
Definition: BasicUI.h:287

References BasicUI::ShowMessageBox(), and Verbatim().

Here is the call graph for this function:

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