summaryrefslogtreecommitdiffstats
path: root/qt-ui/graphicsview-common.h
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/graphicsview-common.h
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/graphicsview-common.h')
-rw-r--r--qt-ui/graphicsview-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/graphicsview-common.h b/qt-ui/graphicsview-common.h
index 0c260a89e..c00b2d69c 100644
--- a/qt-ui/graphicsview-common.h
+++ b/qt-ui/graphicsview-common.h
@@ -36,4 +36,11 @@ extern QMap<color_indice_t, QVector<QColor> > profile_color;
void fill_profile_color();
QColor getColor(const color_indice_t i);
+struct text_render_options {
+ double size;
+ color_indice_t color;
+ double hpos, vpos;
+};
+
+typedef text_render_options text_render_options_t;
#endif