Audacity 3.2.0
|
Handle changing of active project and keep global project pointer. More...
#include <wx/event.h>
#include <memory>
Go to the source code of this file.
Functions | |
AUDACITY_DLL_API std::weak_ptr< AudacityProject > | GetActiveProject () |
AUDACITY_DLL_API void | SetActiveProject (AudacityProject *project) |
Handle changing of active project and keep global project pointer.
Audacity: A Digital Audio Editor
Paul Licameli split from Project.h
Definition in file ActiveProject.h.
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject | ( | ) |
Definition at line 22 of file ActiveProject.cpp.
References gActiveProject.
Referenced by EVT_MENU_RANGE(), ExecCommand(), AudacityApp::InitPart2(), ProjectManager::OnCloseWindow(), AudacityApp::OnExceptionInMainLoop(), NyqBench::OnGo(), AudacityApp::OnKeyDown(), CommandHandler::OnReceiveCommand(), NyqBench::OnRunUpdate(), and AudacityApp::OnTimer().
AUDACITY_DLL_API void SetActiveProject | ( | AudacityProject * | project | ) |
Definition at line 27 of file ActiveProject.cpp.
References KeyboardCapture::Capture(), FindProjectFrame(), gActiveProject, and project.
Referenced by ProjectManager::New(), ProjectWindow::OnActivate(), ProjectManager::OnCloseWindow(), and ProjectWindow::OnMouseEvent().