summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-17 17:54:47 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 14:04:47 -0800
commit35979537d9fc42987648db39f64f6bc01052ed17 (patch)
treed2ef715ab34060cc60aef9ade25637104df00a1b /qt-ui/profilegraphics.cpp
parent4ff73cf5370a3233a4caf29ded6e738e3d02b3a0 (diff)
downloadsubsurface-35979537d9fc42987648db39f64f6bc01052ed17.tar.gz
Plot the Temperature Text.
I Moved the 'plot text' method of the Old Graphics to the new layout - this one was mostly unchanged as it was already good as is. And used the TemperatureProfileItem to also display texts. This was the first implementation of the new system that uses *less* code than the original one, wich makes me happy. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index c907d2529..454bca65a 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -38,12 +38,6 @@ static struct graphics_context last_gc;
static double plot_scale = SCALE_SCREEN;
#endif
-struct text_render_options {
- double size;
- color_indice_t color;
- double hpos, vpos;
-};
-
extern struct ev_select *ev_namelist;
extern int evn_allocated;
extern int evn_used;
@@ -436,24 +430,25 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw)
scene()->addItem(rect);
/* Depth profile */
- plot_depth_profile();
- plot_events(dc);
+ plot_depth_profile(); // TODO: PARTIALLY PORTED.
+ plot_events(dc); // PORTED
- if (rulerEnabled && !printMode)
+ if (rulerEnabled && !printMode) // TODO: NOT PORTED.
create_ruler();
/* Temperature profile */
- plot_temperature_profile();
+ plot_temperature_profile(); // PORTED
/* Cylinder pressure plot */
- plot_cylinder_pressure();
+ plot_cylinder_pressure(); // PORTED
- /* Text on top of all graphs.. */
+ /* Text on top of all graphs.. */ // TODO: NOT PORTED, ANY TEXT.
plot_temperature_text();
plot_depth_text();
plot_cylinder_pressure_text();
plot_deco_text();
+ // NOT PORTED.
/* Put the dive computer name in the lower left corner */
gc.leftx = 0; gc.rightx = 1.0;
gc.topy = 0; gc.bottomy = 1.0;
@@ -463,11 +458,13 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw)
// The Time ruler should be right after the DiveComputer:
timeMarkers->setPos(0, diveComputer->y());
+ // NOT PORTED.
if (PP_GRAPHS_ENABLED) {
plot_pp_gas_profile();
plot_pp_text();
}
+ // NOT PORTED.
plot_depth_scale();
#if 0