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