From 5c54696c7f62c8b8baa476b87d777256c63ae49a Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 27 Mar 2024 22:48:44 +0800 Subject: [PATCH] macosx: Add starter VLCLibraryWindowPlaylistSidebarViewController Signed-off-by: Claudio Cambra --- .../macosx/VLC.xcodeproj/project.pbxproj | 6 ++++ modules/gui/macosx/Makefile.am | 2 ++ ...braryWindowPlaylistSidebarViewController.h | 31 +++++++++++++++++++ ...braryWindowPlaylistSidebarViewController.m | 27 ++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.h create mode 100644 modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.m diff --git a/extras/package/macosx/VLC.xcodeproj/project.pbxproj b/extras/package/macosx/VLC.xcodeproj/project.pbxproj index 863ee7fed0..91404801a8 100644 --- a/extras/package/macosx/VLC.xcodeproj/project.pbxproj +++ b/extras/package/macosx/VLC.xcodeproj/project.pbxproj @@ -126,6 +126,7 @@ 53B447FA293BB47B00857588 /* VLCLibraryVideoGroupDescriptor.m in Sources */ = {isa = PBXBuildFile; fileRef = 53B447F4293BB47A00857588 /* VLCLibraryVideoGroupDescriptor.m */; }; 53C1EF8B2B466B13001AEEF5 /* VLCLibraryHomeViewVideoGridContainerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 53C1EF852B466B13001AEEF5 /* VLCLibraryHomeViewVideoGridContainerView.m */; }; 53C1EF8C2B466B13001AEEF5 /* VLCLibraryHomeViewStackViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 53C1EF862B466B13001AEEF5 /* VLCLibraryHomeViewStackViewController.m */; }; + 53D21A1F2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 53D21A1E2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.m */; }; 53D8ED9A2B583AAF00142EAD /* VLCLibraryModelChangeDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 53D8ED992B583AAF00142EAD /* VLCLibraryModelChangeDelegate.m */; }; 53ED472329C74D1F00795DB1 /* VLCLibraryAudioTableViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 53ED472229C74D1F00795DB1 /* VLCLibraryAudioTableViewDelegate.m */; }; 53ED472629C78FE700795DB1 /* VLCLibraryAudioGroupTableViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 53ED472529C78FE700795DB1 /* VLCLibraryAudioGroupTableViewDelegate.m */; }; @@ -389,6 +390,8 @@ 53C1EF8A2B466B13001AEEF5 /* VLCLibraryHomeViewStackViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCLibraryHomeViewStackViewController.h; sourceTree = ""; }; 53D21A1B2BB428A20085C71B /* VLCLibraryWindowNavigationSidebarView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = VLCLibraryWindowNavigationSidebarView.xib; sourceTree = ""; }; 53D21A1C2BB428F00085C71B /* VLCLibraryWindowPlaylistView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = VLCLibraryWindowPlaylistView.xib; sourceTree = ""; }; + 53D21A1D2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = VLCLibraryWindowPlaylistSidebarViewController.h; sourceTree = ""; }; + 53D21A1E2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VLCLibraryWindowPlaylistSidebarViewController.m; sourceTree = ""; }; 53D6664E2B6B82940042C03D /* VLCLibraryTableViewDataSource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = VLCLibraryTableViewDataSource.h; sourceTree = ""; }; 53D8ED982B583AAF00142EAD /* VLCLibraryModelChangeDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = VLCLibraryModelChangeDelegate.h; sourceTree = ""; }; 53D8ED992B583AAF00142EAD /* VLCLibraryModelChangeDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VLCLibraryModelChangeDelegate.m; sourceTree = ""; }; @@ -1322,6 +1325,8 @@ 531343E62A8E7B94007AEDFA /* VLCLibraryWindowNavigationSidebarViewController.m */, 5352B37429E149AC0011CE03 /* VLCLibraryWindowPersistentPreferences.h */, 5352B37529E149AC0011CE03 /* VLCLibraryWindowPersistentPreferences.m */, + 53D21A1D2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.h */, + 53D21A1E2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.m */, 53F0209F2A91115D00E79705 /* VLCLibraryWindowSplitViewController.h */, 53F020A02A91115D00E79705 /* VLCLibraryWindowSplitViewController.m */, 53F020A22A91D4A100E79705 /* VLCLibraryWindowToolbarDelegate.h */, @@ -2173,6 +2178,7 @@ 7D2554C222C8A39300F2D9C2 /* VLCMediaSourceDataSource.m in Sources */, 534E73E529D2FF07009982DE /* VLCBookmark.m in Sources */, 7DE2F0442282C84A0040DD0A /* VLCLibraryAudioDataSource.m in Sources */, + 53D21A1F2BB465600085C71B /* VLCLibraryWindowPlaylistSidebarViewController.m in Sources */, 7D0F640C2202163E00FDB91F /* VLCPlaylistDataSource.m in Sources */, 1C3113AD1E508C6900D4DD76 /* VLCExtensionsManager.m in Sources */, 7DFBDCBB226CED6300B700A5 /* VLCMediaSourceProvider.m in Sources */, diff --git a/modules/gui/macosx/Makefile.am b/modules/gui/macosx/Makefile.am index db7a29e944..5d86567e7e 100644 --- a/modules/gui/macosx/Makefile.am +++ b/modules/gui/macosx/Makefile.am @@ -156,6 +156,8 @@ libmacosx_plugin_la_SOURCES = \ gui/macosx/library/VLCLibraryWindowNavigationSidebarViewController.m \ gui/macosx/library/VLCLibraryWindowPersistentPreferences.h \ gui/macosx/library/VLCLibraryWindowPersistentPreferences.m \ + gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.h \ + gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.m \ gui/macosx/library/VLCLibraryWindowSplitViewController.h \ gui/macosx/library/VLCLibraryWindowSplitViewController.m \ gui/macosx/library/VLCLibraryWindowToolbarDelegate.h \ diff --git a/modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.h b/modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.h new file mode 100644 index 0000000000..55ec9e3bbe --- /dev/null +++ b/modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.h @@ -0,0 +1,31 @@ +/***************************************************************************** + * VLCLibraryWindowPlaylistSidebarViewController.h: MacOS X interface module + ***************************************************************************** + * Copyright (C) 2024 VLC authors and VideoLAN + * + * Authors: Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface VLCLibraryWindowPlaylistSidebarViewController : NSViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.m b/modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.m new file mode 100644 index 0000000000..2f91de0f18 --- /dev/null +++ b/modules/gui/macosx/library/VLCLibraryWindowPlaylistSidebarViewController.m @@ -0,0 +1,27 @@ +/***************************************************************************** + * VLCLibraryWindowPlaylistSidebarViewController.m: MacOS X interface module + ***************************************************************************** + * Copyright (C) 2024 VLC authors and VideoLAN + * + * Authors: Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ + +#import "VLCLibraryWindowPlaylistSidebarViewController.h" + +@implementation VLCLibraryWindowPlaylistSidebarViewController + +@end