First step towards a context menu in the profile view

This is completely bogus as all it does is print out the corresponding
time for the spot we right-clicked on the profile. But that at least shows
that the infrastructure is working as intended...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-03-17 16:13:02 -07:00
parent a094b2b88a
commit bfa37c3cac
3 changed files with 44 additions and 0 deletions

View file

@ -50,6 +50,7 @@ extern struct divecomputer *select_dc(struct divecomputer *main);
extern void init_profile_background(struct graphics_context *gc);
extern void attach_tooltip(int x, int y, int w, int h, const char *text);
extern void get_plot_details(struct graphics_context *gc, int time, char *buf, size_t bufsize);
extern int x_to_time(double x);
struct options {
enum { PRETTY, TABLE, TWOPERPAGE } type;