Audacity  2.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 <wx/stattext.h>
15 #include <wx/textctrl.h>
16 
17 #include "PrefsPanel.h"
18 
19 class ShuttleGui;
20 
21 class DirectoriesPrefs final : public PrefsPanel
22 {
23  public:
24  DirectoriesPrefs(wxWindow * parent);
26  bool Commit() override;
27  bool Validate() override;
28  wxString HelpPageName() override;
29 
30  private:
31  void Populate();
33  void UpdateFreeSpace(wxCommandEvent & e);
34  void OnChooseTempDir(wxCommandEvent & e);
35 
36  wxStaticText *mFreeSpace;
37  wxTextCtrl *mTempDir;
38 
39  DECLARE_EVENT_TABLE()
40 };
41 
43 {
44 public:
45  PrefsPanel *Create(wxWindow *parent) override;
46 };
47 #endif
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:366
bool Validate() override
Definition: DirectoriesPrefs.cpp:201
A PrefsPanel used to select directories.
Definition: DirectoriesPrefs.h:21
void PopulateOrExchange(ShuttleGui &S)
Definition: DirectoriesPrefs.cpp:79
PrefsPanel * Create(wxWindow *parent) override
Definition: DirectoriesPrefs.cpp:273
wxString HelpPageName() override
Definition: DirectoriesPrefs.cpp:268
DirectoriesPrefs(wxWindow *parent)
Definition: DirectoriesPrefs.cpp:51
wxStaticText * mFreeSpace
Definition: DirectoriesPrefs.h:36
void Populate()
Creates the dialog and its contents.
Definition: DirectoriesPrefs.cpp:65
~DirectoriesPrefs()
Definition: DirectoriesPrefs.cpp:60
void UpdateFreeSpace(wxCommandEvent &e)
Definition: DirectoriesPrefs.cpp:177
wxTextCtrl * mTempDir
Definition: DirectoriesPrefs.h:37
Used within the PrefsDialog, classes derived from this class include AudioIOPrefs, BatchPrefs, DirectoriesPrefs, FileFormatPrefs, GUIPrefs, KeyConfigPrefs, MousePrefs, QualityPrefs, SpectrumPrefs and ThemePrefs.
Definition: PrefsPanel.h:43
void OnChooseTempDir(wxCommandEvent &e)
Definition: DirectoriesPrefs.cpp:127
Definition: PrefsPanel.h:70
Definition: DirectoriesPrefs.h:42
bool Commit() override
Definition: DirectoriesPrefs.cpp:260