1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Move more functions out-of-line

This commit is contained in:
Paul Licameli 2019-03-23 11:36:49 -04:00
parent 2176de79fb
commit ce4ba9762b
4 changed files with 21 additions and 15 deletions

View File

@ -432,3 +432,8 @@ InteractiveOutputTargets::InteractiveOutputTargets() :
) )
{ {
} }
void StatusBarTarget::Update(const wxString &message)
{
mStatus.SetStatusText(message, 0);
}

View File

@ -219,10 +219,7 @@ public:
StatusBarTarget(wxStatusBar &sb) StatusBarTarget(wxStatusBar &sb)
: mStatus(sb) : mStatus(sb)
{} {}
void Update(const wxString &message) override void Update(const wxString &message) override;
{
mStatus.SetStatusText(message, 0);
}
}; };
/// Adds messages to a response queue (to be sent back to a script) /// Adds messages to a response queue (to be sent back to a script)

View File

@ -747,3 +747,16 @@ void ImportStreamDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
EndModal( wxID_CANCEL ); EndModal( wxID_CANCEL );
} }
ImportFileHandle::~ImportFileHandle()
{
}
void ImportFileHandle::CreateProgress()
{
wxFileName ff( mFilename );
wxString title;
title.Printf(_("Importing %s"), GetFileDescription());
mProgress.create(title, ff.GetFullName());
}

View File

@ -127,20 +127,11 @@ public:
{ {
} }
virtual ~ImportFileHandle() virtual ~ImportFileHandle();
{
}
// The importer should call this to create the progress dialog and // The importer should call this to create the progress dialog and
// identify the filename being imported. // identify the filename being imported.
void CreateProgress() void CreateProgress();
{
wxFileName ff(mFilename);
wxString title;
title.Printf(_("Importing %s"), GetFileDescription());
mProgress.create(title, ff.GetFullName());
}
// This is similar to GetImporterDescription, but if possible the // This is similar to GetImporterDescription, but if possible the
// importer will return a more specific description of the // importer will return a more specific description of the