mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: reorganize, rename, put files in groups
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
A5CEAFDC29B8009000646FDA /* SplitView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5CEAFDB29B8009000646FDA /* SplitView.swift */; };
|
A5CEAFDC29B8009000646FDA /* SplitView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5CEAFDB29B8009000646FDA /* SplitView.swift */; };
|
||||||
A5CEAFDE29B8058B00646FDA /* SplitView.Divider.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5CEAFDD29B8058B00646FDA /* SplitView.Divider.swift */; };
|
A5CEAFDE29B8058B00646FDA /* SplitView.Divider.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5CEAFDD29B8058B00646FDA /* SplitView.Divider.swift */; };
|
||||||
A5CEAFFF29C2410700646FDA /* Backport.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5CEAFFE29C2410700646FDA /* Backport.swift */; };
|
A5CEAFFF29C2410700646FDA /* Backport.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5CEAFFE29C2410700646FDA /* Backport.swift */; };
|
||||||
A5FECBD729D1FC3900022361 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FECBD629D1FC3900022361 /* ContentView.swift */; };
|
A5FECBD729D1FC3900022361 /* PrimaryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FECBD629D1FC3900022361 /* PrimaryView.swift */; };
|
||||||
A5FECBD929D2010400022361 /* WindowAccessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FECBD829D2010400022361 /* WindowAccessor.swift */; };
|
A5FECBD929D2010400022361 /* WindowAccessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FECBD829D2010400022361 /* WindowAccessor.swift */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
@ -55,7 +55,7 @@
|
|||||||
A5CEAFDD29B8058B00646FDA /* SplitView.Divider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SplitView.Divider.swift; sourceTree = "<group>"; };
|
A5CEAFDD29B8058B00646FDA /* SplitView.Divider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SplitView.Divider.swift; sourceTree = "<group>"; };
|
||||||
A5CEAFFE29C2410700646FDA /* Backport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Backport.swift; sourceTree = "<group>"; };
|
A5CEAFFE29C2410700646FDA /* Backport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Backport.swift; sourceTree = "<group>"; };
|
||||||
A5D495A1299BEC7E00DD1313 /* GhosttyKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = GhosttyKit.xcframework; sourceTree = "<group>"; };
|
A5D495A1299BEC7E00DD1313 /* GhosttyKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = GhosttyKit.xcframework; sourceTree = "<group>"; };
|
||||||
A5FECBD629D1FC3900022361 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
|
A5FECBD629D1FC3900022361 /* PrimaryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimaryView.swift; sourceTree = "<group>"; };
|
||||||
A5FECBD829D2010400022361 /* WindowAccessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowAccessor.swift; sourceTree = "<group>"; };
|
A5FECBD829D2010400022361 /* WindowAccessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowAccessor.swift; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
@ -75,6 +75,7 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A53426372A7DC53A00EBB7A2 /* Primary Window */,
|
A53426372A7DC53A00EBB7A2 /* Primary Window */,
|
||||||
|
A534263E2A7DCC5800EBB7A2 /* Settings */,
|
||||||
);
|
);
|
||||||
path = Features;
|
path = Features;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -85,33 +86,39 @@
|
|||||||
A53426382A7DC55C00EBB7A2 /* PrimaryWindowManager.swift */,
|
A53426382A7DC55C00EBB7A2 /* PrimaryWindowManager.swift */,
|
||||||
85102A1B2A6E32890084AB3E /* PrimaryWindowController.swift */,
|
85102A1B2A6E32890084AB3E /* PrimaryWindowController.swift */,
|
||||||
85DE1C912A6A3DCA00493853 /* PrimaryWindow.swift */,
|
85DE1C912A6A3DCA00493853 /* PrimaryWindow.swift */,
|
||||||
|
A5FECBD629D1FC3900022361 /* PrimaryView.swift */,
|
||||||
|
A535B9D9299C569B0017E2E4 /* ErrorView.swift */,
|
||||||
);
|
);
|
||||||
path = "Primary Window";
|
path = "Primary Window";
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
A534263A2A7DC61B00EBB7A2 /* Core */ = {
|
A534263D2A7DCBB000EBB7A2 /* Helpers */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A53426342A7DA53D00EBB7A2 /* AppDelegate.swift */,
|
A5CEAFFE29C2410700646FDA /* Backport.swift */,
|
||||||
|
8503D7C62A549C66006CFF3D /* FullScreenHandler.swift */,
|
||||||
|
A5FECBD829D2010400022361 /* WindowAccessor.swift */,
|
||||||
|
A5CEAFDA29B8005900646FDA /* SplitView */,
|
||||||
);
|
);
|
||||||
path = Core;
|
path = Helpers;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A534263E2A7DCC5800EBB7A2 /* Settings */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A59444F629A2ED5200725BBA /* SettingsView.swift */,
|
||||||
|
);
|
||||||
|
path = Settings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
A54CD6ED299BEB14008C95BB /* Sources */ = {
|
A54CD6ED299BEB14008C95BB /* Sources */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A534263A2A7DC61B00EBB7A2 /* Core */,
|
A53426342A7DA53D00EBB7A2 /* AppDelegate.swift */,
|
||||||
A53426362A7DC53000EBB7A2 /* Features */,
|
|
||||||
A5CEAFDA29B8005900646FDA /* SplitView */,
|
|
||||||
A55B7BB429B6F4410055DE60 /* Ghostty */,
|
|
||||||
857F63802A5E64F200CA4815 /* MainMenu.xib */,
|
857F63802A5E64F200CA4815 /* MainMenu.xib */,
|
||||||
A535B9D9299C569B0017E2E4 /* ErrorView.swift */,
|
A53426362A7DC53000EBB7A2 /* Features */,
|
||||||
A55685DF29A03A9F004303CE /* AppError.swift */,
|
A534263D2A7DCBB000EBB7A2 /* Helpers */,
|
||||||
A59444F629A2ED5200725BBA /* SettingsView.swift */,
|
A55B7BB429B6F4410055DE60 /* Ghostty */,
|
||||||
A5CEAFFE29C2410700646FDA /* Backport.swift */,
|
|
||||||
A5FECBD629D1FC3900022361 /* ContentView.swift */,
|
|
||||||
A5FECBD829D2010400022361 /* WindowAccessor.swift */,
|
|
||||||
8503D7C62A549C66006CFF3D /* FullScreenHandler.swift */,
|
|
||||||
);
|
);
|
||||||
path = Sources;
|
path = Sources;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -123,6 +130,7 @@
|
|||||||
A55B7BB529B6F47F0055DE60 /* AppState.swift */,
|
A55B7BB529B6F47F0055DE60 /* AppState.swift */,
|
||||||
A55B7BBB29B6FC330055DE60 /* SurfaceView.swift */,
|
A55B7BBB29B6FC330055DE60 /* SurfaceView.swift */,
|
||||||
A55B7BBD29B701360055DE60 /* Ghostty.SplitView.swift */,
|
A55B7BBD29B701360055DE60 /* Ghostty.SplitView.swift */,
|
||||||
|
A55685DF29A03A9F004303CE /* AppError.swift */,
|
||||||
);
|
);
|
||||||
path = Ghostty;
|
path = Ghostty;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -251,7 +259,7 @@
|
|||||||
A53426352A7DA53D00EBB7A2 /* AppDelegate.swift in Sources */,
|
A53426352A7DA53D00EBB7A2 /* AppDelegate.swift in Sources */,
|
||||||
A55B7BBC29B6FC330055DE60 /* SurfaceView.swift in Sources */,
|
A55B7BBC29B6FC330055DE60 /* SurfaceView.swift in Sources */,
|
||||||
A59444F729A2ED5200725BBA /* SettingsView.swift in Sources */,
|
A59444F729A2ED5200725BBA /* SettingsView.swift in Sources */,
|
||||||
A5FECBD729D1FC3900022361 /* ContentView.swift in Sources */,
|
A5FECBD729D1FC3900022361 /* PrimaryView.swift in Sources */,
|
||||||
A55B7BB829B6F53A0055DE60 /* Package.swift in Sources */,
|
A55B7BB829B6F53A0055DE60 /* Package.swift in Sources */,
|
||||||
A55B7BBE29B701360055DE60 /* Ghostty.SplitView.swift in Sources */,
|
A55B7BBE29B701360055DE60 /* Ghostty.SplitView.swift in Sources */,
|
||||||
A55B7BB629B6F47F0055DE60 /* AppState.swift in Sources */,
|
A55B7BB629B6F47F0055DE60 /* AppState.swift in Sources */,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
import GhosttyKit
|
import GhosttyKit
|
||||||
|
|
||||||
struct ContentView: View {
|
struct PrimaryView: View {
|
||||||
let ghostty: Ghostty.AppState
|
let ghostty: Ghostty.AppState
|
||||||
|
|
||||||
// We need access to our app delegate to know if we're quitting or not.
|
// We need access to our app delegate to know if we're quitting or not.
|
@ -23,7 +23,7 @@ class PrimaryWindow: NSWindow {
|
|||||||
backing: .buffered,
|
backing: .buffered,
|
||||||
defer: false)
|
defer: false)
|
||||||
window.center()
|
window.center()
|
||||||
window.contentView = NSHostingView(rootView: ContentView(
|
window.contentView = NSHostingView(rootView: PrimaryView(
|
||||||
ghostty: ghostty,
|
ghostty: ghostty,
|
||||||
appDelegate: appDelegate,
|
appDelegate: appDelegate,
|
||||||
focusedSurfaceWrapper: window.focusedSurfaceWrapper))
|
focusedSurfaceWrapper: window.focusedSurfaceWrapper))
|
||||||
|
Reference in New Issue
Block a user