Hook up UI elements for ascent rates to planner

That provides some UI elements that were recently introduced with function
of allowing the ascent rates of the planner to be configured by the user.

I tried to make it work both with senisble as well as with imperial units.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-06-25 00:08:36 +02:00 committed by Dirk Hohndel
parent 2ae6f8078a
commit 772727fc7f
6 changed files with 146 additions and 73 deletions

7
pref.h
View file

@ -46,6 +46,13 @@ struct preferences {
short rulergraph;
short save_userid_local;
char *userid;
int ascrate75;
int ascrate50;
int ascratestops;
int ascratelast6m;
int descrate;
int bottompo2;
int decopo2;
};
enum unit_system_values {
METRIC,