Audacity  3.0.3
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:
[legend]
Collaboration diagram for AudacityTextEntryDialog:
[legend]

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 
)
inline

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  {}

Member Function Documentation

◆ SetInsertionPointEnd()

void AudacityTextEntryDialog::SetInsertionPointEnd ( )

Definition at line 13 of file AudacityTextEntryDialog.cpp.

14 {
15  mSetInsertionPointEnd = true;
16 }

References mSetInsertionPointEnd.

◆ Show()

bool AudacityTextEntryDialog::Show ( bool  show = true)
override

Definition at line 18 of file AudacityTextEntryDialog.cpp.

19 {
21 
22  if (show && mSetInsertionPointEnd) {
23  // m_textctrl is protected member of wxTextEntryDialog
24  m_textctrl->SetInsertionPointEnd();
25  }
26 
27  return ret;
28 }

References mSetInsertionPointEnd.

Member Data Documentation

◆ mSetInsertionPointEnd

bool AudacityTextEntryDialog::mSetInsertionPointEnd {}
private

Definition at line 41 of file AudacityTextEntryDialog.h.

Referenced by SetInsertionPointEnd(), and Show().


The documentation for this class was generated from the following files:
AudacityTextEntryDialog::mSetInsertionPointEnd
bool mSetInsertionPointEnd
Definition: AudacityTextEntryDialog.h:41
wxTabTraversalWrapper< wxTextEntryDialog >
TranslatableString::Translation
wxString Translation() const
Definition: TranslatableString.h:79