Commit Graph

6769 Commits

Author SHA1 Message Date
Laurent Monin
e5e8d7e31f Merge pull request #1402 from zas/tags_tidyup
Tags utils tidyup
2019-12-09 15:57:14 +01:00
Laurent Monin
4090d68c3f Simplify display_tag_name()
There is no key ending with ':' in TAG_NAMES, so TAG_NAMES.get(name + ':', something) will always return something
2019-12-09 12:50:00 +01:00
Laurent Monin
e529ee7d71 Test display_tag_name() when name contains multiple double dot separators 2019-12-09 12:48:24 +01:00
Laurent Monin
6f251adc35 Sort TAG_NAMES dict by key in source code 2019-12-09 12:26:54 +01:00
Laurent Monin
91b9734d4c Make PRESERVED_TAGS a tuple rather than a list 2019-12-09 12:24:56 +01:00
Philipp Wolfer
007fd4e201 PICARD-1665: Only enable uninstall for user installed plugins 2019-12-07 18:41:57 +01:00
Philipp Wolfer
b4e2096e4e PICARD-1686: Always keep [non-album tracks] at first position 2019-12-07 18:39:38 +01:00
Philipp Wolfer
957516213a PICARD-170: Translate entries in column chooser context menu 2019-12-07 16:59:20 +01:00
Philipp Wolfer
d11548ad70 Update picard.pot 2019-12-07 16:16:32 +01:00
Philipp Wolfer
82447dd8a2 PICARD-1684: Allow reordering tag values in tag editor 2019-12-06 14:00:07 +01:00
Philipp Wolfer
cf4e683119 PICARD-1312: Enable mnemonics for buttons and other UI elements on macOS
On macOS mnemonics are disabled by default. But this also means that many UI elements (e.g. triggering buttons in dialogs) cannot be used with keyboard only as it is possible on other platforms. Enabling this on macOS allows better keyboard navigation for all users consistent across platforms.
2019-12-06 13:58:51 +01:00
Philipp Wolfer
aa49c4499c PICARD-1349: Allow resetting a column to unsorted state 2019-12-06 11:06:43 +01:00
Philipp Wolfer
bf6ab5d45d Update picard.pot 2019-12-05 12:06:49 +01:00
Philipp Wolfer
25636b4c59 Use new move icons also in cover art type selection dialog.
This needed some changes to the layout for consistent button sizes and placement.
2019-12-05 11:53:09 +01:00
Philipp Wolfer
f4fe3bfbf9 Added move right/left icons and use them for preferred metadata UI.
These icons match the move up/down icons for a consistent look.
2019-12-05 11:53:09 +01:00
Philipp Wolfer
1b4deae3bf Added custom move up/down icons
Using default icons from the theme does not work on Windows / macOS. These are custom icons created by myself.
2019-12-05 11:53:09 +01:00
Philipp Wolfer
e1354632d2 Wait longer initially for macOS notarization
Previously it could happen that the notarization request was not yet known when checking for the status and the service would respond with "Could not find the RequestUUID". Since the notaritzation process usually takes 2-5 minutes waiting for 1 minute initially should be fine.
2019-12-04 15:34:14 +01:00
Philipp Wolfer
5f394105e1 Disable manual sorting of compare_ignore_tags
The sort order for compare_ignore_tags does not matter. Sort entries automatically, disable manual sorting.
2019-12-04 15:06:20 +01:00
Philipp Wolfer
2cce50b61e PICARD-1683: Autocompletion for releasetype, releasestatus, releasecountry and media tags 2019-12-04 15:05:38 +01:00
Philipp Wolfer
b1f9f3a9ad PICARD-115: Show YYYY-MM-DD placeholder when editing date tags 2019-12-04 15:05:38 +01:00
Philipp Wolfer
3e8a0d8e56 Ignore syntax errors for prospector pyflakes checks.
On Codacy this does not support Python 3 syntax and we have other checks in place for syntax.
2019-12-04 10:31:48 +01:00
Philipp Wolfer
880682033c Introduce DISPLAY_NAME constant for use in metadata
This allows us to use the same value on multiple places where we need to specify a product display name for Picard.
2019-12-03 23:08:18 +01:00
Philipp Wolfer
f8ae841ccc PICARD-1682: Use multiline editor for lyrics and comments
This allows editing lyrics and comments in the metadatabox without loosing linebreaks.
2019-12-03 23:05:38 +01:00
Philipp Wolfer
e2e31c5fc3 Merge pull request #1389 from phw/customizable-columns
PICARD-170: Customizable main panel columns
2019-12-03 23:03:39 +01:00
Philipp Wolfer
05126bf0a4 EditableListView: Use default implementation for editor creation
Custom code now just adds the autocompleter, but otherwise this is the standard editor.
2019-12-03 16:37:10 +01:00
Philipp Wolfer
21f715dcb1 Fixed drag and drop in EditableListView 2019-12-03 11:11:25 +01:00
Philipp Wolfer
c901295df3 PICARD-170: Fille album media metadata in existing loop over media
Avoids separate looping over the media list
2019-12-03 09:37:21 +01:00
Philipp Wolfer
964a452a2d EditableListView: Mimic default QItemDelegate.createEditor behavior
This leads to consistent layout for our custom implementation and standard editors.
2019-12-03 08:45:59 +01:00
Philipp Wolfer
b59f09e9fb PICARD-170: Add a restore default columns action 2019-12-02 23:54:46 +01:00
Philipp Wolfer
f8f4740fca PICARD-170: Use QHeaderView to save / restore main panel column state
Simplifies code and also persists the column order.
2019-12-02 23:37:48 +01:00
Philipp Wolfer
1b037d6270 PICARD-170: Allow selecting displayed columns
Adds a context menu to the default pane headers to select the displayed columns. The default is unchanged, but additional columns can be selected by the user.
2019-12-02 23:37:48 +01:00
Philipp Wolfer
d9f31438a0 PICARD-1523: Compare preserved tags case-insensitive 2019-12-02 20:53:45 +01:00
Philipp Wolfer
e07c6a99c2 Github Actions: Cache libdiscid for macOS builds 2019-12-02 20:30:10 +01:00
Philipp Wolfer
fc1ed6671c Merge pull request #1385 from phw/gha-pr
Github Actions: Run on pull requests
2019-12-02 14:09:38 +01:00
Philipp Wolfer
0e052a95dd GHA: Do not run macOS packaging on changes to changelog-for-version.py 2019-12-02 14:08:40 +01:00
Philipp Wolfer
d8d612e29f Update Github release from changelog 2019-12-02 13:55:05 +01:00
Philipp Wolfer
2cc0b35cfe PICARD-1565: Consider all results returned from AcoustID lookups
Previously only the first result (which has the highest score) was used. Now all results are used, weighted by their scores.
2019-12-02 13:53:45 +01:00
Philipp Wolfer
855a850e4a Adjust releasetype matching scores.
This limits the impact of the releasetype score to ~24% of the total score for cluster and file weights (previously ~34%). This means with default settings (all releasetypes set to 0.5) a otherwise perfect match will have only ~12% reduced score.
2019-12-02 13:52:13 +01:00
Philipp Wolfer
5c2e1eaa0a PICARD-1664: Use preferred release type for cluster lookup 2019-12-02 13:52:13 +01:00
Philipp Wolfer
5ea1f884b1 Github Actions: Sign code on Windows only if secrets are available 2019-12-02 13:38:10 +01:00
Philipp Wolfer
be9c91739b Github Actions: Fixed triggering Win / Mac releases on tag push 2019-12-02 13:38:10 +01:00
Philipp Wolfer
de7aad29e3 Github Actions: Run packaging tasks on pull requests 2019-12-02 13:38:10 +01:00
Philipp Wolfer
34dfc31ad1 Github Actions: Run on pull requests 2019-12-02 13:38:10 +01:00
Philipp Wolfer
c3314ce20b Run brew update on travis 2019-12-02 13:37:21 +01:00
Philipp Wolfer
c267e17faa CI: Do not run rew update for macOS builds
If required this should be run outside the setup script.
2019-12-02 12:25:13 +01:00
Philipp Wolfer
330fe84f62 PICARD-1680: Allow slecting multiple results in cd lookup dialog 2019-12-01 12:11:06 +01:00
Philipp Wolfer
71e2214dd7 cdlookup: Added some margin between label and submit button 2019-11-30 15:59:34 +01:00
Philipp Wolfer
5e4e5ba555 Update picard.pot 2019-11-30 15:55:21 +01:00
Philipp Wolfer
04e2e304c6 PICARD-1401: On empty disc lookup show a prominent disc ID submission button 2019-11-30 10:32:02 +01:00
Philipp Wolfer
a94748fc64 PICARD-1677: Fixed exception when saving ignored tags 2019-11-30 10:31:24 +01:00