jdxi_editor.ui.editors.playlist.table
Playlist Widget Module
This module defines the PlaylistWidget class, a widget for managing playlists in a sortable, editable table with database integration.
- Classes:
- PlaylistWidget(QWidget)
A widget for displaying and managing playlists.
Classes
Widget for managing playlists in a database table. |
Module Contents
- class jdxi_editor.ui.editors.playlist.table.PlaylistTable(parent: jdxi_editor.ui.common.QWidget | None = None, on_playlist_changed: Callable[[], None] | None = None)[source]
Bases:
jdxi_editor.ui.common.QWidgetWidget for managing playlists in a database table.
- _add_round_action_button(icon_enum: Any, text: str, slot: Any, layout: PySide6.QtWidgets.QHBoxLayout, *, name: str | None = None, checkable: bool = False) PySide6.QtWidgets.QPushButton[source]
Create a round button with icon + text label (same style as Transport).
- _get_table_style() str[source]
Get custom styling for tables with rounded corners and charcoal embossed cells.
- Returns:
str CSS style string
- select_playlist_id(playlist_id: int | None) None[source]
Select the row of playlist_id (None clears the selection).
- rename_selected_playlist() None[source]
Rename the selected playlist (the name cell can still be edited in place).
- duplicate_selected_playlist() None[source]
Copy the selected playlist, tracks included, under a new name.
The right-click menu: actions on the selected playlist (when the click was on one), and New Playlist.
- _on_playlist_item_changed(item: PySide6.QtWidgets.QTableWidgetItem) None[source]
Handle changes to playlist name or description.
- Parameters:
item – The table item that was changed