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

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

#include <CommandTargets.h>

Inheritance diagram for StatusBarTarget:
Collaboration diagram for StatusBarTarget:

Public Member Functions

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

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 214 of file CommandTargets.h.

Constructor & Destructor Documentation

◆ StatusBarTarget()

StatusBarTarget::StatusBarTarget ( wxStatusBar &  sb)

Definition at line 219 of file CommandTargets.h.

220  : mStatus(sb)
221  {}

Member Function Documentation

◆ Update()

void StatusBarTarget::Update ( const wxString &  message)

Implements CommandMessageTarget.

Definition at line 462 of file CommandTargets.cpp.

463 {
464  mStatus.SetStatusText(message, 0);
465 }

References mStatus.

Member Data Documentation

◆ mStatus

wxStatusBar& StatusBarTarget::mStatus

Definition at line 217 of file CommandTargets.h.

Referenced by Update().

The documentation for this class was generated from the following files:
wxStatusBar & mStatus
Definition: CommandTargets.h:217