Audacity 3.2.0
MP3Prefs.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file MP3Prefs.cpp
6 @brief adds controls for MP3 import/export to Library preferences
7
8 Paul Licameli split from LibraryPrefs.cpp
9
10**********************************************************************/
11
12#include "ExportMP3.h"
13#include "Internat.h"
14#include "ShuttleGui.h"
15#include "prefs/LibraryPrefs.h"
16#include "HelpSystem.h"
17#include "ReadOnlyText.h"
18
19namespace {
20
22{
23 S.StartStatic(XO("LAME MP3 Export Library"));
24 {
25 S.StartTwoColumn();
26 {
27 auto MP3Version = S
28 .Position(wxALIGN_CENTRE_VERTICAL)
29 .AddReadOnlyText(XO("MP3 Library Version:"), "");
30 MP3Version->SetValue(GetMP3Version(S.GetParent(), false));
31 }
32 S.EndTwoColumn();
33 }
34 S.EndStatic();
35}
36
38
39}
wxT("CloseDown"))
TranslatableString GetMP3Version(wxWindow *parent, bool prompt)
Definition: ExportMP3.cpp:2243
XO("Cut/Copy/Paste")
#define S(N)
Definition: ToChars.cpp:64
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:630
void AddControls(ShuttleGui &S)
Definition: MP3Prefs.cpp:21
LibraryPrefs::RegisteredControls reg
Definition: MP3Prefs.cpp:37
To be statically constructed, it registers additions to the Library preference page.
Definition: LibraryPrefs.h:38