Audacity  3.0.3
ModulePrefs.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  ModulePrefs.h
6 
7  Brian Gunlogson
8  Joshua Haberman
9  James Crook
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_MODULE_PREFS__
14 #define __AUDACITY_MODULE_PREFS__
15 
16 #include <wx/defs.h>
17 
18 #include "PrefsPanel.h"
19 
20 
21 class wxArrayString;
22 class ShuttleGui;
23 
24 #define MODULE_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Module") }
25 
26 class ModulePrefs final : public PrefsPanel
27 {
28  public:
29  ModulePrefs(wxWindow * parent, wxWindowID winid);
30  ~ModulePrefs();
33 
34  bool Commit() override;
35  ManualPageID HelpPageName() override;
36  void PopulateOrExchange(ShuttleGui & S) override;
37 
38  private:
39  void GetAllModuleStatuses();
40  void Populate();
41  wxArrayString mModules;
42  std::vector<int> mStatuses;
44 };
45 
46 #endif
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
ModulePrefs::mStatuses
std::vector< int > mStatuses
Definition: ModulePrefs.h:42
ModulePrefs::GetDescription
TranslatableString GetDescription() override
Definition: ModulePrefs.cpp:49
PrefsPanel.h
ModulePrefs::ModulePrefs
ModulePrefs(wxWindow *parent, wxWindowID winid)
Definition: ModulePrefs.cpp:33
ModulePrefs::~ModulePrefs
~ModulePrefs()
Definition: ModulePrefs.cpp:40
wxArrayStringEx
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
Definition: wxArrayStringEx.h:18
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
ModulePrefs::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: ModulePrefs.cpp:44
ModulePrefs
A PrefsPanel to enable/disable certain modules. 'Modules' are dynamically linked libraries that modif...
Definition: ModulePrefs.h:27
ModulePrefs::mModules
wxArrayString mModules
Definition: ModulePrefs.h:41
ModulePrefs::HelpPageName
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
Definition: ModulePrefs.cpp:54
ModulePrefs::Populate
void Populate()
Definition: ModulePrefs.cpp:100
ModulePrefs::Commit
bool Commit() override
Definition: ModulePrefs.cpp:157
ModulePrefs::mPaths
FilePaths mPaths
Definition: ModulePrefs.h:43
TaggedIdentifier< ManualPageIDTag >
ModulePrefs::GetAllModuleStatuses
void GetAllModuleStatuses()
Definition: ModulePrefs.cpp:59
PrefsPanel
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
ModulePrefs::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: ModulePrefs.cpp:112
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631