From 70a565d60d39cdac9dd94df6815deb11fc42ccf3 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 28 Feb 2024 20:50:09 +0800 Subject: [PATCH] Redesign shares to incorporate share options into main share view Signed-off-by: Claudio Cambra --- .../ShareOptionsWindow.swift | 12 - .../FileProviderUIExt/ShareOptionsWindow.xib | 199 --------- .../FileProviderUIExt/ShareTableItemView.xib | 28 +- .../FileProviderUIExt/ShareViewController.xib | 410 +++++++++++++----- .../project.pbxproj | 8 - 5 files changed, 305 insertions(+), 352 deletions(-) delete mode 100644 shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.swift delete mode 100644 shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.xib diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.swift deleted file mode 100644 index 1b07a1f7db..0000000000 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.swift +++ /dev/null @@ -1,12 +0,0 @@ -// -// ShareOptionsWindow.swift -// FileProviderUIExt -// -// Created by Claudio Cambra on 28/2/24. -// - -import AppKit - -class ShareOptionsWindow: NSPanel { - -} diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.xib deleted file mode 100644 index 466a6dc020..0000000000 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsWindow.xib +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSAllRomanInputSourcesLocaleIdentifier - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableItemView.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableItemView.xib index fcf7ef7266..026f2acf21 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableItemView.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableItemView.xib @@ -30,7 +30,7 @@ - + @@ -38,7 +38,7 @@ - - - @@ -75,13 +63,11 @@ - - @@ -94,23 +80,13 @@ - - - - - - - - - - diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib index 7e9f7c5ed9..4a601d82de 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib @@ -19,145 +19,341 @@ - - - + + - - + + - - + + - - - - - - - - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NSAllRomanInputSourcesLocaleIdentifier + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + - - - - - - - - - + + + + + - - - - + + + + + + + - + diff --git a/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj b/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj index 692fb16733..9e0a448105 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj +++ b/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj @@ -57,8 +57,6 @@ 53FE14552B8E28E9006C4193 /* NextcloudAccount.swift in Sources */ = {isa = PBXBuildFile; fileRef = 536EFC35295E3C1100F4CB13 /* NextcloudAccount.swift */; }; 53FE14592B8E3F6C006C4193 /* ShareTableItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53FE14582B8E3F6C006C4193 /* ShareTableItemView.swift */; }; 53FE145B2B8F1305006C4193 /* NKShare+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53FE145A2B8F1305006C4193 /* NKShare+Extensions.swift */; }; - 53FE145F2B8F3771006C4193 /* ShareOptionsWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 53FE145E2B8F3771006C4193 /* ShareOptionsWindow.xib */; }; - 53FE14612B8F5279006C4193 /* ShareOptionsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53FE14602B8F5279006C4193 /* ShareOptionsWindow.swift */; }; C2B573BA1B1CD91E00303B36 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C2B573B91B1CD91E00303B36 /* main.m */; }; C2B573D21B1CD94B00303B36 /* main.m in Resources */ = {isa = PBXBuildFile; fileRef = C2B573B91B1CD91E00303B36 /* main.m */; }; C2B573DE1B1CD9CE00303B36 /* FinderSync.m in Sources */ = {isa = PBXBuildFile; fileRef = C2B573DD1B1CD9CE00303B36 /* FinderSync.m */; }; @@ -206,8 +204,6 @@ 53FE14572B8E3A7C006C4193 /* FileProviderUIExtRelease.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = FileProviderUIExtRelease.entitlements; sourceTree = ""; }; 53FE14582B8E3F6C006C4193 /* ShareTableItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareTableItemView.swift; sourceTree = ""; }; 53FE145A2B8F1305006C4193 /* NKShare+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NKShare+Extensions.swift"; sourceTree = ""; }; - 53FE145E2B8F3771006C4193 /* ShareOptionsWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ShareOptionsWindow.xib; sourceTree = ""; }; - 53FE14602B8F5279006C4193 /* ShareOptionsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareOptionsWindow.swift; sourceTree = ""; }; C2B573B11B1CD91E00303B36 /* desktopclient.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = desktopclient.app; sourceTree = BUILT_PRODUCTS_DIR; }; C2B573B51B1CD91E00303B36 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C2B573B91B1CD91E00303B36 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; @@ -361,8 +357,6 @@ children = ( 5376307B2B85E2E00026BFAB /* Extensions */, 53B979802B84C81F002DA742 /* DocumentActionViewController.swift */, - 53FE145E2B8F3771006C4193 /* ShareOptionsWindow.xib */, - 53FE14602B8F5279006C4193 /* ShareOptionsWindow.swift */, 53FE14582B8E3F6C006C4193 /* ShareTableItemView.swift */, 531522812B8E01C6002E31BE /* ShareTableItemView.xib */, 53FE144F2B8E0658006C4193 /* ShareTableViewDataSource.swift */, @@ -651,7 +645,6 @@ buildActionMask = 2147483647; files = ( 531522822B8E01C6002E31BE /* ShareTableItemView.xib in Resources */, - 53FE145F2B8F3771006C4193 /* ShareOptionsWindow.xib in Resources */, 537630912B85F4980026BFAB /* ShareViewController.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -739,7 +732,6 @@ buildActionMask = 2147483647; files = ( 537630932B85F4B00026BFAB /* ShareViewController.swift in Sources */, - 53FE14612B8F5279006C4193 /* ShareOptionsWindow.swift in Sources */, 53B979812B84C81F002DA742 /* DocumentActionViewController.swift in Sources */, 53FE145B2B8F1305006C4193 /* NKShare+Extensions.swift in Sources */, 53FE14592B8E3F6C006C4193 /* ShareTableItemView.swift in Sources */,