Audacity 3.2.0
|
A PrefsPanel used to select directories. More...
#include <DirectoriesPrefs.h>
Public Member Functions | |
DirectoriesPrefs (wxWindow *parent, wxWindowID winid) | |
~DirectoriesPrefs () | |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
bool | Commit () override |
bool | Validate () override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
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 bool | Commit ()=0 |
virtual PluginPath | GetPath () const override |
virtual VendorSymbol | GetVendor () const override |
virtual wxString | GetVersion () const override |
virtual bool | ShowsPreviewButton () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual ManualPageID | HelpPageName () |
If not empty string, the Help button is added below the panel. More... | |
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 | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | Populate () |
Creates the dialog and its contents. More... | |
void | OnTempText (wxCommandEvent &evt) |
void | OnTempBrowse (wxCommandEvent &evt) |
void | OnBrowse (wxCommandEvent &evt) |
void | OnText (wxCommandEvent &evt) |
Private Attributes | |
ReadOnlyText * | mFreeSpace |
wxTextCtrl * | mTempText |
wxTextCtrl * | mOpenText |
wxTextCtrl * | mSaveText |
wxTextCtrl * | mImportText |
wxTextCtrl * | mExportText |
wxTextCtrl * | mMacrosText |
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 Factories & | DefaultFactories () |
A PrefsPanel used to select directories.
Definition at line 24 of file DirectoriesPrefs.h.
DirectoriesPrefs::DirectoriesPrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 139 of file DirectoriesPrefs.cpp.
DirectoriesPrefs::~DirectoriesPrefs | ( | ) |
Definition at line 148 of file DirectoriesPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 507 of file DirectoriesPrefs.cpp.
References eIsSavingToPrefs, PopulateOrExchange(), and S.
|
overridevirtual |
Implements ComponentInterface.
Definition at line 157 of file DirectoriesPrefs.cpp.
References XO().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 152 of file DirectoriesPrefs.cpp.
References DIRECTORIES_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 162 of file DirectoriesPrefs.cpp.
|
private |
Definition at line 350 of file DirectoriesPrefs.cpp.
References TempDirectory::FATFilesystemDenied(), SaveButtonID, FileNames::WritableLocationCheck(), and XO().
|
private |
Definition at line 266 of file DirectoriesPrefs.cpp.
References TempDirectory::DefaultTempDir(), TempDirectory::FATFilesystemDenied(), gPrefs, TempDirectory::IsTempDirectoryNameOK(), mTempText, OnTempText(), FileNames::PreferenceKey(), audacity::BasicSettings::Read(), FileNames::WritableLocationCheck(), wxT(), and XO().
|
private |
Definition at line 331 of file DirectoriesPrefs.cpp.
References Internat::FormatSize(), label, mFreeSpace, mTempText, ReadOnlyText::SetValue(), TranslatableString::Translation(), and XO().
Referenced by OnTempBrowse(), and Populate().
|
private |
|
private |
Creates the dialog and its contents.
Definition at line 168 of file DirectoriesPrefs.cpp.
References eIsCreatingFromPrefs, OnTempText(), PopulateOrExchange(), and S.
|
override |
Definition at line 182 of file DirectoriesPrefs.cpp.
References ExportButtonID, ImportButtonID, mExportText, mFreeSpace, mImportText, mMacrosText, mOpenText, mSaveText, mTempText, FileNames::PreferenceKey(), S, SaveButtonID, wxT(), XO(), and XXO().
Referenced by Commit(), and Populate().
|
override |
Definition at line 416 of file DirectoriesPrefs.cpp.
References AudacityMessageBox(), CreateDirectory(), flag, id, TempDirectory::IsTempDirectoryNameOK(), mExportText, mImportText, mMacrosText, mOpenText, mSaveText, mTempText, TempDirectory::TempDir(), FileNames::WritableLocationCheck(), wxT(), and XO().
|
private |
Definition at line 51 of file DirectoriesPrefs.h.
Referenced by PopulateOrExchange(), and Validate().
|
private |
Definition at line 46 of file DirectoriesPrefs.h.
Referenced by OnTempText(), and PopulateOrExchange().
|
private |
Definition at line 50 of file DirectoriesPrefs.h.
Referenced by PopulateOrExchange(), and Validate().
|
private |
Definition at line 52 of file DirectoriesPrefs.h.
Referenced by PopulateOrExchange(), and Validate().
|
private |
Definition at line 48 of file DirectoriesPrefs.h.
Referenced by PopulateOrExchange(), and Validate().
|
private |
Definition at line 49 of file DirectoriesPrefs.h.
Referenced by PopulateOrExchange(), and Validate().
|
private |
Definition at line 47 of file DirectoriesPrefs.h.
Referenced by OnTempBrowse(), OnTempText(), PopulateOrExchange(), and Validate().