40 std::vector<SessionModel*>
models()
const {
return {sample_model.get()}; };
65 EXPECT_TRUE(
project->projectDir().empty());
92 auto dirname = createEmptyDir(
"test_IsPossibleProjectDir");
Convenience class which creates a directory on disk for test content.
Item to carry concrete editable entity (e.g.
Main class to hold hierarchy of SessionItem objects.
Tests of ProjectUtils namespace functions.
std::unique_ptr< SessionModel > sample_model
ProjectContext createContext()
std::vector< SessionModel * > models() const
MVVM_MODEL_EXPORT std::string SuggestFileName(const SessionModel &model)
Suggests file name which can be used to store json content of given model.
MVVM_MODEL_EXPORT std::unique_ptr< ProjectInterface > CreateUntitledProject(const ProjectContext &context)
Creates new untitled project.
MVVM_MODEL_EXPORT bool IsPossibleProjectDir(const std::string &project_dir)
Returns 'true' if given directory might be a project directory.
MVVM_MODEL_EXPORT std::string ProjectWindowTitle(const ProjectInterface &project)
Returns a MainWindow title for given project.
materialitems.h Collection of materials to populate MaterialModel.
@ project
selective copying for saving/loading the project (tags and data created by item, updated from JSON)
TEST_F(ProjectUtilsTest, SuggestFileName)
Testing helper structure.
Provides necessary information for Project construction.
models_callback_t m_models_callback