Audacity  2.2.2
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:
PrefsPanel wxPanelWrapper wxTabTraversalWrapper< wxPanel >

Public Member Functions

 ProjectsPrefs (wxWindow *parent, wxWindowID winid)
 
 ~ProjectsPrefs ()
 
bool Commit () override
 
wxString HelpPageName () override
 
void PopulateOrExchange (ShuttleGui &S) override
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, wxWindowID winid, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
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 wxString &name=_("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=_("Panel"))
 
- 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...
 

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 ( wxWindow *  parent,
wxWindowID  winid 
)

Definition at line 32 of file ProjectsPrefs.cpp.

References Populate().

33 : PrefsPanel(parent, winid,
34  /* i18n-hint: (noun) i.e Audacity projects. */
35  _("Projects"))
36 {
37  Populate();
38 }
void Populate()
Creates the dialog and its contents.
PrefsPanel(wxWindow *parent, wxWindowID winid, const wxString &title)
Definition: PrefsPanel.h:48
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
ProjectsPrefs::~ProjectsPrefs ( )

Definition at line 40 of file ProjectsPrefs.cpp.

41 {
42 }

Member Function Documentation

bool ProjectsPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

Definition at line 79 of file ProjectsPrefs.cpp.

References eIsSavingToPrefs, and PopulateOrExchange().

80 {
83 
84  return true;
85 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
void PopulateOrExchange(ShuttleGui &S) override
wxString ProjectsPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

Definition at line 87 of file ProjectsPrefs.cpp.

88 {
89  return "Projects_Preferences";
90 }
void ProjectsPrefs::Populate ( )
private

Creates the dialog and its contents.

Definition at line 45 of file ProjectsPrefs.cpp.

References eIsCreatingFromPrefs, and PopulateOrExchange().

Referenced by ProjectsPrefs().

46 {
47  //------------------------- Main section --------------------
48  // Now construct the GUI itself.
49  // Use 'eIsCreatingFromPrefs' so that the GUI is
50  // initialised with values from gPrefs.
53  // ----------------------- End of main section --------------
54 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
void PopulateOrExchange(ShuttleGui &S) override
void ProjectsPrefs::PopulateOrExchange ( ShuttleGui S)
override

Definition at line 56 of file ProjectsPrefs.cpp.

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

Referenced by Commit(), and Populate().

57 {
58  S.SetBorder(2);
59  S.StartScroller();
60 
61  S.StartStatic(_("When saving a project that depends on other audio files"));
62  {
63  S.StartRadioButtonGroup(wxT("/FileFormats/SaveProjectWithDependencies"), wxT("ask"));
64  {
65  S.TieRadioButton(_("&Copy all audio into project (safest)"),
66  wxT("copy"));
67  S.TieRadioButton(_("Do &not copy any audio"),
68  wxT("never"));
69  S.TieRadioButton(_("As&k"),
70  wxT("ask"));
71  }
73  }
74  S.EndStatic();
75  S.EndScroller();
76 
77 }
void EndRadioButtonGroup()
void EndScroller()
Definition: ShuttleGui.cpp:828
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:795
wxRadioButton * TieRadioButton(const wxString &Prompt, WrappedType &WrappedRef)
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
wxStaticBox * StartStatic(const wxString &Str, int iProp=0)
Definition: ShuttleGui.cpp:763
void SetBorder(int Border)
Definition: ShuttleGui.h:286
void StartRadioButtonGroup(const wxString &SettingName)

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