mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Manually remove events in the profile context menu
As logical extension of the ability to add bookmarks and gas changes this adds the ability to remove (any arbitrary) event that happens at the mouse position (specifically, that is within +/- six (scaled) pixels around the x-position (time) of the mouse). That's the same width that the triangle marker occupies which was moved to be centered around the event time in commit 5752e9742e86 ("Finetune event triangle position to have the top point at the event time"). Fixes #60 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
471b944704
commit
14b6551a6a
3 changed files with 63 additions and 12 deletions
|
@ -48,9 +48,10 @@ typedef enum { SC_SCREEN, SC_PRINT } scale_mode_t;
|
|||
extern void plot(struct graphics_context *gc, struct dive *dive, scale_mode_t scale);
|
||||
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 attach_tooltip(int x, int y, int w, int h, const char *text, struct event *event);
|
||||
extern void get_plot_details(struct graphics_context *gc, int time, char *buf, size_t bufsize);
|
||||
extern int x_to_time(double x);
|
||||
extern int x_abs(double x);
|
||||
|
||||
struct options {
|
||||
enum { PRETTY, TABLE, TWOPERPAGE } type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue