1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-31 08:58:43 +01:00

Define InvisibleTemporaryProject

This commit is contained in:
Paul Licameli
2020-11-18 23:42:42 -05:00
parent 93b098b8d2
commit a9cbd953f0
2 changed files with 36 additions and 0 deletions

View File

@@ -262,4 +262,18 @@ public:
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
EVT_PROJECT_TITLE_CHANGE, wxCommandEvent);
//! Makes a temporary project that doesn't display on the screen
class InvisibleTemporaryProject
{
public:
InvisibleTemporaryProject();
~InvisibleTemporaryProject();
AudacityProject &Project()
{
return *mpProject;
}
private:
std::shared_ptr<AudacityProject> mpProject;
};
#endif