]> Creatis software - cpPlugins.git/blob - libs/cpPipelineEditor/Block.h
...
[cpPlugins.git] / libs / cpPipelineEditor / Block.h
1 #ifndef __cpPipelineEditor__Block__h__
2 #define __cpPipelineEditor__Block__h__
3
4 #include <cpPipelineEditor_Export.h>
5 #include <QGraphicsPathItem>
6
7 namespace cpPipelineEditor
8 {
9   /**
10    */
11   class cpPipelineEditor_EXPORT Block
12     : public QGraphicsPathItem
13   {
14   public:
15     typedef Block             Self;
16     typedef QGraphicsPathItem Superclass;
17
18   public:
19     Block(
20       QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL
21       );
22     virtual ~Block( );
23
24     virtual void paint(
25       QPainter* painter,
26       const QStyleOptionGraphicsItem* option,
27       QWidget* widget
28       ) override;
29
30   protected:
31     QColor m_SelectedColor;
32     QColor m_NotSelectedColor;
33   };
34
35 } // ecapseman
36
37 #endif // __cpPipelineEditor__Block__h__
38
39 // eof - $RCSfile$