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