1 #ifndef __cpPipelineEditor__Block__h__
2 #define __cpPipelineEditor__Block__h__
4 #include <cpPipelineEditor_Export.h>
5 #include <QGraphicsPathItem>
7 namespace cpPipelineEditor
11 class cpPipelineEditor_EXPORT Block
12 : public QGraphicsPathItem
16 typedef QGraphicsPathItem Superclass;
20 QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL
24 void setClassName( const std::string& name );
25 void setObjectName( const std::string& name );
26 void setNumberOfInputs( unsigned int n );
27 void setNumberOfOutputs( unsigned int n );
28 void setNumberOfParameters( unsigned int n );
32 const QStyleOptionGraphicsItem* option,
37 QColor m_SelectedColor;
38 QColor m_NotSelectedColor;
43 #endif // __cpPipelineEditor__Block__h__