18#ifndef FLOWCANVAS_PORT_HPP
19#define FLOWCANVAS_PORT_HPP
28#include <boost/shared_ptr.hpp>
29#include <boost/weak_ptr.hpp>
31#include <libgnomecanvasmm.h>
41static const int PORT_LABEL_SIZE = 8000;
54 const std::string&
name,
75 bool highlight_parent=
true,
76 bool highlight_connections=
true,
85 _menu->popup(button, activate_time);
The 'master' canvas widget which contains all other objects.
Definition: Canvas.hpp:61
An object a Connection can connect to.
Definition: Connectable.hpp:32
virtual void raise_connections()
A port on a Module.
Definition: Port.hpp:51
double border_width() const
Definition: Port.hpp:97
bool _selected
Definition: Port.hpp:168
virtual void set_control_min(float min)
Port(boost::shared_ptr< Module > module, const std::string &name, bool is_input, uint32_t color)
boost::weak_ptr< Module > module() const
Definition: Port.hpp:66
bool is_output() const
Definition: Port.hpp:106
Gtk::Menu * menu() const
Definition: Port.hpp:91
void popup_menu(guint button, guint32 activate_time)
Definition: Port.hpp:81
double natural_width() const
bool operator==(const std::string &name)
Definition: Port.hpp:125
double _border_width
Definition: Port.hpp:164
const std::string & name() const
Definition: Port.hpp:102
uint32_t _color
Definition: Port.hpp:165
virtual void toggle(bool signal=true)
void set_height(double h)
sigc::signal< void > signal_renamed
Definition: Port.hpp:127
virtual Gnome::Art::Point dst_connection_point(const Gnome::Art::Point &src)
float control_value() const
Definition: Port.hpp:118
bool _toggled
Definition: Port.hpp:169
void set_highlighted(bool highlight, bool highlight_parent=true, bool highlight_connections=true, bool raise_connections=true)
void set_border_width(double w)
virtual void set_control(float value, bool signal=true)
uint32_t color() const
Definition: Port.hpp:107
void set_selected(bool b)
bool _is_input
Definition: Port.hpp:167
virtual bool is_toggled() const
Definition: Port.hpp:110
virtual Gnome::Art::Point src_connection_point()
Gnome::Canvas::Rect * _rect
Definition: Port.hpp:138
Gtk::Menu * _menu
Definition: Port.hpp:139
virtual void create_menu()
virtual Gnome::Art::Point connection_point_vector(double dx, double dy)
virtual void set_control_max(float max)
boost::weak_ptr< Module > _module
Definition: Port.hpp:135
double _width
Definition: Port.hpp:162
double height() const
Definition: Port.hpp:108
void set_menu(Gtk::Menu *m)
sigc::signal< void, float > signal_control_changed
Definition: Port.hpp:128
void set_fill_color(uint32_t c)
Definition: Port.hpp:68
Gnome::Canvas::Text * _label
Definition: Port.hpp:137
std::string _name
Definition: Port.hpp:136
float control_max() const
Definition: Port.hpp:120
float control_min() const
Definition: Port.hpp:119
bool selected() const
Definition: Port.hpp:72
double width() const
Definition: Port.hpp:93
Control * _control
Definition: Port.hpp:160
virtual void set_toggled(bool b)
Definition: Port.hpp:111
virtual void set_name(const std::string &n)
double _height
Definition: Port.hpp:163
bool is_input() const
Definition: Port.hpp:105
FlowCanvas namespace, everything is defined under this.
Definition: Canvas.hpp:38
std::vector< boost::shared_ptr< Port > > PortVector
Definition: Port.hpp:172
Port control value indicator "gauge".
Definition: Port.hpp:142
float value
Definition: Port.hpp:155
Control(Gnome::Canvas::Rect *r)
Definition: Port.hpp:143
float min
Definition: Port.hpp:156
Gnome::Canvas::Rect * rect
Definition: Port.hpp:154
float max
Definition: Port.hpp:157
~Control()
Definition: Port.hpp:150