mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-18 00:26:15 +00:00
The first plotting method was removed from profile.c to profilegraphics.cpp and some conversion ( almost 1 to 1 ) was made so that the code could work. Since the code is big - this commit has just a part of it working - it plots the grid. but already works for testing the resizing of the window and Zooming ( unimplemented ) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
19 lines
368 B
C++
19 lines
368 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);
|
|
};
|
|
|
|
#endif
|