Commit Graph

9 Commits

Author SHA1 Message Date
Bob Swift
c1907c7902 Make UI more intuitive
- Add `Close` button
- Confirm actions which may lose unsaved edits
- Remove `Select` button and automatically select the current script
- Save selected script id and open editor to that script
- Update the `file_naming_format` setting when script changes are saved
2021-05-08 11:12:09 -06:00
Bob Swift
2f07d03495 Remove unused import 2021-05-07 20:57:25 -06:00
Bob Swift
33a2dc9a31 Switch back to using JSON for import / export scripts 2021-05-07 20:54:28 -06:00
Bob Swift
9c033acdbc Change script_version to script_language_version to avoid confusion 2021-05-07 13:47:37 -06:00
Bob Swift
7ae73f7e12 Add script_version. Unify copy() method. Use __getitem__() method. 2021-05-07 12:49:37 -06:00
Bob Swift
4761ece369 Misc code cleanup, formatting and optimization
- Base PicardScriptType class on IntEnum
- Change _last_updated_ignore_list and JSON_OUTPUT lists to sets
- Fix translation issue with copied script titles
- Fix translation issue with preset script titles
- Standardize last updated dates for preset scripts
- Reformat long lines
- Add helper function for outputting file errors
- Replace `indented=bool` with `indent=int` in to_json()
2021-05-06 11:31:39 -06:00
Bob Swift
c09dde4d4a Format JSON output files with indentation 2021-05-06 07:57:02 -06:00
Bob Swift
cf37ce089d Update formatting to conform to flake8 2021-05-05 17:08:02 -06:00
Bob Swift
485f1f55a4 Add PicardScript and FileNamingScript classes and associated tests 2021-05-05 11:58:59 -06:00