Bob Swift
0668d580fa
Fix check for unsaved changes on selecting a different script
2021-05-08 18:34:15 -06:00
Bob Swift
eb964aa3aa
Add option to reset the script to its last saved value.
2021-05-08 13:49:11 -06:00
Bob Swift
0cbbed2aad
Fix unsaved edits checks for Add, Copy and Delete. Minor code cleanup.
2021-05-08 13:13:45 -06:00
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
ffadc6ea55
Add pyyaml to project requirements
2021-05-07 17:10:46 -06:00
Bob Swift
01c6f196d5
Use YAML instead of JSON for import / export
2021-05-07 16:08:53 -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
e95781dda9
Move to the next script when deleting a script from the list
2021-05-07 11:32:25 -06:00
Bob Swift
23eaa11efe
Formatting arguments on long line.
2021-05-07 11:20:04 -06:00
Bob Swift
3c38ae8e3c
Clean up i18n translation issues
2021-05-07 11:14:27 -06:00
Bob Swift
41b0ebd164
Use helper for updating combo box items when saving in main editor
2021-05-07 10:43:55 -06:00
Bob Swift
160e730207
Identify script type (System, User, Preset) in combo box list names
2021-05-06 14:45:58 -06:00
Bob Swift
4d353db6e8
Allow updating title from script details dialog
2021-05-06 14:24:24 -06:00
Bob Swift
1df71d16a4
Add button to set last updated to properly formatted current date/time
2021-05-06 13:21:29 -06:00
Bob Swift
837d4105c1
Add function to provide consistently formatted last updated string
2021-05-06 13:19:39 -06:00
Bob Swift
3fe81f0c18
Address flake8 formatting issue
2021-05-06 11:41:52 -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
94d022c4da
Standardize preset metadata and fix translations
2021-05-06 10:09:52 -06:00
Bob Swift
a08f928fca
Combine tests to reduce indentation
2021-05-06 10:04:22 -06:00
Bob Swift
e2b3020e98
Refactor error log and display to new function. Fix translation.
2021-05-06 09:56:06 -06:00
Bob Swift
c09dde4d4a
Format JSON output files with indentation
2021-05-06 07:57:02 -06:00
Bob Swift
11da62f93b
Split long line
2021-05-06 07:39:49 -06:00
Bob Swift
3155d36054
Remove unnecessary bool() casts
2021-05-06 07:37:00 -06:00
Bob Swift
c2c2bcada2
Upper case script type constants and use unique
2021-05-06 07:33:17 -06:00
Bob Swift
f33237ff14
Remove unneeded return value variable
2021-05-06 07:25:22 -06:00
Bob Swift
2e3c822105
Move dialog out of try section
2021-05-06 07:22:59 -06:00
Bob Swift
ea8b9d6047
Add the default file naming script as one of the presets
2021-05-05 18:00:34 -06:00
Bob Swift
cf37ce089d
Update formatting to conform to flake8
2021-05-05 17:08:02 -06:00
Bob Swift
6211d21853
Update UI for multiple scripts
2021-05-05 15:59:55 -06:00
Bob Swift
485f1f55a4
Add PicardScript and FileNamingScript classes and associated tests
2021-05-05 11:58:59 -06:00
Philipp Wolfer
da14be5585
PICARD-2205: Update syntax highlighting to allow functions starting with _ or 0-9
...
The scripting syntax definition and parser implementation allow such functions.
2021-05-05 18:18:18 +02:00
Philipp Wolfer
2ee2700b5c
PICARD-2200: Add unicode left-to-right marks only for RTL languages
...
Add the Unicode left-to-right mark U+200E only when UI language is a RTL language. This mitigates the issue of users accidentally copying those marks into their scripts, causing unwanted side effects.
2021-05-05 13:51:23 +02:00
Laurent Monin
1fdc2bc17a
Remove unused ConfigurableColumnsHeader.visible_columns property
2021-05-05 12:48:53 +02:00
Laurent Monin
f56ada9d80
Remove unused MainPanel.collapse_clusters()
2021-05-05 12:48:53 +02:00
Laurent Monin
38078740c5
Remove unused ConfigSection.__prefix_len
2021-05-05 12:48:53 +02:00
Laurent Monin
061000e4b2
Remove release_group_loaded unused signal
2021-05-05 12:48:53 +02:00
Philipp Wolfer
2acdeb77d9
PICARD-2204: Handle EOF when reading "\u"
2021-05-05 12:45:42 +02:00
Philipp Wolfer
c00c175fd3
PICARD-2204: Escape control characters when pasting into script editor
...
This prevents users accidentally inserting invisible control characters with potentially unwanted side effects.
2021-05-05 12:45:42 +02:00
Philipp Wolfer
5f6e8a0a25
PICARD-2204: Allow Unicode escape sequences in tagger script
...
This allows specifying Unicode characters as 4 digit hex values with e.g. \uFFFF.
2021-05-05 12:45:42 +02:00
Laurent Monin
3ea43252c4
Merge pull request #1805 from zas/updatecredits
...
Update credits in file headers
2021-05-04 18:28:55 +02:00
Laurent Monin
613b7b912c
Update file headers with the help of fix-header script
2021-05-04 17:27:28 +02:00
Laurent Monin
339c5187d2
Add a bunch of aliases to fix-header script
2021-05-04 17:26:32 +02:00
Philipp Wolfer
c80c79a827
INSTALL.md: Fixed link to mutagen
2021-05-04 16:02:22 +02:00
Philipp Wolfer
3aa6950d3b
Disable some pyflages checks
...
Both cannot be disabled case by case and since flake8 also checks for those conditions they are redundant anyway.
2021-05-04 15:59:21 +02:00
Philipp Wolfer
0d2ed06e60
Use new help implementation for CAATypesSelectorDialog
2021-05-04 15:41:27 +02:00
Laurent Monin
1f5668ee17
Get rid of webbrowser.goto()
...
Check if `url` passed is a key from `PICARD_URLS`, and uses the value if it is.
2021-05-04 15:41:27 +02:00
Philipp Wolfer
4a87eda65b
Add common functionality to open help to PicardDialog
2021-05-04 15:41:27 +02:00