Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
GridLines.h
1 #ifndef GRID_LINES_H
2 #define GRID_LINES_H
3 
4 #include "GridLine.h"
5 #include <QList>
6 
7 class QPen;
8 
9 typedef QList<GridLine*> GridLinesContainer;
10 
12 class GridLines
13 {
14  public:
16  GridLines();
17 
19  void add (GridLine *gridLine);
20 
22  void clear ();
23 
25  void setPen (const QPen &pen);
26 
28  void setVisible (bool visible);
29 
30  private:
31 
32  GridLinesContainer m_gridLinesContainer;
33 
34 };
35 
36 #endif // GRID_LINES_H
void clear()
Deallocate and remove all grid lines.
Definition: GridLines.cpp:19
void setPen(const QPen &pen)
Set the pen style of each grid line.
Definition: GridLines.cpp:31
Container class for GridLine objects.
Definition: GridLines.h:12
void setVisible(bool visible)
Make all grid lines visible or hidden.
Definition: GridLines.cpp:38
GridLines()
Single constructor.
Definition: GridLines.cpp:10
void add(GridLine *gridLine)
Add specified grid line. Ownership of all allocated QGraphicsItems is passed to new GridLine...
Definition: GridLines.cpp:14
Single grid line drawn a straight or curved line.
Definition: GridLine.h:14