Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
audacity::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 89 of file ShareAudioDialog.h.

Member Function Documentation

◆ PopulateProgressPanel()

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

Definition at line 686 of file ShareAudioDialog.cpp.

687{
689 root->Hide();
690 s.StartVerticalLay(wxEXPAND, 1);
691 {
692 s.SetBorder(0);
693
694 title = s.AddVariableText(XO("Preparing audio..."));
695 s.AddSpace(0, 16, 0);
696
697 progress = safenew wxGauge { s.GetParent(), wxID_ANY, 100 };
698 s.AddWindow(progress, wxEXPAND);
699
701 {
702 s.AddSpace(0, 16, 0);
703
704 s.StartWrapLay();
705 {
706 s.AddFixedText(XO("Elapsed Time:"));
707 elapsedTime = s.AddVariableText(Verbatim(" 00:00:00"));
708 }
709 s.EndWrapLay();
710
711 s.StartWrapLay();
712 {
713 s.AddFixedText(XO("Remaining Time:"));
714 remainingTime = s.AddVariableText(Verbatim(" 00:00:00"));
715 }
716 s.EndWrapLay();
717 }
719
720 s.AddSpace(0, 16, 0);
721
723 }
724
725 s.EndVerticalLay();
727
728 wxFont font = elapsedTime->GetFont();
729 font.MakeBold();
730
731 elapsedTime->SetFont(font);
732 remainingTime->SetFont(font);
733}
XO("Cut/Copy/Paste")
#define safenew
Definition: MemoryX.h:10
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:495
void EndVerticalLay()
void EndInvisiblePanel()
wxPanel * StartInvisiblePanel(int border=0)
wxWindow * GetParent()
Definition: ShuttleGui.h:502
void StartVerticalLay(int iProp=1)
void StartWrapLay(int PositionFlags=wxEXPAND, int iProp=0)
wxWindow * AddWindow(wxWindow *pWindow, int PositionFlags=wxALIGN_CENTRE)
Definition: ShuttleGui.cpp:301
void AddFixedText(const TranslatableString &Str, bool bCenter=false, int wrapWidth=0)
Definition: ShuttleGui.cpp:442
wxStaticText * AddVariableText(const TranslatableString &Str, bool bCenter=false, int PositionFlags=0, int wrapWidth=0)
Definition: ShuttleGui.cpp:465
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(), audacity::cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::publicDescriptionText, safenew, ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartInvisiblePanel(), ShuttleGuiBase::StartVerticalLay(), ShuttleGuiBase::StartWrapLay(), title, Verbatim(), and XO().

Referenced by audacity::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* audacity::cloud::audiocom::ShareAudioDialog::ProgressPanel::elapsedTime { nullptr }

Definition at line 97 of file ShareAudioDialog.h.

◆ info

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

◆ progress

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

Definition at line 94 of file ShareAudioDialog.h.

◆ remainingTime

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

Definition at line 98 of file ShareAudioDialog.h.

◆ root

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

◆ timePanel

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

Definition at line 96 of file ShareAudioDialog.h.

◆ title

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

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