toolbox local soft keyboard toggle localization

This commit is contained in:
TrueZhuanjia
2025-07-02 19:49:23 +08:00
parent f24e68d0d9
commit 03d08a2c65
7 changed files with 205 additions and 296 deletions
@@ -22,7 +22,7 @@
@interface StreamFrameViewController : GCEventViewController <ConnectionCallbacks, ControllerSupportDelegate, UserInteractionDelegate, UIScrollViewDelegate>
#else
@interface StreamFrameViewController : UIViewController <ConnectionCallbacks, ControllerSupportDelegate, UserInteractionDelegate, UIScrollViewDelegate, ToolBoxSpecialEntryDelegate>
@interface StreamFrameViewController : UIViewController <ConnectionCallbacks, ControllerSupportDelegate, UserInteractionDelegate, UIScrollViewDelegate, ToolboxSpecialEntryDelegate>
#endif
@property (nonatomic) StreamConfiguration* streamConfig;
@@ -73,7 +73,7 @@
CustomEdgeSlideGestureRecognizer *_slideToCmdToolRecognizer;
CustomTapGestureRecognizer *_oscLayoutTapRecoginizer;
LayoutOnScreenControlsViewController *_layoutOnScreenControlsVC;
ToolBoxViewController* toolBoxViewController;
ToolboxViewController* toolBoxViewController;
#endif
}
@@ -128,7 +128,7 @@
}
- (void)presentCommandManagerViewController{
toolBoxViewController = [[ToolBoxViewController alloc] init];
toolBoxViewController = [[ToolboxViewController alloc] init];
toolBoxViewController.specialEntryDelegate = self;
[self configOscLayoutTool];
[self presentViewController:toolBoxViewController animated:YES completion:^{
@@ -380,7 +380,7 @@
_streamView = [[StreamView alloc] initWithFrame:self.view.frame];
toolBoxViewController = [[ToolBoxViewController alloc] init];
toolBoxViewController = [[ToolboxViewController alloc] init];
toolBoxViewController.specialEntryDelegate = self;
/*
@@ -8,16 +8,16 @@
import UIKit
@objc protocol ToolBoxSpecialEntryDelegate: NSObjectProtocol {
@objc protocol ToolboxSpecialEntryDelegate: NSObjectProtocol {
@objc optional func openWidgetLayoutTool()
@objc optional func switchWidgetProfile()
@objc optional func bringUpSoftKeyboard()
}
@objc public class ToolBoxViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@objc public class ToolboxViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@objc weak var specialEntryDelegate: ToolBoxSpecialEntryDelegate?
@objc weak var specialEntryDelegate: ToolboxSpecialEntryDelegate?
public let tableView = UITableView()
private let addButton = UIButton(type: .system)
private let deleteButton = UIButton(type: .system)
@@ -77,7 +77,7 @@ import UIKit
view.layer.masksToBounds = true
// Set up the title label
titleLabel.text = SwiftLocalizationHelper.localizedString(forKey: "Command Tool")
titleLabel.text = SwiftLocalizationHelper.localizedString(forKey: "Toolbox")
titleLabel.font = UIFont.boldSystemFont(ofSize: 20) // Adjust font size as needed
titleLabel.textColor = UIColor.white // Adjust color as needed
titleLabel.textAlignment = .center