Rename to Cauldron

This commit is contained in:
Neil Brommer 2023-07-21 13:11:56 -07:00
parent aff9c5264d
commit 93e828beb0
28 changed files with 61 additions and 35 deletions

View file

@ -6,6 +6,9 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.6.0" /> <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.6.0" />
</ItemGroup> </ItemGroup>

View file

@ -1,12 +1,12 @@
using System; using System;
namespace Papercut.Core; namespace Cauldron.Core;
public class PapercutWriter public class CauldronWriter
{ {
private Func<object, Task> OutputFunc { get; set; } private Func<object, Task> OutputFunc { get; set; }
public PapercutWriter(Func<object, Task> outputFunc) public CauldronWriter(Func<object, Task> outputFunc)
{ {
this.OutputFunc = outputFunc; this.OutputFunc = outputFunc;
} }

View file

@ -1,7 +1,7 @@
using Microsoft.CodeAnalysis.CSharp.Scripting; using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.Scripting;
namespace Papercut.Core; namespace Cauldron.Core;
public class RoslynHost public class RoslynHost
{ {
@ -26,10 +26,10 @@ public class RoslynHost
public class RoslynHostGlobals public class RoslynHostGlobals
{ {
public PapercutWriter Papercut { get; set; } public CauldronWriter Cauldron { get; set; }
public RoslynHostGlobals(PapercutWriter writer) public RoslynHostGlobals(CauldronWriter writer)
{ {
this.Papercut = writer; this.Cauldron = writer;
} }
} }

View file

@ -1,7 +1,7 @@
using AppKit; using AppKit;
using Foundation; using Foundation;
namespace Papercut.Macos; namespace Cauldron.Macos;
[Register("AppDelegate")] [Register("AppDelegate")]
public partial class AppDelegate : NSApplicationDelegate public partial class AppDelegate : NSApplicationDelegate

View file

@ -7,7 +7,7 @@
using Foundation; using Foundation;
using System.CodeDom.Compiler; using System.CodeDom.Compiler;
namespace Papercut.Macos namespace Cauldron.Macos
{ {
partial class AppDelegate partial class AppDelegate
{ {

View file

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 711 B

After

Width:  |  Height:  |  Size: 711 B

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View file

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

View file

@ -2,8 +2,8 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0-macos</TargetFramework> <TargetFramework>net7.0-macos</TargetFramework>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<ApplicationTitle>Papercut</ApplicationTitle> <ApplicationTitle>Cauldron</ApplicationTitle>
<ApplcationId>com.neilbrommer.papercut</ApplcationId> <ApplcationId>com.neilbrommer.cauldron</ApplcationId>
<ApplicationVersion>1</ApplicationVersion> <ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<AccentColor>AccentColor</AccentColor> <AccentColor>AccentColor</AccentColor>
@ -13,7 +13,7 @@
<UseSGen>false</UseSGen> <UseSGen>false</UseSGen>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<LinkMode>None</LinkMode> <LinkMode>None</LinkMode>
<AssemblyName>Papercut</AssemblyName> <AssemblyName>Cauldron</AssemblyName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<CreatePackage>false</CreatePackage> <CreatePackage>false</CreatePackage>
@ -46,6 +46,6 @@
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Papercut.Core\Papercut.Core.csproj" /> <ProjectReference Include="..\Cauldron.Core\Cauldron.Core.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -3,9 +3,9 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>Papercut</string> <string>Cauldron</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.neilbrommer.papercut</string> <string>com.neilbrommer.cauldron</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>1.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>

View file

@ -1,6 +1,6 @@
using AppKit; using AppKit;
namespace Papercut.Macos; namespace Cauldron.Macos;
static class MainClass static class MainClass
{ {

View file

@ -6,17 +6,17 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<scenes> <scenes>
<!--Papercut Application--> <!--Cauldron Application-->
<scene sceneID="JPo-4y-FX3"> <scene sceneID="JPo-4y-FX3">
<objects> <objects>
<application id="hnw-xV-0zn" customClass="PapercutApplication" sceneMemberID="viewController"> <application id="hnw-xV-0zn" customClass="CauldronApplication" sceneMemberID="viewController">
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6"> <menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items> <items>
<menuItem title="Papercut" id="1Xt-HY-uBw"> <menuItem title="Cauldron" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Papercut" systemMenu="apple" id="uQy-DD-JDr"> <menu key="submenu" title="Cauldron" systemMenu="apple" id="uQy-DD-JDr">
<items> <items>
<menuItem title="About Papercut" id="5kV-Vb-QxS"> <menuItem title="About Cauldron" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask"/>
<connections> <connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/> <action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
@ -30,7 +30,7 @@
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/> <menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
</menuItem> </menuItem>
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/> <menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
<menuItem title="Hide Papercut" keyEquivalent="h" id="Olw-nP-bQN"> <menuItem title="Hide Cauldron" keyEquivalent="h" id="Olw-nP-bQN">
<connections> <connections>
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/> <action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
</connections> </connections>
@ -48,7 +48,7 @@
</connections> </connections>
</menuItem> </menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/> <menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit Papercut" keyEquivalent="q" id="4sb-4s-VLi"> <menuItem title="Quit Cauldron" keyEquivalent="q" id="4sb-4s-VLi">
<connections> <connections>
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/> <action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
</connections> </connections>
@ -413,7 +413,7 @@
<scene sceneID="ktg-sd-7li"> <scene sceneID="ktg-sd-7li">
<objects> <objects>
<windowController id="JKR-xj-8kh" customClass="MainWindow" sceneMemberID="viewController"> <windowController id="JKR-xj-8kh" customClass="MainWindow" sceneMemberID="viewController">
<window key="window" title="Papercut" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" frameAutosaveName="" animationBehavior="default" tabbingMode="preferred" id="d7K-Gm-g9N"> <window key="window" title="Cauldron" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" frameAutosaveName="" animationBehavior="default" tabbingMode="preferred" id="d7K-Gm-g9N">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" fullSizeContentView="YES"/> <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" fullSizeContentView="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="211" y="264" width="620" height="406"/> <rect key="contentRect" x="211" y="264" width="620" height="406"/>
@ -519,7 +519,14 @@
<size key="minSize" width="700" height="300"/> <size key="minSize" width="700" height="300"/>
<size key="maxSize" width="700" height="10000000"/> <size key="maxSize" width="700" height="10000000"/>
<attributedString key="textStorage"> <attributedString key="textStorage">
<fragment content="Papercut.Dump(&quot;From Script&quot;);"> <fragment content="Cauldron">
<attributes>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" size="14" name="Menlo-Regular"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment content=".Dump(&quot;From Script&quot;);">
<attributes> <attributes>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/> <color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" size="14" name="Menlo-Regular"/> <font key="NSFont" size="14" name="Menlo-Regular"/>
@ -587,15 +594,25 @@
<objects> <objects>
<viewController id="fla-BV-I1i" sceneMemberID="viewController"> <viewController id="fla-BV-I1i" sceneMemberID="viewController">
<view key="view" id="I9t-hb-gof"> <view key="view" id="I9t-hb-gof">
<rect key="frame" x="0.0" y="0.0" width="200" height="300"/> <rect key="frame" x="0.0" y="0.0" width="200" height="363"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZbN-j2-IXm">
<rect key="frame" x="18" y="202" width="65" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Check" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="wZq-of-aVB">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="MRU-Un-NFk"/> <viewLayoutGuide key="safeArea" id="MRU-Un-NFk"/>
<viewLayoutGuide key="layoutMargins" id="m0i-b2-MSN"/> <viewLayoutGuide key="layoutMargins" id="m0i-b2-MSN"/>
</view> </view>
</viewController> </viewController>
<customObject id="PWt-9c-6po" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> <customObject id="PWt-9c-6po" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects> </objects>
<point key="canvasLocation" x="-392.5" y="640"/> <point key="canvasLocation" x="-393" y="639.5"/>
</scene> </scene>
</scenes> </scenes>
<resources> <resources>

View file

@ -2,7 +2,7 @@ using System;
using System.Threading; using System.Threading;
using AppKit; using AppKit;
namespace Papercut.Macos; namespace Cauldron.Macos;
public partial class MainWindow : NSWindowController public partial class MainWindow : NSWindowController
{ {
@ -20,6 +20,12 @@ public partial class MainWindow : NSWindowController
.SplitViewItems[0].ViewController; .SplitViewItems[0].ViewController;
} }
private NSOutlineView SidebarList
{
get => (this.SidebarController.View.Subviews[0] as NSScrollView)
.ContentView.DocumentView as NSOutlineView;
}
private NSTextView ScriptEditorTextBox private NSTextView ScriptEditorTextBox
{ {
get => (this.MainContentController get => (this.MainContentController

View file

@ -7,7 +7,7 @@
using Foundation; using Foundation;
using System.CodeDom.Compiler; using System.CodeDom.Compiler;
namespace Papercut.Macos namespace Cauldron.Macos
{ {
[Register ("MainWindow")] [Register ("MainWindow")]
partial class MainWindow partial class MainWindow

View file

@ -1,10 +1,9 @@
using System; using System;
using Papercut.Core;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using AppKit; using Cauldron.Core;
namespace Papercut.Macos; namespace Cauldron.Macos;
public static class ScriptRunner public static class ScriptRunner
{ {
@ -14,7 +13,7 @@ public static class ScriptRunner
window.ScriptOutputTextBox.Value = ""; window.ScriptOutputTextBox.Value = "";
TaskScheduler uiThread = TaskScheduler.FromCurrentSynchronizationContext(); TaskScheduler uiThread = TaskScheduler.FromCurrentSynchronizationContext();
PapercutWriter writer = new(obj => CauldronWriter writer = new(obj =>
{ {
if (obj is string str) if (obj is string str)
{ {

View file

@ -3,13 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 16
VisualStudioVersion = 25.0.1705.2 VisualStudioVersion = 25.0.1705.2
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Papercut.Macos", "Papercut.Macos\Papercut.Macos.csproj", "{5596E3FE-A9CD-4B68-AD24-04D93FB70FD1}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cauldron.Macos", "Cauldron.Macos\Cauldron.Macos.csproj", "{5596E3FE-A9CD-4B68-AD24-04D93FB70FD1}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Papercut.Core", "Papercut.Core\Papercut.Core.csproj", "{BB41450F-03F2-45E7-8859-20ED74BD006C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cauldron.Core", "Cauldron.Core\Cauldron.Core.csproj", "{BB41450F-03F2-45E7-8859-20ED74BD006C}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7D25BD06-3AC2-44BC-8DF7-ECBEB8CB17FB}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7D25BD06-3AC2-44BC-8DF7-ECBEB8CB17FB}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig .editorconfig = .editorconfig
.gitignore = .gitignore
EndProjectSection EndProjectSection
EndProject EndProject
Global Global