-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incrementally numbered waypoints #172
base: master
Are you sure you want to change the base?
Conversation
…01,...). Default button layout contains a big button for it. Current value is stored as a preference, so user can manually change it via preference menu if desired (e.g. after app re-installation to avoid re-using values from previous installation).
- Preference incremental_waypoint_count: only accept INT - incremental_waypoint: Set the UUID in DB, was empty and therefore WP could not be edited
…e time resource, so make it available to the user
Hi! Thanks again for your contribution @icrf2000 |
A good question, actually something only @severinmenard can answer. My interpretation of the issue description was like your option one, a specific button. Means behavior of the existing button types is unchanged and a new one added which creates the incrementally numbered WPT's. |
Actually my initial idea was a specific button but an automatic incremental waypoint count makes more sense and moreover will not affect the UI |
My PR creates a new button type "incwp" (in addition to the existing ones like for example "voicerec", "picture", "textnote", "tag" etc.). One can place it on the GUI by customizing default_buttons_layout.xml. In the PR, there is a demo which looks like this: Pressing the button creates waypoints named "WPT_0001", "WPT_0002",... (the prefix "WPT_" is configurable in default_buttons_layout.xml, so you could also name them e.g. "SURVEY_0001", "SURVEY_0002",... if you wanted). The counter is global, so if one starts a new track, the counting continues. There is a preference setting in the menu which allows to reset it to zero (or an arbitrary number). |
Should address issue #82.
A new button (type="incwp") which generates incrementally numbered waypoints. The format of the waypoint text is by default "WPT_0000", "WPT_0001"... The user can specify a different format in the button layout XML file if desired.