Add filename to all other possible dialogs.

pull/738/head
Mooneer Salem 2024-08-22 15:45:43 -07:00
parent 1dba2acf1e
commit c79d5a6fac
5 changed files with 25 additions and 0 deletions

View File

@ -88,6 +88,11 @@ void AudioOptsDialog::buildTestControls(PlotScalar **plotScalar, wxButton **btnT
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
AudioOptsDialog::AudioOptsDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxDialog(parent, id, title, pos, size, style)
{
if (wxGetApp().customConfigFileName != "")
{
SetTitle(wxString::Format("%s (%s)", title, wxGetApp().customConfigFileName));
}
if (g_verbose) fprintf(stderr, "pos %d %d\n", pos.x, pos.y);
audioEngineInit();

View File

@ -55,6 +55,11 @@ EasySetupDialog::EasySetupDialog(wxWindow* parent, wxWindowID id, const wxString
, serialPortTestObject_(nullptr)
, hasAppliedChanges_(false)
{
if (wxGetApp().customConfigFileName != "")
{
SetTitle(wxString::Format("%s (%s)", title, wxGetApp().customConfigFileName));
}
// Create top-level of control hierarchy.
wxPanel* panel = new wxPanel(this);
wxBoxSizer* sectionSizer = new wxBoxSizer(wxVERTICAL);

View File

@ -59,6 +59,11 @@ extern wxMutex g_mutexProtectingCallbackData;
FilterDlg::FilterDlg(wxWindow* parent, bool running, bool *newMicInFilter, bool *newSpkOutFilter,
wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxDialog(parent, id, title, pos, size, style)
{
if (wxGetApp().customConfigFileName != "")
{
SetTitle(wxString::Format("%s (%s)", title, wxGetApp().customConfigFileName));
}
m_running = running;
m_newMicInFilter = newMicInFilter;
m_newSpkOutFilter = newSpkOutFilter;

View File

@ -44,6 +44,11 @@ extern wxConfigBase *pConfig;
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
OptionsDlg::OptionsDlg(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxDialog(parent, id, title, pos, size, style)
{
if (wxGetApp().customConfigFileName != "")
{
SetTitle(wxString::Format("%s (%s)", title, wxGetApp().customConfigFileName));
}
sessionActive_ = false;
wxPanel* panel = new wxPanel(this);

View File

@ -48,6 +48,11 @@ extern wxConfigBase *pConfig;
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
ComPortsDlg::ComPortsDlg(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxDialog(parent, id, title, pos, size, style)
{
if (wxGetApp().customConfigFileName != "")
{
SetTitle(wxString::Format("%s (%s)", title, wxGetApp().customConfigFileName));
}
wxPanel* panel = new wxPanel(this);
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);