Resolve "Create `AutoSave` class and mechanism"
This PR adds an autosave feature for the trc and pet files.
The pet file is saved each 60 seconds (up for discussions)
The trc file is saved each 10 manual changes on trajectories (up for discussion)
The autosave is saved in a file named .projectName_autosave.trc/pet
. When a new project is selected, PeTrack checks if an autosave file exists and if one exists, it asks the user, if they want to load it. This also means we need to delete the old autosave when we close a project. This happens in two cases:
- Closing Petrack as a whole
Autosaves get deleted inPetrack::closeEvent
- Changing the project; closing the old one
Autosaved get deleted insetProFileName
When we have an object model akin to what is described in the comments in #88 (closed), one might take the destruction of an Project
-Object as an indicator for closing it. (Need special care for Ctrl-C though, as it should leave an autosave but destructs normally)
-
Autosave for .pet-file is currently every 6 seconds for testing; change to 60 for final version
Closes #224 (closed)
Merge request reports
Activity
added enhancement medium labels
added 7 commits
- f0ece787 - Add simple AutoSave capability for TRC files
- c179f95b - Naive implementation of autosave for pet-file
- 9f75869a - Finetune clean up and loading in from autosaves
- 963b12d4 - Add autosave.h
- 5f061f57 - Handle relative Paths
- de478893 - Doxygen comments and small bug fixes
- 720abae7 - Formatting
Toggle commit list- Resolved by d.kilic
- Resolved by d.kilic
- Resolved by d.kilic
added 1 commit
- fcd5b63c - Refactor so less state needs to be managed manually
added 25 commits
-
fcd5b63c...1842d9aa - 16 commits from branch
master
- c4a421dc - Add simple AutoSave capability for TRC files
- a28f6902 - Naive implementation of autosave for pet-file
- 978e4615 - Finetune clean up and loading in from autosaves
- 979a0ef2 - Add autosave.h
- 33ec1618 - Handle relative Paths
- c5b79148 - Doxygen comments and small bug fixes
- 75c8b58b - Formatting
- 915c2a34 - License headers and comments
- 9d247bb1 - Refactor so less state needs to be managed manually
Toggle commit list-
fcd5b63c...1842d9aa - 16 commits from branch
added 1 commit
- fe8b4e64 - (Manually) reformat according to clang-format 11?
added 8 commits
-
fe8b4e64...e3e8d9cf - 6 commits from branch
master
- fdde73b4 - Merge branch 'master' into 224-create-autosave-class-and-mechanism
- 0de36896 - Reformat
-
fe8b4e64...e3e8d9cf - 6 commits from branch
- Resolved by d.kilic
Update Copyright-Header to 2022
- Resolved by Schrödter, Tobias
- Resolved by Schrödter, Tobias
- Resolved by Schrödter, Tobias