浏览代码

change UI class name

harry 3 年之前
父节点
当前提交
0a91057cf0

+ 3 - 2
BFFramework/Classes/Stuckpoint/Controller/PQEditMusicSearchController.swift

@@ -6,8 +6,9 @@
 //  功能:显示编辑界中搜索音乐界面
 
 import Foundation
- 
-class PQEditMusicSearchController: PQBaseViewController {
+import BFUIKit
+
+class PQEditMusicSearchController: BFBaseViewController {
     // 当前播放的音乐
     var currentPlayData: PQVoiceModel?
     // 当前播放的视频

+ 3 - 3
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -13,14 +13,14 @@ public enum createStickersModel: Int {
     case createStickersModelOnlyMusic = 3 // 仅配乐
 }
 
-import BFCommonKit
+import BFUIKit
 import Foundation
 import ObjectMapper
 import Photos
 import RealmSwift
 import UIKit
 
-class PQStuckPointEditerController: PQBaseViewController {
+class PQStuckPointEditerController: BFBaseViewController {
     // 是否导出视频成功
     var isExportVideosSuccess: Bool = false
     // 是否请求卡点数据成功
@@ -1822,7 +1822,7 @@ extension PQStuckPointEditerController {
                     self?.dealWithDataSuccess(resetSelectIndex: resetSelectIndex)
                 } else {
                     self?.synchroMarskView.removeMarskView()
-//                    PQUploadRemindView.showUploadRemindView(title: nil, attributedTitle: NSAttributedString(string: "加载音乐失败,请重新选择音乐"), summary: "", confirmTitle: nil) { [weak self] _, _ in
+//                    BFUploadRemindView.showUploadRemindView(title: nil, attributedTitle: NSAttributedString(string: "加载音乐失败,请重新选择音乐"), summary: "", confirmTitle: nil) { [weak self] _, _ in
 //                        self?.navigationController?.popViewController(animated: true)
 //                    }
                 }

+ 2 - 2
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointMaterialController.swift

@@ -8,10 +8,10 @@
 
 import UIKit
 import Photos
-import BFCommonKit
+import BFUIKit
 import BFMaterialKit
 
-public class PQStuckPointMaterialController: PQBaseViewController {
+public class PQStuckPointMaterialController: BFBaseViewController {
     public var isToPublicHandle:((_ isReCreate:Bool,_ selectedTotalDuration: Float64,_ selectedDataCount:Int,_ selectedImageDataCount: Int,_ mStickers: [PQEditVisionTrackMaterialsModel]?,_ stuckPointMusicData: PQVoiceModel?,_ editProjectModel: PQEditProjectModel?) -> Void)?
     // 按钮高
     let choseBtnH: CGFloat = cDefaultMargin * 3

+ 2 - 2
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointMusicContentController.swift

@@ -7,9 +7,9 @@
 //
 
 import UIKit
-import BFCommonKit
+import BFUIKit
 
-class PQStuckPointMusicContentController: PQBaseViewController {
+class PQStuckPointMusicContentController: BFBaseViewController {
     var itemList: [Any] = Array<Any>.init() // 所有分类数据
     // 当前选择的位置
     var lastIndexPath: IndexPath?

+ 8 - 8
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointMusicController.swift

@@ -9,9 +9,9 @@
 import AVFoundation
 import UIKit
 import Photos
-import BFCommonKit
+import BFUIKit
 
-class PQStuckPointMusicController: PQBaseViewController {
+class PQStuckPointMusicController: BFBaseViewController {
     // 选中的总时长
     var selectedTotalDuration: Float64 = 0
     // 选择的总数
@@ -314,9 +314,9 @@ class PQStuckPointMusicController: PQBaseViewController {
     /// 请求标签数据
     /// - Returns: <#description#>
     func loadRequestTagsList() {
-        PQLoadingHUB.shared.showHUB()
+        BFLoadingHUB.shared.showHUB()
         PQStuckPointViewModel.stuckPointMusicCategoryList { [weak self] tags, _, _ in
-            PQLoadingHUB.shared.dismissHUB()
+            BFLoadingHUB.shared.dismissHUB()
             if tags.count > 0 {
                 self?.tagData = tags.first
             }
@@ -332,9 +332,9 @@ class PQStuckPointMusicController: PQBaseViewController {
     /// 请求二级标签数据
     /// - Returns: <#description#>
     func loadRequestSubTagsList() {
-        PQLoadingHUB.shared.showHUB()
+        BFLoadingHUB.shared.showHUB()
         PQStuckPointViewModel.stuckPointMusicCategoryList(parentTagId: tagData?.tagId ?? 0) { [weak self] tags, _, tagAttributes in
-            PQLoadingHUB.shared.dismissHUB()
+            BFLoadingHUB.shared.dismissHUB()
             if tagAttributes != nil {
                 let tagId: Int64 = tags.count > 0 ? (tags.first?.tagId ?? 0) : (self?.tagData?.tagId ?? 0)
                 let parentTagId: Int64 = tags.count > 0 ? (self?.tagData?.tagId ?? 0) : 0
@@ -380,12 +380,12 @@ class PQStuckPointMusicController: PQBaseViewController {
     ///   - tagsInfo: <#tagsInfo description#>
     /// - Returns: <#description#>
     func requestPageListData(isRefresh: Bool = true, isHotPage: Bool = false, tagId: Int64, parentTagId: Int64) {
-        PQLoadingHUB.shared.showHUB()
+        BFLoadingHUB.shared.showHUB()
         if isRefresh {
             pageNum = 1
         }
         PQStuckPointViewModel.stuckPointMusicPageList(tagId: tagId, parentTagId: parentTagId, pageNum: pageNum, videoCount: selectedDataCount - selectedImageDataCount, imageCount: selectedImageDataCount, totalDuration: selectedTotalDuration) { [weak self] musicInfo, _ in
-            PQLoadingHUB.shared.dismissHUB()
+            BFLoadingHUB.shared.dismissHUB()
             if musicInfo.count > 0 {
                 self?.pageNum = (self?.pageNum ?? 0) + 1
             }

+ 10 - 10
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointPublicController.swift

@@ -11,10 +11,10 @@ import Photos
 import UIKit
 import WechatOpenSDK
 import Kingfisher
-import BFCommonKit
+import BFUIKit
 import Alamofire
 
-class PQStuckPointPublicController: PQBaseViewController {
+class PQStuckPointPublicController: BFBaseViewController {
     private var isShared: Bool = false // 是否在分享
     private var isExportSuccess: Bool = false // 是否导出完成
     private var isSaveDraftSuccess: Bool = false // 是否保存草稿完成
@@ -52,7 +52,7 @@ class PQStuckPointPublicController: PQBaseViewController {
     private var exportProgrss = 0
     var mStickers: [PQEditVisionTrackMaterialsModel]?
 
-    var remindView: PQRemindView?
+    var remindView: BFRemindView?
     // 已经选择标题内容,加一个属性接收 使用有不在主线不能直接使用 titleLabel text
     var selectTitle: String = ""
 
@@ -460,7 +460,7 @@ class PQStuckPointPublicController: PQBaseViewController {
             view.endEditing(true)
             let remindData = PQBaseModel()
             remindData.title = "编辑的内容,将不会被保存"
-            remindView = PQRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
+            remindView = BFRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
             remindView?.isBanned = true
             remindView?.confirmBtn.setTitle("确认", for: .normal)
             remindView?.cancelBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#333333"), for: .normal)
@@ -1489,7 +1489,7 @@ extension PQStuckPointPublicController {
         emptyRemindView.refreshBtn.addCorner(corner: 4)
         view.addSubview(emptyRemindView)
     
-//        PQRemindView.showUploadRemindView(title: "上传失败", summary: (msg != nil ? msg! : "视频文件已丢失"), confirmTitle:  "立即重试") { [weak self] _, _ in
+//        BFRemindView.showUploadRemindView(title: "上传失败", summary: (msg != nil ? msg! : "视频文件已丢失"), confirmTitle:  "立即重试") { [weak self] _, _ in
 //            self?.navigationController?.popToViewController((self?.navigationController?.viewControllers[1])!, animated: true)
 //        }
     }
@@ -1604,9 +1604,9 @@ extension PQStuckPointPublicController {
 
     // 更新标题或封面
     func updateCoverImagegOrTitle() {
-        PQLoadingHUB.shared.showHUB(isMode: true)
+        BFLoadingHUB.shared.showHUB(isMode: true)
         // SanW - 待修改 -
-//        PQLoadingHUB.shared.showHUB(isMode: true)
+//        BFLoadingHUB.shared.showHUB(isMode: true)
         
         PQBaseViewModel.ossTempToken { [weak self] response, msg in
             let image: UIImage = (self?.uploadData?.image)!
@@ -1638,15 +1638,15 @@ extension PQStuckPointPublicController {
                                 self?.setTitleText(text: self?.publicTitleView.titles[Int(numberRandom)] ?? "")
                                 self?.updateCoverImagegOrTitle()
                                 sleep(UInt32(1.5))
-                                PQLoadingHUB.shared.dismissHUB()
+                                BFLoadingHUB.shared.dismissHUB()
 
                                 return
                             } else {
-                                PQLoadingHUB.shared.dismissHUB()
+                                BFLoadingHUB.shared.dismissHUB()
                             }
                         }
                     } else {
-                        PQLoadingHUB.shared.dismissHUB()
+                        BFLoadingHUB.shared.dismissHUB()
                     }
                 })
 

+ 3 - 3
BFFramework/Classes/Stuckpoint/View/PQEditPublicTitleView.swift

@@ -6,7 +6,7 @@
 //  功能:编辑标题
 
 import Foundation
-import BFCommonKit
+import BFUIKit
 
 class PQEditPublicTitleView: UIView {
     
@@ -30,8 +30,8 @@ class PQEditPublicTitleView: UIView {
     }()
 
     // 输入框
-    lazy var inputTV: PQTextView = {
-        let inputTV = PQTextView()
+    lazy var inputTV: BFTextView = {
+        let inputTV = BFTextView()
         inputTV.font = UIFont.systemFont(ofSize: 17, weight: .regular)
         inputTV.backgroundColor = .clear
         inputTV.textColor = .black

+ 2 - 2
BFFramework/Classes/selectImage/PQImageCropVC.swift

@@ -10,10 +10,10 @@
 // let image = UIImage(named:"img.jpg")!
 // let vc = PQImageCropVC(frame: (self.navigationController?.view.frame)!, image: image, aspectWidth:9, aspectHeight: 16)
 
-import BFCommonKit
+import BFUIKit
 import UIKit
 
-class PQImageCropVC: PQBaseViewController, UIScrollViewDelegate {
+class PQImageCropVC: BFBaseViewController, UIScrollViewDelegate {
     var uploadData: PQUploadModel?
     var updataVideoData: PQVideoListModel? // 如果updataVideoData不为空则为修改视频
     var aspectW: CGFloat!

+ 5 - 5
BFFramework/Classes/selectImage/PQUploadController.swift

@@ -9,11 +9,11 @@
 import MobileCoreServices
 import Photos
 import UIKit
-import BFCommonKit
+import BFUIKit
 
 let playerHeaderH: CGFloat = cScreenWidth * (250 / 375)
 
-class PQUploadController: PQBaseViewController {
+class PQUploadController: BFBaseViewController {
     // 最大的宽度
     var maxWidth: CGFloat = cScreenWidth
     // 最大的高度
@@ -369,13 +369,13 @@ class PQUploadController: PQBaseViewController {
 
     func loadPhotoData() {
         DispatchQueue.main.async { [weak self] in
-            PQLoadingHUB.shared.showHUB(superView: self!.view, isVerticality: false)
+            BFLoadingHUB.shared.showHUB(superView: self!.view, isVerticality: false)
         }
         DispatchQueue.global().async { [weak self] in
             self?.allPhotos = PHAsset.fetchAssets(with: self?.fetchOptions)
             DispatchQueue.main.async { [weak self] in
                 if self?.view != nil {
-                    PQLoadingHUB.shared.dismissHUB(superView: self!.view)
+                    BFLoadingHUB.shared.dismissHUB(superView: self!.view)
                 }
                 self?.collectionView.reloadData()
                 if (self?.allPhotos.count ?? 0) <= 0 {
@@ -699,7 +699,7 @@ extension PQUploadController {
     override func observeValue(forKeyPath keyPath: String?, of object: Any?, change _: [NSKeyValueChangeKey: Any]?, context _: UnsafeMutableRawPointer?) {
         if object is AVPlayerItem, keyPath == "status" {
             BFLog(message: "(object as! AVPlayerItem).status = \((object as! AVPlayerItem).status.rawValue)")
-            PQLoadingHUB.shared.dismissHUB(superView: playerHeaderView)
+            BFLoadingHUB.shared.dismissHUB(superView: playerHeaderView)
             switch (object as! AVPlayerItem).status {
             case .unknown:
                 break