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