Audacity 3.2.0
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
21class wxArrayString;
22class ShuttleGui;
23
24#define MODULE_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Module") }
25
26class ModulePrefs final : public PrefsPanel
27{
28 public:
29 ModulePrefs(wxWindow * parent, wxWindowID winid);
31 ComponentInterfaceSymbol GetSymbol() const override;
32 TranslatableString GetDescription() const override;
33
34 bool Commit() override;
35 ManualPageID HelpPageName() override;
36 void PopulateOrExchange(ShuttleGui & S) override;
37
38 private:
40 void Populate();
41 wxArrayString mModules;
42 std::vector<int> mStatuses;
44};
45
46#endif
#define S(N)
Definition: ToChars.cpp:64
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel to enable/disable certain modules. 'Modules' are dynamically linked libraries that modif...
Definition: ModulePrefs.h:27
wxArrayString mModules
Definition: ModulePrefs.h:41
void PopulateOrExchange(ShuttleGui &S) override
ModulePrefs(wxWindow *parent, wxWindowID winid)
Definition: ModulePrefs.cpp:33
bool Commit() override
FilePaths mPaths
Definition: ModulePrefs.h:43
ComponentInterfaceSymbol GetSymbol() const override
Definition: ModulePrefs.cpp:44
TranslatableString GetDescription() const override
Definition: ModulePrefs.cpp:49
void Populate()
Definition: ModulePrefs.cpp:95
void GetAllModuleStatuses()
Definition: ModulePrefs.cpp:59
std::vector< int > mStatuses
Definition: ModulePrefs.h:42
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
Definition: ModulePrefs.cpp:54
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
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.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.