Audacity 3.2.0
Public Member Functions | List of all members
anonymous_namespace{wxWidgetsBasicUI.cpp}::MyGenericProgress Struct Reference
Inheritance diagram for anonymous_namespace{wxWidgetsBasicUI.cpp}::MyGenericProgress:
[legend]
Collaboration diagram for anonymous_namespace{wxWidgetsBasicUI.cpp}::MyGenericProgress:
[legend]

Public Member Functions

 MyGenericProgress (const TranslatableString &title, const TranslatableString &message, wxWindow *parent=nullptr)
 
 ~MyGenericProgress () override=default
 
ProgressResult Pulse () override
 Give some visual indication of progress. Call only on the main thread. More...
 
- Public Member Functions inherited from BasicUI::GenericProgressDialog
virtual ~GenericProgressDialog ()
 
virtual ProgressResult Pulse ()=0
 Give some visual indication of progress. Call only on the main thread. More...
 

Detailed Description

Definition at line 182 of file wxWidgetsBasicUI.cpp.

Constructor & Destructor Documentation

◆ MyGenericProgress()

anonymous_namespace{wxWidgetsBasicUI.cpp}::MyGenericProgress::MyGenericProgress ( const TranslatableString title,
const TranslatableString message,
wxWindow *  parent = nullptr 
)
inline

Definition at line 183 of file wxWidgetsBasicUI.cpp.

186 : wxGenericProgressDialog{
187 title.Translation(), message.Translation(),
188 300000, // range
189 parent,
190 wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_SMOOTH
191 }
192 {}
static const auto title
wxString Translation() const

◆ ~MyGenericProgress()

anonymous_namespace{wxWidgetsBasicUI.cpp}::MyGenericProgress::~MyGenericProgress ( )
overridedefault

Member Function Documentation

◆ Pulse()

ProgressResult anonymous_namespace{wxWidgetsBasicUI.cpp}::MyGenericProgress::Pulse ( )
inlineoverridevirtual

Give some visual indication of progress. Call only on the main thread.

Implements BasicUI::GenericProgressDialog.

Definition at line 194 of file wxWidgetsBasicUI.cpp.

195 {
196 if (wxGenericProgressDialog::Pulse())
198 else if (WasCancelled())
200 else
202 }

References BasicUI::Cancelled, BasicUI::Stopped, and BasicUI::Success.


The documentation for this struct was generated from the following file: