Audacity  3.0.0
Public Member Functions | Private Member Functions | List of all members
ProjectsPrefs Class Referencefinal

A PrefsPanel used to select options related to Audacity Project handling. More...

#include <ProjectsPrefs.h>

Inheritance diagram for ProjectsPrefs:
[legend]
Collaboration diagram for ProjectsPrefs:
[legend]

Public Member Functions

 ProjectsPrefs (wxWindow *parent, wxWindowID winid)
 
 ~ProjectsPrefs ()
 
ComponentInterfaceSymbol GetSymbol () override
 
TranslatableString GetDescription () override
 
bool Commit () override
 
wxString HelpPageName () override
 
void PopulateOrExchange (ShuttleGui &S) override
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual PluginPath GetPath ()
 
virtual VendorSymbol GetVendor ()
 
virtual wxString GetVersion ()
 
virtual bool ShowsPreviewButton ()
 
virtual void PopulateOrExchange (ShuttleGui &WXUNUSED(S))
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Member Functions

void Populate ()
 Creates the dialog and its contents. More...
 

Additional Inherited Members

- Public Types inherited from PrefsPanel
using Factories = std::vector< PrefsPanel::PrefsNode >
 
using Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) >
 
- Static Public Member Functions inherited from PrefsPanel
static FactoriesDefaultFactories ()
 

Detailed Description

A PrefsPanel used to select options related to Audacity Project handling.

Definition at line 24 of file ProjectsPrefs.h.

Constructor & Destructor Documentation

◆ ProjectsPrefs()

ProjectsPrefs::ProjectsPrefs ( wxWindow *  parent,
wxWindowID  winid 
)

Definition at line 33 of file ProjectsPrefs.cpp.

34 : PrefsPanel(parent, winid,
35  /* i18n-hint: (noun) i.e Audacity projects. */
36  XO("Projects"))
37 {
38  Populate();
39 }

References Populate().

Here is the call graph for this function:

◆ ~ProjectsPrefs()

ProjectsPrefs::~ProjectsPrefs ( )

Definition at line 41 of file ProjectsPrefs.cpp.

42 {
43 }

Member Function Documentation

◆ Commit()

bool ProjectsPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

Definition at line 92 of file ProjectsPrefs.cpp.

93 {
96 
97  return true;
98 }

References eIsSavingToPrefs, and PopulateOrExchange().

Here is the call graph for this function:

◆ GetDescription()

TranslatableString ProjectsPrefs::GetDescription ( )
overridevirtual

Implements ComponentInterface.

Definition at line 50 of file ProjectsPrefs.cpp.

51 {
52  return XO("Preferences for Projects");
53 }

References XO.

◆ GetSymbol()

ComponentInterfaceSymbol ProjectsPrefs::GetSymbol ( )
overridevirtual

Implements ComponentInterface.

Definition at line 45 of file ProjectsPrefs.cpp.

46 {
48 }

References PROJECTS_PREFS_PLUGIN_SYMBOL.

◆ HelpPageName()

wxString ProjectsPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

Definition at line 55 of file ProjectsPrefs.cpp.

56 {
57  return "Projects_Preferences";
58 }

◆ Populate()

void ProjectsPrefs::Populate ( )
private

Creates the dialog and its contents.

Definition at line 61 of file ProjectsPrefs.cpp.

62 {
63  //------------------------- Main section --------------------
64  // Now construct the GUI itself.
65  // Use 'eIsCreatingFromPrefs' so that the GUI is
66  // initialised with values from gPrefs.
69  // ----------------------- End of main section --------------
70 }

References eIsCreatingFromPrefs, and PopulateOrExchange().

Referenced by ProjectsPrefs().

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

◆ PopulateOrExchange()

void ProjectsPrefs::PopulateOrExchange ( ShuttleGui S)
override

Definition at line 72 of file ProjectsPrefs.cpp.

73 {
74  S.SetBorder(2);
75  S.StartScroller();
76 
77  S.StartStatic(XO("When saving a project that depends on other audio files"));
78  {
80  {
81  S.TieRadioButton();
82  S.TieRadioButton();
83  S.TieRadioButton();
84  }
86  }
87  S.EndStatic();
88  S.EndScroller();
89 
90 }

References ShuttleGuiBase::EndRadioButtonGroup(), ShuttleGuiBase::EndScroller(), ShuttleGuiBase::EndStatic(), FileFormatsSaveWithDependenciesSetting, ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartRadioButtonGroup(), ShuttleGuiBase::StartScroller(), ShuttleGuiBase::StartStatic(), ShuttleGuiBase::TieRadioButton(), and XO.

Referenced by Commit(), and Populate().

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:
ShuttleGuiBase::StartRadioButtonGroup
void StartRadioButtonGroup(const ChoiceSetting &Setting)
Call this before any TieRadioButton calls.
Definition: ShuttleGui.cpp:1547
ShuttleGuiBase::EndRadioButtonGroup
void EndRadioButtonGroup()
Definition: ShuttleGui.cpp:1564
XO
#define XO(s)
Definition: Internat.h:33
ShuttleGuiBase::EndScroller
void EndScroller()
Definition: ShuttleGui.cpp:942
ShuttleGuiBase::StartScroller
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:909
ProjectsPrefs::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: ProjectsPrefs.cpp:72
PROJECTS_PREFS_PLUGIN_SYMBOL
#define PROJECTS_PREFS_PLUGIN_SYMBOL
Definition: ProjectsPrefs.h:22
ShuttleGuiBase::StartStatic
wxStaticBox * StartStatic(const TranslatableString &Str, int iProp=0)
Definition: ShuttleGui.cpp:864
eIsSavingToPrefs
@ eIsSavingToPrefs
Definition: ShuttleGui.h:46
FileFormatsSaveWithDependenciesSetting
ChoiceSetting FileFormatsSaveWithDependenciesSetting
Definition: FileFormats.cpp:356
ProjectsPrefs::Populate
void Populate()
Creates the dialog and its contents.
Definition: ProjectsPrefs.cpp:61
ShuttleGuiBase::TieRadioButton
wxRadioButton * TieRadioButton()
This function must be within a StartRadioButtonGroup - EndRadioButtonGroup pair.
Definition: ShuttleGui.cpp:1488
ShuttleGuiBase::SetBorder
void SetBorder(int Border)
Definition: ShuttleGui.h:493
eIsCreatingFromPrefs
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:45
ShuttleGuiBase::EndStatic
void EndStatic()
Definition: ShuttleGui.cpp:893
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:634
PrefsPanel::PrefsPanel
PrefsPanel(wxWindow *parent, wxWindowID winid, const TranslatableString &title)
Definition: PrefsPanel.h:89