Audacity 3.2.0
ActiveProject.h
Go to the documentation of this file.
1/*!********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file ActiveProject.h
6 @brief Handle changing of active project and keep global project pointer
7
8 Paul Licameli split from Project.h
9
10 **********************************************************************/
11
12#ifndef __AUDACITY_ACTIVE_PROJECT__
13#define __AUDACITY_ACTIVE_PROJECT__
14
15#include <wx/event.h> // to declare custom event type
16#include <memory>
17
18class AudacityProject;
19
20AUDACITY_DLL_API std::weak_ptr<AudacityProject> GetActiveProject();
21// For use by ProjectManager only:
22AUDACITY_DLL_API void SetActiveProject(AudacityProject * project);
23
24#endif
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject()
AUDACITY_DLL_API void SetActiveProject(AudacityProject *project)
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90