Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
StatusBarTarget Class Referencefinal

Displays messages from a command in a wxStatusBar. More...

#include <wxCommandTargets.h>

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

Public Member Functions

 StatusBarTarget (wxStatusBar &sb)
 
 ~StatusBarTarget () 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)
 

Private Attributes

wxStatusBar & mStatus
 

Additional Inherited Members

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

Detailed Description

Displays messages from a command in a wxStatusBar.

Definition at line 61 of file wxCommandTargets.h.

Constructor & Destructor Documentation

◆ StatusBarTarget()

StatusBarTarget::StatusBarTarget ( wxStatusBar &  sb)
inline

Definition at line 66 of file wxCommandTargets.h.

67 : mStatus(sb)
68 {}
wxStatusBar & mStatus

◆ ~StatusBarTarget()

StatusBarTarget::~StatusBarTarget ( )
overridedefault

Member Function Documentation

◆ Update()

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

Implements CommandMessageTarget.

Definition at line 195 of file wxCommandTargets.cpp.

196{
197 mStatus.SetStatusText(message, 0);
198}

Member Data Documentation

◆ mStatus

wxStatusBar& StatusBarTarget::mStatus
private

Definition at line 64 of file wxCommandTargets.h.


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