From b4d5cd755c85630ea0eff8c966023de9078327ca Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 5 Nov 2005 14:27:55 +0100 Subject: make track width depend on real distance --- src/GipfelWidget.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/GipfelWidget.H') diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index 202ecc0..96c1f0d 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -46,6 +46,8 @@ class GipfelWidget : public Fl_Widget { void set_labels(Hills *v); + int get_track_width(Hill *m); + public: GipfelWidget(int X,int Y,int W, int H); -- cgit v1.2.3 From 8c0a1ec1468540fa204ac29ebac06a74ea1c838c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 7 Nov 2005 22:56:48 +0100 Subject: track-width stuff --- src/GipfelWidget.H | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/GipfelWidget.H') diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index 96c1f0d..61f3ed4 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -36,7 +36,7 @@ class GipfelWidget : public Fl_Widget { Panorama *pan; Fl_Menu_Button *mb; char *img_file; - + double track_width; int handle(int event); @@ -46,7 +46,7 @@ class GipfelWidget : public Fl_Widget { void set_labels(Hills *v); - int get_track_width(Hill *m); + int get_rel_track_width(Hill *m); public: GipfelWidget(int X,int Y,int W, int H); @@ -99,6 +99,8 @@ class GipfelWidget : public Fl_Widget { double get_view_height(); + void set_track_width(double w); + Projection::Projection_t get_projection(); void set_projection(Projection::Projection_t p); -- cgit v1.2.3