Laurent Monin
038c55dcfb
Replace example_1() & example_2() with default_examples()
...
- Use a dict for metadata
- easier to extend
2021-04-30 11:58:51 +02:00
Bob Swift
0da8d5c3c7
Missing updated file that should have been on commit cc27862. (Oops)
2021-04-30 11:58:51 +02:00
Bob Swift
b0aa93ed37
Set file types as class properties to reduce duplication.
2021-04-30 11:58:51 +02:00
Bob Swift
4c21d5b17b
Remove unused wordwrap property.
2021-04-30 11:58:51 +02:00
Bob Swift
2a85fa2a1f
Set maximum examples, tooltip and usage notes as class properties.
2021-04-30 11:58:45 +02:00
Bob Swift
be18bcbfb8
Additional code de-duplication
2021-04-30 11:51:19 +02:00
Bob Swift
1e32469a39
Create function for syncing scroll bars to remove duplicated code.
2021-04-30 11:51:19 +02:00
Bob Swift
5c68931235
Remove highlight from splitters
2021-04-30 11:51:19 +02:00
Bob Swift
27f62a7380
Highlight splitters to make them more visible.
2021-04-30 11:51:19 +02:00
Bob Swift
b67aaaf4bc
Update TODO comment.
2021-04-30 11:51:19 +02:00
Bob Swift
99f829493c
Use custom widget for documentation display from scriping options page
2021-04-30 11:51:19 +02:00
Bob Swift
8b2cbcd13f
Refactor documentation template into scripting documentation module
2021-04-30 11:51:19 +02:00
Bob Swift
a4b3b29ca0
Move ScriptingDocumentationWidget to picard.ui.widgets
2021-04-30 11:51:18 +02:00
Bob Swift
1f8b1537e0
Remove unused layout
2021-04-30 11:51:18 +02:00
Bob Swift
6c68f85af3
Make ScriptingDocumentationWidget a proper stand-alone widget.
2021-04-30 11:51:18 +02:00
Bob Swift
bd0f479535
Don't use underscore for unused variables.
2021-04-30 11:51:18 +02:00
Bob Swift
27850fdd33
Set default path and file name as class properties.
2021-04-30 11:51:18 +02:00
Bob Swift
2a850861df
Set import/export default directory. Mark dialog titles for translation.
2021-04-30 11:51:18 +02:00
Bob Swift
fba146c1b2
Fix call argument to error display from import/export. Add logging.
2021-04-30 11:51:18 +02:00
Bob Swift
ac66c32cf9
Clean up call to super() when initializing the documentation widget
2021-04-30 11:51:18 +02:00
Bob Swift
649c4c50eb
Changes requested by outsidecontext
...
- remove SingletonDialog from ScriptEditorPage class
- remove unused self.parent and self.PARENT variables
- remove setWindowFlags and add setWindowModality
- create custom ScriptingDocumentationWidget
2021-04-30 11:51:18 +02:00
Bob Swift
c4f4ab4393
Fix docstring
2021-04-30 11:51:18 +02:00
Laurent Monin
97249994f6
Disable export/save buttons if script has errors
2021-04-30 11:51:18 +02:00
Laurent Monin
7c3e3498c3
Simplify preset script selection code
2021-04-30 11:51:18 +02:00
Laurent Monin
3dbaef3656
Get rid of empty script, let syntax checking do the work
2021-04-30 11:51:18 +02:00
Bob Swift
df4bc6d144
Fix position of Show documentation checkbox. Remove unused splitter.
2021-04-30 11:51:18 +02:00
Bob Swift
85e5bf8e46
Implement suggested changes
...
- Include current configuration naming script in selection list
- Update script loaded into the editor on selection change
- Only update script on "Make it so" if it has been saved from editor
- Optimize synchronization of example lists
- Correct spelling mistakes
2021-04-30 11:51:18 +02:00
Bob Swift
367afeba21
Add missing tooltip
2021-04-30 11:51:18 +02:00
Bob Swift
1708bbc07c
Add option to display scripting documentation on the editor screen
2021-04-30 11:51:18 +02:00
Bob Swift
7267778047
Slight refactoring. Add docstrings.
2021-04-30 11:51:17 +02:00
Bob Swift
955ea990ff
Use self.set_script() to avoid code duplication.
2021-04-30 11:51:17 +02:00
Bob Swift
549c83181a
Correct typo in tooltip text
2021-04-30 11:51:17 +02:00
Bob Swift
99f7b69194
Add options to export to / import from a text file
2021-04-30 11:51:17 +02:00
Bob Swift
a42ad338f1
Remove script display from Options page. Add note about examples.
2021-04-30 11:51:13 +02:00
Bob Swift
44900d94a7
Add signals from script editor for saving and updating
2021-04-30 11:49:26 +02:00
Bob Swift
0ee08214b0
Remove option to open script editor from main screen.
2021-04-30 11:49:26 +02:00
Bob Swift
2788393600
Fix yet another coding style issue with a missing blank line.
2021-04-30 11:49:26 +02:00
Bob Swift
988ef57e99
Update colors on selected items in example lists
2021-04-30 11:49:26 +02:00
Bob Swift
b6813be02f
Add extra blank line to appease the code style check.
2021-04-30 11:49:26 +02:00
Bob Swift
0e691d0c5b
Address initial suggested enhancement items list
2021-04-30 11:49:26 +02:00
Bob Swift
f746254ea3
Add missing space.
2021-04-30 11:49:26 +02:00
Bob Swift
e3e82d6a9f
Make naming script editor available from main screen
2021-04-30 11:49:26 +02:00
Bob Swift
0d57208153
Remove unused import
2021-04-30 11:49:25 +02:00
Bob Swift
aa68376531
Use examples from parent window to address codacy issues.
2021-04-30 11:49:25 +02:00
Bob Swift
6ced4e95e4
Add separate window for naming script editing.
2021-04-30 11:49:20 +02:00
Philipp Wolfer
2fd987c0e1
Upgrade to PyInstaller 4.3
2021-04-30 11:43:38 +02:00
Laurent Monin
273f1d11fe
Change the way string is built to be nicer with translations
2021-04-30 11:43:38 +02:00
Laurent Monin
3417852ec9
No need to iterate files if self.can_show_coverart is False
2021-04-30 11:43:37 +02:00
Laurent Monin
8c91a2b86e
Fix incorrect cluster images count
2021-04-30 11:43:37 +02:00
Laurent Monin
f563c5c59c
Rework number of cover art images column code
2021-04-30 11:43:37 +02:00