Refactor the document window controller and the prefs controller. Some regression still in there.
This commit is contained in:
49 files changed
+2505
-2379
No files matched your search
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// ProgressViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 07/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
protocol ProgressViewControllerDelegate : AnyObject {
|
||||
func cancel()
|
||||
}
|
||||
|
||||
class ProgressViewController: NSViewController {
|
||||
|
||||
@IBOutlet var cancelButton: NSButton!
|
||||
@IBOutlet var progressString: NSTextField!
|
||||
@IBOutlet var progressBar: NSProgressIndicator!
|
||||
|
||||
weak var delegate: ProgressViewControllerDelegate?
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do view setup here.
|
||||
}
|
||||
|
||||
@IBAction func cancel(_ sender: Any) {
|
||||
delegate?.cancel()
|
||||
cancelButton.isEnabled = false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user