Audacity  2.2.0
LibraryPrefs.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  FileFormatPrefs.h
6 
7  Joshua Haberman
8  Dominic Mazzoni
9  James Crook
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_FILE_FORMAT_PREFS__
14 #define __AUDACITY_FILE_FORMAT_PREFS__
15 
16 #include <wx/defs.h>
17 
18 #include <wx/stattext.h>
19 #include <wx/window.h>
20 
21 #include "PrefsPanel.h"
22 
23 class ShuttleGui;
24 
25 class LibraryPrefs final : public PrefsPanel
26 {
27  public:
28  LibraryPrefs(wxWindow * parent);
29  ~LibraryPrefs();
30  bool Commit() override;
31  wxString HelpPageName() override;
32 
33  private:
34  void Populate();
36  void SetMP3VersionText(bool prompt = false);
37  void SetFFmpegVersionText();
38 
39  void OnMP3FindButton(wxCommandEvent & e);
40  void OnMP3DownButton(wxCommandEvent & e);
41  void OnFFmpegFindButton(wxCommandEvent & e);
42  void OnFFmpegDownButton(wxCommandEvent & e);
43 
44  wxStaticText *mMP3Version;
45  wxStaticText *mFFmpegVersion;
46 
47  DECLARE_EVENT_TABLE()
48 };
49 
51 {
52 public:
53  PrefsPanel *Create(wxWindow *parent) override;
54 };
55 #endif
void PopulateOrExchange(ShuttleGui &S)
Definition: LibraryPrefs.cpp:80
LibraryPrefs(wxWindow *parent)
Definition: LibraryPrefs.cpp:48
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:366
wxStaticText * mMP3Version
Definition: LibraryPrefs.h:44
void OnFFmpegDownButton(wxCommandEvent &e)
Definition: LibraryPrefs.cpp:230
wxString HelpPageName() override
Definition: LibraryPrefs.cpp:243
~LibraryPrefs()
Definition: LibraryPrefs.cpp:55
bool Commit() override
Definition: LibraryPrefs.cpp:235
void OnMP3FindButton(wxCommandEvent &e)
Definition: LibraryPrefs.cpp:175
Definition: LibraryPrefs.h:50
PrefsPanel * Create(wxWindow *parent) override
Definition: LibraryPrefs.cpp:248
void SetMP3VersionText(bool prompt=false)
Definition: LibraryPrefs.cpp:167
void OnFFmpegFindButton(wxCommandEvent &e)
Definition: LibraryPrefs.cpp:193
Used within the PrefsDialog, classes derived from this class include AudioIOPrefs, BatchPrefs, DirectoriesPrefs, FileFormatPrefs, GUIPrefs, KeyConfigPrefs, MousePrefs, QualityPrefs, SpectrumPrefs and ThemePrefs.
Definition: PrefsPanel.h:43
void SetFFmpegVersionText()
Definition: LibraryPrefs.cpp:187
Definition: PrefsPanel.h:70
void Populate()
Creates the dialog and its contents.
Definition: LibraryPrefs.cpp:60
A PrefsPanel used to select manage external libraries like the MP3 and FFmpeg encoding libraries...
Definition: LibraryPrefs.h:25
void OnMP3DownButton(wxCommandEvent &e)
Opens help on downloading a suitable MP3 library is.
Definition: LibraryPrefs.cpp:181
wxStaticText * mFFmpegVersion
Definition: LibraryPrefs.h:45