Skip to content

Commit e4f35f4

Browse files
refactor: consolidate fragmented media player UI components into a centralized common module
1 parent 0b79586 commit e4f35f4

14 files changed

Lines changed: 4 additions & 533 deletions

File tree

annotation_tool/main_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# [NEW] Direct UI Imports
2525
from ui.common.welcome_widget import WelcomeWidget
2626
from ui.common.clip_explorer import CommonProjectTreePanel
27-
from ui.localization.media_player import LocCenterPanel
27+
from ui.common.media_player import MediaCenterPanel
2828
from ui.classification.event_editor import ClassificationAnnotationPanel
2929
from ui.localization.event_editor import LocalizationAnnotationPanel
3030
from ui.description.event_editor import DescriptionAnnotationPanel
@@ -59,7 +59,7 @@ def __init__(self) -> None:
5959
self.welcome_widget = WelcomeWidget()
6060
self.center_stack.addWidget(self.welcome_widget)
6161

62-
self.center_panel = LocCenterPanel()
62+
self.center_panel = MediaCenterPanel()
6363
self.center_stack.addWidget(self.center_panel)
6464

6565
self.setCentralWidget(self.center_stack)

annotation_tool/ui/classification/media_player/README.md

Lines changed: 0 additions & 119 deletions
This file was deleted.

annotation_tool/ui/classification/media_player/__init__.py

Lines changed: 0 additions & 63 deletions
This file was deleted.

annotation_tool/ui/classification/media_player/controls.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

annotation_tool/ui/classification/media_player/player_panel.py

Lines changed: 0 additions & 121 deletions
This file was deleted.
File renamed without changes.

annotation_tool/ui/localization/media_player/__init__.py renamed to annotation_tool/ui/common/media_player/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from .timeline import TimelineWidget
66
from .controls import PlaybackControlBar
77

8-
class LocCenterPanel(QWidget):
8+
class MediaCenterPanel(QWidget):
99
"""
10-
Center Panel for Localization Mode.
10+
Common Center Panel for all Annotation Modes.
1111
Contains: MediaPreview, Timeline, Playback Controls.
1212
"""
1313
def __init__(self, parent=None):
File renamed without changes.

annotation_tool/ui/localization/media_player/player_panel.py renamed to annotation_tool/ui/common/media_player/player_panel.py

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)