mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +02:00
Implement member functions of classes in corresponding .cpp files...
... in four cases; not in some other .cpp file. This is another move that causes the generated graph to reflect dependencies correctly. This fixes other large, hidden cycles that involved PrefsDialog.cpp: there was link dependency on that when PrefsPanel.h was used for the base class. No longer. Also cycles involving TrackPanel.cpp, which contained the default implementations for TrackPanelCell and related abstract base classes.
This commit is contained in:
@@ -886,22 +886,3 @@ void ImportStreamDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
EndModal( wxID_CANCEL );
|
||||
}
|
||||
|
||||
ImportFileHandle::ImportFileHandle(const FilePath & filename)
|
||||
: mFilename(filename)
|
||||
{
|
||||
}
|
||||
|
||||
ImportFileHandle::~ImportFileHandle()
|
||||
{
|
||||
}
|
||||
|
||||
void ImportFileHandle::CreateProgress()
|
||||
{
|
||||
wxFileName ff( mFilename );
|
||||
|
||||
auto title = XO("Importing %s").Format( GetFileDescription() );
|
||||
mProgress = std::make_unique< ProgressDialog >(
|
||||
title, Verbatim( ff.GetFullName() ) );
|
||||
}
|
||||
|
||||
|
33
src/import/ImportPlugin.cpp
Normal file
33
src/import/ImportPlugin.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
ImportPlugin.cpp
|
||||
|
||||
Paul Licameli split from Import.cpp
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#include "ImportPlugin.h"
|
||||
|
||||
#include <wx/filename.h>
|
||||
#include "../widgets/ProgressDialog.h"
|
||||
|
||||
ImportFileHandle::ImportFileHandle(const FilePath & filename)
|
||||
: mFilename(filename)
|
||||
{
|
||||
}
|
||||
|
||||
ImportFileHandle::~ImportFileHandle()
|
||||
{
|
||||
}
|
||||
|
||||
void ImportFileHandle::CreateProgress()
|
||||
{
|
||||
wxFileName ff( mFilename );
|
||||
|
||||
auto title = XO("Importing %s").Format( GetFileDescription() );
|
||||
mProgress = std::make_unique< ProgressDialog >(
|
||||
title, Verbatim( ff.GetFullName() ) );
|
||||
}
|
||||
|
@@ -182,7 +182,4 @@ private:
|
||||
const FileExtensions mExtensions;
|
||||
};
|
||||
|
||||
// Unnecessary #include to indicate otherwise hidden link dependencies
|
||||
#include "Import.h"
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user