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 "LibraryPrefs.h"
16#include "ReadOnlyText.h"
17
18namespace {
19
21{
22 S.StartStatic(XO("LAME MP3 Export Library"));
23 {
24 S.StartTwoColumn();
25 {
26 auto MP3Version = S
27 .Position(wxALIGN_CENTRE_VERTICAL)
28 .AddReadOnlyText(XO("MP3 Library Version:"), "");
29 MP3Version->SetValue(GetMP3Version(S.GetParent(), false));
30 }
31 S.EndTwoColumn();
32 }
33 S.EndStatic();
34}
35
37
38}
wxT("CloseDown"))
TranslatableString GetMP3Version(wxWindow *parent, bool prompt)
Definition: ExportMP3.cpp:2234
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:640
void AddControls(ShuttleGui &S)
Definition: MP3Prefs.cpp:20
LibraryPrefs::RegisteredControls reg
Definition: MP3Prefs.cpp:36
To be statically constructed, it registers additions to the Library preference page.
Definition: LibraryPrefs.h:38