mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make the "Save dive data as subtitles" feature more configurable.
Previously, the subtitle generation was hardcoded, making it unsuitable if you didn't want all of the displayed values. This has been replaced by a format string that is configurable in the settings, using predefined tags that are replaced with the values. The default value for this has been set to (mostly) match the currently generated subtitle string. This also provides a good starting point for users that want to modify the string. Signed-off-by: Victor Arvidsson <victarv@gmail.com>
This commit is contained in:
parent
1a9b09682a
commit
6886c9ccf8
8 changed files with 535 additions and 15 deletions
|
|
@ -113,6 +113,7 @@ struct preferences {
|
|||
bool extract_video_thumbnails;
|
||||
int extract_video_thumbnails_position; // position in stream: 0=first 100=last second
|
||||
std::string ffmpeg_executable; // path of ffmpeg binary
|
||||
std::string subtitles_format_string; // Format string for subtitles generated from the dive data
|
||||
int defaultsetpoint; // default setpoint in mbar
|
||||
std::string default_filename;
|
||||
enum def_file_behavior default_file_behavior;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue