00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef CURVE_NODE_VIEW_H
00023 #define CURVE_NODE_VIEW_H
00024
00025 #include "ViewItem.h"
00026
00027 #include <CurveNode.h>
00028
00029 class CurveView;
00030
00031 class CurveNodeView : public ViewItem, public CurveNode
00032 {
00033 Q_OBJECT
00034
00035 public:
00036 CurveNodeView(SheetView* sv, CurveView* curveview, CurveNode* node, Curve* guicurve);
00037 ~CurveNodeView();
00038
00039 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00040 void calculate_bounding_rect();
00041 void set_selected();
00042 void reset_size();
00043
00044 void set_color(QColor color);
00045 void load_theme_data();
00046 CurveNode* get_curve_node() const {return m_node;}
00047
00048 private:
00049 CurveView* m_curveview;
00050 CurveNode* m_node;
00051 QColor m_color;
00052
00053 public slots:
00054 void update_pos();
00055 };
00056
00057 #endif
00058
00059
00060
00061