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:
parent
2176de79fb
commit
ce4ba9762b
@ -432,3 +432,8 @@ InteractiveOutputTargets::InteractiveOutputTargets() :
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void StatusBarTarget::Update(const wxString &message)
|
||||||
|
{
|
||||||
|
mStatus.SetStatusText(message, 0);
|
||||||
|
}
|
||||||
|
@ -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)
|
||||||
|
@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user