Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::ProjectManager Class Reference
Inheritance diagram for zrythm::gui::ProjectManager:
Collaboration diagram for zrythm::gui::ProjectManager:

Public Types

using Template = fs::path
using TemplateList = std::vector<Template>
using ProjectLoadResult

Signals

void projectLoaded (ProjectUiState *project)
void projectLoadingFailed (const QString &errorMessage)
void activeProjectChanged (ProjectUiState *project)

Public Member Functions

 ProjectManager (utils::AppSettings &app_settings, QObject *parent=nullptr)
TemplateList get_templates () const
 Gets a copy of the list of project templates.
Q_INVOKABLE void createNewProject (const QUrl &directory, const QString &name, const QUrl &templateUrl=QUrl{})
Q_INVOKABLE void loadProject (const QString &filepath)
void add_to_recent_projects (const QString &path)
RecentProjectsModelgetRecentProjects () const
ProjectUiStateactiveProject () const
void setActiveProject (ProjectUiState *project)

Static Public Member Functions

static ProjectManager * get_instance ()
static Q_INVOKABLE QString getNextAvailableProjectName (const QUrl &directory, const QString &name)
 Get the next available untitled project name for the given directory.

Properties

QML_ELEMENT zrythm::gui::RecentProjectsModelrecentProjects
zrythm::gui::ProjectUiStateactiveProject

Detailed Description

Definition at line 19 of file project_manager.h.

Member Typedef Documentation

◆ ProjectLoadResult

using zrythm::gui::ProjectManager::ProjectLoadResult
Initial value:
std::variant<utils::QObjectUniquePtr<ProjectUiState>, QString>

Definition at line 33 of file project_manager.h.

◆ Template

using zrythm::gui::ProjectManager::Template = fs::path

Definition at line 31 of file project_manager.h.

◆ TemplateList

using zrythm::gui::ProjectManager::TemplateList = std::vector<Template>

Definition at line 32 of file project_manager.h.

Member Function Documentation

◆ getNextAvailableProjectName()

Q_INVOKABLE QString zrythm::gui::ProjectManager::getNextAvailableProjectName ( const QUrl & directory,
const QString & name )
static

Get the next available untitled project name for the given directory.

Parameters
directoryDirecctory to check for untitled projects.

Property Documentation

◆ activeProject

zrythm::gui::ProjectUiState * zrythm::gui::ProjectManager::activeProject
readwrite

Definition at line 25 of file project_manager.h.

◆ recentProjects

QML_ELEMENT zrythm::gui::RecentProjectsModel * zrythm::gui::ProjectManager::recentProjects
read

Definition at line 23 of file project_manager.h.


The documentation for this class was generated from the following file: