SILICON
Loading...
Searching...
No Matches
projectSession.hpp
Go to the documentation of this file.
1/*
2 Copyright (c) 2026. Giulio Cocconi
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8 */
9
10#pragma once
11
12#include <optional>
13#include <string>
14#include <string_view>
15
16#include <QString>
17
22
23namespace SILICON::ui {
24
28 std::optional<SILICON::project::ProjectMetadata> currentProjectMetadata;
29 std::optional<SILICON::project::ProjectInfo> currentProjectInfo;
30 std::string activeDocumentPath;
31
35
36 [[nodiscard]] std::optional<std::string>
37 firstCircuitPath(std::string_view excludedPath = {}) const;
38};
39
40} // namespace SILICON::ui
static ComponentRegistry & instance()
SILICON::project::ProjectContext projectContext
std::optional< SILICON::project::ProjectMetadata > currentProjectMetadata
SILICON::project::ProjectCircuitResolver circuitResolver
std::optional< std::string > firstCircuitPath(std::string_view excludedPath={}) const
std::optional< SILICON::project::ProjectInfo > currentProjectInfo