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

Dialog used with NyquistBase. More...

#include <Nyquist.h>

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

Public Member Functions

 NyquistOutputDialog (const TranslatableString &title, 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 NyquistBase.

Definition at line 68 of file Nyquist.h.

Constructor & Destructor Documentation

◆ NyquistOutputDialog()

NyquistOutputDialog::NyquistOutputDialog ( const TranslatableString title,
const TranslatableString message 
)

Definition at line 860 of file Nyquist.cpp.

862: wxDialogWrapper{ nullptr, -1, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER }
863{
864 SetName();
865
866 ShuttleGui S{ this, eIsCreating };
867 {
868 S.SetBorder(10);
869
870 S.AddVariableText( XO("Debug Output: "), false, wxALIGN_LEFT | wxLEFT | wxTOP | wxRIGHT );
871
872 // TODO: use ShowInfoDialog() instead.
873 // Beware this dialog MUST work with screen readers.
874 S.Prop( 1 )
875 .Position(wxEXPAND | wxALL)
876 .MinSize( { 480, 250 } )
877 .Style(wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH)
878 .AddTextWindow( message.Translation() );
879
880 S.SetBorder( 5 );
881
882 S.StartHorizontalLay(wxALIGN_CENTRE | wxLEFT | wxBOTTOM | wxRIGHT, 0 );
883 {
884 /* i18n-hint: In most languages OK is to be translated as OK. It appears on a button.*/
885 S.Id(wxID_OK).AddButton( XXO("OK"), wxALIGN_CENTRE, true );
886 }
887 S.EndHorizontalLay();
888
889 }
890
891 SetAutoLayout(true);
892 GetSizer()->Fit(this);
893 GetSizer()->SetSizeHints(this);
894}
XO("Cut/Copy/Paste")
XXO("&Cut/Copy/Paste Toolbar")
static const auto title
@ eIsCreating
Definition: ShuttleGui.h:37
#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
wxString Translation() const

References title.

Member Function Documentation

◆ OnOk()

void NyquistOutputDialog::OnOk ( wxCommandEvent &  event)
private

Definition at line 900 of file Nyquist.cpp.

901{
902 EndModal(wxID_OK);
903}

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