Commit Graph

  • 86736c5cc1 normalized_types(): ensure front type is first and the rest sorted Laurent Monin 2024-05-19 13:01:00 +02:00
  • 970c6d3b61 Merge pull request #2479 from zas/infodialog_cleanup Laurent Monin 2024-05-19 13:10:10 +02:00
  • 38304afadc Merge pull request #2476 from zas/metadatabox_cleanup Laurent Monin 2024-05-19 13:07:28 +02:00
  • c18febd534 Subclass ArtworkTable and drop display_existing_artwork Laurent Monin 2024-05-18 17:27:42 +02:00
  • faf266bdde ArtworkTable: introduce get_column_index() method and drop access to private properties Laurent Monin 2024-05-18 16:57:14 +02:00
  • 12678e4b37 ArtworkTable: insert column at NUM_COLS position Laurent Monin 2024-05-18 16:38:23 +02:00
  • 2b09b9c46d ArtworkTable: shorten lines and reduce code redundancy Laurent Monin 2024-05-18 16:37:13 +02:00
  • 56de836fa5 ArtworkTable: stretch last section Laurent Monin 2024-05-18 16:36:24 +02:00
  • e75822e6f6 ArtworkTable: use class properties instead of hardcoded numbers Laurent Monin 2024-05-18 16:35:57 +02:00
  • df1041767c ArtworkTable: pass parent to inherited class and class properties instead of hardcoded numbers for rows & cols Laurent Monin 2024-05-18 16:34:08 +02:00
  • 72c7c60fd5 Variables orig_tags and new_tags aren't needed, drop keys() as it's the default for dicts Laurent Monin 2024-05-17 22:33:19 +02:00
  • 14db96d5d1 Add two helper functions to toggle between grouped and normal values Laurent Monin 2024-05-17 20:04:10 +02:00
  • a095e31f42 different -> is_grouped Laurent Monin 2024-05-17 19:49:41 +02:00
  • 138996d219 Use a namedtuple for display values, with fields text and is_grouped Laurent Monin 2024-05-17 19:41:00 +02:00
  • be261bb9d3 _update_items(): regroup code per column Laurent Monin 2024-05-17 18:18:37 +02:00
  • 4e1ff55274 Consistency: we use tag instead of name everywhere else in the file Laurent Monin 2024-05-17 17:52:13 +02:00
  • 43a11032df Minor code redundancy reduction Laurent Monin 2024-05-17 17:48:48 +02:00
  • f82c5ac1dd Use self.tag_diff after it was set to result Laurent Monin 2024-05-17 17:46:03 +02:00
  • 6ed7802777 Use if/continue instead of filter(lambda...), more readable Laurent Monin 2024-05-17 17:40:53 +02:00
  • 6157063671 name -> tag (as we iterate among tags) Laurent Monin 2024-05-17 17:36:58 +02:00
  • 1d06036d1b Use named columns instead of numerical values Laurent Monin 2024-05-17 17:30:16 +02:00
  • 6a1d568152 Test if methods listed in MetadataBox.LOOKUP_TAGS are valid FileLookup methods Laurent Monin 2024-05-17 17:11:00 +02:00
  • 94ff51ec37 Drop _lookup_tags() in favor of new _lookup_tag(tag) Laurent Monin 2024-05-17 16:27:16 +02:00
  • 953bdbcbbc set_item_value() -> _set_item_value() Laurent Monin 2024-05-17 16:22:47 +02:00
  • 7a620f0fbd _selected_tags(): make it a generator Laurent Monin 2024-05-17 16:19:20 +02:00
  • 888df2349e selected_tags() -> _selected_tags() Laurent Monin 2024-05-17 16:10:23 +02:00
  • 03968083c4 remove_selected_tags(): no need to check if tag is removable, as the list is filtered already Laurent Monin 2024-05-17 16:08:31 +02:00
  • 8e53ebbd05 tag_is_(removable|editable)() -> _tag_is_(removable|editable)() Laurent Monin 2024-05-17 16:06:34 +02:00
  • 901acc91a5 remove_tag() -> _remove_tag() Laurent Monin 2024-05-17 16:02:33 +02:00
  • d1a9f0d519 set_tag_values() -> _set_tag_values() Laurent Monin 2024-05-17 16:00:43 +02:00
  • 02d191d2d7 toggle_changes_first() -> _toggle_changes_first() Laurent Monin 2024-05-17 16:00:16 +02:00
  • a106bc97ee edit_selected_tag() -> _edit_selected_tag() Laurent Monin 2024-05-17 15:57:23 +02:00
  • 903d3dc07a edit_tag() -> _edit_tag() Laurent Monin 2024-05-17 16:20:43 +02:00
  • 385bd3c2c4 update_clipboard() -> _update_clipboard() Laurent Monin 2024-05-17 15:54:30 +02:00
  • c945991087 copy/paste_value() -> _copy/_paste_value() Laurent Monin 2024-05-17 15:52:17 +02:00
  • 74eb110524 open_link() -> _open_link() Laurent Monin 2024-05-17 15:49:12 +02:00
  • bb8091c5cd get_file_lookup() -> _get_file_lookup() Laurent Monin 2024-05-17 15:48:25 +02:00
  • e9f90e61aa lookup_tags() -> _lookup_tags() Laurent Monin 2024-05-17 15:46:32 +02:00
  • 6c837327a4 MetadataBox: use self as parent of QtGui.QAction actions Laurent Monin 2024-05-17 14:30:14 +02:00
  • d5ea4bdc01 PICARD-2901: Only try to open edit tag dialog if there are tags to edit Laurent Monin 2024-05-17 14:49:04 +02:00
  • ab8684325f PICARD-2901: Only try to open edit tag dialog if there are tags to edit Laurent Monin 2024-05-17 14:49:04 +02:00
  • 20add75b34 Merge pull request #2475 from zas/move_ui_files Laurent Monin 2024-05-16 15:00:16 +02:00
  • 07727e367e Use ignore-paths and reset ignore-patterns to default Laurent Monin 2024-05-16 13:36:46 +02:00
  • 9037f51dd3 Update .pylintrc to match recent versions of pylint Laurent Monin 2024-05-16 13:26:02 +02:00
  • aaf3420a7e Fix trailing blankline Laurent Monin 2024-05-16 12:44:11 +02:00
  • 67766d4c01 Update third-party tools exclusions related to ui/forms Laurent Monin 2024-05-16 12:39:05 +02:00
  • 7f942df8da Move ui_*.py to ui/forms/ Laurent Monin 2024-05-16 11:48:21 +02:00
  • b02c0a8ecf Merge pull request #2474 from phw/fix-QListWidget-click-slot Laurent Monin 2024-05-16 11:41:53 +02:00
  • 4f15d262e9 Renamed CAATypesSelectorDialog.clear_focus to _on_list_clicked Philipp Wolfer 2024-05-16 10:59:53 +02:00
  • 89330073b7 Fixed callback for click signal in CAATypesSelectorDialog Philipp Wolfer 2024-05-14 17:58:18 +02:00
  • 5350b2cc8c Fixed CheckboxListItem hiding QListWidgetItem.data() Philipp Wolfer 2024-05-14 17:48:34 +02:00
  • 6c08a62775 Merge pull request #2472 from zas/update_precommit Laurent Monin 2024-05-15 09:47:17 +02:00
  • 8b0766d488 Update pre-commit example Laurent Monin 2024-05-14 21:03:17 +02:00
  • 5c366fd387 Simplified formats.open_ Philipp Wolfer 2024-05-14 12:03:37 +02:00
  • 52635c7782 PICARD-2897: Try to guess format for files with unknown extension Philipp Wolfer 2024-05-13 08:29:50 +02:00
  • 3048c58b00 Add a DebugOpt for POST data Laurent Monin 2024-05-13 18:45:24 +02:00
  • f57bc89db7 Merge pull request #2469 from zas/move_basetreeview Laurent Monin 2024-05-13 20:24:23 +02:00
  • b2faba6708 Move BaseTreeView and associated methods to its own file Laurent Monin 2024-05-13 18:32:01 +02:00
  • f59e4efb5e Merge pull request #2468 from zas/release_count Laurent Monin 2024-05-13 18:21:51 +02:00
  • 6133c03eac Other versions: display the actual number of versions from release-count Laurent Monin 2024-05-13 16:16:20 +02:00
  • 4fe15e0dc5 Merge pull request #2466 from zas/itemviews_columns Laurent Monin 2024-05-13 17:50:45 +02:00
  • 03914b2d0f show_column(): minor simplification using set.discard() instead of set.remove() Laurent Monin 2024-05-13 09:47:45 +02:00
  • 4dc268c65e ConfigurableColumnsHeader: No point in calling setSectionsMovable/Clickable Laurent Monin 2024-05-13 09:42:18 +02:00
  • 393e677025 Drop (now) unused MainPanel columns-related properties Laurent Monin 2024-05-13 00:58:43 +02:00
  • 5d4bca12c0 Use ColumnSortType and Column.sortkey(), get rid of few more MainPanel references Laurent Monin 2024-05-13 00:54:59 +02:00
  • 38893b0528 Use Column properties, get rid of a bunch of MainPanel references Laurent Monin 2024-05-13 00:51:28 +02:00
  • c4c89fa43a on_sort_indicator_changed(): this applies to all icon columns, not only fingerprint Laurent Monin 2024-05-13 00:46:00 +02:00
  • 5fe6963ed6 Use IconColumn.paint_icon() Laurent Monin 2024-05-13 00:43:00 +02:00
  • c7da29c771 Ensure first column is always visible Laurent Monin 2024-05-13 00:40:25 +02:00
  • a05a90fb6a Move column/header resizing code to parent of ConfigurableColumnsHeader Laurent Monin 2024-05-13 00:38:49 +02:00
  • b04d7469d8 Move default header formatting outside ConfigurableColumnsHeader Laurent Monin 2024-05-13 00:29:22 +02:00
  • a9e7f4542d Get header labels from DEFAULT_COLUMNS Laurent Monin 2024-05-13 00:18:52 +02:00
  • 74e15d4162 Partially replace MainPanel.FINGERPRINT_COLUMN by DEFAULT_COLUMNS.pos('~fingerprint') Laurent Monin 2024-05-13 00:12:17 +02:00
  • 9738be7fa3 Introduce TreeItem.update_colums_text() and reduce code redundancy Laurent Monin 2024-05-13 00:00:18 +02:00
  • ecf57f6781 Use DEFAULT_COLUMNS, and key/title Column properties Laurent Monin 2024-05-12 23:53:19 +02:00
  • e2957c331e MainPanel.TITLE_COLUMN -> ITEM_ICON_COLUMN Laurent Monin 2024-05-12 23:38:49 +02:00
  • e06667dad6 Introduce Columns, Column, IconColumn, and more classes Laurent Monin 2024-05-12 23:25:48 +02:00
  • 4fe0b18d65 Move itemviews.py to itemviews/__init__.py Laurent Monin 2024-05-12 20:54:52 +02:00
  • ecc0a870cb PICARD-2896: Support .ogx extension for Ogg container Philipp Wolfer 2024-05-13 08:21:58 +02:00
  • c9174a7772 Merge pull request #2467 from phw/PICARD-2896 Laurent Monin 2024-05-13 09:34:58 +02:00
  • d61e10b26f PICARD-2896: Support .ogx extension for Ogg container Philipp Wolfer 2024-05-13 08:21:58 +02:00
  • 5bb313a36f Merge pull request #2464 from zas/itemviews_basetreeview_cleanup Laurent Monin 2024-05-12 20:36:23 +02:00
  • e4953a03e6 PICARD-2895: Web service requests must set Authorization header only when required Philipp Wolfer 2024-05-12 12:55:33 +02:00
  • 169ed965ee Merge pull request #2465 from phw/PICARD-2895 Laurent Monin 2024-05-12 15:01:36 +02:00
  • b83c0e3585 Move _add_other_versions outside BaseTreeView Laurent Monin 2024-05-11 13:49:28 +02:00
  • 2c47d34025 Move code from BaseTreeView to module level Laurent Monin 2024-05-11 13:34:16 +02:00
  • 8bbdf93d38 Split _add_other_versions() in smaller bits Laurent Monin 2024-05-11 13:27:42 +02:00
  • d8a055e560 Insert actions before loading action instead of adding and removing action_more_details Laurent Monin 2024-05-11 13:02:12 +02:00
  • 311980866d Create actions then add them (step to insert) Laurent Monin 2024-05-11 12:55:28 +02:00
  • 2e265791e3 loading, action_more -> action_loading, action_more_details Laurent Monin 2024-05-11 11:44:00 +02:00
  • b9c1f0d31f BaseTreeView: minor stylistic change (to be on par with the rest of the code) Laurent Monin 2024-05-11 11:40:19 +02:00
  • f15f735b34 BaseTreeView: remove dependency on MainPanel, set icon_plugins locally Laurent Monin 2024-05-11 11:37:07 +02:00
  • 64a0a68dda FileTreeView, AlbumTreeView: pass all arguments to parent class (BaseTreeView) Laurent Monin 2024-05-11 11:32:39 +02:00
  • c9c980ee53 PICARD-2895: Web service requests must set Authorization header only when required Philipp Wolfer 2024-05-12 12:55:33 +02:00
  • 89693c818f Translated using Weblate (Italian) salo.rock 2024-05-11 10:42:40 +00:00
  • 3970a612b4 Translated using Weblate (Italian) salo.rock 2024-05-11 10:42:36 +00:00
  • 92de44e1e0 Merge pull request #2463 from zas/itemviews_headers Laurent Monin 2024-05-11 10:48:33 +02:00
  • f0d379ab46 Log save/restore file/album's view header state in debug mode Laurent Monin 2024-05-10 22:06:55 +02:00
  • 96e7f1bc84 Introduce DEFAULT_SECTION_SIZE (=100) Laurent Monin 2024-05-10 21:55:55 +02:00
  • a406ac9267 Add a config upgrade hook to avoid any issue with saved header state and lock Laurent Monin 2024-05-10 21:33:35 +02:00