Audacity 3.2.0
MissingPluginsErrorDialog.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 MissingPluginsDialogError.h
6
7**********************************************************************/
8
9#include <wx/artprov.h>
10#include <wx/statbmp.h>
11
14#include "ShuttleGui.h"
15#include "Theme.h"
16
20
23 parent, -1, XO("Missing Plugins"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX)
24{
26
27 S.SetBorder(8);
28
29 S.StartVerticalLay();
30 {
31 S.AddSpace(0, 12);
32
33 S.StartHorizontalLay();
34 {
35 S.AddSpace(12, 0);
36
37 wxBitmap bitmap = wxArtProvider::GetBitmap(wxART_WARNING, wxART_MESSAGE_BOX, wxSize(24, 24));
38
39 S.Prop(0).AddWindow(safenew wxStaticBitmap(S.GetParent(), -1, bitmap));
40
41 S.AddSpace(12, 0);
42
43 S.StartVerticalLay();
44 {
45 S.AddFixedText(
46 XO("This project contains some realtime effect plugins that cannot be found on this system."),
47 false, 500);
48
49 AccessibleLinksFormatter pluginsMessage(
50 /* i18n-hint: %s will be replaced with "Learn more" */
51 XO("The project may sound different than intended. %s"));
52
53 pluginsMessage.FormatLink(
54 /* i18n-hint: Title of hyperlink to audacityteam.org/errors. */
55 wxT("%s"),
56 XO("Learn more"),
57 "https://audacityteam.org/errors#missing-plugins");
58
59 pluginsMessage.Populate(S);
60 }
61 S.EndVerticalLay();
62
63 S.AddSpace(12, 0);
64 }
65 S.EndHorizontalLay();
66
67 S.AddSpace(0, 12);
68
69 S.AddStandardButtons(eOkButton);
70 }
71 S.EndVerticalLay();
72
73 Layout();
74 Fit();
75 Center();
76}
77
79{
80}
81
83{
84 EndModal(wxID_OK);
85}
wxT("CloseDown"))
END_EVENT_TABLE()
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
XO("Cut/Copy/Paste")
#define safenew
Definition: MemoryX.h:10
@ eIsCreating
Definition: ShuttleGui.h:37
@ eOkButton
Definition: ShuttleGui.h:609
#define S(N)
Definition: ToChars.cpp:64
An error dialog about missing plugins.
void OnOk(wxCommandEvent &event)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640