1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Reposition help button on Export dialog

This commit is contained in:
Leland Lucius 2021-02-14 03:02:32 -06:00
parent 57ce22e38a
commit 63af846600

View File

@ -50,6 +50,7 @@
#include "../widgets/FileDialog/FileDialog.h" #include "../widgets/FileDialog/FileDialog.h"
#include "../src/AllThemeResources.h"
#include "../Mix.h" #include "../Mix.h"
#include "../Prefs.h" #include "../Prefs.h"
#include "../prefs/ImportExportPrefs.h" #include "../prefs/ImportExportPrefs.h"
@ -59,6 +60,7 @@
#include "../ProjectWindow.h" #include "../ProjectWindow.h"
#include "../ShuttleGui.h" #include "../ShuttleGui.h"
#include "../Tags.h" #include "../Tags.h"
#include "../Theme.h"
#include "../WaveTrack.h" #include "../WaveTrack.h"
#include "../widgets/AudacityMessageBox.h" #include "../widgets/AudacityMessageBox.h"
#include "../widgets/Warning.h" #include "../widgets/Warning.h"
@ -964,38 +966,35 @@ void Exporter::CreateUserPane(wxWindow *parent)
{ {
ShuttleGui S(parent, eIsCreating); ShuttleGui S(parent, eIsCreating);
S.StartVerticalLay(); S.StartStatic(XO("Format Options"), 1);
{ {
S.StartHorizontalLay(wxEXPAND); S.StartHorizontalLay(wxEXPAND);
{ {
S.StartStatic(XO("Format Options"), 1); mBook = S.Position(wxEXPAND).StartSimplebook();
{ {
mBook = S.Position(wxEXPAND)
.StartSimplebook();
for (const auto &pPlugin : mPlugins) for (const auto &pPlugin : mPlugins)
{ {
for (int j = 0; j < pPlugin->GetFormatCount(); j++) for (int j = 0; j < pPlugin->GetFormatCount(); j++)
{ {
// Name of simple book page is not displayed // Name of simple book page is not displayed
S.StartNotebookPage( {} ); S.StartNotebookPage( {} );
pPlugin->OptionsCreate(S, j); {
pPlugin->OptionsCreate(S, j);
}
S.EndNotebookPage(); S.EndNotebookPage();
} }
} }
S.EndSimplebook();
} }
S.EndStatic(); S.EndSimplebook();
auto b = safenew wxBitmapButton(S.GetParent(), wxID_HELP, theTheme.Bitmap( bmpHelpIcon ));
b->SetToolTip( XO("Help").Translation() );
b->SetLabel(XO("Help").Translation()); // for screen readers
S.Position(wxALIGN_BOTTOM | wxRIGHT | wxBOTTOM).AddWindow(b);
} }
S.EndHorizontalLay(); S.EndHorizontalLay();
} }
S.StartHorizontalLay(wxALIGN_RIGHT, 0); S.EndStatic();
{
S.AddStandardButtons(eHelpButton);
}
S.EndHorizontalLay();
S.EndVerticalLay();
return; return;
} }