diff options
Diffstat (limited to 'src/progs/ingenuity/Port.h')
-rw-r--r-- | src/progs/ingenuity/Port.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/progs/ingenuity/Port.h b/src/progs/ingenuity/Port.h index a23cd2c9..0498b5a8 100644 --- a/src/progs/ingenuity/Port.h +++ b/src/progs/ingenuity/Port.h @@ -35,14 +35,17 @@ namespace Ingenuity { class Port : public LibFlowCanvas::Port { public: - Port(boost::shared_ptr<LibFlowCanvas::Module> module, SharedPtr<PortModel> pm, bool flip = false); + Port(boost::shared_ptr<LibFlowCanvas::Module> module, SharedPtr<PortModel> pm, bool flip = false, bool destroyable = false); virtual ~Port() {} - SharedPtr<PortModel> model() const { return m_port_model; } + SharedPtr<PortModel> model() const { return _port_model; } private: - SharedPtr<PortModel> m_port_model; + + void on_menu_destroy(); + + SharedPtr<PortModel> _port_model; }; |