Check new number controller
This commit is contained in:
parent
7985fb83cc
commit
2fae386797
@ -93,6 +93,7 @@
|
|||||||
7AFD7AE628718BF000BCCD37 /* Filter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AE528718BF000BCCD37 /* Filter.swift */; };
|
7AFD7AE628718BF000BCCD37 /* Filter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AE528718BF000BCCD37 /* Filter.swift */; };
|
||||||
7AFD7AE82871B7DA00BCCD37 /* MainSplitController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AE72871B7DA00BCCD37 /* MainSplitController.swift */; };
|
7AFD7AE82871B7DA00BCCD37 /* MainSplitController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AE72871B7DA00BCCD37 /* MainSplitController.swift */; };
|
||||||
7AFD7AEB2872355000BCCD37 /* MainWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AEA2872355000BCCD37 /* MainWindowController.swift */; };
|
7AFD7AEB2872355000BCCD37 /* MainWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AEA2872355000BCCD37 /* MainWindowController.swift */; };
|
||||||
|
7AFD7AED2874E49600BCCD37 /* CheckController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFD7AEC2874E49600BCCD37 /* CheckController.swift */; };
|
||||||
929EDE7F27F89C3000E55F65 /* VEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929EDE7E27F89C3000E55F65 /* VEngine.swift */; };
|
929EDE7F27F89C3000E55F65 /* VEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929EDE7E27F89C3000E55F65 /* VEngine.swift */; };
|
||||||
929EDE8127F8A75E00E55F65 /* VPhoto.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929EDE8027F8A75E00E55F65 /* VPhoto.swift */; };
|
929EDE8127F8A75E00E55F65 /* VPhoto.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929EDE8027F8A75E00E55F65 /* VPhoto.swift */; };
|
||||||
929EDE8327F8C6C500E55F65 /* VOwnershipPeriod.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929EDE8227F8C6C500E55F65 /* VOwnershipPeriod.swift */; };
|
929EDE8327F8C6C500E55F65 /* VOwnershipPeriod.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929EDE8227F8C6C500E55F65 /* VOwnershipPeriod.swift */; };
|
||||||
@ -258,6 +259,7 @@
|
|||||||
7AFD7AE528718BF000BCCD37 /* Filter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Filter.swift; sourceTree = "<group>"; };
|
7AFD7AE528718BF000BCCD37 /* Filter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Filter.swift; sourceTree = "<group>"; };
|
||||||
7AFD7AE72871B7DA00BCCD37 /* MainSplitController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSplitController.swift; sourceTree = "<group>"; };
|
7AFD7AE72871B7DA00BCCD37 /* MainSplitController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSplitController.swift; sourceTree = "<group>"; };
|
||||||
7AFD7AEA2872355000BCCD37 /* MainWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainWindowController.swift; sourceTree = "<group>"; };
|
7AFD7AEA2872355000BCCD37 /* MainWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainWindowController.swift; sourceTree = "<group>"; };
|
||||||
|
7AFD7AEC2874E49600BCCD37 /* CheckController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckController.swift; sourceTree = "<group>"; };
|
||||||
929EDE7E27F89C3000E55F65 /* VEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VEngine.swift; sourceTree = "<group>"; };
|
929EDE7E27F89C3000E55F65 /* VEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VEngine.swift; sourceTree = "<group>"; };
|
||||||
929EDE8027F8A75E00E55F65 /* VPhoto.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VPhoto.swift; sourceTree = "<group>"; };
|
929EDE8027F8A75E00E55F65 /* VPhoto.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VPhoto.swift; sourceTree = "<group>"; };
|
||||||
929EDE8227F8C6C500E55F65 /* VOwnershipPeriod.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VOwnershipPeriod.swift; sourceTree = "<group>"; };
|
929EDE8227F8C6C500E55F65 /* VOwnershipPeriod.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VOwnershipPeriod.swift; sourceTree = "<group>"; };
|
||||||
@ -378,6 +380,7 @@
|
|||||||
children = (
|
children = (
|
||||||
7AFD7ADE2871822000BCCD37 /* Sidebar */,
|
7AFD7ADE2871822000BCCD37 /* Sidebar */,
|
||||||
7AFD7AE72871B7DA00BCCD37 /* MainSplitController.swift */,
|
7AFD7AE72871B7DA00BCCD37 /* MainSplitController.swift */,
|
||||||
|
7AFD7AEC2874E49600BCCD37 /* CheckController.swift */,
|
||||||
);
|
);
|
||||||
path = Controllers;
|
path = Controllers;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -1045,6 +1048,7 @@
|
|||||||
7AFD7AE82871B7DA00BCCD37 /* MainSplitController.swift in Sources */,
|
7AFD7AE82871B7DA00BCCD37 /* MainSplitController.swift in Sources */,
|
||||||
7AFD7AE22871826D00BCCD37 /* SidebarItem.swift in Sources */,
|
7AFD7AE22871826D00BCCD37 /* SidebarItem.swift in Sources */,
|
||||||
7AFD7AEB2872355000BCCD37 /* MainWindowController.swift in Sources */,
|
7AFD7AEB2872355000BCCD37 /* MainWindowController.swift in Sources */,
|
||||||
|
7AFD7AED2874E49600BCCD37 /* CheckController.swift in Sources */,
|
||||||
7A9FD4072857AF590057ECFA /* AppDelegate.swift in Sources */,
|
7A9FD4072857AF590057ECFA /* AppDelegate.swift in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
|||||||
@ -729,6 +729,82 @@
|
|||||||
</objects>
|
</objects>
|
||||||
<point key="canvasLocation" x="76" y="1001"/>
|
<point key="canvasLocation" x="76" y="1001"/>
|
||||||
</scene>
|
</scene>
|
||||||
|
<!--Check Controller-->
|
||||||
|
<scene sceneID="HHJ-M8-hIB">
|
||||||
|
<objects>
|
||||||
|
<viewController storyboardIdentifier="CheckController" id="XFl-Wx-eYr" customClass="CheckController" customModule="AutoCat2Mac" customModuleProvider="target" sceneMemberID="viewController">
|
||||||
|
<view key="view" misplaced="YES" id="qCL-3f-aoO">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="316" height="181"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<subviews>
|
||||||
|
<button verticalHuggingPriority="750" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="93a-kE-ZA0">
|
||||||
|
<rect key="frame" x="1" y="1" width="154" height="32"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="140" id="aw4-k5-7pa"/>
|
||||||
|
</constraints>
|
||||||
|
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="KXn-t5-z1m">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<string key="keyEquivalent" base64-UTF8="YES">
|
||||||
|
Gw
|
||||||
|
</string>
|
||||||
|
</buttonCell>
|
||||||
|
</button>
|
||||||
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MTd-tE-Cey">
|
||||||
|
<rect key="frame" x="18" y="119" width="280" height="26"/>
|
||||||
|
<textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="Check new plate number" id="gQS-6S-oEK">
|
||||||
|
<font key="font" textStyle="title1" name=".SFNS-Regular"/>
|
||||||
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="PMS-6j-xbV">
|
||||||
|
<rect key="frame" x="58" y="52" width="200" height="43"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" constant="200" id="fdh-Ch-kwi"/>
|
||||||
|
</constraints>
|
||||||
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" id="8Os-qZ-f33">
|
||||||
|
<font key="font" metaFont="system" size="32"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
<button verticalHuggingPriority="750" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6Bn-HZ-aid">
|
||||||
|
<rect key="frame" x="157" y="1" width="154" height="32"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="140" id="Sqt-aL-ILa"/>
|
||||||
|
</constraints>
|
||||||
|
<buttonCell key="cell" type="push" title="Check" bezelStyle="rounded" alignment="center" borderStyle="border" inset="2" id="nTE-1c-gSN">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
</buttonCell>
|
||||||
|
</button>
|
||||||
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="MTd-tE-Cey" firstAttribute="top" secondItem="qCL-3f-aoO" secondAttribute="top" constant="20" symbolic="YES" id="1hz-As-vMj"/>
|
||||||
|
<constraint firstItem="6Bn-HZ-aid" firstAttribute="top" secondItem="PMS-6j-xbV" secondAttribute="bottom" constant="24" id="4f6-xb-Jra"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="6Bn-HZ-aid" secondAttribute="trailing" constant="8" id="7gA-CT-ZsC"/>
|
||||||
|
<constraint firstItem="93a-kE-ZA0" firstAttribute="leading" secondItem="qCL-3f-aoO" secondAttribute="leading" constant="8" id="KwZ-5h-7cw"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="6Bn-HZ-aid" secondAttribute="bottom" constant="8" id="TeE-Dj-sRe"/>
|
||||||
|
<constraint firstItem="PMS-6j-xbV" firstAttribute="top" secondItem="MTd-tE-Cey" secondAttribute="bottom" constant="24" id="b81-2u-K2K"/>
|
||||||
|
<constraint firstItem="PMS-6j-xbV" firstAttribute="centerX" secondItem="qCL-3f-aoO" secondAttribute="centerX" id="dNS-Q5-yFq"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="93a-kE-ZA0" secondAttribute="bottom" constant="8" id="g9K-lY-ds3"/>
|
||||||
|
<constraint firstItem="6Bn-HZ-aid" firstAttribute="leading" secondItem="93a-kE-ZA0" secondAttribute="trailing" constant="8" id="iiJ-9b-2Jx"/>
|
||||||
|
<constraint firstItem="MTd-tE-Cey" firstAttribute="leading" secondItem="qCL-3f-aoO" secondAttribute="leading" constant="20" symbolic="YES" id="iwp-bD-Tyz"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="MTd-tE-Cey" secondAttribute="trailing" constant="20" symbolic="YES" id="uEZ-qE-45L"/>
|
||||||
|
<constraint firstItem="93a-kE-ZA0" firstAttribute="top" secondItem="PMS-6j-xbV" secondAttribute="bottom" constant="24" id="w77-80-Ggq"/>
|
||||||
|
</constraints>
|
||||||
|
</view>
|
||||||
|
<connections>
|
||||||
|
<outlet property="cancelButton" destination="93a-kE-ZA0" id="5bF-Bh-NP8"/>
|
||||||
|
<outlet property="checkButton" destination="6Bn-HZ-aid" id="peV-8h-Mzp"/>
|
||||||
|
<outlet property="textField" destination="PMS-6j-xbV" id="hTZ-nV-TIE"/>
|
||||||
|
</connections>
|
||||||
|
</viewController>
|
||||||
|
<customObject id="8Mg-sX-vG1" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="746" y="1462.5"/>
|
||||||
|
</scene>
|
||||||
<!--Main Split Controller-->
|
<!--Main Split Controller-->
|
||||||
<scene sceneID="p66-TL-mk9">
|
<scene sceneID="p66-TL-mk9">
|
||||||
<objects>
|
<objects>
|
||||||
@ -892,7 +968,7 @@
|
|||||||
</viewController>
|
</viewController>
|
||||||
<customObject id="fCn-zz-QP5" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
<customObject id="fCn-zz-QP5" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
||||||
</objects>
|
</objects>
|
||||||
<point key="canvasLocation" x="1364" y="1258"/>
|
<point key="canvasLocation" x="1364" y="1289"/>
|
||||||
</scene>
|
</scene>
|
||||||
</scenes>
|
</scenes>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
23
AutoCat2Mac/Controllers/CheckController.swift
Normal file
23
AutoCat2Mac/Controllers/CheckController.swift
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// CheckController.swift
|
||||||
|
// AutoCat2Mac
|
||||||
|
//
|
||||||
|
// Created by Selim Mustafaev on 06.07.2022.
|
||||||
|
//
|
||||||
|
|
||||||
|
import AppKit
|
||||||
|
|
||||||
|
class CheckController: NSViewController {
|
||||||
|
|
||||||
|
@IBOutlet weak var checkButton: NSButton!
|
||||||
|
@IBOutlet weak var cancelButton: NSButton!
|
||||||
|
@IBOutlet weak var textField: NSTextField!
|
||||||
|
|
||||||
|
override func viewDidLoad() {
|
||||||
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
checkButton.controlSize = .large
|
||||||
|
cancelButton.controlSize = .large
|
||||||
|
textField.controlSize = .large
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -26,5 +26,10 @@ class MainWindowController: NSWindowController {
|
|||||||
|
|
||||||
@IBAction func checkNewNumber(_ sender: NSToolbarItem) {
|
@IBAction func checkNewNumber(_ sender: NSToolbarItem) {
|
||||||
print("Check new number")
|
print("Check new number")
|
||||||
|
|
||||||
|
let storyboard = NSStoryboard(name: "Main", bundle: nil)
|
||||||
|
if let controller = storyboard.instantiateController(withIdentifier: "CheckController") as? NSViewController {
|
||||||
|
contentViewController?.presentAsSheet(controller)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user