00001 #ifndef GRID_LINE_H
00002 #define GRID_LINE_H
00003
00004 #include <QList>
00005
00006 class QGraphicsItem;
00007 class QGraphicsScene;
00008 class QPen;
00009
00010 typedef QList<QGraphicsItem *> SegmentContainer;
00011
00014 class GridLine
00015 {
00016 public:
00018 GridLine ();
00019 virtual ~GridLine ();
00020
00022 GridLine (const GridLine &other);
00023
00025 GridLine &operator= (GridLine &other);
00026
00028 void add (QGraphicsItem *item);
00029
00031 void setPen (const QPen &pen);
00032
00034 void setVisible (bool visible);
00035
00036 private:
00037
00038 SegmentContainer m_segments;
00039 };
00040
00041 #endif // GRID_LINE_H