Browse Source

New Swipe

Marino Faggiana 7 years ago
parent
commit
70a198f5bf

+ 20 - 0
Nextcloud.xcodeproj/project.pbxproj

@@ -600,6 +600,8 @@
 		F7C525A21E3B6DA800FFE02C /* CCNotification.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F7C525A11E3B6DA800FFE02C /* CCNotification.storyboard */; };
 		F7C742D81E7BD5C900D9C973 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F7C742D71E7BD5C900D9C973 /* MainInterface.storyboard */; };
 		F7D2677C1E157053005ACB7E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F7F67BB81A24D27800EE80DA /* Images.xcassets */; };
+		F7DC5FD81F00F98B00A903C7 /* MGSwipeButton.m in Sources */ = {isa = PBXBuildFile; fileRef = F7DC5FD51F00F98B00A903C7 /* MGSwipeButton.m */; };
+		F7DC5FDB1F00F98B00A903C7 /* MGSwipeTableCell.m in Sources */ = {isa = PBXBuildFile; fileRef = F7DC5FD71F00F98B00A903C7 /* MGSwipeTableCell.m */; };
 		F7DFE2521EBDC3A400CF5202 /* Realm.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7DFE24F1EBDC3A400CF5202 /* Realm.framework */; };
 		F7DFE2531EBDC3A400CF5202 /* Realm.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7DFE24F1EBDC3A400CF5202 /* Realm.framework */; };
 		F7DFE2541EBDC3A400CF5202 /* RealmSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7DFE2501EBDC3A400CF5202 /* RealmSwift.framework */; };
@@ -1690,6 +1692,10 @@
 		F7D0E65E1BC5042E008D989A /* CCDetail.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = CCDetail.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
 		F7D0E65F1BC5042E008D989A /* CCDetail.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = CCDetail.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
 		F7D154271E2392A300202FD9 /* Nextcloud-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Nextcloud-Bridging-Header.h"; sourceTree = "<group>"; };
+		F7DC5FD41F00F98B00A903C7 /* MGSwipeButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGSwipeButton.h; sourceTree = "<group>"; };
+		F7DC5FD51F00F98B00A903C7 /* MGSwipeButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MGSwipeButton.m; sourceTree = "<group>"; };
+		F7DC5FD61F00F98B00A903C7 /* MGSwipeTableCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGSwipeTableCell.h; sourceTree = "<group>"; };
+		F7DC5FD71F00F98B00A903C7 /* MGSwipeTableCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MGSwipeTableCell.m; sourceTree = "<group>"; };
 		F7DFE24F1EBDC3A400CF5202 /* Realm.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Realm.framework; sourceTree = "<group>"; };
 		F7DFE2501EBDC3A400CF5202 /* RealmSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = RealmSwift.framework; sourceTree = "<group>"; };
 		F7ECBA6C1E239DCD003E6328 /* CCCreateCloud.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CCCreateCloud.swift; sourceTree = "<group>"; };
@@ -2057,6 +2063,7 @@
 				F78964A61EBB576C00403E13 /* JDStatusBarNotification */,
 				F7659A2F1DC0B737004860C4 /* iRate */,
 				F70F04821C889183008DAB36 /* MBProgressHUD */,
+				F7DC5FD31F00F98B00A903C7 /* MGSwipeTableCell */,
 				F70F04BD1C889184008DAB36 /* NYXImagesKit */,
 				F7540EE11D5B238600C3FFA8 /* openssl */,
 				F70F051D1C889184008DAB36 /* PPImageScrollingTableViewCell */,
@@ -3407,6 +3414,17 @@
 			name = "Supporting Files";
 			sourceTree = "<group>";
 		};
+		F7DC5FD31F00F98B00A903C7 /* MGSwipeTableCell */ = {
+			isa = PBXGroup;
+			children = (
+				F7DC5FD41F00F98B00A903C7 /* MGSwipeButton.h */,
+				F7DC5FD51F00F98B00A903C7 /* MGSwipeButton.m */,
+				F7DC5FD61F00F98B00A903C7 /* MGSwipeTableCell.h */,
+				F7DC5FD71F00F98B00A903C7 /* MGSwipeTableCell.m */,
+			);
+			path = MGSwipeTableCell;
+			sourceTree = "<group>";
+		};
 		F7DFE24E1EBDC3A400CF5202 /* Realm */ = {
 			isa = PBXGroup;
 			children = (
@@ -4443,6 +4461,7 @@
 				F7F54D091E5B14C800E19C62 /* MWPhoto.m in Sources */,
 				F7B0C0CD1EE7E7750033AC24 /* CCSynchronize.m in Sources */,
 				F77B0DFF1D118A16002130FE /* OCNetworking.m in Sources */,
+				F7DC5FDB1F00F98B00A903C7 /* MGSwipeTableCell.m in Sources */,
 				F77B0E011D118A16002130FE /* RNCryptor.m in Sources */,
 				F70022DA1EC4C9100080073F /* OCHTTPRequestOperation.m in Sources */,
 				F70022A11EC4C9100080073F /* AFHTTPSessionManager.m in Sources */,
@@ -4663,6 +4682,7 @@
 				F762CB151EACB66200B38484 /* XLFormRowNavigationAccessoryView.m in Sources */,
 				F7F54D081E5B14C800E19C62 /* MWGridViewController.m in Sources */,
 				F7F06E971DBFACC600099AE9 /* PHAssetCollection+CTAssetsPickerController.m in Sources */,
+				F7DC5FD81F00F98B00A903C7 /* MGSwipeButton.m in Sources */,
 				F7F06E9D1DBFACC600099AE9 /* UIImage+CTAssetsPickerController.m in Sources */,
 				F762CB6C1EACB7D400B38484 /* ReaderDocument.m in Sources */,
 				F762CB721EACB7D400B38484 /* ReaderThumbQueue.m in Sources */,

+ 2 - 1
iOSClient/Main/CCCellMain.h

@@ -22,8 +22,9 @@
 //
 
 #import <UIKit/UIKit.h>
+#import "MGSwipeTableCell.h"
 
-@interface CCCellMain : UITableViewCell
+@interface CCCellMain : MGSwipeTableCell
 
 @property(nonatomic, weak) IBOutlet UIImageView *file;
 @property(nonatomic, weak) IBOutlet UIImageView *status;

+ 2 - 1
iOSClient/Main/CCCellMainTransfer.h

@@ -22,8 +22,9 @@
 //
 
 #import <UIKit/UIKit.h>
+#import "MGSwipeTableCell.h"
 
-@interface CCCellMainTransfer : UITableViewCell
+@interface CCCellMainTransfer : MGSwipeTableCell
 
 @property(nonatomic, weak) IBOutlet UIImageView *file;
 @property(nonatomic, weak) IBOutlet UIImageView *status;

+ 1 - 0
iOSClient/Main/CCMain.h

@@ -28,6 +28,7 @@
 
 #import "TWMessageBarManager.h"
 //#import "SSZipArchive.h"
+#import "MGSwipeTableCell.h"
 #import "AHKActionSheet.h"
 #import "CTAssetSelectionLabel.h"
 #import "BKPasscodeViewController.h"

File diff suppressed because it is too large
+ 542 - 504
iOSClient/Main/CCMain.m


+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -212,6 +212,7 @@
 // Favorite
 
 "_favorites_"                   = "Favorites";
+"_favorite_"                    = "Favorite";
 "_no_files_uploaded_"           = "No files uploaded";
 "_tutorial_favorite_view_"      = "Files and folders you mark as favorites will show up here";
 "_tutorial_offline_view_"       = "Files copied here will be available offline.\n\nThey will be synchronized with your cloud.";

Some files were not shown because too many files changed in this diff