mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 17:18:41 +02:00
Bug 1923 - Enh: Help buttons for Export Audio
This commit is contained in:
parent
072b711353
commit
154f6d25d9
@ -66,6 +66,7 @@
|
||||
#include "../WaveTrack.h"
|
||||
#include "../widgets/ErrorDialog.h"
|
||||
#include "../widgets/Warning.h"
|
||||
#include "../widgets/HelpSystem.h"
|
||||
#include "../AColor.h"
|
||||
#include "../Dependencies.h"
|
||||
#include "../FileNames.h"
|
||||
@ -272,6 +273,7 @@ wxDEFINE_EVENT(AUDACITY_FILE_SUFFIX_EVENT, wxCommandEvent);
|
||||
|
||||
BEGIN_EVENT_TABLE(Exporter, wxEvtHandler)
|
||||
EVT_FILECTRL_FILTERCHANGED(wxID_ANY, Exporter::OnFilterChanged)
|
||||
EVT_BUTTON(wxID_HELP, Exporter::OnHelp)
|
||||
EVT_COMMAND( wxID_ANY, AUDACITY_FILE_SUFFIX_EVENT, Exporter::OnExtensionChanged)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
@ -318,8 +320,8 @@ Exporter::~Exporter()
|
||||
// methods for setting its standard controls.
|
||||
// We would need OS specific code that 'knows' about the system
|
||||
// dialogs.
|
||||
void Exporter::OnExtensionChanged(wxCommandEvent &Evt) {
|
||||
wxString ext = Evt.GetString();
|
||||
void Exporter::OnExtensionChanged(wxCommandEvent &evt) {
|
||||
wxString ext = evt.GetString();
|
||||
ext = ext.BeforeFirst(' ').Lower();
|
||||
wxLogDebug("Extension changed to '.%s'", ext);
|
||||
// wxString Name = mDialog->GetFilename();
|
||||
@ -327,6 +329,12 @@ void Exporter::OnExtensionChanged(wxCommandEvent &Evt) {
|
||||
// mDialog->SetFilename(Name);
|
||||
}
|
||||
|
||||
void Exporter::OnHelp(wxCommandEvent& WXUNUSED(evt))
|
||||
{
|
||||
wxWindow * pWin = GetActiveProject();
|
||||
HelpSystem::ShowHelp(pWin, wxT("File_Export_Dialog"), true);
|
||||
}
|
||||
|
||||
void Exporter::SetFileDialogTitle( const wxString & DialogTitle )
|
||||
{
|
||||
// The default title is "Export File"
|
||||
@ -930,6 +938,11 @@ void Exporter::CreateUserPane(wxWindow *parent)
|
||||
}
|
||||
S.EndHorizontalLay();
|
||||
}
|
||||
S.StartHorizontalLay(wxALIGN_RIGHT, 0);
|
||||
{
|
||||
S.AddStandardButtons(eHelpButton);
|
||||
}
|
||||
S.EndHorizontalLay();
|
||||
S.EndVerticalLay();
|
||||
|
||||
return;
|
||||
|
@ -192,7 +192,8 @@ public:
|
||||
int GetAutoExportSubFormat();
|
||||
int GetAutoExportFilterIndex();
|
||||
wxFileName GetAutoExportFileName();
|
||||
void OnExtensionChanged(wxCommandEvent &Evt);
|
||||
void OnExtensionChanged(wxCommandEvent &evt);
|
||||
void OnHelp(wxCommandEvent &evt);
|
||||
|
||||
private:
|
||||
bool ExamineTracks();
|
||||
|
Loading…
x
Reference in New Issue
Block a user