Audacity 3.2.0
Functions
Project.cpp File Reference
#include "Project.h"
#include <wx/display.h>
#include <wx/filename.h>
#include "BasicUI.h"
Include dependency graph for Project.cpp:

Go to the source code of this file.

Functions

 DEFINE_XML_METHOD_REGISTRY (ProjectFileIORegistry)
 
std::unique_ptr< const BasicUI::WindowPlacementProjectFramePlacement (AudacityProject *project)
 Make a WindowPlacement object suitable for project (which may be null) More...
 

Function Documentation

◆ DEFINE_XML_METHOD_REGISTRY()

DEFINE_XML_METHOD_REGISTRY ( ProjectFileIORegistry  )

◆ ProjectFramePlacement()

std::unique_ptr< const BasicUI::WindowPlacement > ProjectFramePlacement ( AudacityProject project)

Make a WindowPlacement object suitable for project (which may be null)

Postcondition
return value is not null

Definition at line 129 of file Project.cpp.

130{
132 std::unique_ptr<const BasicUI::WindowPlacement> result;
133 if (project && factory && (result = factory(*project)).get())
134 return result;
135 else
136 return std::make_unique<BasicUI::WindowPlacement>();
137}
static RegisteredToolbarFactory factory
const auto project

References factory, GlobalVariable< Tag, const std::function< Signature >, nullptr, Options... >::Get(), and project.

Referenced by ProjectFileManager::DoImport(), ProjectAudioManager::DoRecord(), ProjectFileManager::DoSave(), ProjectFileIO::HandleXMLTag(), anonymous_namespace{TransportMenus.cpp}::OnPunchAndRoll(), ProjectFileManager::OpenProjectFile(), ProjectAudioManager::PlayPlayRegion(), ProjectFileIO::RenameOrWarn(), ProjectFileManager::SaveCopy(), and AudioIO::StartMonitoring().

Here is the call graph for this function:
Here is the caller graph for this function: