subsurface/qt-ui/profilegraphics.h
Tomaz Canabrava 926224122e Added the code to plot the actual Graph.
This version already plots the dive-graph, with the
gradient and all that jazz. One thing that will be
easily spotted is that the size of the line is very
thick - easily changed, I'm just using the default.
As soon as everything is plotted correctly I'll
fix the lines.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-04 20:18:16 -03:00

22 lines
409 B
C++

#ifndef PROFILEGRAPHICS_H
#define PROFILEGRAPHICS_H
#include <QGraphicsView>
class ProfileGraphicsView : public QGraphicsView {
Q_OBJECT
public:
ProfileGraphicsView(QWidget* parent = 0);
void plot(struct dive *d);
protected:
void resizeEvent(QResizeEvent *event);
private:
void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi);
QPen defaultPen;
QBrush defaultBrush;
};
#endif