On close event or open event, if there are unsaved changes a close
dialog pops up which asks the user explicitly to close, cancel or save.
Additionally, this PR includes:
- fix: add shortcut Ctrl+S for saving to shortcut
window - fix: make save button insensitive if no redactions, yet
- feat: adjust window title with automatic detection of document title
and basename, and with prepended•if there are unsaved redactions - feat!: after saving open redacted file (may need to revert this, as it
prevents from editing or revert the redactions) - i18n: add more strings to be translated from shortcut window and
close dialog - refactor: rename
boxtoredaction, move class to own file - refactor: rename classes, simply
Window,Application,
CloseDialog - refactor: move more widgets to window template
Closes: #9
On close event or open event, if there are unsaved changes a close
dialog pops up which asks the user explicitly to close, cancel or save.
Additionally, this PR includes:
- fix: add shortcut <kbd>Ctrl</kbd>+<kbd>S</kbd> for saving to shortcut
window
- fix: make save button insensitive if no redactions, yet
- feat: adjust window title with automatic detection of document title
and basename, and with prepended `• ` if there are unsaved redactions
- feat!: after saving open redacted file (may need to revert this, as it
prevents from editing or revert the redactions)
- i18n: add more strings to be translated from shortcut window and
close dialog
- refactor: rename `box` to `redaction`, move class to own file
- refactor: rename classes, simply `Window`, `Application`,
`CloseDialog`
- refactor: move more widgets to window template
Closes: #9