From 306f6b616329b65f43896e6d3db3196c5210c651 Mon Sep 17 00:00:00 2001 From: Selim Mustafaev Date: Fri, 8 Jul 2022 00:46:32 +0300 Subject: [PATCH] Some new layout --- .../xcschemes/xcschememanagement.plist | 4 +- AutoCat2Mac/Base.lproj/Main.storyboard | 67 ++++++++++++------- AutoCat2Mac/Controllers/CheckController.swift | 9 +++ 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/AutoCat2.xcodeproj/xcuserdata/selim.xcuserdatad/xcschemes/xcschememanagement.plist b/AutoCat2.xcodeproj/xcuserdata/selim.xcuserdatad/xcschemes/xcschememanagement.plist index 26c376e..2dd8bc0 100644 --- a/AutoCat2.xcodeproj/xcuserdata/selim.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/AutoCat2.xcodeproj/xcuserdata/selim.xcuserdatad/xcschemes/xcschememanagement.plist @@ -12,12 +12,12 @@ AutoCat2.xcscheme_^#shared#^_ orderHint - 1 + 0 AutoCat2Mac.xcscheme_^#shared#^_ orderHint - 0 + 1 AutoCat2UITests.testExample.xcscheme diff --git a/AutoCat2Mac/Base.lproj/Main.storyboard b/AutoCat2Mac/Base.lproj/Main.storyboard index 4dc4e70..686d5a3 100644 --- a/AutoCat2Mac/Base.lproj/Main.storyboard +++ b/AutoCat2Mac/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - + - + @@ -733,12 +733,12 @@ - - + + - - + @@ -759,7 +762,7 @@ Gw - + @@ -769,8 +772,15 @@ Gw - - - - - + + + + - - + + + + + + - + - + @@ -830,18 +847,18 @@ Gw - - + + - - + + - + - - + + diff --git a/AutoCat2Mac/Controllers/CheckController.swift b/AutoCat2Mac/Controllers/CheckController.swift index acf65b8..1f10d6c 100644 --- a/AutoCat2Mac/Controllers/CheckController.swift +++ b/AutoCat2Mac/Controllers/CheckController.swift @@ -12,6 +12,7 @@ class CheckController: NSViewController { @IBOutlet weak var checkButton: NSButton! @IBOutlet weak var cancelButton: NSButton! @IBOutlet weak var textField: NSTextField! + @IBOutlet weak var progress: NSProgressIndicator! override func viewDidLoad() { super.viewDidLoad() @@ -20,4 +21,12 @@ class CheckController: NSViewController { cancelButton.controlSize = .large textField.controlSize = .large } + + @IBAction func onCancel(_ sender: NSButton) { + view.window?.close() + } + + @IBAction func onCheck(_ sender: NSButton) { + + } }