Audacity 3.2.0
DirectoriesPrefs.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 DirectoriesPrefs.h
6
7 Joshua Haberman
8
9**********************************************************************/
10
11#ifndef __AUDACITY_DIRECTORIES_PREFS__
12#define __AUDACITY_DIRECTORIES_PREFS__
13
14#include "PrefsPanel.h"
15
16class ReadOnlyText;
17class ShuttleGui;
18
19class wxStaticText;
20class wxTextCtrl;
21
22#define DIRECTORIES_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Directories") }
23
24class DirectoriesPrefs final : public PrefsPanel
25{
26 public:
27 DirectoriesPrefs(wxWindow * parent, wxWindowID winid);
29 ComponentInterfaceSymbol GetSymbol() const override;
30 TranslatableString GetDescription() const override;
31
32 bool Commit() override;
33 bool Validate() override;
34 ManualPageID HelpPageName() override;
35 void PopulateOrExchange(ShuttleGui &S) override;
36
37 private:
38 void Populate();
39
40 void OnTempText(wxCommandEvent &evt);
41 void OnTempBrowse(wxCommandEvent &evt);
42
43 void OnBrowse(wxCommandEvent &evt);
44 void OnText(wxCommandEvent &evt);
45
47 wxTextCtrl *mTempText;
48 wxTextCtrl *mOpenText;
49 wxTextCtrl *mSaveText;
50 wxTextCtrl *mImportText;
51 wxTextCtrl *mExportText;
52 wxTextCtrl *mMacrosText;
53
54 DECLARE_EVENT_TABLE()
55};
56
60#endif
PrefsPanel::Factory DirectoriesPrefsFactory()
#define S(N)
Definition: ToChars.cpp:64
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel used to select directories.
void Populate()
Creates the dialog and its contents.
wxTextCtrl * mMacrosText
wxTextCtrl * mTempText
DirectoriesPrefs(wxWindow *parent, wxWindowID winid)
ReadOnlyText * mFreeSpace
bool Validate() override
wxTextCtrl * mOpenText
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
void PopulateOrExchange(ShuttleGui &S) override
void OnText(wxCommandEvent &evt)
void OnTempBrowse(wxCommandEvent &evt)
ComponentInterfaceSymbol GetSymbol() const override
wxTextCtrl * mSaveText
wxTextCtrl * mExportText
void OnBrowse(wxCommandEvent &evt)
bool Commit() override
void OnTempText(wxCommandEvent &evt)
wxTextCtrl * mImportText
TranslatableString GetDescription() const override
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > Factory
Definition: PrefsPanel.h:82
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.