diff options
author | David Robillard <d@drobilla.net> | 2020-08-02 15:23:19 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 15:23:19 +0200 |
commit | bdbdf42f3fe990c713c5437724db39274c387eee (patch) | |
tree | 7f921a04fd580da6bcb6fc8975fa2aebfcd93e0f /src/gui/WindowFactory.hpp | |
parent | ec0b87a18623c17c16f6a648fcf277abe14142b7 (diff) | |
download | ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.gz ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.bz2 ingen-bdbdf42f3fe990c713c5437724db39274c387eee.zip |
Remove std::shared_ptr alias
Diffstat (limited to 'src/gui/WindowFactory.hpp')
-rw-r--r-- | src/gui/WindowFactory.hpp | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/src/gui/WindowFactory.hpp b/src/gui/WindowFactory.hpp index 5b1a6984..00ddce55 100644 --- a/src/gui/WindowFactory.hpp +++ b/src/gui/WindowFactory.hpp @@ -18,10 +18,10 @@ #define INGEN_GUI_WINDOWFACTORY_HPP #include "ingen/Node.hpp" -#include "ingen/memory.hpp" #include <cstddef> #include <map> +#include <memory> namespace ingen { @@ -56,21 +56,30 @@ public: size_t num_open_graph_windows(); - GraphBox* graph_box(SPtr<const client::GraphModel> graph); - GraphWindow* graph_window(SPtr<const client::GraphModel> graph); - GraphWindow* parent_graph_window(SPtr<const client::BlockModel> block); + GraphBox* graph_box(std::shared_ptr<const client::GraphModel> graph); + GraphWindow* graph_window(std::shared_ptr<const client::GraphModel> graph); - void present_graph( - SPtr<const client::GraphModel> graph, - GraphWindow* preferred = nullptr, - SPtr<GraphView> view = nullptr); + GraphWindow* + parent_graph_window(std::shared_ptr<const client::BlockModel> block); - void present_load_plugin(SPtr<const client::GraphModel> graph, Properties data=Properties()); - void present_load_graph(SPtr<const client::GraphModel> graph, Properties data=Properties()); - void present_load_subgraph(SPtr<const client::GraphModel> graph, Properties data=Properties()); - void present_new_subgraph(SPtr<const client::GraphModel> graph, Properties data=Properties()); - void present_rename(SPtr<const client::ObjectModel> object); - void present_properties(SPtr<const client::ObjectModel> object); + void present_graph(std::shared_ptr<const client::GraphModel> graph, + GraphWindow* preferred = nullptr, + std::shared_ptr<GraphView> view = nullptr); + + void present_load_plugin(std::shared_ptr<const client::GraphModel> graph, + Properties data = Properties()); + + void present_load_graph(std::shared_ptr<const client::GraphModel> graph, + Properties data = Properties()); + + void present_load_subgraph(std::shared_ptr<const client::GraphModel> graph, + Properties data = Properties()); + + void present_new_subgraph(std::shared_ptr<const client::GraphModel> graph, + Properties data = Properties()); + + void present_rename(std::shared_ptr<const client::ObjectModel> object); + void present_properties(std::shared_ptr<const client::ObjectModel> object); bool remove_graph_window(GraphWindow* win, GdkEventAny* ignored = nullptr); @@ -81,8 +90,9 @@ public: private: using GraphWindowMap = std::map<Raul::Path, GraphWindow*>; - GraphWindow* new_graph_window(SPtr<const client::GraphModel> graph, - SPtr<GraphView> view); + GraphWindow* + new_graph_window(std::shared_ptr<const client::GraphModel> graph, + std::shared_ptr<GraphView> view); App& _app; GraphBox* _main_box; |