diff options
Diffstat (limited to 'src/gui/Port.hpp')
-rw-r--r-- | src/gui/Port.hpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/gui/Port.hpp b/src/gui/Port.hpp index dd5c8b92..c605cdba 100644 --- a/src/gui/Port.hpp +++ b/src/gui/Port.hpp @@ -18,7 +18,6 @@ #define INGEN_GUI_PORT_HPP #include "ganv/Port.hpp" -#include "ingen/memory.hpp" #include <gtkmm/menu.h> @@ -45,15 +44,17 @@ class GraphBox; class Port : public Ganv::Port { public: - static Port* create( - App& app, - Ganv::Module& module, - SPtr<const client::PortModel> pm, - bool flip = false); + static Port* create(App& app, + Ganv::Module& module, + std::shared_ptr<const client::PortModel> pm, + bool flip = false); ~Port() override; - SPtr<const client::PortModel> model() const { return _port_model.lock(); } + std::shared_ptr<const client::PortModel> model() const + { + return _port_model.lock(); + } bool show_menu(GdkEventButton* ev); void update_metadata(); @@ -65,13 +66,14 @@ public: bool on_selected(gboolean b) override; private: - Port(App& app, - Ganv::Module& module, - SPtr<const client::PortModel> pm, - const std::string& name, - bool flip = false); - - static std::string port_label(App& app, SPtr<const client::PortModel> pm); + Port(App& app, + Ganv::Module& module, + std::shared_ptr<const client::PortModel> pm, + const std::string& name, + bool flip = false); + + static std::string + port_label(App& app, std::shared_ptr<const client::PortModel> pm); Gtk::Menu* build_enum_menu(); Gtk::Menu* build_uri_menu(); |