SPB Git

Repository Public

CosmosApp.swift 4.7 KB 125 lines swift

1// =============================================================================2//                  SP BOUCHER | SOFTWARE & RESEARCH3//             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// PROJECT METADATA7// -----------------------------------------------------------------------------8// Project          : ORIX Cosmos9// File             : App/Sources/CosmosApp.swift10// Description      : The SwiftUI application: the main window (CosmosUI root11//                    view), the detachable inspector and timeline windows, the12//                    methodology window, the preferences, and the menu bar.13// Module           : App14// Repository       : https://git.spboucher.ai/orix-cosmos15// Project Website  : https://www.orixlab.dev16// Created          : 2026-11-2417// Last Modified    : 2026-11-2418//19// =============================================================================20// AUTHOR & PROFESSIONAL AFFILIATION21// =============================================================================22//23// Author           : Simon-Pierre Boucher24// Position         : Professor of Finance25// Institution      : Université du Québec en Outaouais (UQO)26// Department       : Département des sciences administratives27// Organization     : SP Boucher28//29// Website          : https://spboucher.ai30// Git              : https://git.spboucher.ai31//32// =============================================================================33// OFFICIAL CONTACT DIRECTORY34// =============================================================================35//36// General          : info@spboucher.ai37// Professional     : contact@spboucher.ai38// Direct           : simon@spboucher.ai39// Research         : research@spboucher.ai40// Development      : dev@spboucher.ai41// Support          : support@spboucher.ai42// Security/Admin   : admin@spboucher.ai43// Notifications    : notifications@spboucher.ai44//45// Preferred Contact: support@spboucher.ai46//47// =============================================================================48// COPYRIGHT & INTELLECTUAL PROPERTY49// =============================================================================50//51// Copyright (c) 202652// Simon-Pierre Boucher53//54// All rights reserved where applicable.55//56// This file is governed by the applicable project license,57// copyright notices, institutional agreements and relevant law.58//59// Unless expressly authorized by the applicable license or60// rights holder, copying, redistribution, sublicensing,61// publication and commercial exploitation are not permitted.62//63// Existing third-party rights and notices remain unaffected.64//65// =============================================================================66// CONFIDENTIALITY & SECURITY67// =============================================================================68//69// Classification   : Public70// Distribution     : Public repository; use is governed by the project license71// Security Contact : admin@spboucher.ai72//73// Access to this source does not independently grant permission74// to redistribute or disclose confidential materials.75//76// Do not embed credentials, private keys, access tokens,77// certificates or confidential personal information.78//79// =============================================================================80// LICENSE & MAINTENANCE81// =============================================================================82//83// License          : None specified (no license file in this repository)84// Maintainer       : Simon-Pierre Boucher85// Technical Contact: dev@spboucher.ai86//87// =============================================================================88// END OF SP BOUCHER SOURCE HEADER89// =============================================================================9091import CosmosUI92import SwiftUI9394struct CosmosApp: App {95    private let model = AppState.model9697    var body: some Scene {98        Window("ORIX Cosmos", id: "main") {99            CosmosRootView(model: model)100        }101        .defaultSize(width: 1_440, height: 900)102        .windowStyle(.hiddenTitleBar)103        .commands { CosmosCommands(model: model) }104105        Window(CosmosWindowTitle.inspector, id: CosmosWindowID.inspector) {106            DetachedInspector().environment(model)107        }108        .defaultSize(width: 360, height: 720)109110        Window(CosmosWindowTitle.timeline, id: CosmosWindowID.timeline) {111            DetachedTimeline().environment(model)112        }113        .defaultSize(width: 980, height: 120)114115        Window(CosmosWindowTitle.methodology, id: CosmosWindowID.methodology) {116            MethodologyView().environment(model)117        }118        .defaultSize(width: 760, height: 720)119120        Settings {121            PreferencesView().environment(model)122        }123    }124}125
Files main
Menu

Theme