diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-04 17:24:23 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-04 19:51:33 -0700 |
commit | fa82ba60798be8b5e20277527053199916888b16 (patch) | |
tree | 7cc67c1bcad3ba1f1612bc5bf52d4c33c223cb7d /profile.h | |
parent | ec4d4566adc59d5fa2642c5f4ca12653b3f384a3 (diff) | |
download | subsurface-fa82ba60798be8b5e20277527053199916888b16.tar.gz |
Moved the plot from the cairo version to the Qt version
Started working on the Qt version of the Plot, initially
nothing is printed - but this is not a bad thing,
the program doesn't explodes too. :)
some work had to be done about the 'bool/gboolean' stuff
so I removed all gbooleans in the code that I'v encountered.
A new file was created ( profile.h ) so I could put the
signatures of helper methods that cairo used to call.
till now the code computes the max limits.
Next patch the first drawing will be made.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'profile.h')
-rw-r--r-- | profile.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/profile.h b/profile.h new file mode 100644 index 000000000..66d1ee190 --- /dev/null +++ b/profile.h @@ -0,0 +1,25 @@ +#ifndef PROFILE_H +#define PROFILE_H + +#ifdef __cplusplus +extern "C" { +#else +#if __STDC_VERSION__ >= 199901L +#include <stdbool.h> +#else +typedef int bool; +#endif +#endif + +struct dive; +struct divecomputer; +struct graphics_context; +struct plot_info; + +void calculate_max_limits(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc); +struct plot_info *create_plot_info(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc); + +#ifdef __cplusplus +} +#endif +#endif |