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

ProgressToMessageTarget formats the percentage complete text as a message and sends it to that message target. More...

#include <CommandTargets.h>

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

Public Member Functions

 ProgressToMessageTarget (std::unique_ptr< CommandMessageTarget > &&target)
 
 ~ProgressToMessageTarget () override
 
void Update (double completed) override
 
- Public Member Functions inherited from CommandProgressTarget
virtual ~CommandProgressTarget ()
 
virtual void Update (double completed)=0
 

Private Attributes

std::unique_ptr< CommandMessageTargetmTarget
 

Detailed Description

ProgressToMessageTarget formats the percentage complete text as a message and sends it to that message target.

Definition at line 167 of file CommandTargets.h.

Constructor & Destructor Documentation

◆ ProgressToMessageTarget()

ProgressToMessageTarget::ProgressToMessageTarget ( std::unique_ptr< CommandMessageTarget > &&  target)
inline

Definition at line 172 of file CommandTargets.h.

173 : mTarget(std::move(target))
174 { }
std::unique_ptr< CommandMessageTarget > mTarget

◆ ~ProgressToMessageTarget()

ProgressToMessageTarget::~ProgressToMessageTarget ( )
overridedefault

Member Function Documentation

◆ Update()

void ProgressToMessageTarget::Update ( double  completed)
inlineoverridevirtual

Implements CommandProgressTarget.

Definition at line 176 of file CommandTargets.h.

177 {
178 mTarget->Update(wxString::Format(wxT("%.2f%%"), completed*100));
179 }
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

Member Data Documentation

◆ mTarget

std::unique_ptr<CommandMessageTarget> ProgressToMessageTarget::mTarget
private

Definition at line 170 of file CommandTargets.h.


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