Loading...
Searching...
No Matches
DocumentTemplates.hpp
1#pragma once
2#include <QString>
3
4#include <score_lib_base_export.h>
5
6#include <vector>
7
8namespace score
9{
29struct SCORE_LIB_BASE_EXPORT DocumentTemplate
30{
31 QString name;
32 QString path;
33 QString source;
34 QString
36};
37
39SCORE_LIB_BASE_EXPORT
40QString libraryRootPath();
41
43SCORE_LIB_BASE_EXPORT
45
47SCORE_LIB_BASE_EXPORT
49
50SCORE_LIB_BASE_EXPORT
51std::vector<DocumentTemplate> availableDocumentTemplates();
52
53SCORE_LIB_BASE_EXPORT
54std::vector<DocumentTemplate> availableExampleDocuments();
55}
Base toolkit upon which the software is built.
Definition Application.cpp:116
QString libraryRootPath()
Root of the user library, from the settings.
Definition DocumentTemplates.cpp:22
QString defaultDocumentTemplate()
The template applied to new documents, or an empty string.
Definition DocumentTemplates.cpp:135
QString firstRunDocumentTemplate()
The guided score for first-time users, or an empty string.
Definition DocumentTemplates.cpp:144
A .score file that can be opened as a new, untitled document.
Definition DocumentTemplates.hpp:30
QString name
File name without extension.
Definition DocumentTemplates.hpp:31
QString path
Absolute path or resource path.
Definition DocumentTemplates.hpp:32
QString category
Folder path relative to the search root, e.g.
Definition DocumentTemplates.hpp:35
QString source
"bundled", "library" or the package name
Definition DocumentTemplates.hpp:33