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