Commit Graph

  • 5bb29c4880 Rework save/restore/init/defaults headers Laurent Monin 2024-05-10 21:52:41 +02:00
  • 6a89aab55e Move parts of __init__() to _init_header() Laurent Monin 2024-05-10 12:17:02 +02:00
  • b8b23bda0a Introduce new BaseTreeView._init_header() Laurent Monin 2024-05-10 12:09:20 +02:00
  • b775b5e516 BaseTreeView._restore_state(): if restoring header failed, fallback on defaults Laurent Monin 2024-05-10 12:04:21 +02:00
  • 9d93e38daa BaseTreeView: save header's prelock state if locked Laurent Monin 2024-05-10 12:01:21 +02:00
  • 5e9af33492 TristateSortHeaderView: save pre-lock state and restore on unlock Laurent Monin 2024-05-10 11:40:26 +02:00
  • c79264ca4a self.count() > column_index is always True Laurent Monin 2024-05-10 11:31:07 +02:00
  • 8954011f29 ConfigurableColumnsHeader: define __str__() method Laurent Monin 2024-05-10 11:26:05 +02:00
  • 7586cffb73 Add properties NAME & DESCRIPTION to BaseTreeView subclasses Laurent Monin 2024-05-10 11:21:56 +02:00
  • a40a133656 BaseTreeView, FileTreeView: introduce property default_drop_target Laurent Monin 2024-05-10 11:03:17 +02:00
  • 669aee9676 Merge pull request #2461 from zas/group_extension_points Laurent Monin 2024-05-10 11:06:12 +02:00
  • 745403c222 Add __repr__() method to ExtensionPoint Laurent Monin 2024-05-10 09:45:24 +02:00
  • cbfda11da6 Move script functions extension point to extension_points Laurent Monin 2024-05-09 19:47:50 +02:00
  • 52c01f36d3 test_script: use mock.patch and drop hacky copy/restore/reset of ScriptParser._function_registry Laurent Monin 2024-05-09 18:00:33 +02:00
  • 2e3bf8adc4 Import from picard.extension_points.options_pages Laurent Monin 2024-05-09 17:35:06 +02:00
  • e9cc59f054 Import from picard.extension_points.ui_init Laurent Monin 2024-05-09 17:33:57 +02:00
  • 47fa9b0e2f Import from picard.extension_points.item_actions Laurent Monin 2024-05-09 17:33:02 +02:00
  • 33e9e89c1e Import from picard.extension_points.formats Laurent Monin 2024-05-09 17:32:18 +02:00
  • 774180f989 Import from picard.extension_points.cover_art_providers Laurent Monin 2024-05-09 17:31:46 +02:00
  • 184f9422bb Regroup extension points and associated methods/classes in extension_points/* Laurent Monin 2024-05-09 17:30:21 +02:00
  • 28495b36e3 Rename _pages to ext_point_options_pages Laurent Monin 2024-05-09 16:39:49 +02:00
  • 91230b356b Rename ui_init to ext_point_ui_init Laurent Monin 2024-05-09 16:35:48 +02:00
  • 953085b44a Rename _formats to ext_point_formats Laurent Monin 2024-05-09 16:33:47 +02:00
  • 712d6c84cf Rename _*_actions extension points to ext_point_*_actions Laurent Monin 2024-05-09 15:10:57 +02:00
  • 09d7db06ab Rename _cover_art_providers extension point to ext_point_cover_art_providers Laurent Monin 2024-05-09 15:10:24 +02:00
  • 1b1f1d8fbd Add new module picard.extension_points Laurent Monin 2024-05-09 14:57:31 +02:00
  • 36168cf977 PICARD-2891: When clustering files attached to a Track use orig_metadata Philipp Wolfer 2024-05-08 08:12:05 +02:00
  • b0f68988db PICARD-2891: When clustering files attached to a Track use orig_metadata Philipp Wolfer 2024-05-08 08:12:05 +02:00
  • 525a5d84e0 Turn item capability methods into properties Philipp Wolfer 2024-05-07 18:47:04 +02:00
  • be78939bcb Removed deprecated webservice methods Philipp Wolfer 2024-05-07 19:32:29 +02:00
  • 79caf78e68 Fix script editor saving Philipp Wolfer 2024-05-08 08:30:50 +02:00
  • 911b4583a9 Fix MainWindow Delete keypress Laurent Monin 2024-05-08 00:10:13 +02:00
  • 8b60f71447 Remove deprecated Track.linked_files Philipp Wolfer 2024-05-07 18:24:04 +02:00
  • 80aba3c552 Translated using Weblate (Lithuanian) Vaclovas Intas 2024-05-07 14:42:33 +00:00
  • b0ae353fd8 Translated using Weblate (Lithuanian) Vaclovas Intas 2024-05-07 14:42:28 +00:00
  • decc897fe9 QMouseEvent.globalPos() is deprecated -> replace with globalPosition().toPoint() Laurent Monin 2024-05-07 00:13:55 +02:00
  • 28e7004a8f Build with PyInstaller 6.6.0 Philipp Wolfer 2024-05-06 19:44:48 +02:00
  • 81af2d912a Simplified Qt imports in defaults.py and image.py Philipp Wolfer 2024-05-06 16:10:22 +02:00
  • 88b0a8c4b0 Translated using Weblate (Lithuanian) Vaclovas Intas 2024-05-06 09:42:50 +00:00
  • 81a1ddfa00 Fix setFocus() in EditableListView Laurent Monin 2024-05-06 11:03:12 +02:00
  • b473f47c8c Fix setFocus() call Laurent Monin 2024-05-06 10:59:48 +02:00
  • fbc6ca8112 Translated using Weblate (German) Philipp Wolfer 2024-05-06 08:42:28 +00:00
  • 36cd487feb Update translation files Hosted Weblate 2024-05-06 08:42:27 +00:00
  • b55f0d58bc Translated using Weblate (Lithuanian) Vaclovas Intas 2024-05-06 08:42:24 +00:00
  • 7c10154953 Update picard.pot Philipp Wolfer 2024-05-06 09:50:05 +02:00
  • 4447f89e32 Simplify toolbar editor Laurent Monin 2024-05-05 21:54:45 +02:00
  • ed4ff4ca5d PICARD-736: OAuth2: If webbrowser integration is turned of use OOB flow Philipp Wolfer 2024-05-05 12:49:37 +02:00
  • 5c188b7f3c PICARD-736: oauth token exchange via webflow Philipp Wolfer 2022-12-19 16:20:37 +01:00
  • 3be39098f5 Merge pull request #2450 from zas/mainwindow_actions Laurent Monin 2024-05-05 20:23:07 +02:00
  • caad3df4dd Use MainAction.* to define DEFAULT_TOOLBAR_LAYOUT Laurent Monin 2024-05-05 12:10:25 +02:00
  • 26c07b6c44 Replace 'separator' with '-' in toolbar_layout option Laurent Monin 2024-05-05 12:05:20 +02:00
  • 02a023b5c5 Move MainAction to new picard.ui.enums Laurent Monin 2024-05-05 11:46:08 +02:00
  • 3bf3fe94ac Reduce code redundancy introducing new menu_builder() Laurent Monin 2024-05-05 11:22:18 +02:00
  • 048c22c28c action_enabled() -> enable_action() Laurent Monin 2024-05-05 11:04:46 +02:00
  • 5562b16972 Update translation files Hosted Weblate 2024-05-05 08:19:22 +00:00
  • eded4a6b2a Update picard.pot Philipp Wolfer 2024-05-05 10:19:04 +02:00
  • 3eb47441dc PICARD-2886: If MB server OAuth2 logout fails, show a dialog box Philipp Wolfer 2024-05-03 18:08:04 +02:00
  • 1bea16ede8 PICARD-2886: Implemented OAuth2 server side token revocation on logout Philipp Wolfer 2024-05-03 17:30:48 +02:00
  • f403f35e0f Add a separator before Save/Remove actions in context menu Laurent Monin 2024-05-04 22:30:51 +02:00
  • 710acfb8ce Simplify separators code, relies on separatorsCollapsible QMenu property Laurent Monin 2024-05-04 22:27:26 +02:00
  • 8a765db121 Only add action if not None, simplify even more Laurent Monin 2024-05-04 20:52:28 +02:00
  • 8cb85c7d6e Add add_actions() helper function to help build itemviews context menu Laurent Monin 2024-05-04 20:39:22 +02:00
  • 2b617db646 Automatically avoid multiple subsequent separators in menus Laurent Monin 2024-05-04 19:39:25 +02:00
  • 85b5e3991e MainWindow: simplify main menu building Laurent Monin 2024-05-04 19:15:38 +02:00
  • ed48bbf07e Move actions creation code to mainwindow/create.py Laurent Monin 2024-05-04 18:23:32 +02:00
  • 5911ad1785 Fix circular imports Laurent Monin 2024-05-04 18:17:20 +02:00
  • 1995a4b66d Move mainwindow.py to mainwindow/__init__.py, and mainwindow_actions to mainwindow/actions.py Laurent Monin 2024-05-04 18:08:18 +02:00
  • 7fd4b7fc00 'cluster_action' -> MainAction.CLUSTER Laurent Monin 2024-05-04 17:04:12 +02:00
  • 4a1e98d07d submit_acoustid_action -> MainAction.SUBMIT_ACOUSTID Laurent Monin 2024-05-04 17:00:29 +02:00
  • 909396a456 Introduce MainAction enum Laurent Monin 2024-05-04 16:49:37 +02:00
  • 74d7f1fd5e Translated using Weblate (Lithuanian) Vaclovas Intas 2024-05-04 12:42:28 +00:00
  • 1b292a776f Translated using Weblate (Lithuanian) Vaclovas Intas 2024-05-04 12:42:28 +00:00
  • 659f8a280e Fix itemviews context menu, use window.actions Laurent Monin 2024-05-04 13:47:17 +02:00
  • 26f2c80c2e remove() -> remove_selected_objects() Laurent Monin 2024-05-04 13:46:23 +02:00
  • 4cb648c869 auto_update_check() -> _auto_update_check() Laurent Monin 2024-05-04 13:33:56 +02:00
  • d5da9042c0 get_selected_or_unmatched_files() -> _get_selected_or_unmatched_files() Laurent Monin 2024-05-04 13:30:58 +02:00
  • ca0e7bb96e update_script_editor_examples() -> _update_script_editor_examples() Laurent Monin 2024-05-04 13:29:27 +02:00
  • 90298dc04a webservice_manager* aren't related to actions, move out of _create_actions() Laurent Monin 2024-05-04 13:27:05 +02:00
  • 07b93e223f show_(password|proxy)_dialog -> _show_(password|proxy)_dialog Laurent Monin 2024-05-04 13:21:57 +02:00
  • e92fd630a7 _trigger_search_action(): shorten lines a bit Laurent Monin 2024-05-04 13:14:22 +02:00
  • 2a9f0359c4 _update_cd_lookup_default_action(): reduce code redundancy Laurent Monin 2024-05-04 13:10:06 +02:00
  • f77ba70383 create_actions(): make it create_actions() a generator and drop target_property Laurent Monin 2024-05-04 12:39:03 +02:00
  • 033d336140 action_enabled(): always cast enabled parameter to bool, and simplify callers Laurent Monin 2024-05-04 11:54:21 +02:00
  • 63556f2386 Check if action is not None in action_enabled() Laurent Monin 2024-05-04 11:51:31 +02:00
  • ee49db9aaa MainWindow: more private methods Laurent Monin 2024-05-03 23:03:04 +02:00
  • 991362ca26 MainWindow: make a bunch of methods private, as they are only used in this class Laurent Monin 2024-05-03 22:47:22 +02:00
  • 52e6d6a830 MainWindow: trigger_search_action() -> _trigger_search_action() Laurent Monin 2024-05-03 22:37:12 +02:00
  • f459236699 MainWindow: search_mbid_found() -> _search_mbid_found() Laurent Monin 2024-05-03 22:35:49 +02:00
  • b486e6792a MainWindow: enable_search() -> _toggle_search() Laurent Monin 2024-05-03 22:34:47 +02:00
  • 77342769a8 MainWindow: drop action-specific enable_cluster() in favor of action_enabled() Laurent Monin 2024-05-03 22:25:39 +02:00
  • 7db474cc46 MainWindow: Drop action-specific enable_submit(), in favor of action_enabled() Laurent Monin 2024-05-03 22:23:09 +02:00
  • 8cf73d1d8c Fix incorrect conversion, action is None in this case, but key exists Laurent Monin 2024-05-03 22:14:16 +02:00
  • b982c067b5 Introduce action_is_checked() and action_enabled() Laurent Monin 2024-05-03 19:32:56 +02:00
  • 6ff4f15319 Use dict instead of OrderedDict, order is guaranteed since Python 3.7 Laurent Monin 2024-05-03 19:08:44 +02:00
  • 2956c50c37 Simplify create_action_toolbar() Laurent Monin 2024-05-03 18:57:07 +02:00
  • 1ddba5d5fb Move actions out of MainWindows Laurent Monin 2024-05-03 18:47:31 +02:00
  • f57000eb48 PICARD-2883: Refactor FileItem.decide_file_icon_info Philipp Wolfer 2024-05-03 08:51:14 +02:00
  • 6f2026a318 PICARD-2883: Show match icon tooltip also for files Philipp Wolfer 2024-05-03 08:39:13 +02:00
  • b37d5e9eb3 PICARD-2884: Reduce code redundancy when calculating match icon index Philipp Wolfer 2024-05-03 16:26:45 +02:00
  • 8703c79c69 PICARD-2884: Show icon tooltips for errors and unmatched tracks Philipp Wolfer 2024-05-03 09:50:22 +02:00