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

Dialog used with NyquistEffect. More...

#include <Nyquist.h>

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

Public Member Functions

 NyquistOutputDialog (wxWindow *parent, wxWindowID id, const TranslatableString &title, const TranslatableString &prompt, const TranslatableString &message)
 
- 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
 

Private Member Functions

void OnOk (wxCommandEvent &event)
 

Detailed Description

Dialog used with NyquistEffect.

Definition at line 321 of file Nyquist.h.

Constructor & Destructor Documentation

◆ NyquistOutputDialog()

NyquistOutputDialog::NyquistOutputDialog ( wxWindow *  parent,
wxWindowID  id,
const TranslatableString title,
const TranslatableString prompt,
const TranslatableString message 
)

Definition at line 3414 of file Nyquist.cpp.

3418: wxDialogWrapper{ parent, id, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER }
3419{
3420 SetName();
3421
3422 ShuttleGui S{ this, eIsCreating };
3423 {
3424 S.SetBorder(10);
3425
3426 S.AddVariableText( prompt, false, wxALIGN_LEFT | wxLEFT | wxTOP | wxRIGHT );
3427
3428 // TODO: use ShowInfoDialog() instead.
3429 // Beware this dialog MUST work with screen readers.
3430 S.Prop( 1 )
3431 .Position(wxEXPAND | wxALL)
3432 .MinSize( { 480, 250 } )
3433 .Style(wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH)
3434 .AddTextWindow( message.Translation() );
3435
3436 S.SetBorder( 5 );
3437
3438 S.StartHorizontalLay(wxALIGN_CENTRE | wxLEFT | wxBOTTOM | wxRIGHT, 0 );
3439 {
3440 /* i18n-hint: In most languages OK is to be translated as OK. It appears on a button.*/
3441 S.Id(wxID_OK).AddButton( XXO("OK"), wxALIGN_CENTRE, true );
3442 }
3443 S.EndHorizontalLay();
3444
3445 }
3446
3447 SetAutoLayout(true);
3448 GetSizer()->Fit(this);
3449 GetSizer()->SetSizeHints(this);
3450}
XXO("&Cut/Copy/Paste Toolbar")
static const auto title
@ eIsCreating
Definition: ShuttleGui.h:39
#define S(N)
Definition: ToChars.cpp:64
int id
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:628
wxString Translation() const

References id, and title.

Member Function Documentation

◆ OnOk()

void NyquistOutputDialog::OnOk ( wxCommandEvent &  event)
private

Definition at line 3456 of file Nyquist.cpp.

3457{
3458 EndModal(wxID_OK);
3459}

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