-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image list cleanup #2488
Image list cleanup #2488
Commits on May 23, 2024
-
Move picard.ui.item to picard.item
- classes defined here are mainly used at top level - they aren't specific to UI, as they are used to define important classes like Cluster, Album, etc... - there's not even any Qt import in there
Configuration menu - View commit details
-
Copy full SHA for ebf6bfe - Browse repository at this point
Copy the full SHA ebf6bfeView commit details -
Introduce MetadataItem as a subclass of Item
It defines: - metadata & orig_metadata properties - metadata_images_changed signal - move methods related to metadata from FileListItem to it
Configuration menu - View commit details
-
Copy full SHA for e246eaa - Browse repository at this point
Copy the full SHA e246eaaView commit details -
Move remove_metadata_images() from imagelist to MetadataItem
- it doesn't belong here anyway - it depends on an object passed as obj -> self - transitional: local imports
Configuration menu - View commit details
-
Copy full SHA for 6db8ae5 - Browse repository at this point
Copy the full SHA 6db8ae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for df8fa5f - Browse repository at this point
Copy the full SHA df8fa5fView commit details -
Move update_metadata_images() from imagelist to MetadataItem.metadata…
…item_update_metadata_images() The long name is to avoid conflicts with existing update_metadata_images() in Album/Cluster
Configuration menu - View commit details
-
Copy full SHA for 1c75c82 - Browse repository at this point
Copy the full SHA 1c75c82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18e8a24 - Browse repository at this point
Copy the full SHA 18e8a24View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6dde74 - Browse repository at this point
Copy the full SHA c6dde74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24cacb9 - Browse repository at this point
Copy the full SHA 24cacb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ff5f7a - Browse repository at this point
Copy the full SHA 8ff5f7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ce951b - Browse repository at this point
Copy the full SHA 3ce951bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8111f4f - Browse repository at this point
Copy the full SHA 8111f4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa4e12 - Browse repository at this point
Copy the full SHA 2aa4e12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84f4ca3 - Browse repository at this point
Copy the full SHA 84f4ca3View commit details -
Define new get_imagelist_state() in Album & FileListItem
Called from MetadataItem._get_imagelist_state()
Configuration menu - View commit details
-
Copy full SHA for 741be95 - Browse repository at this point
Copy the full SHA 741be95View commit details -
Define update_new/orig_metadata in MetadataItem and its subclasses
Then pass them to ImageListState() constructor Those don't change, and are only set to True for Album & FileItem
Configuration menu - View commit details
-
Copy full SHA for ab463c6 - Browse repository at this point
Copy the full SHA ab463c6View commit details -
Replace get_imagelist_state() by a generator and set ImageListState.s…
…ources using it It is much cleaner. The new method is named `children_metadata_items()`
Configuration menu - View commit details
-
Copy full SHA for 2ce5470 - Browse repository at this point
Copy the full SHA 2ce5470View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a184d0 - Browse repository at this point
Copy the full SHA 8a184d0View commit details -
Replace update_new/orig_metadata by a set
Compatibility preserved defining matching `@property`, that's transitional
Configuration menu - View commit details
-
Copy full SHA for 8c22dd0 - Browse repository at this point
Copy the full SHA 8c22dd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77b3b51 - Browse repository at this point
Copy the full SHA 77b3b51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c61644 - Browse repository at this point
Copy the full SHA 2c61644View commit details -
get_sources_metadata_images(): move at module level as it doesn't dep…
…end on ImageListState
Configuration menu - View commit details
-
Copy full SHA for e5bae38 - Browse repository at this point
Copy the full SHA e5bae38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 543a4f4 - Browse repository at this point
Copy the full SHA 543a4f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f41e86d - Browse repository at this point
Copy the full SHA f41e86dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a46081 - Browse repository at this point
Copy the full SHA 3a46081View commit details -
Split ImageListState.process_images() in two methods
- move check for src_obj instance in caller
Configuration menu - View commit details
-
Copy full SHA for bef084f - Browse repository at this point
Copy the full SHA bef084fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b8294d - Browse repository at this point
Copy the full SHA 1b8294dView commit details -
Make ImageListState more generic, and greatly simplify code
- it is (now) only used in update_metadata_images_from_children() - drop now unused _get_imagelist_state() - it opens the door to even more code duplication reduction
Configuration menu - View commit details
-
Copy full SHA for 7223de0 - Browse repository at this point
Copy the full SHA 7223de0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99b8e60 - Browse repository at this point
Copy the full SHA 99b8e60View commit details -
Configuration menu - View commit details
-
Copy full SHA for df0f11c - Browse repository at this point
Copy the full SHA df0f11cView commit details -
Introduce iter_children_items_metadata() and finally make the code de…
…duplication possible
Configuration menu - View commit details
-
Copy full SHA for 492bfea - Browse repository at this point
Copy the full SHA 492bfeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6743b42 - Browse repository at this point
Copy the full SHA 6743b42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84445b1 - Browse repository at this point
Copy the full SHA 84445b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d45dd9b - Browse repository at this point
Copy the full SHA d45dd9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 86ba49a - Browse repository at this point
Copy the full SHA 86ba49aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d1c10b - Browse repository at this point
Copy the full SHA 6d1c10bView commit details -
ImageList.insert(): no need to return anything
list.insert() doesn't return anything either
Configuration menu - View commit details
-
Copy full SHA for 1fa2168 - Browse repository at this point
Copy the full SHA 1fa2168View commit details -
Make get_sources_metadata_images() a static method of MetadataItem
And get rid of imports
Configuration menu - View commit details
-
Copy full SHA for 5ad0640 - Browse repository at this point
Copy the full SHA 5ad0640View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e09dfc - Browse repository at this point
Copy the full SHA 8e09dfcView commit details -
Make remove_metadata_images() returns a boolean indicating changes li…
…ke similar methods
Configuration menu - View commit details
-
Copy full SHA for df00e45 - Browse repository at this point
Copy the full SHA df00e45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ca7f2c - Browse repository at this point
Copy the full SHA 8ca7f2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8920c41 - Browse repository at this point
Copy the full SHA 8920c41View commit details -
add_metadata_images() -> add_metadata_images_from_children()
It does what it says.
Configuration menu - View commit details
-
Copy full SHA for 75bfb1c - Browse repository at this point
Copy the full SHA 75bfb1cView commit details -
remove_metadata_images() -> remove_metadata_images_from_children()
Not perfect, but it used the same scheme as other methods in this group at least
Configuration menu - View commit details
-
Copy full SHA for d46d4bb - Browse repository at this point
Copy the full SHA d46d4bbView commit details