Audacity 3.2.0
Public Member Functions | List of all members
MissingPluginsErrorDialog Class Referencefinal

An error dialog about missing plugins. More...

#include <MissingPluginsErrorDialog.h>

Inheritance diagram for MissingPluginsErrorDialog:
[legend]
Collaboration diagram for MissingPluginsErrorDialog:
[legend]

Public Member Functions

 MissingPluginsErrorDialog (wxWindow *parent)
 
virtual ~MissingPluginsErrorDialog ()
 
void OnOk (wxCommandEvent &event)
 
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
void SetTitle (const TranslatableString &title)
 
void SetLabel (const TranslatableString &title)
 
void SetName (const TranslatableString &title)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Detailed Description

An error dialog about missing plugins.

Definition at line 14 of file MissingPluginsErrorDialog.h.

Constructor & Destructor Documentation

◆ MissingPluginsErrorDialog()

MissingPluginsErrorDialog::MissingPluginsErrorDialog ( wxWindow *  parent)
explicit

Definition at line 21 of file MissingPluginsErrorDialog.cpp.

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}
wxT("CloseDown"))
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
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640

References eIsCreating, eOkButton, AccessibleLinksFormatter::FormatLink(), AccessibleLinksFormatter::Populate(), S, safenew, wxT(), and XO().

Here is the call graph for this function:

◆ ~MissingPluginsErrorDialog()

MissingPluginsErrorDialog::~MissingPluginsErrorDialog ( )
virtual

Definition at line 78 of file MissingPluginsErrorDialog.cpp.

79{
80}

Member Function Documentation

◆ OnOk()

void MissingPluginsErrorDialog::OnOk ( wxCommandEvent &  event)

Definition at line 82 of file MissingPluginsErrorDialog.cpp.

83{
84 EndModal(wxID_OK);
85}

The documentation for this class was generated from the following files: