Audacity 3.2.0
AboutDialog.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AboutDialog.h
6
7 Dominic Mazzoni
8
9**********************************************************************/
10
11#ifndef __AUDACITY_ABOUT_DLG__
12#define __AUDACITY_ABOUT_DLG__
13
14#include <vector>
15#include "wxPanelWrapper.h" // to inherit
16
17class wxStaticBitmap;
18class wxTextOutputStream;
19
20class ShuttleGui;
21
24 : description{ std::move( str ) }, role{ r }
25 {}
27 int role;
28};
29
30using AboutDialogCreditItemsList = std::vector<AboutDialogCreditItem>;
31
32class AUDACITY_DLL_API AboutDialog final : public wxDialogWrapper {
33 DECLARE_DYNAMIC_CLASS(AboutDialog)
34
35 public:
36 AboutDialog(wxWindow * parent);
37 virtual ~ AboutDialog();
38
39 static AboutDialog *ActiveIntance();
40
41 void OnOK(wxCommandEvent & event);
42
43 wxStaticBitmap *icon;
44
45 DECLARE_EVENT_TABLE()
46
47 private:
48 enum Role {
55 roleThanks
56 };
57
59 void PopulateAudacityPage( ShuttleGui & S );
60 void PopulateLicensePage( ShuttleGui & S );
61 void PopulateInformationPage (ShuttleGui & S );
62
63 void CreateCreditsList();
64 void AddCredit( const wxString &name, Role role );
65 void AddCredit( const wxString &name, TranslatableString format, Role role );
66 wxString GetCreditsByRole(AboutDialog::Role role);
67
68 void AddBuildinfoRow( wxTextOutputStream *str, const wxChar * libname,
69 const TranslatableString &libdesc, const TranslatableString &status);
70 void AddBuildinfoRow( wxTextOutputStream *str,
71 const TranslatableString &description, const wxChar *spec);
72};
73
74#endif
std::vector< AboutDialogCreditItem > AboutDialogCreditItemsList
Definition: AboutDialog.h:30
#define str(a)
wxString name
Definition: TagsEditor.cpp:166
#define S(N)
Definition: ToChars.cpp:64
The AboutDialog shows the program version and developer credits.
Definition: AboutDialog.h:32
@ roleEmeritusTeam
Definition: AboutDialog.h:50
wxStaticBitmap * icon
Definition: AboutDialog.h:43
AboutDialogCreditItemsList creditItems
Definition: AboutDialog.h:58
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.
STL namespace.
AboutDialogCreditItem is a structure used by the AboutDialog to hold information about one contributo...
Definition: AboutDialog.h:22
AboutDialogCreditItem(TranslatableString str, int r)
Definition: AboutDialog.h:23
TranslatableString description
Definition: AboutDialog.h:26