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)
: mStatus(sb)
{}
void Update(const wxString &message) override
{
mStatus.SetStatusText(message, 0);
}
void Update(const wxString &message) override;
};
/// 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 );
}
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
// identify the filename being imported.
void CreateProgress()
{
wxFileName ff(mFilename);
wxString title;
title.Printf(_("Importing %s"), GetFileDescription());
mProgress.create(title, ff.GetFullName());
}
void CreateProgress();
// This is similar to GetImporterDescription, but if possible the
// importer will return a more specific description of the