mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-05 22:07:42 +02:00
AUP3: Make suggested directory preferences changes
In addition, I've extracted the wxTextCtrl wrapper from the TimerRecordDialog intto widgets/wxTextCtrlWrapper.h and made it the default for ShuttleGui::AddTextBox(). This way readonly text controls are always included in the tab order.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "widgets/AudacityMessageBox.h"
|
||||
#include "widgets/ErrorDialog.h"
|
||||
#include "widgets/ProgressDialog.h"
|
||||
#include "widgets/wxTextCtrlWrapper.h"
|
||||
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
#include "widgets/WindowAccessible.h"
|
||||
@@ -721,13 +722,13 @@ wxPrintf(wxT("%s\n"), dt.Format());
|
||||
return Verbatim( dt.FormatDate() + wxT(" ") + dt.FormatTime() );
|
||||
}
|
||||
|
||||
TimerRecordPathCtrl * TimerRecordDialog::NewPathControl(
|
||||
wxTextCtrlWrapper * TimerRecordDialog::NewPathControl(
|
||||
wxWindow *wParent, const int iID,
|
||||
const TranslatableString &sCaption, const TranslatableString &sValue)
|
||||
{
|
||||
TimerRecordPathCtrl * pTextCtrl;
|
||||
wxTextCtrlWrapper * pTextCtrl;
|
||||
wxASSERT(wParent); // to justify safenew
|
||||
pTextCtrl = safenew TimerRecordPathCtrl(wParent, iID, sValue);
|
||||
pTextCtrl = safenew wxTextCtrlWrapper(wParent, iID, sValue.Translation());
|
||||
pTextCtrl->SetName(sCaption.Translation());
|
||||
return pTextCtrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user