Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
AudacityTextEntryDialog Class Reference

Wrap wxTextEntryDialog so that caption IS translatable. More...

#include <AudacityTextEntryDialog.h>

Inheritance diagram for AudacityTextEntryDialog:
Collaboration diagram for AudacityTextEntryDialog:

Public Member Functions

 AudacityTextEntryDialog (wxWindow *parent, const TranslatableString &message, const TranslatableString &caption, const wxString &value={}, long style=wxTextEntryDialogStyle, const wxPoint &pos=wxDefaultPosition)
void SetInsertionPointEnd ()
bool Show (bool show=true) override
- Public Member Functions inherited from wxTabTraversalWrapper< wxTextEntryDialog >
 wxTabTraversalWrapper (Args &&... args)
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete

Private Attributes

bool mSetInsertionPointEnd {}

Detailed Description

Wrap wxTextEntryDialog so that caption IS translatable.

Definition at line 21 of file AudacityTextEntryDialog.h.

Constructor & Destructor Documentation

◆ AudacityTextEntryDialog()

AudacityTextEntryDialog::AudacityTextEntryDialog ( wxWindow *  parent,
const TranslatableString message,
const TranslatableString caption,
const wxString &  value = {},
long  style = wxTextEntryDialogStyle,
const wxPoint &  pos = wxDefaultPosition 

Definition at line 25 of file AudacityTextEntryDialog.h.

29 {},
30 long style = wxTextEntryDialogStyle,
31 const wxPoint& pos = wxDefaultPosition)
33 parent,
34 message.Translation(), caption.Translation(), value, style, pos )
35 {}
wxString Translation() const

Member Function Documentation

◆ SetInsertionPointEnd()

void AudacityTextEntryDialog::SetInsertionPointEnd ( )

Definition at line 13 of file AudacityTextEntryDialog.cpp.

References mSetInsertionPointEnd.

◆ Show()

bool AudacityTextEntryDialog::Show ( bool  show = true)

Definition at line 18 of file AudacityTextEntryDialog.cpp.

22 if (show && mSetInsertionPointEnd) {
23 // m_textctrl is protected member of wxTextEntryDialog
24 m_textctrl->SetInsertionPointEnd();
25 }
27 return ret;
IMPORT_EXPORT_API ExportResult Show(ExportTask exportTask)

References mSetInsertionPointEnd, and ExportProgressUI::Show().

Here is the call graph for this function:

Member Data Documentation

◆ mSetInsertionPointEnd

bool AudacityTextEntryDialog::mSetInsertionPointEnd {}

Definition at line 41 of file AudacityTextEntryDialog.h.

Referenced by SetInsertionPointEnd(), and Show().

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