neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
project_manager.hpp
Go to the documentation of this file.
1// project_manager.hpp
2/*
3 neoGFX Design Studio
4 Copyright(C) 2020 Leigh Johnston
5
6 This program is free software: you can redistribute it and / or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
26
28{
30 {
31 public:
32 define_declared_event(ProjectAdded, project_added, i_project&)
34 define_declared_event(ProjectActivated, project_activated, i_project&)
36 public:
38 public:
41 public:
42 const project_list& projects() const override;
43 bool project_active() const override;
44 i_project& active_project() const override;
45 void activate_project(const i_project& aProject) override;
46 void deactivate_project() override;
47 i_project& open_project(const ng::i_string& aProjectFile) override;
48 i_project& create_project(const ng::i_string& aProjectName, const ng::i_string& aProjectNamespace) override;
49 void close_project(const i_project& aProject) override;
50 public:
51 i_element_library& library(const ng::i_string& aElementType) const override;
52 public:
55 private:
56 project_list::std_type::const_iterator find_project(const i_project& aProject) const;
57 ref_ptr<i_element_library> find_library(std::string const& aElementType) const;
58 private:
59 project_list iProjects;
60 ng::ref_ptr<project> iActiveProject;
61 std::vector<ref_ptr<i_element_library>> iElementLibraries;
62 };
63}
i_element_library & library(const ng::i_string &aElementType) const override
void close_project(const i_project &aProject) override
const project_list & projects() const override
i_project & active_project() const override
bool project_active() const override
i_project & create_project(const ng::i_string &aProjectName, const ng::i_string &aProjectNamespace) override
i_project & open_project(const ng::i_string &aProjectFile) override
define_declared_event(ProjectAdded, project_added, i_project &) define_declared_event(ProjectRemoved
void activate_project(const i_project &aProject) override
Definition plf_hive.h:79
#define define_declared_event(name, declName,...)
Definition event.hpp:195