|
@@ -11,6 +11,7 @@ class ViewController: NSViewController {
|
|
|
private var mainContentView: NSView!
|
|
private var mainContentView: NSView!
|
|
|
private var homeContentView: NSView!
|
|
private var homeContentView: NSView!
|
|
|
private var scanContentView: NSView!
|
|
private var scanContentView: NSView!
|
|
|
|
|
+ private var printContentView: NSView!
|
|
|
private var scanAndHomeContentView: NSView!
|
|
private var scanAndHomeContentView: NSView!
|
|
|
private var settingsContentView: NSView!
|
|
private var settingsContentView: NSView!
|
|
|
private var contentContainer: NSView!
|
|
private var contentContainer: NSView!
|
|
@@ -291,11 +292,13 @@ class ViewController: NSViewController {
|
|
|
|
|
|
|
|
homeContentView = makeHomeContentView()
|
|
homeContentView = makeHomeContentView()
|
|
|
scanContentView = makeScanContentView()
|
|
scanContentView = makeScanContentView()
|
|
|
|
|
+ printContentView = makePrintContentView()
|
|
|
scanAndHomeContentView = makeScanAndHomeContentView()
|
|
scanAndHomeContentView = makeScanAndHomeContentView()
|
|
|
settingsContentView = makeSettingsContentView()
|
|
settingsContentView = makeSettingsContentView()
|
|
|
|
|
|
|
|
contentContainer.addSubview(homeContentView)
|
|
contentContainer.addSubview(homeContentView)
|
|
|
contentContainer.addSubview(scanContentView)
|
|
contentContainer.addSubview(scanContentView)
|
|
|
|
|
+ contentContainer.addSubview(printContentView)
|
|
|
contentContainer.addSubview(scanAndHomeContentView)
|
|
contentContainer.addSubview(scanAndHomeContentView)
|
|
|
contentContainer.addSubview(settingsContentView)
|
|
contentContainer.addSubview(settingsContentView)
|
|
|
|
|
|
|
@@ -330,6 +333,7 @@ class ViewController: NSViewController {
|
|
|
|
|
|
|
|
pinContentView(homeContentView)
|
|
pinContentView(homeContentView)
|
|
|
pinContentView(scanContentView)
|
|
pinContentView(scanContentView)
|
|
|
|
|
+ pinContentView(printContentView)
|
|
|
pinContentView(scanAndHomeContentView)
|
|
pinContentView(scanAndHomeContentView)
|
|
|
pinContentView(settingsContentView)
|
|
pinContentView(settingsContentView)
|
|
|
|
|
|
|
@@ -395,6 +399,7 @@ class ViewController: NSViewController {
|
|
|
|
|
|
|
|
homeContentView.isHidden = destination != .home
|
|
homeContentView.isHidden = destination != .home
|
|
|
scanContentView.isHidden = destination != .scan
|
|
scanContentView.isHidden = destination != .scan
|
|
|
|
|
+ printContentView.isHidden = destination != .print
|
|
|
scanAndHomeContentView.isHidden = destination != .scanAndHome
|
|
scanAndHomeContentView.isHidden = destination != .scanAndHome
|
|
|
settingsContentView.isHidden = destination != .settings
|
|
settingsContentView.isHidden = destination != .settings
|
|
|
|
|
|
|
@@ -481,6 +486,17 @@ class ViewController: NSViewController {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private func makePrintContentView() -> NSView {
|
|
|
|
|
+ makeDestinationScrollView(
|
|
|
|
|
+ title: "Print",
|
|
|
|
|
+ features: featureCards(
|
|
|
|
|
+ FeatureCardData(title: "Print Text", subtitle: "Type text and print", iconKind: .printText),
|
|
|
|
|
+ FeatureCardData(title: "Print Contacts", subtitle: "Print your contacts", iconKind: .printContacts),
|
|
|
|
|
+ FeatureCardData(title: "Draw & Print", subtitle: "Add drawings, text and more", iconKind: .drawPrint)
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private func makeScanAndHomeContentView() -> NSView {
|
|
private func makeScanAndHomeContentView() -> NSView {
|
|
|
makeDestinationScrollView(
|
|
makeDestinationScrollView(
|
|
|
title: "Premium",
|
|
title: "Premium",
|