Debugger icon & Action

This commit is contained in:
tudnai 2022-10-26 05:44:52 -07:00
parent d6323ee902
commit 233fcf4adf
7 changed files with 71 additions and 6300 deletions

View File

@ -123,15 +123,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
@IBAction func showPreferences(_ sender: NSMenuItem) {
if ( preferencesController == nil ) {
let storyboard = NSStoryboard(name: NSStoryboard.Name("Preferences"), bundle: nil)
preferencesController = storyboard.instantiateInitialController() as? PreferencesWindowController
}
// let debuggerStoryboard = NSStoryboard.init(name: NSStoryboard.Name("Debugger"), bundle: nil)
// let debuggerControler = debuggerStoryboard.instantiateController(withIdentifier: NSStoryboard.SceneIdentifier("debuggerWindowController")) as! NSWindowController
// debuggerControler.showWindow(self)
}
@IBAction func PowerOn(_ sender: Any) {

View File

@ -0,0 +1,52 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ant_dark.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "ant.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because it is too large Load Diff

View File

@ -1651,6 +1651,13 @@
<size key="minSize" width="30" height="17"/>
<size key="maxSize" width="30" height="43"/>
</toolbarItem>
<toolbarItem implicitItemIdentifier="B1229232-AB05-4CA9-9B28-44A1924DB58C" label="Debug" paletteLabel="Debug" tag="-1" image="Debugger" id="wx1-aT-fxa">
<size key="minSize" width="30" height="17"/>
<size key="maxSize" width="30" height="43"/>
<connections>
<action selector="Debugger:" target="B8D-0N-5wS" id="uby-Tg-7lZ"/>
</connections>
</toolbarItem>
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="JET-xj-qZD"/>
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="BWf-Nj-6Yq"/>
<toolbarItem implicitItemIdentifier="75D731EB-3958-43CF-B41F-E9B3CF3DB013" label="Mode" paletteLabel="Mode" sizingBehavior="auto" id="eSg-vU-9jb">
@ -1699,7 +1706,7 @@
<toolbarItem reference="hS6-wo-pAT"/>
<toolbarItem reference="AMa-TQ-7Ol"/>
<toolbarItem reference="BWf-Nj-6Yq"/>
<toolbarItem reference="irj-Ct-iaG"/>
<toolbarItem reference="wx1-aT-fxa"/>
</defaultToolbarItems>
</toolbar>
<connections>
@ -1743,7 +1750,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textView editable="NO" selectable="NO" drawsBackground="NO" importsGraphics="NO" richText="NO" horizontallyResizable="YES" verticallyResizable="YES" baseWritingDirection="leftToRight" findStyle="bar" allowsCharacterPickerTouchBarItem="NO" textCompletion="NO" id="ccC-Wu-3za" userLabel="Display" customClass="DisplayView" customModule="Steve___" customModuleProvider="target">
<rect key="frame" x="0.0" y="-192" width="1152" height="768"/>
<rect key="frame" x="0.0" y="-224" width="1152" height="768"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" red="0.0" green="0.99143940210000003" blue="1" alpha="0.76658818490000002" colorSpace="custom" customColorSpace="sRGB"/>
@ -2306,6 +2313,7 @@
<image name="Chip" width="32" height="32"/>
<image name="Color" width="32" height="32"/>
<image name="Copy" width="32" height="32"/>
<image name="Debugger" width="128" height="128"/>
<image name="Green" width="32" height="32"/>
<image name="Joystick" width="32" height="32"/>
<image name="NSActionTemplate" width="14" height="14"/>

View File

@ -383,4 +383,10 @@ class ToolBarController: NSWindowController, NSWindowDelegate {
ViewController.current?.CRTMonitorOnOff(sender)
}
@IBAction func Debugger(_ sender: Any) {
let debuggerStoryboard = NSStoryboard.init(name: NSStoryboard.Name("Debugger"), bundle: nil)
let debuggerControler = debuggerStoryboard.instantiateController(withIdentifier: NSStoryboard.SceneIdentifier("debuggerWindowController")) as! NSWindowController
debuggerControler.showWindow(self)
}
}