Audacity  2.2.0
GUIPrefs.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  GUIPrefs.h
6 
7  Brian Gunlogson
8  Joshua Haberman
9  James Crook
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_GUI_PREFS__
14 #define __AUDACITY_GUI_PREFS__
15 
16 #include <wx/defs.h>
17 
18 #include <wx/arrstr.h>
19 #include <wx/window.h>
20 
21 #include "PrefsPanel.h"
22 
23 class ShuttleGui;
24 
25 class GUIPrefs final : public PrefsPanel
26 {
27  public:
28  GUIPrefs(wxWindow * parent);
29  ~GUIPrefs();
30  bool Commit() override;
31  wxString HelpPageName() override;
32 
33  static void GetRangeChoices(wxArrayString *pChoices, wxArrayString *pCodes);
34 
35  private:
36  void Populate();
38 
39  wxArrayString mLangCodes;
40  wxArrayString mLangNames;
41 
42  wxArrayString mHtmlHelpCodes;
43  wxArrayString mHtmlHelpChoices;
44 
45  wxArrayString mThemeCodes;
46  wxArrayString mThemeChoices;
47 
48  wxArrayString mRangeCodes;
49  wxArrayString mRangeChoices;
50 };
51 
52 class GUIPrefsFactory final : public PrefsPanelFactory
53 {
54 public:
55  PrefsPanel *Create(wxWindow *parent) override;
56 };
57 #endif
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:369
wxArrayString mLangCodes
Definition: GUIPrefs.h:39
PrefsPanel * Create(wxWindow *parent) override
Definition: GUIPrefs.cpp:233
GUIPrefs(wxWindow *parent)
Definition: GUIPrefs.cpp:38
A PrefsPanel for general GUI preferences.
Definition: GUIPrefs.h:25
static void GetRangeChoices(wxArrayString *pChoices, wxArrayString *pCodes)
Definition: GUIPrefs.cpp:48
wxArrayString mRangeChoices
Definition: GUIPrefs.h:49
Definition: GUIPrefs.h:52
wxString HelpPageName() override
Definition: GUIPrefs.cpp:228
wxArrayString mThemeCodes
Definition: GUIPrefs.h:45
void PopulateOrExchange(ShuttleGui &S)
Definition: GUIPrefs.cpp:117
wxArrayString mThemeChoices
Definition: GUIPrefs.h:46
~GUIPrefs()
Definition: GUIPrefs.cpp:44
wxArrayString mHtmlHelpCodes
Definition: GUIPrefs.h:42
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
wxArrayString mLangNames
Definition: GUIPrefs.h:40
bool Commit() override
Definition: GUIPrefs.cpp:210
Definition: PrefsPanel.h:70
void Populate()
Definition: GUIPrefs.cpp:77
wxArrayString mHtmlHelpChoices
Definition: GUIPrefs.h:43
wxArrayString mRangeCodes
Definition: GUIPrefs.h:48