diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-04 17:24:23 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-04 18:43:42 -0300 |
commit | c74dc111675980ddd1a1b256b38a41304c792d89 (patch) | |
tree | fa19f98777a69e06ffe74036df8feb11500892d0 /profile.h | |
parent | a58412cb3114160c6dadb849582f2ea57ddb2125 (diff) | |
download | subsurface-c74dc111675980ddd1a1b256b38a41304c792d89.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 |