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, int style=ProgressAppModal|ProgressShowElapsedTime|ProgressSmooth)
 
 ~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,
int  style = ProgressAppModal | ProgressShowElapsedTime | ProgressSmooth 
)
inline

Definition at line 183 of file wxWidgetsBasicUI.cpp.

187 : wxGenericProgressDialog{
188 title.Translation(), message.Translation(),
189 300000, // range
190 parent,
191 style
192 }
193 {}
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 195 of file wxWidgetsBasicUI.cpp.

196 {
197 if (wxGenericProgressDialog::Pulse())
199 else if (WasCancelled())
201 else
203 }

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


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