mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-05 19:21:59 +01:00
With EXPERIMENTAL_MODULE_PREFS we now have a dynamic list of modules, and we have options, enable, disable, ask, failed, new (=ask once and remember the answer). Without the #define the behaviour is unchanged. We ask about each module each time Audacity runs.
This commit is contained in:
@@ -21,6 +21,16 @@
|
||||
|
||||
#include "PrefsPanel.h"
|
||||
|
||||
|
||||
enum {
|
||||
kModuleDisabled = 0,
|
||||
kModuleEnabled = 1,
|
||||
kModuleAsk = 2, // Will ask, each time, when audacity starts.
|
||||
kModuleFailed = 3, // Audacity thinks this is a bad module.
|
||||
kModuleNew = 4 // Audacity will ask once, and remember the answer.
|
||||
};
|
||||
|
||||
|
||||
class ModulePrefs:public PrefsPanel
|
||||
{
|
||||
public:
|
||||
@@ -28,9 +38,15 @@ class ModulePrefs:public PrefsPanel
|
||||
~ModulePrefs();
|
||||
virtual bool Apply();
|
||||
|
||||
static int GetModuleStatus( wxString fname );
|
||||
static void SetModuleStatus( wxString fname, int iStatus );
|
||||
|
||||
private:
|
||||
void GetAllModuleStatuses();
|
||||
void Populate();
|
||||
void PopulateOrExchange(ShuttleGui & S);
|
||||
wxArrayString mModules;
|
||||
wxArrayInt mStatuses;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user