Audacity 3.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 "PrefsPanel.h"
19
20class ChoiceSetting;
21class ShuttleGui;
22
23#define GUI_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("GUI") }
24
25class AUDACITY_DLL_API GUIPrefs final : public PrefsPanel
26{
27 public:
28 GUIPrefs(wxWindow * parent, wxWindowID winid);
29 ~GUIPrefs();
30 ComponentInterfaceSymbol GetSymbol() const override;
31 TranslatableString GetDescription() const override;
32
33 bool Commit() override;
34 ManualPageID HelpPageName() override;
35 void PopulateOrExchange(ShuttleGui & S) override;
36
37 static void GetRangeChoices(
38 TranslatableStrings *pChoices,
39 wxArrayStringEx *pCodes,
40 int *pDefaultRangeIndex = nullptr
41 );
42
43 static void GetLTSChoices(
44 TranslatableStrings* pChoices,
45 wxArrayStringEx* pCodes,
46 int* pDefaultIndex = nullptr
47 );
48
49 private:
50 void Populate();
51
54
58
60 std::vector<int> mUTSLabels;
61
65};
66
67AUDACITY_DLL_API
69AUDACITY_DLL_API
71
72#endif
AUDACITY_DLL_API int ShowClippingPrefsID()
Definition: GUIPrefs.cpp:289
AUDACITY_DLL_API int ShowTrackNameInWaveformPrefsID()
Definition: GUIPrefs.cpp:295
#define S(N)
Definition: ToChars.cpp:64
std::vector< TranslatableString > TranslatableStrings
virtual ComponentInterfaceSymbol GetSymbol() const =0
virtual TranslatableString GetDescription() const =0
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel for general GUI preferences.
Definition: GUIPrefs.h:26
int mDefaultRangeIndex
Definition: GUIPrefs.h:57
wxArrayStringEx mRangeCodes
Definition: GUIPrefs.h:55
int mDefaultLTSIndex
Definition: GUIPrefs.h:64
TranslatableStrings mUTSNames
Definition: GUIPrefs.h:59
wxArrayStringEx mLangCodes
Definition: GUIPrefs.h:52
TranslatableStrings mLTSChoices
Definition: GUIPrefs.h:63
TranslatableStrings mLangNames
Definition: GUIPrefs.h:53
wxArrayStringEx mLTSCodes
Definition: GUIPrefs.h:62
std::vector< int > mUTSLabels
Definition: GUIPrefs.h:60
TranslatableStrings mRangeChoices
Definition: GUIPrefs.h:56
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
virtual ManualPageID HelpPageName()
If not empty string, the Help button is added below the panel.
Definition: PrefsPanel.cpp:91
virtual bool Commit()=0
virtual void PopulateOrExchange(ShuttleGui &WXUNUSED(S))
Definition: PrefsPanel.h:120
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:625
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.