mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove the class 'CartesianPlane'
This class was pratically a re-do of the axis, I'll do the axis to plot the lines when it feels like it. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
87d5289920
commit
fc55b2abfe
4 changed files with 0 additions and 124 deletions
|
|
@ -97,27 +97,4 @@ private:
|
|||
DivePlotDataModel *model;
|
||||
};
|
||||
|
||||
// This is a try. Maybe the CartesianPlane should have the X and Y
|
||||
// axis and handle things internally?
|
||||
class DiveCartesianPlane :public QObject, public QGraphicsRectItem{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QLineF verticalLine READ verticalLine WRITE setVerticalLine)
|
||||
Q_PROPERTY(QLineF horizontalLine READ horizontalLine WRITE setHorizontalLine)
|
||||
public:
|
||||
void setLeftAxis(DiveCartesianAxis *axis);
|
||||
void setBottomAxis(DiveCartesianAxis *axis);
|
||||
void setHorizontalLine(QLineF line);
|
||||
void setVerticalLine(QLineF line);
|
||||
QLineF horizontalLine() const;
|
||||
QLineF verticalLine() const;
|
||||
public slots:
|
||||
void setup();
|
||||
private:
|
||||
DiveCartesianAxis *leftAxis;
|
||||
DiveCartesianAxis *bottomAxis;
|
||||
QList<DiveLineItem*> verticalLines;
|
||||
QList<DiveLineItem*> horizontalLines;
|
||||
qreal verticalSize;
|
||||
qreal horizontalSize;
|
||||
};
|
||||
#endif // DIVECARTESIANAXIS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue