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

Configures sound activated recording. More...

#include <SoundActivatedRecord.h>

Inheritance diagram for SoundActivatedRecordDialog:
Collaboration diagram for SoundActivatedRecordDialog:

Public Member Functions

 SoundActivatedRecordDialog (wxWindow *parent)
 ~SoundActivatedRecordDialog ()
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
void SetTitle (const TranslatableString &title)
void SetLabel (const TranslatableString &title)
void SetName (const TranslatableString &title)
void SetName ()
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete

Private Member Functions

void OnOK (wxCommandEvent &event)
void PopulateOrExchange (ShuttleGui &S)

Detailed Description

Configures sound activated recording.

Definition at line 23 of file SoundActivatedRecord.h.

Constructor & Destructor Documentation

◆ SoundActivatedRecordDialog()

SoundActivatedRecordDialog::SoundActivatedRecordDialog ( wxWindow *  parent)

Definition at line 32 of file SoundActivatedRecord.cpp.

33: wxDialogWrapper(parent, -1, XO("Sound Activated Record"), wxDefaultPosition,
34 wxDefaultSize, wxCAPTION )
35// wxDefaultSize, wxCAPTION | wxTHICK_FRAME)
37 SetName();
40 Fit();
41 Center();
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
#define S(N)
Definition: ToChars.cpp:64
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:630
void PopulateOrExchange(ShuttleGui &S)

References eIsCreatingFromPrefs, and S.

◆ ~SoundActivatedRecordDialog()

SoundActivatedRecordDialog::~SoundActivatedRecordDialog ( )

Definition at line 44 of file SoundActivatedRecord.cpp.


Member Function Documentation

◆ OnOK()

void SoundActivatedRecordDialog::OnOK ( wxCommandEvent &  event)

Definition at line 67 of file SoundActivatedRecord.cpp.

72 gPrefs->Flush();
74 EndModal(0);
audacity::BasicSettings * gPrefs
Definition: Prefs.cpp:68
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
virtual bool Flush() noexcept=0

References eIsSavingToPrefs, audacity::BasicSettings::Flush(), gPrefs, PopulateOrExchange(), and S.

Here is the call graph for this function:

◆ PopulateOrExchange()

void SoundActivatedRecordDialog::PopulateOrExchange ( ShuttleGui S)

Definition at line 48 of file SoundActivatedRecord.cpp.

50 S.SetBorder(5);
52 S.StartVerticalLay();
53 {
54 S.StartMultiColumn(2, wxEXPAND);
55 S.SetStretchyCol(1);
56 S.TieSlider(
57 XXO("Activation level (dB):"),
58 {wxT("/AudioIO/SilenceLevel"), -50},
60 )->SetMinSize(wxSize(300, wxDefaultCoord));
61 S.EndMultiColumn();
62 }
63 S.EndVerticalLay();
64 S.AddStandardButtons();
IntSetting DecibelScaleCutoff
Negation of this value is the lowest dB level that should be shown in dB scales.
Definition: Decibels.cpp:12
XXO("&Cut/Copy/Paste Toolbar")
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined *‍/
Definition: Prefs.h:205

References DecibelScaleCutoff, Setting< T >::Read(), S, wxT(), and XXO().

Referenced by OnOK().

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

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