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 private:
44 void Populate();
45
48
52};
53
54AUDACITY_DLL_API
56AUDACITY_DLL_API
58
59extern AUDACITY_DLL_API ChoiceSetting
61;
62
63#endif
AUDACITY_DLL_API int ShowClippingPrefsID()
Definition: GUIPrefs.cpp:245
AUDACITY_DLL_API ChoiceSetting GUIManualLocation
Definition: GUIPrefs.cpp:130
AUDACITY_DLL_API int ShowTrackNameInWaveformPrefsID()
Definition: GUIPrefs.cpp:251
#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:51
wxArrayStringEx mRangeCodes
Definition: GUIPrefs.h:49
wxArrayStringEx mLangCodes
Definition: GUIPrefs.h:46
TranslatableStrings mLangNames
Definition: GUIPrefs.h:47
TranslatableStrings mRangeChoices
Definition: GUIPrefs.h:50
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:98
virtual bool Commit()=0
virtual void PopulateOrExchange(ShuttleGui &WXUNUSED(S))
Definition: PrefsPanel.h:116
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:628
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.