Laurent Monin
e2957c331e
MainPanel.TITLE_COLUMN -> ITEM_ICON_COLUMN
2024-05-13 17:40:13 +02:00
Laurent Monin
e06667dad6
Introduce Columns, Column, IconColumn, and more classes
2024-05-13 17:40:13 +02:00
Laurent Monin
4fe0b18d65
Move itemviews.py to itemviews/__init__.py
2024-05-13 13:52:00 +02:00
Laurent Monin
c9174a7772
Merge pull request #2467 from phw/PICARD-2896
...
PICARD-2896: Support .ogx extension for Ogg container
2024-05-13 09:34:58 +02:00
Philipp Wolfer
d61e10b26f
PICARD-2896: Support .ogx extension for Ogg container
2024-05-13 08:21:58 +02:00
Laurent Monin
5bb313a36f
Merge pull request #2464 from zas/itemviews_basetreeview_cleanup
...
Itemviews basetreeview cleanup
2024-05-12 20:36:23 +02:00
Laurent Monin
169ed965ee
Merge pull request #2465 from phw/PICARD-2895
...
PICARD-2895: Web service requests must set Authorization header only when required
2024-05-12 15:01:36 +02:00
Laurent Monin
b83c0e3585
Move _add_other_versions outside BaseTreeView
2024-05-12 15:00:16 +02:00
Laurent Monin
2c47d34025
Move code from BaseTreeView to module level
...
Those methods don't depend on anything
2024-05-12 15:00:16 +02:00
Laurent Monin
8bbdf93d38
Split _add_other_versions() in smaller bits
2024-05-12 15:00:16 +02:00
Laurent Monin
d8a055e560
Insert actions before loading action instead of adding and removing action_more_details
2024-05-12 15:00:16 +02:00
Laurent Monin
311980866d
Create actions then add them (step to insert)
2024-05-12 15:00:16 +02:00
Laurent Monin
2e265791e3
loading, action_more -> action_loading, action_more_details
2024-05-12 15:00:16 +02:00
Laurent Monin
b9c1f0d31f
BaseTreeView: minor stylistic change (to be on par with the rest of the code)
2024-05-12 15:00:16 +02:00
Laurent Monin
f15f735b34
BaseTreeView: remove dependency on MainPanel, set icon_plugins locally
2024-05-12 15:00:16 +02:00
Laurent Monin
64a0a68dda
FileTreeView, AlbumTreeView: pass all arguments to parent class (BaseTreeView)
2024-05-12 15:00:15 +02:00
Philipp Wolfer
c9c980ee53
PICARD-2895: Web service requests must set Authorization header only when required
...
Setting an empty authorization header can lead to request errors if the
server tries to validate the header if present.
2024-05-12 12:55:33 +02:00
salo.rock
3970a612b4
Translated using Weblate (Italian)
...
Currently translated at 100.0% (1208 of 1208 strings)
Co-authored-by: salo.rock <salo.rock@users.noreply.translations.metabrainz.org >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/it/
Translation: Picard/App
2024-05-11 10:42:36 +00:00
Laurent Monin
92de44e1e0
Merge pull request #2463 from zas/itemviews_headers
...
Itemviews headers refactoring
2024-05-11 10:48:33 +02:00
Laurent Monin
f0d379ab46
Log save/restore file/album's view header state in debug mode
2024-05-10 22:06:55 +02:00
Laurent Monin
96e7f1bc84
Introduce DEFAULT_SECTION_SIZE (=100)
2024-05-10 21:55:55 +02:00
Laurent Monin
a406ac9267
Add a config upgrade hook to avoid any issue with saved header state and lock
...
- if the header state was saved during lock it was actually saving the state sets by locking itself
- new code avoids this, and always save the state before locking
2024-05-10 21:53:15 +02:00
Laurent Monin
5bb29c4880
Rework save/restore/init/defaults headers
...
- Drop now unneeded _restore_state()
- on restore state, always set columns to defaults before trying to restore previous state
- ensure _init_header() always set columns to defaults and try to restore previous state
2024-05-10 21:53:15 +02:00
Laurent Monin
6a89aab55e
Move parts of __init__() to _init_header()
2024-05-10 12:17:02 +02:00
Laurent Monin
b8b23bda0a
Introduce new BaseTreeView._init_header()
2024-05-10 12:09:20 +02:00
Laurent Monin
b775b5e516
BaseTreeView._restore_state(): if restoring header failed, fallback on defaults
...
https://doc.qt.io/qt-6/qheaderview.html#restoreState says:
This function returns true if the state was restored; otherwise returns false.
2024-05-10 12:04:21 +02:00
Laurent Monin
9d93e38daa
BaseTreeView: save header's prelock state if locked
2024-05-10 12:01:21 +02:00
Laurent Monin
5e9af33492
TristateSortHeaderView: save pre-lock state and restore on unlock
...
We do not want to loose initial state when locking.
2024-05-10 12:00:12 +02:00
Laurent Monin
c79264ca4a
self.count() > column_index is always True
...
This was meant to ensure last column hasn't fixed size, but it never worked as intended.
Also header `setStretchLastSection(True)` should prevent the issue anyway so this code isn't needed.
2024-05-10 11:31:07 +02:00
Laurent Monin
8954011f29
ConfigurableColumnsHeader: define __str__() method
...
It will help with logging
2024-05-10 11:26:05 +02:00
Laurent Monin
7586cffb73
Add properties NAME & DESCRIPTION to BaseTreeView subclasses
2024-05-10 11:22:05 +02:00
Laurent Monin
a40a133656
BaseTreeView, FileTreeView: introduce property default_drop_target
...
It removes dependency on subclass FileTreeView
2024-05-10 11:19:01 +02:00
Laurent Monin
669aee9676
Merge pull request #2461 from zas/group_extension_points
...
Group extension points
2024-05-10 11:06:12 +02:00
Laurent Monin
745403c222
Add __repr__() method to ExtensionPoint
2024-05-10 10:56:19 +02:00
Laurent Monin
cbfda11da6
Move script functions extension point to extension_points
2024-05-10 10:56:19 +02:00
Laurent Monin
52c01f36d3
test_script: use mock.patch and drop hacky copy/restore/reset of ScriptParser._function_registry
2024-05-10 10:38:16 +02:00
Laurent Monin
2e3bf8adc4
Import from picard.extension_points.options_pages
2024-05-10 10:38:16 +02:00
Laurent Monin
e9cc59f054
Import from picard.extension_points.ui_init
2024-05-10 10:38:16 +02:00
Laurent Monin
47fa9b0e2f
Import from picard.extension_points.item_actions
2024-05-10 10:38:16 +02:00
Laurent Monin
33e9e89c1e
Import from picard.extension_points.formats
2024-05-10 10:38:16 +02:00
Laurent Monin
774180f989
Import from picard.extension_points.cover_art_providers
2024-05-10 10:38:16 +02:00
Laurent Monin
184f9422bb
Regroup extension points and associated methods/classes in extension_points/*
2024-05-10 10:38:16 +02:00
Laurent Monin
28495b36e3
Rename _pages to ext_point_options_pages
2024-05-09 16:39:49 +02:00
Laurent Monin
91230b356b
Rename ui_init to ext_point_ui_init
2024-05-09 16:35:48 +02:00
Laurent Monin
953085b44a
Rename _formats to ext_point_formats
2024-05-09 16:33:47 +02:00
Laurent Monin
712d6c84cf
Rename _*_actions extension points to ext_point_*_actions
2024-05-09 15:10:57 +02:00
Laurent Monin
09d7db06ab
Rename _cover_art_providers extension point to ext_point_cover_art_providers
2024-05-09 15:10:24 +02:00
Laurent Monin
1b1f1d8fbd
Add new module picard.extension_points
2024-05-09 14:57:31 +02:00
Philipp Wolfer
b0f68988db
PICARD-2891: When clustering files attached to a Track use orig_metadata
2024-05-08 13:17:08 +02:00
Philipp Wolfer
525a5d84e0
Turn item capability methods into properties
...
Newer ones already got defined as properties. This changes make it
consistent for older ones as well.
2024-05-08 12:55:35 +02:00