Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
cloud::audiocom::ShareAudioDialog::ProgressPanel Struct Referencefinal

Public Member Functions

void PopulateProgressPanel (ShuttleGui &s)
 

Public Attributes

wxWindow * root { nullptr }
 
wxStaticText * title { nullptr }
 
wxGauge * progress { nullptr }
 
wxWindow * timePanel { nullptr }
 
wxStaticText * elapsedTime { nullptr }
 
wxStaticText * remainingTime { nullptr }
 
wxStaticText * info { nullptr }
 

Detailed Description

Definition at line 92 of file ShareAudioDialog.h.

Member Function Documentation

◆ PopulateProgressPanel()

void cloud::audiocom::ShareAudioDialog::ProgressPanel::PopulateProgressPanel ( ShuttleGui s)

Definition at line 794 of file ShareAudioDialog.cpp.

795{
797 root->Hide();
798 s.StartVerticalLay(wxEXPAND, 1);
799 {
800 s.SetBorder(0);
801
802 title = s.AddVariableText(XO("Preparing audio..."));
803 s.AddSpace(0, 16, 0);
804
805 progress = safenew wxGauge { s.GetParent(), wxID_ANY, 100 };
806 s.AddWindow(progress, wxEXPAND);
807
809 {
810 s.AddSpace(0, 16, 0);
811
812 s.StartWrapLay();
813 {
814 s.AddFixedText(XO("Elapsed Time:"));
815 elapsedTime = s.AddVariableText(Verbatim(" 00:00:00"));
816 }
817 s.EndWrapLay();
818
819 s.StartWrapLay();
820 {
821 s.AddFixedText(XO("Remaining Time:"));
822 remainingTime = s.AddVariableText(Verbatim(" 00:00:00"));
823 }
824 s.EndWrapLay();
825 }
827
828 s.AddSpace(0, 16, 0);
829
831 }
832
833 s.EndVerticalLay();
835
836 wxFont font = elapsedTime->GetFont();
837 font.MakeBold();
838
839 elapsedTime->SetFont(font);
840 remainingTime->SetFont(font);
841}
XO("Cut/Copy/Paste")
#define safenew
Definition: MemoryX.h:9
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
void SetBorder(int Border)
Definition: ShuttleGui.h:488
void EndVerticalLay()
void EndInvisiblePanel()
wxPanel * StartInvisiblePanel(int border=0)
wxWindow * GetParent()
Definition: ShuttleGui.h:495
void StartVerticalLay(int iProp=1)
void StartWrapLay(int PositionFlags=wxEXPAND, int iProp=0)
wxWindow * AddWindow(wxWindow *pWindow, int PositionFlags=wxALIGN_CENTRE)
Definition: ShuttleGui.cpp:300
void AddFixedText(const TranslatableString &Str, bool bCenter=false, int wrapWidth=0)
Definition: ShuttleGui.cpp:441
wxStaticText * AddVariableText(const TranslatableString &Str, bool bCenter=false, int PositionFlags=0, int wrapWidth=0)
Definition: ShuttleGui.cpp:464
wxSizerItem * AddSpace(int width, int height, int prop=0)

References ShuttleGuiBase::AddFixedText(), ShuttleGui::AddSpace(), ShuttleGuiBase::AddVariableText(), ShuttleGuiBase::AddWindow(), ShuttleGuiBase::EndInvisiblePanel(), ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::EndWrapLay(), ShuttleGuiBase::GetParent(), cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::publicDescriptionText, safenew, ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartInvisiblePanel(), ShuttleGuiBase::StartVerticalLay(), ShuttleGuiBase::StartWrapLay(), title, Verbatim(), and XO().

Referenced by cloud::audiocom::ShareAudioDialog::Populate().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ elapsedTime

wxStaticText* cloud::audiocom::ShareAudioDialog::ProgressPanel::elapsedTime { nullptr }

Definition at line 100 of file ShareAudioDialog.h.

◆ info

wxStaticText* cloud::audiocom::ShareAudioDialog::ProgressPanel::info { nullptr }

◆ progress

wxGauge* cloud::audiocom::ShareAudioDialog::ProgressPanel::progress { nullptr }

Definition at line 97 of file ShareAudioDialog.h.

◆ remainingTime

wxStaticText* cloud::audiocom::ShareAudioDialog::ProgressPanel::remainingTime { nullptr }

Definition at line 101 of file ShareAudioDialog.h.

◆ root

wxWindow* cloud::audiocom::ShareAudioDialog::ProgressPanel::root { nullptr }

◆ timePanel

wxWindow* cloud::audiocom::ShareAudioDialog::ProgressPanel::timePanel { nullptr }

Definition at line 99 of file ShareAudioDialog.h.

◆ title

wxStaticText* cloud::audiocom::ShareAudioDialog::ProgressPanel::title { nullptr }

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